Revision bebe72f4 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
762 762
     * - encoding: Set by libavcodec. for coded_picture (and set by user for input).\
763 763
     * - decoding: Set by libavcodec.\
764 764
     */\
765
    int pict_type;\
765
    enum AVPictureType pict_type;\
766 766
\
767 767
    /**\
768 768
     * presentation timestamp in time_base units (time when frame should be shown to user)\
......
1004 1004
#define FF_BUFFER_TYPE_SHARED   4 ///< Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared.
1005 1005
#define FF_BUFFER_TYPE_COPY     8 ///< Just a (modified) copy of some other buffer, don't deallocate anything.
1006 1006

  
1007

  
1008
#define FF_I_TYPE  1 ///< Intra
1009
#define FF_P_TYPE  2 ///< Predicted
1010
#define FF_B_TYPE  3 ///< Bi-dir predicted
1011
#define FF_S_TYPE  4 ///< S(GMC)-VOP MPEG4
1012
#define FF_SI_TYPE 5 ///< Switching Intra
1013
#define FF_SP_TYPE 6 ///< Switching Predicted
1014
#define FF_BI_TYPE 7
1007
#if FF_API_OLD_FF_PICT_TYPES
1008
/* DEPRECATED, directly use the AV_PICTURE_TYPE_* enum values */
1009
#define FF_I_TYPE  AV_PICTURE_TYPE_I  ///< Intra
1010
#define FF_P_TYPE  AV_PICTURE_TYPE_P  ///< Predicted
1011
#define FF_B_TYPE  AV_PICTURE_TYPE_B  ///< Bi-dir predicted
1012
#define FF_S_TYPE  AV_PICTURE_TYPE_S  ///< S(GMC)-VOP MPEG4
1013
#define FF_SI_TYPE AV_PICTURE_TYPE_SI ///< Switching Intra
1014
#define FF_SP_TYPE AV_PICTURE_TYPE_SP ///< Switching Predicted
1015
#define FF_BI_TYPE AV_PICTURE_TYPE_BI
1016
#endif
1015 1017

  
1016 1018
#define FF_BUFFER_HINTS_VALID    0x01 // Buffer hints value is meaningful (if 0 ignore).
1017 1019
#define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer.
......
3766 3768

  
3767 3769
/* misc useful functions */
3768 3770

  
3771
#if FF_API_OLD_FF_PICT_TYPES
3769 3772
/**
3770 3773
 * Return a single letter to describe the given picture type pict_type.
3771 3774
 *
3772 3775
 * @param[in] pict_type the picture type
3773 3776
 * @return A single character representing the picture type.
3777
 * @deprecated Use av_get_picture_type_char() instead.
3774 3778
 */
3779
attribute_deprecated
3775 3780
char av_get_pict_type_char(int pict_type);
3781
#endif
3776 3782

  
3777 3783
/**
3778 3784
 * Return codec bits per sample.

Also available in: Unified diff