mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc: support building with the forks ABI for avcodec_find_best_pix_fmt2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
42e78552c8
commit
dfb4757bbe
@ -4597,8 +4597,15 @@ enum PixelFormat avcodec_find_best_pix_fmt_of_2(enum PixelFormat dst_pix_fmt1, e
|
|||||||
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
||||||
|
|
||||||
attribute_deprecated
|
attribute_deprecated
|
||||||
|
#if AV_HAVE_INCOMPATIBLE_FORK_ABI
|
||||||
|
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat *pix_fmt_list,
|
||||||
|
enum PixelFormat src_pix_fmt,
|
||||||
|
int has_alpha, int *loss_ptr);
|
||||||
|
#else
|
||||||
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat dst_pix_fmt1, enum PixelFormat dst_pix_fmt2,
|
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat dst_pix_fmt1, enum PixelFormat dst_pix_fmt2,
|
||||||
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt);
|
enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt);
|
||||||
|
|
||||||
|
@ -577,11 +577,19 @@ enum PixelFormat avcodec_find_best_pix_fmt_of_2(enum PixelFormat dst_pix_fmt1, e
|
|||||||
return dst_pix_fmt;
|
return dst_pix_fmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if AV_HAVE_INCOMPATIBLE_FORK_ABI
|
||||||
|
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat *pix_fmt_list,
|
||||||
|
enum PixelFormat src_pix_fmt,
|
||||||
|
int has_alpha, int *loss_ptr){
|
||||||
|
return avcodec_find_best_pix_fmt_of_list(pix_fmt_list, src_pix_fmt, has_alpha, loss_ptr);
|
||||||
|
}
|
||||||
|
#else
|
||||||
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat dst_pix_fmt1, enum PixelFormat dst_pix_fmt2,
|
enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat dst_pix_fmt1, enum PixelFormat dst_pix_fmt2,
|
||||||
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
|
enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
|
||||||
{
|
{
|
||||||
return avcodec_find_best_pix_fmt_of_2(dst_pix_fmt1, dst_pix_fmt2, src_pix_fmt, has_alpha, loss_ptr);
|
return avcodec_find_best_pix_fmt_of_2(dst_pix_fmt1, dst_pix_fmt2, src_pix_fmt, has_alpha, loss_ptr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
enum PixelFormat avcodec_find_best_pix_fmt_of_list(enum PixelFormat *pix_fmt_list,
|
enum PixelFormat avcodec_find_best_pix_fmt_of_list(enum PixelFormat *pix_fmt_list,
|
||||||
enum PixelFormat src_pix_fmt,
|
enum PixelFormat src_pix_fmt,
|
||||||
|
Loading…
Reference in New Issue
Block a user