DescriptionFakeVideoCaptureDevice: add support for capturing into Dma-Bufs using VGEM in CrOs
This CL adds support in FakeVideoCaptureDevice
such that if the Buffer returned from
Client::ReserveOutputBuffer() is nullptr, then
try to obtain it AsPlatformFile(). The returned
PlatformFile is an |fd| and is mmap()ed via vgem
dumb API.
vgem+dumb is a kernel API present in CrOS and for
certain DRM drivers, notably xf86 i915.
This CL also adds an AsPlatformFile() method to
VideoCaptureBufferPool::Handle and to
VideoCaptureDevice::Client::Buffer.
The idea is to give the VideoCaptureDevice the
possibility to extract Buffer's underlying
file descriptors if the data() coming out of
a ReserveOutputBuffer() is nullptr.
BUG=440843
Patch Set 1 #
Total comments: 9
Patch Set 2 : ermircan@ comments; removed GpuMemoryBuffer modifications (go in other CL) #
Total comments: 1
Messages
Total messages: 24 (18 generated)
|