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

Side by Side Diff: content/common/gpu/media/dxva_video_decode_accelerator.h

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 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) 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 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <d3d9.h> 8 #include <d3d9.h>
9 #include <dxva2api.h> 9 #include <dxva2api.h>
10 #include <list> 10 #include <list>
(...skipping 26 matching lines...) Expand all
37 kEosDrain, // upon input EOS received. 37 kEosDrain, // upon input EOS received.
38 kStopped, // upon output EOS received. 38 kStopped, // upon output EOS received.
39 }; 39 };
40 40
41 // Does not take ownership of |client| which must outlive |*this|. 41 // Does not take ownership of |client| which must outlive |*this|.
42 explicit DXVAVideoDecodeAccelerator( 42 explicit DXVAVideoDecodeAccelerator(
43 media::VideoDecodeAccelerator::Client* client); 43 media::VideoDecodeAccelerator::Client* client);
44 virtual ~DXVAVideoDecodeAccelerator(); 44 virtual ~DXVAVideoDecodeAccelerator();
45 45
46 // media::VideoDecodeAccelerator implementation. 46 // media::VideoDecodeAccelerator implementation.
47 virtual bool Initialize(media::VideoCodecProfile) OVERRIDE; 47 virtual bool Initialize(media::VideoCodecProfile profile,
48 const gfx::Size& frame_size,
49 const std::vector<uint8_t>& extra_data) OVERRIDE;
48 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 50 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
49 virtual void AssignPictureBuffers( 51 virtual void AssignPictureBuffers(
50 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 52 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
51 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 53 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
52 virtual void Flush() OVERRIDE; 54 virtual void Flush() OVERRIDE;
53 virtual void Reset() OVERRIDE; 55 virtual void Reset() OVERRIDE;
54 virtual void Destroy() OVERRIDE; 56 virtual void Destroy() OVERRIDE;
55 57
56 // Initialization work needed before the process is sandboxed. 58 // Initialization work needed before the process is sandboxed.
57 // This includes:- 59 // This includes:-
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 201
200 // Set to true if all necessary initialization needed before the GPU process 202 // Set to true if all necessary initialization needed before the GPU process
201 // is sandboxed is done. 203 // is sandboxed is done.
202 // This includes the following: 204 // This includes the following:
203 // 1. All required decoder dlls were successfully loaded. 205 // 1. All required decoder dlls were successfully loaded.
204 // 2. The device manager initialization completed. 206 // 2. The device manager initialization completed.
205 static bool pre_sandbox_init_done_; 207 static bool pre_sandbox_init_done_;
206 }; 208 };
207 209
208 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 210 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/media/dxva_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698