diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-21 10:15:44 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 08:00:57 +0100 |
commit | a77beea6c8c168683f882aa71c63d69cafa1d5c7 (patch) | |
tree | c8c1ec1e7c7d0bc3640708b149cd0de872c983fa /libavutil/frame.h | |
parent | 54127cc427920e48921e05e328d9ce475ae9d38d (diff) | |
download | ffmpeg-a77beea6c8c168683f882aa71c63d69cafa1d5c7.tar.gz |
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>
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r-- | libavutil/frame.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h index 7d1f8e2935..a5ed91b20a 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -754,12 +754,15 @@ attribute_deprecated void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val); #endif +#if FF_API_COLORSPACE_NAME /** * Get the name of a colorspace. * @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); - +#endif /** * Allocate an AVFrame and set its fields to default values. The resulting * struct must be freed using av_frame_free(). |