avcodec: Remove deprecated avcodec_get_chroma_sub_sample
Effectively deprecated in 2c800eb737
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
f581433e8b
commit
d6cb7bf599
@ -3574,15 +3574,6 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width,
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if FF_API_GETCHROMA
|
|
||||||
/**
|
|
||||||
* @deprecated Use av_pix_fmt_get_chroma_sub_sample
|
|
||||||
*/
|
|
||||||
|
|
||||||
attribute_deprecated
|
|
||||||
void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a value representing the fourCC code associated to the
|
* Return a value representing the fourCC code associated to the
|
||||||
* pixel format pix_fmt, or 0 if no associated fourCC code can be
|
* pixel format pix_fmt, or 0 if no associated fourCC code can be
|
||||||
|
@ -27,23 +27,12 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "mathops.h"
|
#include "mathops.h"
|
||||||
#include "libavutil/avassert.h"
|
|
||||||
#include "libavutil/colorspace.h"
|
#include "libavutil/colorspace.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
|
|
||||||
#if FF_API_GETCHROMA
|
|
||||||
void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
|
|
||||||
{
|
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
|
||||||
av_assert0(desc);
|
|
||||||
*h_shift = desc->log2_chroma_w;
|
|
||||||
*v_shift = desc->log2_chroma_h;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if FF_API_AVCODEC_PIX_FMT
|
#if FF_API_AVCODEC_PIX_FMT
|
||||||
int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
|
int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
|
||||||
enum AVPixelFormat src_pix_fmt,
|
enum AVPixelFormat src_pix_fmt,
|
||||||
|
@ -81,9 +81,6 @@
|
|||||||
#ifndef FF_API_STRUCT_VAAPI_CONTEXT
|
#ifndef FF_API_STRUCT_VAAPI_CONTEXT
|
||||||
#define FF_API_STRUCT_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_STRUCT_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
#ifndef FF_API_GETCHROMA
|
|
||||||
#define FF_API_GETCHROMA (LIBAVCODEC_VERSION_MAJOR < 59)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_UNSANITIZED_BITRATES
|
#ifndef FF_API_UNSANITIZED_BITRATES
|
||||||
#define FF_API_UNSANITIZED_BITRATES (LIBAVCODEC_VERSION_MAJOR < 59)
|
#define FF_API_UNSANITIZED_BITRATES (LIBAVCODEC_VERSION_MAJOR < 59)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user