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

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

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 7da5b6ec Rebase. Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 // V4L2 devices exported by the Multi Format Codec and GScaler hardware blocks 33 // V4L2 devices exported by the Multi Format Codec and GScaler hardware blocks
34 // on the Exynos platform. The threading model of this class is the same as the 34 // on the Exynos platform. The threading model of this class is the same as the
35 // ExynosVideoDecodeAccelerator (from which class this was designed). 35 // ExynosVideoDecodeAccelerator (from which class this was designed).
36 class CONTENT_EXPORT ExynosVideoEncodeAccelerator 36 class CONTENT_EXPORT ExynosVideoEncodeAccelerator
37 : public media::VideoEncodeAccelerator { 37 : public media::VideoEncodeAccelerator {
38 public: 38 public:
39 ExynosVideoEncodeAccelerator(); 39 ExynosVideoEncodeAccelerator();
40 virtual ~ExynosVideoEncodeAccelerator(); 40 virtual ~ExynosVideoEncodeAccelerator();
41 41
42 // media::VideoEncodeAccelerator implementation. 42 // media::VideoEncodeAccelerator implementation.
43 virtual void Initialize(media::VideoFrame::Format format, 43 virtual bool Initialize(media::VideoFrame::Format format,
44 const gfx::Size& input_visible_size, 44 const gfx::Size& input_visible_size,
45 media::VideoCodecProfile output_profile, 45 media::VideoCodecProfile output_profile,
46 uint32 initial_bitrate, 46 uint32 initial_bitrate,
47 Client* client) OVERRIDE; 47 Client* client) OVERRIDE;
48 virtual void Encode(const scoped_refptr<media::VideoFrame>& frame, 48 virtual void Encode(const scoped_refptr<media::VideoFrame>& frame,
49 bool force_keyframe) OVERRIDE; 49 bool force_keyframe) OVERRIDE;
50 virtual void UseOutputBitstreamBuffer( 50 virtual void UseOutputBitstreamBuffer(
51 const media::BitstreamBuffer& buffer) OVERRIDE; 51 const media::BitstreamBuffer& buffer) OVERRIDE;
52 virtual void RequestEncodingParametersChange(uint32 bitrate, 52 virtual void RequestEncodingParametersChange(uint32 bitrate,
53 uint32 framerate) OVERRIDE; 53 uint32 framerate) OVERRIDE;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // eventfd fd to signal device poll thread when its poll() should be 299 // eventfd fd to signal device poll thread when its poll() should be
300 // interrupted. 300 // interrupted.
301 int device_poll_interrupt_fd_; 301 int device_poll_interrupt_fd_;
302 302
303 DISALLOW_COPY_AND_ASSIGN(ExynosVideoEncodeAccelerator); 303 DISALLOW_COPY_AND_ASSIGN(ExynosVideoEncodeAccelerator);
304 }; 304 };
305 305
306 } // namespace content 306 } // namespace content
307 307
308 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_ 308 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/exynos_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698