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

Side by Side Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: revert OWNERS Created 4 years, 2 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 (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 MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU 62 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU
63 // process. Should not be called directly. 63 // process. Should not be called directly.
64 void OnInitializationComplete(bool success); 64 void OnInitializationComplete(bool success);
65 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); 65 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id);
66 void OnProvidePictureBuffer(uint32_t num_requested_buffers, 66 void OnProvidePictureBuffer(uint32_t num_requested_buffers,
67 VideoPixelFormat format, 67 VideoPixelFormat format,
68 uint32_t textures_per_buffer, 68 uint32_t textures_per_buffer,
69 const gfx::Size& dimensions, 69 const gfx::Size& dimensions,
70 uint32_t texture_target); 70 uint32_t texture_target);
71 void OnDismissPictureBuffer(int32_t picture_buffer_id); 71 void OnDismissPictureBuffer(int32_t picture_buffer_id);
72 void OnPictureReady(int32_t picture_buffer_id, 72 void OnPictureReady(
73 int32_t bitstream_buffer_id, 73 int32_t picture_buffer_id,
74 const gfx::Rect& visible_rect, 74 int32_t bitstream_buffer_id,
75 bool allow_overlay, 75 const gfx::Rect& visible_rect,
76 bool size_changed); 76 const gfx::ColorSpace& color_space,
77 const std::pair<bool, bool>& allow_overlay_and_size_changed);
77 void OnFlushDone(); 78 void OnFlushDone();
78 void OnResetDone(); 79 void OnResetDone();
79 void OnNotifyError(uint32_t error); 80 void OnNotifyError(uint32_t error);
80 81
81 scoped_refptr<gpu::GpuChannelHost> channel_; 82 scoped_refptr<gpu::GpuChannelHost> channel_;
82 83
83 // Route ID for the associated decoder in the GPU process. 84 // Route ID for the associated decoder in the GPU process.
84 int32_t decoder_route_id_; 85 int32_t decoder_route_id_;
85 86
86 // The client that will receive callbacks from the decoder. 87 // The client that will receive callbacks from the decoder.
87 Client* client_; 88 Client* client_;
88 89
89 // Unowned reference to the gpu::CommandBufferProxyImpl that created us. 90 // Unowned reference to the gpu::CommandBufferProxyImpl that created us.
90 // |this| registers as a DeletionObserver of |impl_|, the so reference is 91 // |this| registers as a DeletionObserver of |impl_|, the so reference is
91 // always valid as long as it is not NULL. 92 // always valid as long as it is not NULL.
92 gpu::CommandBufferProxyImpl* impl_; 93 gpu::CommandBufferProxyImpl* impl_;
93 94
94 // Requested dimensions of the buffer, from ProvidePictureBuffers(). 95 // Requested dimensions of the buffer, from ProvidePictureBuffers().
95 gfx::Size picture_buffer_dimensions_; 96 gfx::Size picture_buffer_dimensions_;
96 97
97 // WeakPtr factory for posting tasks back to itself. 98 // WeakPtr factory for posting tasks back to itself.
98 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 99 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 101 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
101 }; 102 };
102 103
103 } // namespace media 104 } // namespace media
104 105
105 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 106 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698