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

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

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots 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
« no previous file with comments | « media/gpu/v4l2_video_decode_accelerator.cc ('k') | media/gpu/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains an implementation of VideoDecoderAccelerator 5 // This file contains an implementation of VideoDecoderAccelerator
6 // that utilizes hardware video decoder present on Intel CPUs. 6 // that utilizes hardware video decoder present on Intel CPUs.
7 7
8 #ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 8 #ifndef MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
9 #define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 9 #define MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 gpu_memory_buffer_handles) override; 73 gpu_memory_buffer_handles) override;
74 #endif 74 #endif
75 void ReusePictureBuffer(int32_t picture_buffer_id) override; 75 void ReusePictureBuffer(int32_t picture_buffer_id) override;
76 void Flush() override; 76 void Flush() override;
77 void Reset() override; 77 void Reset() override;
78 void Destroy() override; 78 void Destroy() override;
79 bool TryToSetupDecodeOnSeparateThread( 79 bool TryToSetupDecodeOnSeparateThread(
80 const base::WeakPtr<Client>& decode_client, 80 const base::WeakPtr<Client>& decode_client,
81 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) 81 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner)
82 override; 82 override;
83 VideoPixelFormat GetOutputFormat() const override;
84 83
85 static media::VideoDecodeAccelerator::SupportedProfiles 84 static media::VideoDecodeAccelerator::SupportedProfiles
86 GetSupportedProfiles(); 85 GetSupportedProfiles();
87 86
88 private: 87 private:
89 class VaapiH264Accelerator; 88 class VaapiH264Accelerator;
90 class VaapiVP8Accelerator; 89 class VaapiVP8Accelerator;
91 class VaapiVP9Accelerator; 90 class VaapiVP9Accelerator;
92 91
93 // Notify the client that an error has occurred and decoding cannot continue. 92 // Notify the client that an error has occurred and decoding cannot continue.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 319
321 // The WeakPtrFactory for |weak_this_|. 320 // The WeakPtrFactory for |weak_this_|.
322 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; 321 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_;
323 322
324 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); 323 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator);
325 }; 324 };
326 325
327 } // namespace media 326 } // namespace media
328 327
329 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 328 #endif // MEDIA_GPU_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/v4l2_video_decode_accelerator.cc ('k') | media/gpu/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698