OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/media/h264_parser.h" | 5 #include "content/common/gpu/media/h264_parser.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 | 10 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 READ_SE_OR_RETURN(&pps->pic_init_qs_minus26); | 710 READ_SE_OR_RETURN(&pps->pic_init_qs_minus26); |
711 IN_RANGE_OR_RETURN(pps->pic_init_qs_minus26, -26, 25); | 711 IN_RANGE_OR_RETURN(pps->pic_init_qs_minus26, -26, 25); |
712 | 712 |
713 READ_SE_OR_RETURN(&pps->chroma_qp_index_offset); | 713 READ_SE_OR_RETURN(&pps->chroma_qp_index_offset); |
714 IN_RANGE_OR_RETURN(pps->chroma_qp_index_offset, -12, 12); | 714 IN_RANGE_OR_RETURN(pps->chroma_qp_index_offset, -12, 12); |
715 | 715 |
716 READ_BOOL_OR_RETURN(&pps->deblocking_filter_control_present_flag); | 716 READ_BOOL_OR_RETURN(&pps->deblocking_filter_control_present_flag); |
717 READ_BOOL_OR_RETURN(&pps->constrained_intra_pred_flag); | 717 READ_BOOL_OR_RETURN(&pps->constrained_intra_pred_flag); |
718 READ_BOOL_OR_RETURN(&pps->redundant_pic_cnt_present_flag); | 718 READ_BOOL_OR_RETURN(&pps->redundant_pic_cnt_present_flag); |
719 | 719 |
720 if (br_.HasMoreData()) { | 720 if (br_.HasMoreRBSPData()) { |
721 READ_BOOL_OR_RETURN(&pps->transform_8x8_mode_flag); | 721 READ_BOOL_OR_RETURN(&pps->transform_8x8_mode_flag); |
722 READ_BOOL_OR_RETURN(&pps->pic_scaling_matrix_present_flag); | 722 READ_BOOL_OR_RETURN(&pps->pic_scaling_matrix_present_flag); |
723 | 723 |
724 if (pps->pic_scaling_matrix_present_flag) { | 724 if (pps->pic_scaling_matrix_present_flag) { |
725 DVLOG(4) << "Picture scaling matrix present"; | 725 DVLOG(4) << "Picture scaling matrix present"; |
726 res = ParsePPSScalingLists(*sps, pps.get()); | 726 res = ParsePPSScalingLists(*sps, pps.get()); |
727 if (res != kOk) | 727 if (res != kOk) |
728 return res; | 728 return res; |
729 } | 729 } |
730 | 730 |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 | 1107 |
1108 default: | 1108 default: |
1109 DVLOG(4) << "Unsupported SEI message"; | 1109 DVLOG(4) << "Unsupported SEI message"; |
1110 break; | 1110 break; |
1111 } | 1111 } |
1112 | 1112 |
1113 return kOk; | 1113 return kOk; |
1114 } | 1114 } |
1115 | 1115 |
1116 } // namespace content | 1116 } // namespace content |
OLD | NEW |