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

Side by Side Diff: content/common/gpu/media/mac_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_MAC_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_MAC_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_MAC_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_MAC_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <CoreVideo/CoreVideo.h> 8 #include <CoreVideo/CoreVideo.h>
9 #include <map> 9 #include <map>
10 #include <list> 10 #include <list>
(...skipping 13 matching lines...) Expand all
24 class GpuCommandBufferStub; 24 class GpuCommandBufferStub;
25 25
26 class MacVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 26 class MacVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
27 public: 27 public:
28 // Does not take ownership of |client| which must outlive |*this|. 28 // Does not take ownership of |client| which must outlive |*this|.
29 MacVideoDecodeAccelerator(media::VideoDecodeAccelerator::Client* client); 29 MacVideoDecodeAccelerator(media::VideoDecodeAccelerator::Client* client);
30 30
31 // Set the OpenGL context to use. 31 // Set the OpenGL context to use.
32 void SetGLContext(void* gl_context); 32 void SetGLContext(void* gl_context);
33 33
34 // Set extra data required to initialize the H.264 video decoder.
35 // TODO(sail): Move this into Initialize.
36 bool SetConfigInfo(uint32_t frame_width,
37 uint32_t frame_height,
38 const std::vector<uint8_t>& avc_data);
39
40 // media::VideoDecodeAccelerator implementation. 34 // media::VideoDecodeAccelerator implementation.
41 virtual bool Initialize(media::VideoCodecProfile profile) OVERRIDE; 35 virtual bool Initialize(media::VideoCodecProfile profile,
36 const gfx::Size& frame_size,
37 const std::vector<uint8_t>& extra_data) OVERRIDE;
42 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 38 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
43 virtual void AssignPictureBuffers( 39 virtual void AssignPictureBuffers(
44 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 40 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
45 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 41 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
46 virtual void Flush() OVERRIDE; 42 virtual void Flush() OVERRIDE;
47 virtual void Reset() OVERRIDE; 43 virtual void Reset() OVERRIDE;
48 virtual void Destroy() OVERRIDE; 44 virtual void Destroy() OVERRIDE;
49 45
50 private: 46 private:
51 virtual ~MacVideoDecodeAccelerator(); 47 virtual ~MacVideoDecodeAccelerator();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 95
100 // Width of a video frame. 96 // Width of a video frame.
101 uint32_t frame_width_; 97 uint32_t frame_width_;
102 // Height of a video frame. 98 // Height of a video frame.
103 uint32_t frame_height_; 99 uint32_t frame_height_;
104 // Flag to check if pictures have been requested from the client. 100 // Flag to check if pictures have been requested from the client.
105 bool did_request_pictures_; 101 bool did_request_pictures_;
106 }; 102 };
107 103
108 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_MAC_H_ 104 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/mac_video_decode_accelerator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698