Browse code

cbs_h264: Include SEI type names in trace output

Mark Thompson authored on 2018/10/28 06:39:46
Showing 1 changed files
... ...
@@ -513,6 +513,8 @@ static int FUNC(sei_buffering_period)(CodedBitstreamContext *ctx, RWContext *rw,
513 513
     const H264RawSPS *sps;
514 514
     int err, i, length;
515 515
 
516
+    HEADER("Buffering Period");
517
+
516 518
     ue(seq_parameter_set_id, 0, 31);
517 519
 
518 520
     sps = h264->sps[current->seq_parameter_set_id];
... ...
@@ -605,6 +607,8 @@ static int FUNC(sei_pic_timing)(CodedBitstreamContext *ctx, RWContext *rw,
605 605
     const H264RawSPS *sps;
606 606
     int err;
607 607
 
608
+    HEADER("Picture Timing");
609
+
608 610
     sps = h264->active_sps;
609 611
     if (!sps) {
610 612
         // If there is exactly one possible SPS but it is not yet active
... ...
@@ -674,6 +678,8 @@ static int FUNC(sei_pan_scan_rect)(CodedBitstreamContext *ctx, RWContext *rw,
674 674
 {
675 675
     int err, i;
676 676
 
677
+    HEADER("Pan-Scan Rectangle");
678
+
677 679
     ue(pan_scan_rect_id, 0, UINT32_MAX - 1);
678 680
     flag(pan_scan_rect_cancel_flag);
679 681
 
... ...
@@ -699,6 +705,8 @@ static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext
699 699
 {
700 700
     int err, i, j;
701 701
 
702
+    HEADER("User Data Registered ITU-T T.35");
703
+
702 704
     u(8, itu_t_t35_country_code, 0x00, 0xff);
703 705
     if (current->itu_t_t35_country_code != 0xff)
704 706
         i = 1;
... ...
@@ -731,6 +739,8 @@ static int FUNC(sei_user_data_unregistered)(CodedBitstreamContext *ctx, RWContex
731 731
 {
732 732
     int err, i;
733 733
 
734
+    HEADER("User Data Unregistered");
735
+
734 736
 #ifdef READ
735 737
     if (*payload_size < 16) {
736 738
         av_log(ctx->log_ctx, AV_LOG_ERROR,
... ...
@@ -758,6 +768,8 @@ static int FUNC(sei_recovery_point)(CodedBitstreamContext *ctx, RWContext *rw,
758 758
 {
759 759
     int err;
760 760
 
761
+    HEADER("Recovery Point");
762
+
761 763
     ue(recovery_frame_cnt, 0, 65535);
762 764
     flag(exact_match_flag);
763 765
     flag(broken_link_flag);
... ...
@@ -771,6 +783,8 @@ static int FUNC(sei_display_orientation)(CodedBitstreamContext *ctx, RWContext *
771 771
 {
772 772
     int err;
773 773
 
774
+    HEADER("Display Orientation");
775
+
774 776
     flag(display_orientation_cancel_flag);
775 777
     if (!current->display_orientation_cancel_flag) {
776 778
         flag(hor_flip);
... ...
@@ -788,6 +802,8 @@ static int FUNC(sei_mastering_display_colour_volume)(CodedBitstreamContext *ctx,
788 788
 {
789 789
     int err, c;
790 790
 
791
+    HEADER("Mastering Display Colour Volume");
792
+
791 793
     for (c = 0; c < 3; c++) {
792 794
         us(16, display_primaries_x[c], 0, 50000, 1, c);
793 795
         us(16, display_primaries_y[c], 0, 50000, 1, c);