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

Side by Side Diff: media/gpu/ipc/common/media_messages.h

Issue 2399133002: Revert of Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: 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
« no previous file with comments | « media/gpu/ipc/common/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/unguessable_token.h" 10 #include "base/unguessable_token.h"
11 #include "gpu/config/gpu_info.h" 11 #include "gpu/config/gpu_info.h"
12 #include "gpu/ipc/common/gpu_param_traits_macros.h" 12 #include "gpu/ipc/common/gpu_param_traits_macros.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/param_traits_macros.h" 14 #include "ipc/param_traits_macros.h"
15 #include "media/gpu/ipc/common/media_param_traits.h" 15 #include "media/gpu/ipc/common/media_param_traits.h"
16 #include "media/video/jpeg_decode_accelerator.h" 16 #include "media/video/jpeg_decode_accelerator.h"
17 #include "media/video/video_decode_accelerator.h" 17 #include "media/video/video_decode_accelerator.h"
18 #include "media/video/video_encode_accelerator.h" 18 #include "media/video/video_encode_accelerator.h"
19 #include "ui/gfx/ipc/color/gfx_param_traits.h"
20 #include "ui/gfx/ipc/gfx_param_traits.h" 19 #include "ui/gfx/ipc/gfx_param_traits.h"
21 20
22 #define IPC_MESSAGE_START MediaMsgStart 21 #define IPC_MESSAGE_START MediaMsgStart
23 22
24 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) 23 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
25 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer) 24 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer)
26 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 25 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
27 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) 26 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle)
28 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) 27 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size)
29 IPC_STRUCT_END() 28 IPC_STRUCT_END()
30 29
31 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) 30 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params)
32 IPC_STRUCT_MEMBER(int32_t, frame_id) 31 IPC_STRUCT_MEMBER(int32_t, frame_id)
33 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) 32 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
34 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) 33 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
35 IPC_STRUCT_MEMBER(uint32_t, buffer_offset) 34 IPC_STRUCT_MEMBER(uint32_t, buffer_offset)
36 IPC_STRUCT_MEMBER(uint32_t, buffer_size) 35 IPC_STRUCT_MEMBER(uint32_t, buffer_size)
37 IPC_STRUCT_MEMBER(bool, force_keyframe) 36 IPC_STRUCT_MEMBER(bool, force_keyframe)
38 IPC_STRUCT_END() 37 IPC_STRUCT_END()
39 38
40 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2) 39 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2)
41 IPC_STRUCT_MEMBER(int32_t, frame_id) 40 IPC_STRUCT_MEMBER(int32_t, frame_id)
42 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) 41 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
43 IPC_STRUCT_MEMBER(std::vector<gfx::GpuMemoryBufferHandle>, 42 IPC_STRUCT_MEMBER(std::vector<gfx::GpuMemoryBufferHandle>,
44 gpu_memory_buffer_handles) 43 gpu_memory_buffer_handles)
45 IPC_STRUCT_MEMBER(gfx::Size, size) 44 IPC_STRUCT_MEMBER(gfx::Size, size)
46 IPC_STRUCT_MEMBER(bool, force_keyframe) 45 IPC_STRUCT_MEMBER(bool, force_keyframe)
47 IPC_STRUCT_END() 46 IPC_STRUCT_END()
48 47
49 IPC_STRUCT_BEGIN(AcceleratedVideoDecoderHostMsg_PictureReady_Params)
50 IPC_STRUCT_MEMBER(int32_t, picture_buffer_id)
51 IPC_STRUCT_MEMBER(int32_t, bitstream_buffer_id)
52 IPC_STRUCT_MEMBER(gfx::Rect, visible_rect)
53 IPC_STRUCT_MEMBER(gfx::ColorSpace, color_space)
54 IPC_STRUCT_MEMBER(bool, allow_overlay)
55 IPC_STRUCT_MEMBER(bool, size_changed)
56 IPC_STRUCT_END()
57
58 //------------------------------------------------------------------------------ 48 //------------------------------------------------------------------------------
59 // Utility Messages 49 // Utility Messages
60 50
61 // Sent from Renderer to GPU process to request a token identifying the channel. 51 // Sent from Renderer to GPU process to request a token identifying the channel.
62 // These tokens can be used to prove ownership of the channel. The intended use 52 // These tokens can be used to prove ownership of the channel. The intended use
63 // case is to share the command buffer with MojoMediaApplication. 53 // case is to share the command buffer with MojoMediaApplication.
64 IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken, 54 IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken,
65 base::UnguessableToken /* channel_token */) 55 base::UnguessableToken /* channel_token */)
66 56
67 //------------------------------------------------------------------------------ 57 //------------------------------------------------------------------------------
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 uint32_t, /* Number of textures per frame */ 113 uint32_t, /* Number of textures per frame */
124 gfx::Size, /* Requested size of buffer */ 114 gfx::Size, /* Requested size of buffer */
125 uint32_t) /* Texture target */ 115 uint32_t) /* Texture target */
126 116
127 // Decoder reports that a picture is ready and buffer does not need to be passed 117 // Decoder reports that a picture is ready and buffer does not need to be passed
128 // back to the decoder. 118 // back to the decoder.
129 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, 119 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
130 int32_t) /* Picture buffer ID */ 120 int32_t) /* Picture buffer ID */
131 121
132 // Decoder reports that a picture is ready. 122 // Decoder reports that a picture is ready.
133 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_PictureReady, 123 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady,
134 AcceleratedVideoDecoderHostMsg_PictureReady_Params) 124 int32_t, /* Picture buffer ID */
125 int32_t, /* Bitstream buffer ID */
126 gfx::Rect, /* Visible rectangle */
127 bool, /* Buffer is HW overlay capable */
128 bool) /* VDA updated picture size */
135 129
136 // Confirm decoder has been flushed. 130 // Confirm decoder has been flushed.
137 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 131 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
138 132
139 // Confirm decoder has been reset. 133 // Confirm decoder has been reset.
140 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 134 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
141 135
142 // Video decoder has encountered an error. 136 // Video decoder has encountered an error.
143 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 137 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
144 uint32_t /* Error ID */) 138 uint32_t /* Error ID */)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 225 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
232 226
233 //------------------------------------------------------------------------------ 227 //------------------------------------------------------------------------------
234 // Accelerated JPEG Decoder Host Messages 228 // Accelerated JPEG Decoder Host Messages
235 // These messages are sent from the GPU process to Browser process. 229 // These messages are sent from the GPU process to Browser process.
236 // 230 //
237 // Report decode status. 231 // Report decode status.
238 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 232 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
239 int32_t, /* bitstream_buffer_id */ 233 int32_t, /* bitstream_buffer_id */
240 media::JpegDecodeAccelerator::Error /* error */) 234 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « media/gpu/ipc/common/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698