Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Dröge
gst-plugins-base
Commits
85712933
Commit
85712933
authored
Apr 24, 2012
by
Sebastian Dröge
Browse files
theoradec: Set some more information on the output caps
parent
e120979f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/theora/gsttheoradec.c
View file @
85712933
...
...
@@ -466,9 +466,23 @@ theora_handle_type_packet (GstTheoraDec * dec, ogg_packet * packet)
state
->
info
.
par_n
=
par_num
;
state
->
info
.
par_d
=
par_den
;
/* these values are for all versions of the colorspace specified in the
* theora info */
state
->
info
.
chroma_site
=
GST_VIDEO_CHROMA_SITE_JPEG
;
/* FIXME : Need to specify SDTV color-matrix ... once it's handled
* with the backported GstVideoInfo */
state
->
info
.
colorimetry
.
range
=
GST_VIDEO_COLOR_RANGE_16_235
;
state
->
info
.
colorimetry
.
matrix
=
GST_VIDEO_COLOR_MATRIX_BT601
;
state
->
info
.
colorimetry
.
transfer
=
GST_VIDEO_TRANSFER_BT709
;
switch
(
dec
->
info
.
colorspace
)
{
case
TH_CS_ITU_REC_470M
:
state
->
info
.
colorimetry
.
primaries
=
GST_VIDEO_COLOR_PRIMARIES_BT470M
;
break
;
case
TH_CS_ITU_REC_470BG
:
state
->
info
.
colorimetry
.
primaries
=
GST_VIDEO_COLOR_PRIMARIES_BT470BG
;
break
;
default:
state
->
info
.
colorimetry
.
primaries
=
GST_VIDEO_COLOR_PRIMARIES_UNKNOWN
;
break
;
}
dec
->
have_header
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment