projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5530a1
)
v4l2object: fill colorimetry in gst_v4l2_object_acquire_format
author
Philipp Zabel
<p.zabel@pengutronix.de>
Fri, 13 May 2016 14:39:25 +0000
(16:39 +0200)
committer
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:39:26 +0000
(17:39 -0400)
Instead of relying on the default colorimetry chosen by
gst_video_info_set_format(), set info.colorimetry from the
values returned by G_FMT. This allows decoders to propagate
their input colorimetry downstream.
https://bugzilla.gnome.org/show_bug.cgi?id=766383
sys/v4l2/gstv4l2object.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2object.c
b/sys/v4l2/gstv4l2object.c
index e0999b2df16b411b95a139f25a488c72df16423b..0f51106db63a0764bac4d46d662b8ed6bee2a183 100644
(file)
--- a/
sys/v4l2/gstv4l2object.c
+++ b/
sys/v4l2/gstv4l2object.c
@@
-3680,6
+3680,8
@@
gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, GstVideoInfo * info)
goto unsupported_field;
}
+ gst_v4l2_object_get_colorspace (&fmt, &info->colorimetry);
+
gst_v4l2_object_save_format (v4l2object, fmtdesc, &fmt, info, &align);
/* Shall we setup the pool ? */