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:
Sreerenj Balachandran 2013-03-13 11:44:38 +02:00 committed by Gwenole Beauchesne
parent e4166f5a91
commit a6215a0757

View file

@ -2650,6 +2650,10 @@ is_new_picture(GstVaapiParserInfoH264 *pi, GstVaapiParserInfoH264 *prev_pi)
#define CHECK_VALUE(new_slice_hdr, old_slice_hdr, field) \ #define CHECK_VALUE(new_slice_hdr, old_slice_hdr, field) \
CHECK_EXPR(((new_slice_hdr)->field == (old_slice_hdr)->field), #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 */ /* frame_num differs in value, regardless of inferred values to 0 */
CHECK_VALUE(slice_hdr, prev_slice_hdr, frame_num); CHECK_VALUE(slice_hdr, prev_slice_hdr, frame_num);