| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ |
| 13 | 13 |
| 14 #include <stddef.h> |
| 14 #include <stdint.h> | 15 #include <stdint.h> |
| 15 #include <stddef.h> | |
| 16 | 16 |
| 17 namespace rtc { | 17 namespace rtc { |
| 18 class BitBuffer; | 18 class BitBuffer; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 // Stateful H264 bitstream parser (due to SPS/PPS). Used to parse out QP values | 23 // Stateful H264 bitstream parser (due to SPS/PPS). Used to parse out QP values |
| 24 // from the bitstream. | 24 // from the bitstream. |
| 25 // TODO(pbos): Unify with RTP SPS parsing and only use one H264 parser. | 25 // TODO(pbos): Unify with RTP SPS parsing and only use one H264 parser. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 PpsState pps_; | 71 PpsState pps_; |
| 72 | 72 |
| 73 // Last parsed slice QP. | 73 // Last parsed slice QP. |
| 74 bool last_slice_qp_delta_parsed_ = false; | 74 bool last_slice_qp_delta_parsed_ = false; |
| 75 int32_t last_slice_qp_delta_ = 0; | 75 int32_t last_slice_qp_delta_ = 0; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace webrtc | 78 } // namespace webrtc |
| 79 | 79 |
| 80 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ | 80 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_H264_BITSTREAM_PARSER_H_ |
| OLD | NEW |