mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums
Also deprecate av_get_pict_type_char() in favor of av_get_picture_type_char(). The new enum and av_get_picture_type_char() are defined in libavutil. This allows the use in libavfilter without the need to link against libavcodec. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:

committed by
Anton Khirnov

parent
30fe971934
commit
bebe72f4a0
@ -39,3 +39,17 @@ const char *avutil_license(void)
|
||||
#define LICENSE_PREFIX "libavutil license: "
|
||||
return LICENSE_PREFIX LIBAV_LICENSE + sizeof(LICENSE_PREFIX) - 1;
|
||||
}
|
||||
|
||||
char av_get_picture_type_char(enum AVPictureType pict_type)
|
||||
{
|
||||
switch (pict_type) {
|
||||
case AV_PICTURE_TYPE_I: return 'I';
|
||||
case AV_PICTURE_TYPE_P: return 'P';
|
||||
case AV_PICTURE_TYPE_B: return 'B';
|
||||
case AV_PICTURE_TYPE_S: return 'S';
|
||||
case AV_PICTURE_TYPE_SI: return 'i';
|
||||
case AV_PICTURE_TYPE_SP: return 'p';
|
||||
case AV_PICTURE_TYPE_BI: return 'b';
|
||||
default: return '?';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user