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:
Andreas Rheinhardt
2021-03-21 10:15:44 +01:00
parent 54127cc427
commit a77beea6c8
4 changed files with 14 additions and 3 deletions

View File

@@ -120,6 +120,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
#endif
#if FF_API_COLORSPACE_NAME
const char *av_get_colorspace_name(enum AVColorSpace val)
{
static const char * const name[] = {
@@ -135,7 +136,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val)
return NULL;
return name[val];
}
#endif
static void get_frame_defaults(AVFrame *frame)
{
if (frame->extended_data != frame->data)