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/formats/webm/webm_video_client.h" | 5 #include "media/formats/webm/webm_video_client.h" |
6 | 6 |
7 #include "media/base/video_decoder_config.h" | 7 #include "media/base/video_decoder_config.h" |
8 #include "media/formats/webm/webm_constants.h" | 8 #include "media/formats/webm/webm_constants.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 WebMVideoClient::WebMVideoClient(const scoped_refptr<MediaLog>& media_log) | 12 WebMVideoClient::WebMVideoClient(MediaLog* media_log) : media_log_(media_log) { |
13 : media_log_(media_log) { | |
14 Reset(); | 13 Reset(); |
15 } | 14 } |
16 | 15 |
17 WebMVideoClient::~WebMVideoClient() { | 16 WebMVideoClient::~WebMVideoClient() { |
18 } | 17 } |
19 | 18 |
20 void WebMVideoClient::Reset() { | 19 void WebMVideoClient::Reset() { |
21 pixel_width_ = -1; | 20 pixel_width_ = -1; |
22 pixel_height_ = -1; | 21 pixel_height_ = -1; |
23 crop_bottom_ = -1; | 22 crop_bottom_ = -1; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Accept binary fields we don't care about for now. | 172 // Accept binary fields we don't care about for now. |
174 return true; | 173 return true; |
175 } | 174 } |
176 | 175 |
177 bool WebMVideoClient::OnFloat(int id, double val) { | 176 bool WebMVideoClient::OnFloat(int id, double val) { |
178 // Accept float fields we don't care about for now. | 177 // Accept float fields we don't care about for now. |
179 return true; | 178 return true; |
180 } | 179 } |
181 | 180 |
182 } // namespace media | 181 } // namespace media |
OLD | NEW |