Revision f3356e9c libavformat/avformat.h

View differences:

libavformat/avformat.h
5 5
extern "C" {
6 6
#endif
7 7

  
8
#define LIBAVFORMAT_BUILD       4622
8
#define LIBAVFORMAT_BUILD       4623
9 9

  
10 10
#define LIBAVFORMAT_VERSION_INT FFMPEG_VERSION_INT
11 11
#define LIBAVFORMAT_VERSION     FFMPEG_VERSION
......
211 211
    int min_distance;         /* min distance between this and the previous keyframe, used to avoid unneeded searching */
212 212
} AVIndexEntry;
213 213

  
214
enum AVDiscard{
215
//we leave some space between them for extensions (drop some keyframes for intra only or drop just some bidir frames)
216
    AVDISCARD_NONE   =-16, ///< discard nothing
217
    AVDISCARD_DEFAULT=  0, ///< discard useless packets like 0 size packets in avi
218
    AVDISCARD_BIDIR  = 16, ///< discard all bidirectional frames
219
    AVDISCARD_NONKEY = 32, ///< discard all frames except keyframes
220
    AVDISCARD_ALL    = 48, ///< discard all
221
};
222

  
214 223
typedef struct AVStream {
215 224
    int index;    /* stream index in AVFormatContext */
216 225
    int id;       /* format specific stream id */
......
227 236
    int pts_wrap_bits; /* number of bits in pts (used for wrapping control) */
228 237
    /* ffmpeg.c private use */
229 238
    int stream_copy; /* if TRUE, just copy stream */
230
    int discard; ///< if 1, packets can be discarded at will and dont need to be demuxed
239
    enum AVDiscard discard; ///< selects which packets can be discarded at will and dont need to be demuxed
231 240
    //FIXME move stuff to a flags field?
232 241
    /* quality, as it has been removed from AVCodecContext and put in AVVideoFrame
233 242
     * MN:dunno if thats the right place, for it */
......
680 689
#endif
681 690

  
682 691
#endif /* AVFORMAT_H */
692

  

Also available in: Unified diff