Mercurial > libavformat.hg
comparison avformat.h @ 2846:625c2c60f585 libavformat
Document a few more structure change rules with relation to ABI/API.
author | michael |
---|---|
date | Thu, 20 Dec 2007 09:59:07 +0000 |
parents | 440267faee3c |
children | 082a99e44795 |
comparison
equal
deleted
inserted
replaced
2845:73d9954285d5 | 2846:625c2c60f585 |
---|---|
267 int flags:2; | 267 int flags:2; |
268 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). | 268 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). |
269 int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */ | 269 int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */ |
270 } AVIndexEntry; | 270 } AVIndexEntry; |
271 | 271 |
272 /** | |
273 * Stream structure. | |
274 * New fields can be added to the end with minor version bumps. | |
275 * Removial, reordering and changes to existing fields require a Major | |
276 * version bump. | |
277 * sizeof(AVStream) must not be used outside libav* | |
278 */ | |
272 typedef struct AVStream { | 279 typedef struct AVStream { |
273 int index; /**< stream index in AVFormatContext */ | 280 int index; /**< stream index in AVFormatContext */ |
274 int id; /**< format specific stream id */ | 281 int id; /**< format specific stream id */ |
275 AVCodecContext *codec; /**< codec context */ | 282 AVCodecContext *codec; /**< codec context */ |
276 /** | 283 /** |
341 int64_t pts_buffer[MAX_REORDER_DELAY+1]; | 348 int64_t pts_buffer[MAX_REORDER_DELAY+1]; |
342 } AVStream; | 349 } AVStream; |
343 | 350 |
344 #define AV_PROGRAM_RUNNING 1 | 351 #define AV_PROGRAM_RUNNING 1 |
345 | 352 |
353 /** | |
354 * | |
355 * New fields can be added to the end with minor version bumps. | |
356 * Removial, reordering and changes to existing fields require a Major | |
357 * version bump. | |
358 * sizeof(AVProgram) must not be used outside libav* | |
359 */ | |
346 typedef struct AVProgram { | 360 typedef struct AVProgram { |
347 int id; | 361 int id; |
348 char *provider_name; ///< Network name for DVB streams | 362 char *provider_name; ///< Network name for DVB streams |
349 char *name; ///< Service name for DVB streams | 363 char *name; ///< Service name for DVB streams |
350 int flags; | 364 int flags; |