Commit 86dbf7cf authored by Dean Liao's avatar Dean Liao Committed by Commit Bot

media/gpu Fix indentation in V4L2VideoEncodeAccelerator::Initialize().

BUG=None
TEST=pass VEA unittest

Change-Id: Ica9a10a81ca584991945dd03ca733e3a399a999a
Reviewed-on: https://chromium-review.googlesource.com/c/1348151Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Commit-Queue: Shuo-Peng Liao <deanliao@google.com>
Cr-Commit-Position: refs/heads/master@{#610755}
parent b13bc53e
......@@ -221,21 +221,21 @@ bool V4L2VideoEncodeAccelerator::Initialize(const Config& config,
if (!output_layout) {
VLOGF(1) << "Invalid image processor output layout";
return false;
}
}
// Convert from |config.input_format| to |device_input_format_|, keeping the
// size at |visible_size_| and requiring the output buffers to be of at
// least |input_allocated_size_|. Unretained is safe because |this| owns
// image processor and there will be no callbacks after processor destroys.
image_processor_ = V4L2ImageProcessor::Create(
V4L2Device::Create(), V4L2_MEMORY_USERPTR, V4L2_MEMORY_MMAP,
*input_layout, *output_layout, visible_size_, visible_size_,
kImageProcBufferCount,
base::Bind(&V4L2VideoEncodeAccelerator::ImageProcessorError,
base::Unretained(this)));
if (!image_processor_) {
VLOGF(1) << "Failed initializing image processor";
return false;
image_processor_ = V4L2ImageProcessor::Create(
V4L2Device::Create(), V4L2_MEMORY_USERPTR, V4L2_MEMORY_MMAP,
*input_layout, *output_layout, visible_size_, visible_size_,
kImageProcBufferCount,
base::Bind(&V4L2VideoEncodeAccelerator::ImageProcessorError,
base::Unretained(this)));
if (!image_processor_) {
VLOGF(1) << "Failed initializing image processor";
return false;
}
// The output of image processor is the input of encoder. Output coded
// width of processor must be the same as input coded width of encoder.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment