media/gpu/v4l2 Use VideoFrameLayout to allocate frame |
|
Issue descriptionCurrently, v4l2 code use video frame format and size to allocate frame. However, it is not always correct. See the hack in V4L2Device::CodedSizeFromV4L2Format() https://cs.chromium.org/chromium/src/media/gpu/v4l2/v4l2_device.cc?type=cs&q=CodedSizeFromV4L2Format&sq=package:chromium&g=0&l=1169 Since we have VideoFrameLayout which has buffer_size property, we shall use it to allocate video frame. After this is done, we can remove V4L2Device::CodedSizeFromV4L2Format(). |
|
►
Sign in to add a comment |
|
Comment 1 by deanliao@chromium.org
, Jan 2