input_color_space_ = frame.ColorSpace();Ideally, this should default here to Rec709 or SRGB if `frame.ColorSpace()` is invalid and also set this default ColorSpace on `frame`, to ensure SharedImage always has a valid ColorSpace on creation. I'm not doing that here now, and we can look into it later as part of later goal.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks! Adding media/ owners to take a look.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
base::FeatureList::IsEnabled(kV4L2VEAUseCorrectColorSpace)
? input_color_space_
: gfx::ColorSpace(),Do you see anything changed by this CL?
The existing code propagates the input color space.
https://source.chromium.org/chromium/chromium/src/+/main:media/gpu/chromeos/libyuv_image_processor_backend.cc;l=352;drc=9405179380f3b5222471aa3430a8683f8c88f137
Besides, V4L2VEA doesn't currently embed the color space information to the stream.
input_color_space_ = frame.ColorSpace();Ideally, this should default here to Rec709 or SRGB if `frame.ColorSpace()` is invalid and also set this default ColorSpace on `frame`, to ensure SharedImage always has a valid ColorSpace on creation. I'm not doing that here now, and we can look into it later as part of later goal.
Do you have any plan to do this?
The current code is nothing is set in V4L2VEA::Initialize(), so input_color_space_ is invalid.
No IP reconfiguration happens if no frame color space is specified.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |