pub fn encode_bgra(src: &[u8], w: i32, h: i32, profile: &Profile) -> Vec<u8> ⓘExpand description
Encode BGRA pixel data to the format specified by profile.
Returns just the encoded frame data (no 4-byte prefix — caller adds it).
Detection order:
clcl_chroma→ CLCL encodercl_chroma→ CL encoderprofile.encoding→ specific encoder
Then applies interlacing and padding if needed.