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

Side by Side Diff: media/gpu/v4l2_video_decode_accelerator.h

Issue 2019333004: Revert of Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file contains an implementation of VideoDecodeAccelerator 5 // This file contains an implementation of VideoDecodeAccelerator
6 // that utilizes hardware video decoders, which expose Video4Linux 2 API 6 // that utilizes hardware video decoders, which expose Video4Linux 2 API
7 // (http://linuxtv.org/downloads/v4l-dvb-apis/). 7 // (http://linuxtv.org/downloads/v4l-dvb-apis/).
8 8
9 #ifndef MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 9 #ifndef MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_
10 #define MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 10 #define MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void AssignPictureBuffers( 101 void AssignPictureBuffers(
102 const std::vector<media::PictureBuffer>& buffers) override; 102 const std::vector<media::PictureBuffer>& buffers) override;
103 void ReusePictureBuffer(int32_t picture_buffer_id) override; 103 void ReusePictureBuffer(int32_t picture_buffer_id) override;
104 void Flush() override; 104 void Flush() override;
105 void Reset() override; 105 void Reset() override;
106 void Destroy() override; 106 void Destroy() override;
107 bool TryToSetupDecodeOnSeparateThread( 107 bool TryToSetupDecodeOnSeparateThread(
108 const base::WeakPtr<Client>& decode_client, 108 const base::WeakPtr<Client>& decode_client,
109 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) 109 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner)
110 override; 110 override;
111 media::VideoPixelFormat GetOutputFormat() const override;
111 112
112 static media::VideoDecodeAccelerator::SupportedProfiles 113 static media::VideoDecodeAccelerator::SupportedProfiles
113 GetSupportedProfiles(); 114 GetSupportedProfiles();
114 115
115 private: 116 private:
116 // These are rather subjectively tuned. 117 // These are rather subjectively tuned.
117 enum { 118 enum {
118 kInputBufferCount = 8, 119 kInputBufferCount = 8,
119 // TODO(posciak): determine input buffer size based on level limits. 120 // TODO(posciak): determine input buffer size based on level limits.
120 // See http://crbug.com/255116. 121 // See http://crbug.com/255116.
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 508
508 // The WeakPtrFactory for |weak_this_|. 509 // The WeakPtrFactory for |weak_this_|.
509 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; 510 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
510 511
511 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); 512 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator);
512 }; 513 };
513 514
514 } // namespace media 515 } // namespace media
515 516
516 #endif // MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 517 #endif // MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/v4l2_slice_video_decode_accelerator.cc ('k') | media/gpu/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698