mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
nvh265sldec: Fix for decoding 12bits stream
We've been exposing main-444-12 profile as a supported profile in its sinkpad template but not actaully. Adding code to covert 12 and 16 bits as well. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1612>
This commit is contained in:
parent
80bbc71ec0
commit
28eeba3e18
1 changed files with 9 additions and 0 deletions
|
@ -377,6 +377,15 @@ gst_nv_h265_dec_new_sequence (GstH265Decoder * decoder, const GstH265SPS * sps,
|
|||
} else {
|
||||
GST_FIXME_OBJECT (self, "10 bits supports only 4:2:0 or 4:4:4 format");
|
||||
}
|
||||
} else if (self->bitdepth == 12 || self->bitdepth == 16) {
|
||||
if (self->chroma_format_idc == 1) {
|
||||
out_format = GST_VIDEO_FORMAT_P016_LE;
|
||||
} else if (self->chroma_format_idc == 3) {
|
||||
out_format = GST_VIDEO_FORMAT_Y444_16LE;
|
||||
} else {
|
||||
GST_FIXME_OBJECT (self, "%d bits supports only 4:2:0 or 4:4:4 format",
|
||||
self->bitdepth);
|
||||
}
|
||||
}
|
||||
|
||||
if (out_format == GST_VIDEO_FORMAT_UNKNOWN) {
|
||||
|
|
Loading…
Reference in a new issue