[vlc-commits] packetizer: hevc: add poc debug

Francois Cartegnie git at videolan.org
Thu Dec 14 15:01:01 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 14 14:59:08 2017 +0100| [38723d0401fde13b0e703a91fee6cb1f67879114] | committer: Francois Cartegnie

packetizer: hevc: add poc debug

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38723d0401fde13b0e703a91fee6cb1f67879114
---

 modules/packetizer/hevc_nal.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index 7b66316fa2..40f94479fc 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -29,6 +29,8 @@
 
 #include <limits.h>
 
+//#define HEVC_POC_DEBUG
+
 typedef uint8_t  nal_u1_t;
 typedef uint8_t  nal_u2_t;
 typedef uint8_t  nal_u3_t;
@@ -1480,6 +1482,13 @@ int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps
         NoRaslOutputFlag = false;
     }
 
+#ifdef HEVC_POC_DEBUG
+    printf("slice lsb=%"PRIu32" irap=%d norasl=%d tid=%d msb=%d lsb=%d",
+           p_slice->pic_order_cnt_lsb,
+           IsIRAP, NoRaslOutputFlag, p_slice->temporal_id_plus1,
+           p_ctx->prevTid0PicOrderCnt.msb, p_ctx->prevTid0PicOrderCnt.lsb);
+#endif
+
     if( p_slice->nal_type == HEVC_NAL_IDR_N_LP ||
         p_slice->nal_type == HEVC_NAL_IDR_W_RADL )
     {
@@ -1519,6 +1528,10 @@ int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps
 
     p_ctx->first_picture = false;
 
+#ifdef HEVC_POC_DEBUG
+    printf(" POC=%"PRIu32"\n", pocMSB + p_slice->pic_order_cnt_lsb);
+#endif
+
     return pocMSB + p_slice->pic_order_cnt_lsb;
 }
 



More information about the vlc-commits mailing list