History

avutil/frame: Deprecate av_get_colorspace_name()

Contrary to av_color_space_name() it doesn't even support newer colorspaces.

Andreas Rheinhardt committed 5 years ago

Commit a77beea1 parent 54127cc4 files · +14 −3Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavutil/frame.c +2 −1
  3. libavutil/frame.h +4 −1
  4. libavutil/version.h +4 −1
doc/APIchanges+4−0
@@ -15,6 +15,10 @@ libavutil: 2017-10-21 · 14 unmodified lines
15 15
16API changes, most recent first:16API changes, most recent first:
17 17
182021-03-21 - xxxxxxxxxx - lavu 56.72.100 - frame.h
19 Deprecated av_get_colorspace_name().
20 Use av_color_space_name() instead.
21
18-------- 8< --------- FFmpeg 4.4 was cut here -------- 8< ---------22-------- 8< --------- FFmpeg 4.4 was cut here -------- 8< ---------
19 23
202021-03-19 - e8c0bca6bd - lavu 56.69.100 - adler32.h242021-03-19 - e8c0bca6bd - lavu 56.69.100 - adler32.h
libavutil/frame.c+2−1
@@ -120,6 +120,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 119 unmodified lines
120}120}
121#endif121#endif
122 122
123#if FF_API_COLORSPACE_NAME
123const char *av_get_colorspace_name(enum AVColorSpace val)124const char *av_get_colorspace_name(enum AVColorSpace val)
124{125{
125 static const char * const name[] = {126 static const char * const name[] = {
@@ -135,7 +136,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val) · 9 unmodified lines
135 return NULL;136 return NULL;
136 return name[val];137 return name[val];
137}138}
138 139#endif
139static void get_frame_defaults(AVFrame *frame)140static void get_frame_defaults(AVFrame *frame)
140{141{
141 if (frame->extended_data != frame->data)142 if (frame->extended_data != frame->data)
libavutil/frame.h+4−1
@@ -754,12 +754,15 @@ attribute_deprecated · 753 unmodified lines
754void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val);754void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val);
755#endif755#endif
756 756
757#if FF_API_COLORSPACE_NAME
757/**758/**
758 * Get the name of a colorspace.759 * Get the name of a colorspace.
759 * @return a static string identifying the colorspace; can be NULL.760 * @return a static string identifying the colorspace; can be NULL.
761 * @deprecated use av_color_space_name()
760 */762 */
763attribute_deprecated
761const char *av_get_colorspace_name(enum AVColorSpace val);764const char *av_get_colorspace_name(enum AVColorSpace val);
762 765#endif
763/**766/**
764 * Allocate an AVFrame and set its fields to default values. The resulting767 * Allocate an AVFrame and set its fields to default values. The resulting
765 * struct must be freed using av_frame_free().768 * struct must be freed using av_frame_free().
libavutil/version.h+4−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 5681#define LIBAVUTIL_VERSION_MAJOR 56
82#define LIBAVUTIL_VERSION_MINOR 7182#define LIBAVUTIL_VERSION_MINOR 72
83#define LIBAVUTIL_VERSION_MICRO 10083#define LIBAVUTIL_VERSION_MICRO 100
84 84
85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
@@ -141,6 +141,9 @@ · 55 unmodified lines
141#ifndef FF_API_DECLARE_ALIGNED141#ifndef FF_API_DECLARE_ALIGNED
142#define FF_API_DECLARE_ALIGNED (LIBAVUTIL_VERSION_MAJOR < 58)142#define FF_API_DECLARE_ALIGNED (LIBAVUTIL_VERSION_MAJOR < 58)
143#endif143#endif
144#ifndef FF_API_COLORSPACE_NAME
145#define FF_API_COLORSPACE_NAME (LIBAVUTIL_VERSION_MAJOR < 58)
146#endif
144 147
145/**148/**
146 * @}149 * @}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t