avutil/frame: Deprecate av_get_colorspace_name()
Contrary to av_color_space_name() it doesn't even support newer colorspaces. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
54127cc427
commit
a77beea6c8
@ -15,6 +15,10 @@ libavutil: 2017-10-21
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2021-03-21 - xxxxxxxxxx - lavu 56.72.100 - frame.h
|
||||||
|
Deprecated av_get_colorspace_name().
|
||||||
|
Use av_color_space_name() instead.
|
||||||
|
|
||||||
-------- 8< --------- FFmpeg 4.4 was cut here -------- 8< ---------
|
-------- 8< --------- FFmpeg 4.4 was cut here -------- 8< ---------
|
||||||
|
|
||||||
2021-03-19 - e8c0bca6bd - lavu 56.69.100 - adler32.h
|
2021-03-19 - e8c0bca6bd - lavu 56.69.100 - adler32.h
|
||||||
|
@ -120,6 +120,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if FF_API_COLORSPACE_NAME
|
||||||
const char *av_get_colorspace_name(enum AVColorSpace val)
|
const char *av_get_colorspace_name(enum AVColorSpace val)
|
||||||
{
|
{
|
||||||
static const char * const name[] = {
|
static const char * const name[] = {
|
||||||
@ -135,7 +136,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val)
|
|||||||
return NULL;
|
return NULL;
|
||||||
return name[val];
|
return name[val];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
static void get_frame_defaults(AVFrame *frame)
|
static void get_frame_defaults(AVFrame *frame)
|
||||||
{
|
{
|
||||||
if (frame->extended_data != frame->data)
|
if (frame->extended_data != frame->data)
|
||||||
|
@ -754,12 +754,15 @@ attribute_deprecated
|
|||||||
void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val);
|
void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if FF_API_COLORSPACE_NAME
|
||||||
/**
|
/**
|
||||||
* Get the name of a colorspace.
|
* Get the name of a colorspace.
|
||||||
* @return a static string identifying the colorspace; can be NULL.
|
* @return a static string identifying the colorspace; can be NULL.
|
||||||
|
* @deprecated use av_color_space_name()
|
||||||
*/
|
*/
|
||||||
|
attribute_deprecated
|
||||||
const char *av_get_colorspace_name(enum AVColorSpace val);
|
const char *av_get_colorspace_name(enum AVColorSpace val);
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Allocate an AVFrame and set its fields to default values. The resulting
|
* Allocate an AVFrame and set its fields to default values. The resulting
|
||||||
* struct must be freed using av_frame_free().
|
* struct must be freed using av_frame_free().
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_MAJOR 56
|
#define LIBAVUTIL_VERSION_MAJOR 56
|
||||||
#define LIBAVUTIL_VERSION_MINOR 71
|
#define LIBAVUTIL_VERSION_MINOR 72
|
||||||
#define LIBAVUTIL_VERSION_MICRO 100
|
#define LIBAVUTIL_VERSION_MICRO 100
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||||
@ -141,6 +141,9 @@
|
|||||||
#ifndef FF_API_DECLARE_ALIGNED
|
#ifndef FF_API_DECLARE_ALIGNED
|
||||||
#define FF_API_DECLARE_ALIGNED (LIBAVUTIL_VERSION_MAJOR < 58)
|
#define FF_API_DECLARE_ALIGNED (LIBAVUTIL_VERSION_MAJOR < 58)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_COLORSPACE_NAME
|
||||||
|
#define FF_API_COLORSPACE_NAME (LIBAVUTIL_VERSION_MAJOR < 58)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user