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

Side by Side Diff: media/gpu/v4l2_slice_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: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/v4l2_slice_video_decode_accelerator.h" 5 #include "media/gpu/v4l2_slice_video_decode_accelerator.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <linux/videodev2.h> 9 #include <linux/videodev2.h>
10 #include <poll.h> 10 #include <poll.h>
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 client_ptr_factory_.reset(); 511 client_ptr_factory_.reset();
512 } 512 }
513 } 513 }
514 514
515 bool V4L2SliceVideoDecodeAccelerator::Initialize(const Config& config, 515 bool V4L2SliceVideoDecodeAccelerator::Initialize(const Config& config,
516 Client* client) { 516 Client* client) {
517 DVLOGF(3) << "profile: " << config.profile; 517 DVLOGF(3) << "profile: " << config.profile;
518 DCHECK(child_task_runner_->BelongsToCurrentThread()); 518 DCHECK(child_task_runner_->BelongsToCurrentThread());
519 DCHECK_EQ(state_, kUninitialized); 519 DCHECK_EQ(state_, kUninitialized);
520 520
521 if (config.is_encrypted) { 521 if (config.is_encrypted()) {
522 NOTREACHED() << "Encrypted streams are not supported for this VDA"; 522 NOTREACHED() << "Encrypted streams are not supported for this VDA";
523 return false; 523 return false;
524 } 524 }
525 525
526 if (config.output_mode != Config::OutputMode::ALLOCATE && 526 if (config.output_mode != Config::OutputMode::ALLOCATE &&
527 config.output_mode != Config::OutputMode::IMPORT) { 527 config.output_mode != Config::OutputMode::IMPORT) {
528 NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported"; 528 NOTREACHED() << "Only ALLOCATE and IMPORT OutputModes are supported";
529 return false; 529 return false;
530 } 530 }
531 531
(...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after
3294 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() { 3294 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() {
3295 scoped_refptr<V4L2Device> device = V4L2Device::Create(); 3295 scoped_refptr<V4L2Device> device = V4L2Device::Create();
3296 if (!device) 3296 if (!device)
3297 return SupportedProfiles(); 3297 return SupportedProfiles();
3298 3298
3299 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_), 3299 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_),
3300 supported_input_fourccs_); 3300 supported_input_fourccs_);
3301 } 3301 }
3302 3302
3303 } // namespace media 3303 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698