mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
decoder: h264: detect the first VCL NAL unit of a picture for MVC.
Detect the first VCL NAL unit of a picture for MVC, based on the view_id as per H.7.4.1.2.4. Note that we only need to detect new view components. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
e4166f5a91
commit
a6215a0757
1 changed files with 4 additions and 0 deletions
|
@ -2650,6 +2650,10 @@ is_new_picture(GstVaapiParserInfoH264 *pi, GstVaapiParserInfoH264 *prev_pi)
|
|||
#define CHECK_VALUE(new_slice_hdr, old_slice_hdr, field) \
|
||||
CHECK_EXPR(((new_slice_hdr)->field == (old_slice_hdr)->field), #field)
|
||||
|
||||
/* view_id differs in value and VOIdx of current slice_hdr is less
|
||||
than the VOIdx of the prev_slice_hdr */
|
||||
CHECK_VALUE(&pi->nalu.extension.mvc, &prev_pi->nalu.extension.mvc, view_id);
|
||||
|
||||
/* frame_num differs in value, regardless of inferred values to 0 */
|
||||
CHECK_VALUE(slice_hdr, prev_slice_hdr, frame_num);
|
||||
|
||||
|
|
Loading…
Reference in a new issue