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

Side by Side Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 1624703002: Implement support for vp9 in ISO-BMFF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | media/base/eme_constants.h » ('j') | media/base/eme_constants.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/renderer/media/chrome_key_systems.h" 5 #include "chrome/renderer/media/chrome_key_systems.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 #if defined(USE_PROPRIETARY_CODECS) 181 #if defined(USE_PROPRIETARY_CODECS)
182 supported_codecs |= media::EME_CODEC_MP4_AAC; 182 supported_codecs |= media::EME_CODEC_MP4_AAC;
183 #endif // defined(USE_PROPRIETARY_CODECS) 183 #endif // defined(USE_PROPRIETARY_CODECS)
184 184
185 for (size_t i = 0; i < codecs.size(); ++i) { 185 for (size_t i = 0; i < codecs.size(); ++i) {
186 if (codecs[i] == kCdmSupportedCodecVp8) 186 if (codecs[i] == kCdmSupportedCodecVp8)
187 supported_codecs |= media::EME_CODEC_WEBM_VP8; 187 supported_codecs |= media::EME_CODEC_WEBM_VP8;
188 if (codecs[i] == kCdmSupportedCodecVp9) 188 if (codecs[i] == kCdmSupportedCodecVp9)
189 supported_codecs |= media::EME_CODEC_WEBM_VP9; 189 supported_codecs |= media::EME_CODEC_WEBM_VP9;
190 #if defined(USE_PROPRIETARY_CODECS) 190 #if defined(USE_PROPRIETARY_CODECS)
191 if (codecs[i] == kCdmSupportedCodecVp8)
ddorwin 2016/01/27 01:39:14 Missing tests for EME (see chrome/browser/media/en
kqyang 2016/01/29 00:34:16 Done.
192 supported_codecs |= media::EME_CODEC_MP4_VP8;
193 if (codecs[i] == kCdmSupportedCodecVp9)
194 supported_codecs |= media::EME_CODEC_MP4_VP9;
191 if (codecs[i] == kCdmSupportedCodecAvc1) 195 if (codecs[i] == kCdmSupportedCodecAvc1)
192 supported_codecs |= media::EME_CODEC_MP4_AVC1; 196 supported_codecs |= media::EME_CODEC_MP4_AVC1;
193 #endif // defined(USE_PROPRIETARY_CODECS) 197 #endif // defined(USE_PROPRIETARY_CODECS)
194 } 198 }
195 199
196 cdm::AddWidevineWithCodecs( 200 cdm::AddWidevineWithCodecs(
197 cdm::WIDEVINE, supported_codecs, 201 cdm::WIDEVINE, supported_codecs,
198 #if defined(OS_CHROMEOS) 202 #if defined(OS_CHROMEOS)
199 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness. 203 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness.
200 media::EmeRobustness::HW_SECURE_ALL, // Maximim video robustness. 204 media::EmeRobustness::HW_SECURE_ALL, // Maximim video robustness.
(...skipping 23 matching lines...) Expand all
224 228
225 #if defined(WIDEVINE_CDM_AVAILABLE) 229 #if defined(WIDEVINE_CDM_AVAILABLE)
226 AddPepperBasedWidevine(key_systems_info); 230 AddPepperBasedWidevine(key_systems_info);
227 #endif // defined(WIDEVINE_CDM_AVAILABLE) 231 #endif // defined(WIDEVINE_CDM_AVAILABLE)
228 #endif // defined(ENABLE_PEPPER_CDMS) 232 #endif // defined(ENABLE_PEPPER_CDMS)
229 233
230 #if defined(OS_ANDROID) 234 #if defined(OS_ANDROID)
231 cdm::AddAndroidWidevine(key_systems_info); 235 cdm::AddAndroidWidevine(key_systems_info);
232 #endif // defined(OS_ANDROID) 236 #endif // defined(OS_ANDROID)
233 } 237 }
OLDNEW
« no previous file with comments | « no previous file | media/base/eme_constants.h » ('j') | media/base/eme_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698