Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: media/filters/h264_parser.cc

Issue 2234753002: media: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/filters/media_source_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/filters/media_source_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698