Mercurial > libavformat.hg
comparison avformat.h @ 3120:ea5623a8efde libavformat
Add 'disposition' bitfield to AVStream and use it for both muxing and demuxing
of matroska and nut.
author | eugeni |
---|---|
date | Fri, 07 Mar 2008 19:25:09 +0000 |
parents | 00058259d6a7 |
children | b5e2ce291882 |
comparison
equal
deleted
inserted
replaced
3119:b1caac2f77ad | 3120:ea5623a8efde |
---|---|
20 | 20 |
21 #ifndef FFMPEG_AVFORMAT_H | 21 #ifndef FFMPEG_AVFORMAT_H |
22 #define FFMPEG_AVFORMAT_H | 22 #define FFMPEG_AVFORMAT_H |
23 | 23 |
24 #define LIBAVFORMAT_VERSION_MAJOR 52 | 24 #define LIBAVFORMAT_VERSION_MAJOR 52 |
25 #define LIBAVFORMAT_VERSION_MINOR 7 | 25 #define LIBAVFORMAT_VERSION_MINOR 8 |
26 #define LIBAVFORMAT_VERSION_MICRO 0 | 26 #define LIBAVFORMAT_VERSION_MICRO 0 |
27 | 27 |
28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ | 28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |
29 LIBAVFORMAT_VERSION_MINOR, \ | 29 LIBAVFORMAT_VERSION_MINOR, \ |
30 LIBAVFORMAT_VERSION_MICRO) | 30 LIBAVFORMAT_VERSION_MICRO) |
276 int flags:2; | 276 int flags:2; |
277 int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs 32 byte due to possible 8byte align). | 277 int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs 32 byte due to possible 8byte align). |
278 int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */ | 278 int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */ |
279 } AVIndexEntry; | 279 } AVIndexEntry; |
280 | 280 |
281 #define AV_DISPOSITION_DEFAULT 0x0001 | |
282 #define AV_DISPOSITION_DUB 0x0002 | |
283 #define AV_DISPOSITION_ORIGINAL 0x0004 | |
284 #define AV_DISPOSITION_COMMENT 0x0008 | |
285 #define AV_DISPOSITION_LYRICS 0x0010 | |
286 #define AV_DISPOSITION_KARAOKE 0x0020 | |
287 | |
281 /** | 288 /** |
282 * Stream structure. | 289 * Stream structure. |
283 * New fields can be added to the end with minor version bumps. | 290 * New fields can be added to the end with minor version bumps. |
284 * Removal, reordering and changes to existing fields require a major | 291 * Removal, reordering and changes to existing fields require a major |
285 * version bump. | 292 * version bump. |
355 | 362 |
356 #define MAX_REORDER_DELAY 4 | 363 #define MAX_REORDER_DELAY 4 |
357 int64_t pts_buffer[MAX_REORDER_DELAY+1]; | 364 int64_t pts_buffer[MAX_REORDER_DELAY+1]; |
358 | 365 |
359 char *filename; /**< source filename of the stream */ | 366 char *filename; /**< source filename of the stream */ |
367 | |
368 int disposition; /**< AV_DISPOSITION_* bitfield */ | |
360 } AVStream; | 369 } AVStream; |
361 | 370 |
362 #define AV_PROGRAM_RUNNING 1 | 371 #define AV_PROGRAM_RUNNING 1 |
363 | 372 |
364 /** | 373 /** |