You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set output_type to default, the frame format is in RGBA even tho it uses the BGRA enum,
this doesn't happen if I specify the output_type to BGRA explicitly
This behavior occurs because of the ColorFormat being set here
let color_format = match options.output_type {
FrameType::BGRAFrame => ColorFormat::Bgra8,
_ => ColorFormat::Rgba8,
};
which sets the color format of any other frameType as Rgba8 which was causing the issue as the default FrameType is set as YUV frame as you can see here
When I set
output_type
to default, the frame format is in RGBA even tho it uses the BGRA enum,this doesn't happen if I specify the
output_type
to BGRA explicitlyhere's the reproducible code
https://gist.github.com/MrAdhit/12a35dec29741703173263717724b5a5
output.mp4
The text was updated successfully, but these errors were encountered: