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

Side by Side Diff: media/gpu/vt_video_decode_accelerator_mac.cc

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years 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/gpu/vt_video_decode_accelerator_mac.h" 5 #include "media/gpu/vt_video_decode_accelerator_mac.h"
6 6
7 #include <CoreVideo/CoreVideo.h> 7 #include <CoreVideo/CoreVideo.h>
8 #include <OpenGL/CGLIOSurface.h> 8 #include <OpenGL/CGLIOSurface.h>
9 #include <OpenGL/gl.h> 9 #include <OpenGL/gl.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bool VTVideoDecodeAccelerator::Initialize(const Config& config, 299 bool VTVideoDecodeAccelerator::Initialize(const Config& config,
300 Client* client) { 300 Client* client) {
301 DVLOG(1) << __func__; 301 DVLOG(1) << __func__;
302 DCHECK(gpu_task_runner_->BelongsToCurrentThread()); 302 DCHECK(gpu_task_runner_->BelongsToCurrentThread());
303 303
304 if (make_context_current_cb_.is_null() || bind_image_cb_.is_null()) { 304 if (make_context_current_cb_.is_null() || bind_image_cb_.is_null()) {
305 NOTREACHED() << "GL callbacks are required for this VDA"; 305 NOTREACHED() << "GL callbacks are required for this VDA";
306 return false; 306 return false;
307 } 307 }
308 308
309 if (config.is_encrypted) { 309 if (config.is_encrypted()) {
310 NOTREACHED() << "Encrypted streams are not supported for this VDA"; 310 NOTREACHED() << "Encrypted streams are not supported for this VDA";
311 return false; 311 return false;
312 } 312 }
313 313
314 if (config.output_mode != Config::OutputMode::ALLOCATE) { 314 if (config.output_mode != Config::OutputMode::ALLOCATE) {
315 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA"; 315 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA";
316 return false; 316 return false;
317 } 317 }
318 318
319 client_ = client; 319 client_ = client;
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 SupportedProfile profile; 1179 SupportedProfile profile;
1180 profile.profile = supported_profile; 1180 profile.profile = supported_profile;
1181 profile.min_resolution.SetSize(16, 16); 1181 profile.min_resolution.SetSize(16, 16);
1182 profile.max_resolution.SetSize(4096, 2160); 1182 profile.max_resolution.SetSize(4096, 2160);
1183 profiles.push_back(profile); 1183 profiles.push_back(profile);
1184 } 1184 }
1185 return profiles; 1185 return profiles;
1186 } 1186 }
1187 1187
1188 } // namespace media 1188 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698