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

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

Issue 2526143002: TEST-ONLY: V4L2VEA: align the size of each plane to 128. (Closed)
Patch Set: use input_allocated_size to calculate plane length Created 4 years 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 | « no previous file | media/gpu/v4l2_video_encode_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 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 #ifndef MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <linux/videodev2.h> 8 #include <linux/videodev2.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // injecting stream headers if required. Return the size in bytes of the 212 // injecting stream headers if required. Return the size in bytes of the
213 // resulting stream in the destination buffer. 213 // resulting stream in the destination buffer.
214 size_t CopyIntoOutputBuffer(const uint8_t* bitstream_data, 214 size_t CopyIntoOutputBuffer(const uint8_t* bitstream_data,
215 size_t bitstream_size, 215 size_t bitstream_size,
216 std::unique_ptr<BitstreamBufferRef> buffer_ref); 216 std::unique_ptr<BitstreamBufferRef> buffer_ref);
217 217
218 // Our original calling task runner for the child thread. 218 // Our original calling task runner for the child thread.
219 const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_; 219 const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
220 220
221 gfx::Size visible_size_; 221 gfx::Size visible_size_;
222 gfx::Size input_coded_size_;
222 // Input allocated size required by the device. 223 // Input allocated size required by the device.
223 gfx::Size input_allocated_size_; 224 gfx::Size input_allocated_size_;
224 size_t output_buffer_byte_size_; 225 size_t output_buffer_byte_size_;
225 226
226 // Formats for input frames and the output stream. 227 // Formats for input frames and the output stream.
227 VideoPixelFormat device_input_format_; 228 VideoPixelFormat device_input_format_;
228 size_t input_planes_count_; 229 size_t input_planes_count_;
229 uint32_t output_format_fourcc_; 230 uint32_t output_format_fourcc_;
230 231
231 // 232 //
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // as both threads will not outlive this object. 311 // as both threads will not outlive this object.
311 base::WeakPtr<V4L2VideoEncodeAccelerator> weak_this_; 312 base::WeakPtr<V4L2VideoEncodeAccelerator> weak_this_;
312 base::WeakPtrFactory<V4L2VideoEncodeAccelerator> weak_this_ptr_factory_; 313 base::WeakPtrFactory<V4L2VideoEncodeAccelerator> weak_this_ptr_factory_;
313 314
314 DISALLOW_COPY_AND_ASSIGN(V4L2VideoEncodeAccelerator); 315 DISALLOW_COPY_AND_ASSIGN(V4L2VideoEncodeAccelerator);
315 }; 316 };
316 317
317 } // namespace media 318 } // namespace media
318 319
319 #endif // MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_ 320 #endif // MEDIA_GPU_V4L2_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/v4l2_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698