• emircan's avatar
    This CL fixes some issues that came up Video Capture Device unittest, where it... · ef4d3874
    emircan authored
    This CL fixes some issues that came up Video Capture Device unittest, where it tries to capture format that are not supported by the device and makes size assumptions on it-device being daisy in this case-.
    
    - We check the exact size if returned type is equal to the requested type PIXEL_FORMAT_I420.
    - If it is some other format, excluding PIXEL_FORMAT_MJPEG, we make the assumption that it is at least 12 BPP.
    
    BUG=482875
    
    Review URL: https://codereview.chromium.org/1176613003
    
    Cr-Commit-Position: refs/heads/master@{#333761}
    ef4d3874
video_capture_device_unittest.cc 17.3 KB