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

Side by Side Diff: content/renderer/pepper_platform_video_decoder_impl.cc

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make try bots happy Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/pepper_platform_video_decoder_impl.h" 5 #include "content/renderer/pepper_platform_video_decoder_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/renderer/video_decode_accelerator_host.h" 10 #include "content/renderer/video_decode_accelerator_host.h"
11 #include "media/base/buffers.h"
12 #include "media/base/video_frame.h"
13 11
14 using media::BitstreamBuffer; 12 using media::BitstreamBuffer;
15 using media::VideoDecodeAccelerator;
16 using media::VideoDecodeAcceleratorCallback; 13 using media::VideoDecodeAcceleratorCallback;
17 14
18 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( 15 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl(
19 VideoDecodeAccelerator* video_decode_accelerator) 16 VideoDecodeAccelerator* video_decode_accelerator)
20 : client_(NULL), 17 : client_(NULL),
21 video_decode_accelerator_(video_decode_accelerator) { 18 video_decode_accelerator_(video_decode_accelerator) {
22 } 19 }
23 20
24 PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {} 21 PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {}
25 22
26 const std::vector<uint32>& PlatformVideoDecoderImpl::GetConfig( 23 void PlatformVideoDecoderImpl::GetConfigs(
27 const std::vector<uint32>& prototype_config) { 24 const std::vector<uint32>& requested_configs,
25 std::vector<uint32>* matched_configs) {
28 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
29 return configs;
30 } 27 }
31 28
32 bool PlatformVideoDecoderImpl::Initialize(const std::vector<uint32>& config) { 29 bool PlatformVideoDecoderImpl::Initialize(const std::vector<uint32>& config) {
33 // TODO(vmr): Create video decoder in GPU process. 30 // TODO(vmr): Create video decoder in GPU process.
34 31
35 return true; 32 return true;
36 } 33 }
37 34
38 bool PlatformVideoDecoderImpl::Decode( 35 bool PlatformVideoDecoderImpl::Decode(
39 BitstreamBuffer* bitstream_buffer, 36 const BitstreamBuffer& bitstream_buffer,
40 VideoDecodeAcceleratorCallback* callback) { 37 VideoDecodeAcceleratorCallback* callback) {
41 // TODO(vmr): Implement me! 38 // TODO(vmr): Implement me!
42 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
43 // Put the incoming buffer into bitstream_buffer queue 40 // Put the incoming buffer into bitstream_buffer queue
44 return false; 41 return false;
45 } 42 }
46 43
47 void PlatformVideoDecoderImpl::AssignPictureBuffer( 44 void PlatformVideoDecoderImpl::AssignGLESBuffers(
48 std::vector<VideoDecodeAccelerator::PictureBuffer*> picture_buffers) { 45 const std::vector<media::GLESBuffer>& buffers) {
46 // TODO(vmr): Implement me!
47 NOTIMPLEMENTED();
49 } 48 }
50 49
51 void PlatformVideoDecoderImpl::ReusePictureBuffer( 50 void PlatformVideoDecoderImpl::AssignSysmemBuffers(
52 VideoDecodeAccelerator::PictureBuffer* picture_buffer) { 51 const std::vector<media::SysmemBuffer>& buffers) {
52 // TODO(vmr): Implement me!
53 NOTIMPLEMENTED();
54 }
55
56 void PlatformVideoDecoderImpl::ReusePictureBuffer(uint32 picture_buffer_id) {
57 // TODO(vmr): Implement me!
58 NOTIMPLEMENTED();
53 } 59 }
54 60
55 bool PlatformVideoDecoderImpl::Flush( 61 bool PlatformVideoDecoderImpl::Flush(
56 VideoDecodeAcceleratorCallback* callback) { 62 VideoDecodeAcceleratorCallback* callback) {
57 // TODO(vmr): Implement me! 63 // TODO(vmr): Implement me!
58 NOTIMPLEMENTED(); 64 NOTIMPLEMENTED();
59 65
60 // Call GPU video decoder to flush. 66 // Call GPU video decoder to flush.
61 return video_decode_accelerator_->Flush(callback); 67 return video_decode_accelerator_->Flush(callback);
62 } 68 }
(...skipping 13 matching lines...) Expand all
76 } 82 }
77 83
78 void PlatformVideoDecoderImpl::NotifyError( 84 void PlatformVideoDecoderImpl::NotifyError(
79 VideoDecodeAccelerator::Error error) { 85 VideoDecodeAccelerator::Error error) {
80 // TODO(vmr): Implement. 86 // TODO(vmr): Implement.
81 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
82 } 88 }
83 89
84 void PlatformVideoDecoderImpl::ProvidePictureBuffers( 90 void PlatformVideoDecoderImpl::ProvidePictureBuffers(
85 uint32 requested_num_of_buffers, 91 uint32 requested_num_of_buffers,
86 const std::vector<uint32>& buffer_properties) { 92 gfx::Size dimensions,
93 media::VideoDecodeAccelerator::MemoryType type) {
87 // TODO(vmr): Implement. 94 // TODO(vmr): Implement.
88 NOTIMPLEMENTED(); 95 NOTIMPLEMENTED();
89 } 96 }
90 97
91 void PlatformVideoDecoderImpl::PictureReady( 98 void PlatformVideoDecoderImpl::PictureReady(
92 VideoDecodeAccelerator::Picture* picture) { 99 const media::Picture& picture) {
93 // TODO(vmr): Implement. 100 // TODO(vmr): Implement.
94 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
95 } 102 }
OLDNEW
« no previous file with comments | « content/renderer/pepper_platform_video_decoder_impl.h ('k') | content/renderer/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698