OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/filters/h264_parser.h" | 5 #include "media/filters/h264_parser.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 0, 1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1 | 119 0, 1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1 |
120 }; | 120 }; |
121 static_assert(arraysize(kTableSarWidth) == arraysize(kTableSarHeight), | 121 static_assert(arraysize(kTableSarWidth) == arraysize(kTableSarHeight), |
122 "sar tables must have the same size"); | 122 "sar tables must have the same size"); |
123 | 123 |
124 H264Parser::H264Parser() { | 124 H264Parser::H264Parser() { |
125 Reset(); | 125 Reset(); |
126 } | 126 } |
127 | 127 |
128 H264Parser::~H264Parser() { | 128 H264Parser::~H264Parser() { |
129 STLDeleteValues(&active_SPSes_); | 129 base::STLDeleteValues(&active_SPSes_); |
130 STLDeleteValues(&active_PPSes_); | 130 base::STLDeleteValues(&active_PPSes_); |
131 } | 131 } |
132 | 132 |
133 void H264Parser::Reset() { | 133 void H264Parser::Reset() { |
134 stream_ = NULL; | 134 stream_ = NULL; |
135 bytes_left_ = 0; | 135 bytes_left_ = 0; |
136 encrypted_ranges_.clear(); | 136 encrypted_ranges_.clear(); |
137 } | 137 } |
138 | 138 |
139 void H264Parser::SetStream(const uint8_t* stream, off_t stream_size) { | 139 void H264Parser::SetStream(const uint8_t* stream, off_t stream_size) { |
140 std::vector<SubsampleEntry> subsamples; | 140 std::vector<SubsampleEntry> subsamples; |
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1348 | 1348 |
1349 default: | 1349 default: |
1350 DVLOG(4) << "Unsupported SEI message"; | 1350 DVLOG(4) << "Unsupported SEI message"; |
1351 break; | 1351 break; |
1352 } | 1352 } |
1353 | 1353 |
1354 return kOk; | 1354 return kOk; |
1355 } | 1355 } |
1356 | 1356 |
1357 } // namespace media | 1357 } // namespace media |
OLD | NEW |