OLD | NEW |
1 /* | 1 /* |
2 * H261 encoder | 2 * H261 encoder |
3 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 3 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> |
4 * Copyright (c) 2004 Maarten Daniels | 4 * Copyright (c) 2004 Maarten Daniels |
5 * | 5 * |
6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
7 * | 7 * |
8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 10 matching lines...) Expand all Loading... |
21 */ | 21 */ |
22 | 22 |
23 /** | 23 /** |
24 * @file libavcodec/h261enc.c | 24 * @file libavcodec/h261enc.c |
25 * H.261 encoder. | 25 * H.261 encoder. |
26 */ | 26 */ |
27 | 27 |
28 #include "dsputil.h" | 28 #include "dsputil.h" |
29 #include "avcodec.h" | 29 #include "avcodec.h" |
30 #include "mpegvideo.h" | 30 #include "mpegvideo.h" |
| 31 #include "h263.h" |
31 #include "h261.h" | 32 #include "h261.h" |
32 #include "h261data.h" | 33 #include "h261data.h" |
33 | 34 |
34 extern uint8_t ff_h261_rl_table_store[2][2*MAX_RUN + MAX_LEVEL + 3]; | 35 extern uint8_t ff_h261_rl_table_store[2][2*MAX_RUN + MAX_LEVEL + 3]; |
35 | 36 |
36 static void h261_encode_block(H261Context * h, DCTELEM * block, | 37 static void h261_encode_block(H261Context * h, DCTELEM * block, |
37 int n); | 38 int n); |
38 | 39 |
39 int ff_h261_get_picture_format(int width, int height){ | 40 int ff_h261_get_picture_format(int width, int height){ |
40 // QCIF | 41 // QCIF |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 CODEC_TYPE_VIDEO, | 326 CODEC_TYPE_VIDEO, |
326 CODEC_ID_H261, | 327 CODEC_ID_H261, |
327 sizeof(H261Context), | 328 sizeof(H261Context), |
328 MPV_encode_init, | 329 MPV_encode_init, |
329 MPV_encode_picture, | 330 MPV_encode_picture, |
330 MPV_encode_end, | 331 MPV_encode_end, |
331 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | 332 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
332 .long_name= NULL_IF_CONFIG_SMALL("H.261"), | 333 .long_name= NULL_IF_CONFIG_SMALL("H.261"), |
333 }; | 334 }; |
334 | 335 |
OLD | NEW |