mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
imgconvert: Move AVPicture-related static function to the deprecated section
This commit is contained in:
parent
892f037c55
commit
f7168d7016
@ -153,6 +153,8 @@ enum AVPixelFormat avcodec_find_best_pix_fmt2(enum AVPixelFormat *pix_fmt_list,
|
|||||||
return dst_pix_fmt;
|
return dst_pix_fmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FF_API_AVPICTURE
|
||||||
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
/* return true if yuv planar */
|
/* return true if yuv planar */
|
||||||
static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
|
static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
|
||||||
{
|
{
|
||||||
@ -160,9 +162,6 @@ static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
|
|||||||
(desc->flags & AV_PIX_FMT_FLAG_PLANAR));
|
(desc->flags & AV_PIX_FMT_FLAG_PLANAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_API_AVPICTURE
|
|
||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
|
||||||
|
|
||||||
int av_picture_crop(AVPicture *dst, const AVPicture *src,
|
int av_picture_crop(AVPicture *dst, const AVPicture *src,
|
||||||
enum AVPixelFormat pix_fmt, int top_band, int left_band)
|
enum AVPixelFormat pix_fmt, int top_band, int left_band)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user