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

Side by Side Diff: media/formats/webm/webm_video_client.cc

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mojo changes; Message->base::Pickle Created 4 years, 9 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
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/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"
ddorwin 2016/03/01 02:17:42 #include "media/base/encryption_scheme.h"
dougsteed 2016/03/02 18:07:53 Done.
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(const scoped_refptr<MediaLog>& media_log)
13 : media_log_(media_log) { 13 : media_log_(media_log) {
14 Reset(); 14 Reset();
15 } 15 }
16 16
17 WebMVideoClient::~WebMVideoClient() { 17 WebMVideoClient::~WebMVideoClient() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return false; 86 return false;
87 } else { 87 } else {
88 MEDIA_LOG(ERROR, media_log_) << "Unsupported display unit type " 88 MEDIA_LOG(ERROR, media_log_) << "Unsupported display unit type "
89 << display_unit_; 89 << display_unit_;
90 return false; 90 return false;
91 } 91 }
92 gfx::Size natural_size = gfx::Size(display_width_, display_height_); 92 gfx::Size natural_size = gfx::Size(display_width_, display_height_);
93 93
94 config->Initialize(video_codec, profile, format, COLOR_SPACE_HD_REC709, 94 config->Initialize(video_codec, profile, format, COLOR_SPACE_HD_REC709,
95 coded_size, visible_rect, natural_size, codec_private, 95 coded_size, visible_rect, natural_size, codec_private,
96 is_encrypted); 96 EncryptionScheme(is_encrypted));
ddorwin 2016/03/01 02:17:42 ditto
dougsteed 2016/03/02 18:07:53 Done.
97 return config->IsValidConfig(); 97 return config->IsValidConfig();
98 } 98 }
99 99
100 bool WebMVideoClient::OnUInt(int id, int64_t val) { 100 bool WebMVideoClient::OnUInt(int id, int64_t val) {
101 int64_t* dst = NULL; 101 int64_t* dst = NULL;
102 102
103 switch (id) { 103 switch (id) {
104 case kWebMIdPixelWidth: 104 case kWebMIdPixelWidth:
105 dst = &pixel_width_; 105 dst = &pixel_width_;
106 break; 106 break;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Accept binary fields we don't care about for now. 150 // Accept binary fields we don't care about for now.
151 return true; 151 return true;
152 } 152 }
153 153
154 bool WebMVideoClient::OnFloat(int id, double val) { 154 bool WebMVideoClient::OnFloat(int id, double val) {
155 // Accept float fields we don't care about for now. 155 // Accept float fields we don't care about for now.
156 return true; 156 return true;
157 } 157 }
158 158
159 } // namespace media 159 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698