projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
936fabc
)
video-color: Fix unknown colorimetry checking
author
Arun Raghavan
<arun@arunraghavan.net>
Fri, 24 May 2019 14:35:08 +0000
(16:35 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 11 Aug 2019 11:56:08 +0000
(12:56 +0100)
Also drop some deadcode #defines.
gst-libs/gst/video/video-color.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video-color.c
b/gst-libs/gst/video/video-color.c
index
96461f5
..
ec3dddc
100644
(file)
--- a/
gst-libs/gst/video/video-color.c
+++ b/
gst-libs/gst/video/video-color.c
@@
-63,13
+63,10
@@
typedef struct
#define GST_VIDEO_COLORIMETRY_NONAME NULL
-#define DEFAULT_YUV_SD 0
-#define DEFAULT_YUV_HD 1
-#define DEFAULT_RGB 3
-#define DEFAULT_YUV_UHD 4
-#define DEFAULT_GRAY 5
-#define DEFAULT_UNKNOWN 6
+#define DEFAULT_UNKNOWN 9
+/* NOTE: If you add an entry below, don't forget to update DEFAULT_UNKNOWN
+ * above */
static const ColorimetryInfo colorimetry[] = {
MAKE_COLORIMETRY (BT601, _16_235, BT601, BT709, SMPTE170M),
MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709),