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

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

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/vaapi_video_decode_accelerator.h" 5 #include "media/gpu/vaapi_video_decode_accelerator.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 319
320 VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() { 320 VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() {
321 DCHECK_EQ(message_loop_, base::MessageLoop::current()); 321 DCHECK_EQ(message_loop_, base::MessageLoop::current());
322 } 322 }
323 323
324 bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, 324 bool VaapiVideoDecodeAccelerator::Initialize(const Config& config,
325 Client* client) { 325 Client* client) {
326 DCHECK_EQ(message_loop_, base::MessageLoop::current()); 326 DCHECK_EQ(message_loop_, base::MessageLoop::current());
327 327
328 if (config.is_encrypted) { 328 if (config.is_encrypted()) {
329 NOTREACHED() << "Encrypted streams are not supported for this VDA"; 329 NOTREACHED() << "Encrypted streams are not supported for this VDA";
330 return false; 330 return false;
331 } 331 }
332 332
333 if (config.output_mode != Config::OutputMode::ALLOCATE && 333 if (config.output_mode != Config::OutputMode::ALLOCATE &&
334 config.output_mode != Config::OutputMode::IMPORT) { 334 config.output_mode != Config::OutputMode::IMPORT) {
335 NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported"; 335 NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported";
336 } 336 }
337 337
338 client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client)); 338 client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client));
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 return vaapi_pic->dec_surface(); 1832 return vaapi_pic->dec_surface();
1833 } 1833 }
1834 1834
1835 // static 1835 // static
1836 media::VideoDecodeAccelerator::SupportedProfiles 1836 media::VideoDecodeAccelerator::SupportedProfiles
1837 VaapiVideoDecodeAccelerator::GetSupportedProfiles() { 1837 VaapiVideoDecodeAccelerator::GetSupportedProfiles() {
1838 return VaapiWrapper::GetSupportedDecodeProfiles(); 1838 return VaapiWrapper::GetSupportedDecodeProfiles();
1839 } 1839 }
1840 1840
1841 } // namespace media 1841 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698