From c1b0d818bb7218aaa4884973233a5ae25a198af7 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 29 Jul 2015 22:59:56 +1000 Subject: [PATCH] h264parse: Add more NAL types for debugging output. Register more NAL unit types so that they are dumped by name in the debug output instead of being labelled 'Invalid' --- gst-libs/gst/codecparsers/gsth264parser.h | 8 ++++++-- gst/videoparsers/gsth264parse.c | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.h b/gst-libs/gst/codecparsers/gsth264parser.h index 2dcb1b7a3e..be5194f5de 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.h +++ b/gst-libs/gst/codecparsers/gsth264parser.h @@ -127,9 +127,11 @@ typedef enum { * @GST_H264_NAL_FILLER_DATA: Filler data nal lunit * @GST_H264_NAL_SPS_EXT: Sequence parameter set (SPS) extension NAL unit * @GST_H264_NAL_PREFIX_UNIT: Prefix NAL unit - * @GST_H264_NAL_SUBSET_SPS: Subset sequence parameter set (SPS) NAL unit + * @GST_H264_NAL_SUBSET_SPS: Subset sequence parameter set (SSPS) NAL unit + * @GST_H264_NAL_DEPTH_SPS: Depth parameter set (DPS) NAL unit * @GST_H264_NAL_SLICE_AUX: Auxiliary coded picture without partitioning NAL unit * @GST_H264_NAL_SLICE_EXT: Coded slice extension NAL unit + * @GST_H264_NAL_SLICE_DEPTH: Coded slice extension for depth or 3D-AVC texture view * * Indicates the type of H264 Nal Units */ @@ -151,8 +153,10 @@ typedef enum GST_H264_NAL_SPS_EXT = 13, GST_H264_NAL_PREFIX_UNIT = 14, GST_H264_NAL_SUBSET_SPS = 15, + GST_H264_NAL_DEPTH_SPS = 16, GST_H264_NAL_SLICE_AUX = 19, - GST_H264_NAL_SLICE_EXT = 20 + GST_H264_NAL_SLICE_EXT = 20, + GST_H264_NAL_SLICE_DEPTH = 21 } GstH264NalUnitType; /** diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index aabe14c4bd..d4745b194f 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -492,13 +492,18 @@ static const gchar *nal_names[] = { "Filler Data", "SPS extension", "Prefix", - "SPS Subset" + "SPS Subset", + "Depth Parameter Set", + "Reserved", "Reserved", + "Slice Aux Unpartitioned", + "Slice Extension", + "Slice Depth/3D-AVC Extension" }; static const gchar * _nal_name (GstH264NalUnitType nal_type) { - if (nal_type <= GST_H264_NAL_SUBSET_SPS) + if (nal_type <= GST_H264_NAL_SLICE_DEPTH) return nal_names[nal_type]; return "Invalid"; }