Mercurial > libavcodec.hg
comparison avcodec.h @ 1546:5d06823e2ee9 libavcodec
export mpeg2 active display area / pan scan
fix mpeg2 aspect_ratio for the rare case that active display area != AVCodecContext.width/height
decode sequence display extension & picture display extension
| author | michael |
|---|---|
| date | Mon, 20 Oct 2003 09:52:02 +0000 |
| parents | b340e83b8d0d |
| children | 0183874861fd |
comparison
equal
deleted
inserted
replaced
| 1545:b340e83b8d0d | 1546:5d06823e2ee9 |
|---|---|
| 13 | 13 |
| 14 #include "common.h" | 14 #include "common.h" |
| 15 | 15 |
| 16 #define FFMPEG_VERSION_INT 0x000408 | 16 #define FFMPEG_VERSION_INT 0x000408 |
| 17 #define FFMPEG_VERSION "0.4.8" | 17 #define FFMPEG_VERSION "0.4.8" |
| 18 #define LIBAVCODEC_BUILD 4684 | 18 #define LIBAVCODEC_BUILD 4685 |
| 19 | 19 |
| 20 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT | 20 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
| 21 #define LIBAVCODEC_VERSION FFMPEG_VERSION | 21 #define LIBAVCODEC_VERSION FFMPEG_VERSION |
| 22 | 22 |
| 23 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 23 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
| 269 /* if 'parse_only' field is true, then avcodec_parse_frame() can be | 269 /* if 'parse_only' field is true, then avcodec_parse_frame() can be |
| 270 used */ | 270 used */ |
| 271 #define CODEC_CAP_PARSE_ONLY 0x0004 | 271 #define CODEC_CAP_PARSE_ONLY 0x0004 |
| 272 #define CODEC_CAP_TRUNCATED 0x0008 | 272 #define CODEC_CAP_TRUNCATED 0x0008 |
| 273 | 273 |
| 274 /** | |
| 275 * Pan Scan area. | |
| 276 * this specifies the area which should be displayed. Note there may be multiple such areas for one frame | |
| 277 */ | |
| 278 typedef struct AVPanScan{ | |
| 279 /** | |
| 280 * id. | |
| 281 * - encoding: set by user. | |
| 282 * - decoding: set by lavc | |
| 283 */ | |
| 284 int id; | |
| 285 | |
| 286 /** | |
| 287 * width and height in 1/16 pel | |
| 288 * - encoding: set by user. | |
| 289 * - decoding: set by lavc | |
| 290 */ | |
| 291 int width; | |
| 292 int height; | |
| 293 | |
| 294 /** | |
| 295 * position of the top left corner in 1/16 pel for up to 3 fields/frames. | |
| 296 * - encoding: set by user. | |
| 297 * - decoding: set by lavc | |
| 298 */ | |
| 299 int16_t position[3][2]; | |
| 300 }AVPanScan; | |
| 301 | |
| 274 #define FF_COMMON_FRAME \ | 302 #define FF_COMMON_FRAME \ |
| 275 /**\ | 303 /**\ |
| 276 * pointer to the picture planes.\ | 304 * pointer to the picture planes.\ |
| 277 * this might be different from the first allocated byte\ | 305 * this might be different from the first allocated byte\ |
| 278 * - encoding: \ | 306 * - encoding: \ |
| 411 * if the content is interlaced, is bottom field displayed first.\ | 439 * if the content is interlaced, is bottom field displayed first.\ |
| 412 * - encoding: set by user\ | 440 * - encoding: set by user\ |
| 413 * - decoding: set by lavc (default 0)\ | 441 * - decoding: set by lavc (default 0)\ |
| 414 */\ | 442 */\ |
| 415 int bottom_field_first;\ | 443 int bottom_field_first;\ |
| 444 \ | |
| 445 /**\ | |
| 446 * Pan scan.\ | |
| 447 * - encoding: set by user\ | |
| 448 * - decoding: set by lavc\ | |
| 449 */\ | |
| 450 AVPanScan *pan_scan;\ | |
| 451 | |
| 416 | 452 |
| 417 #define FF_QSCALE_TYPE_MPEG1 0 | 453 #define FF_QSCALE_TYPE_MPEG1 0 |
| 418 #define FF_QSCALE_TYPE_MPEG2 1 | 454 #define FF_QSCALE_TYPE_MPEG2 1 |
| 419 | 455 |
| 420 #define FF_BUFFER_TYPE_INTERNAL 1 | 456 #define FF_BUFFER_TYPE_INTERNAL 1 |
| 1301 * maximum lagrange multipler | 1337 * maximum lagrange multipler |
| 1302 * - encoding: set by user. | 1338 * - encoding: set by user. |
| 1303 * - decoding: unused | 1339 * - decoding: unused |
| 1304 */ | 1340 */ |
| 1305 int lmax; | 1341 int lmax; |
| 1342 | |
| 1306 } AVCodecContext; | 1343 } AVCodecContext; |
| 1307 | 1344 |
| 1308 | 1345 |
| 1309 /** | 1346 /** |
| 1310 * AVOption. | 1347 * AVOption. |
