Port v4l2_slice_video_decode_accelerator from Chromium

commit head: df32089dae6e21484be5afb43aedc33caab54f83

file: src/media/gpu/v4l2_slice_video_decode_accelerator.*
1) remove GL-related components
2) ImportBuffersForPicture: replace gfx::GpuMemoryBufferHandle by
std::vector<base::FileDescriptor>
3) Add IsSupportedOutputFmtFourcc() to replace device_->CanCreateEGLImageFrom()
4) declare PictureRecord in header file. Original code uses forward declaration
which causes following compile error:

external/libcxx/include/deque:912:49: error: invalid application of 'sizeof' to
an incomplete type 'value_type' (aka
'media::V4L2SliceVideoDecodeAccelerator::PictureRecord')
    static const difference_type __block_size = sizeof(value_type) < 256 ? 4096
/ sizeof(value_type) : 16;

file: src/media/gpu/shared_memory_region.*

file: v4l2-controls.h
This header file is obtained from ChromeOS which is not upstreamed in Linux
mainline. This file should be removed once it is upstreamed.

Bug: 62360273
Test: mmm external/v4l2_codec2

Change-Id: I87ff15b858d7e86c662c527147d01580c02bb785
7 files changed
tree: 75f6f3130153e149034b591f314c565fd0bd5ab0
  1. vda/
  2. Android.mk
  3. MODULE_LICENSE_BSD
  4. NOTICE