Prefer YUV over JPEG in capture device selection |
|
Issue descriptionWe make the capture device selection based on constraints[0]. If I understand correctly, constraints wouldn't take into account the difference between two pixel formats. The order which GetSupportedFormats() returns will be taken into account[1]. Rather than relying on that, should we prioritize some format over another, i.e. YUV over MJPEG? Long shot, but can we make this decision based on the use case, i.e. JPEG for TakePhoto() and YUV for media stream? This came up when discussing https://chromium-review.googlesource.com/c/chromium/src/+/917932. guidou@ can you PTAL and comment? [0] https://cs.chromium.org/chromium/src/content/renderer/media/stream/media_stream_constraints_util_video_device.cc?rcl=a8926bf2f0c379e977af4dcc7c56f9626796cefd&l=811 [1] https://cs.chromium.org/chromium/src/content/browser/renderer_host/media/media_devices_dispatcher_host.cc?rcl=78a058bc8c5ae34722e689a269682ff4806a42fa&l=322 |
|
►
Sign in to add a comment |
|
Comment 1 by emir...@chromium.org
, Mar 9 2018