[haiku-development] Re: BMediaTrack->ReadChunk() query

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 11 Oct 2019 16:30:31 +0000

This is where I think the code forces B_RGB32:

https://github.com/haiku/haiku/blob/master/src/add-ons/media/plugins/ffmpeg/AVCodecDecoder.cpp#L481

Indeed. Someone defined USE_SWS_FOR_COLOR_SPACE_CONVERSION to 1 in the
header, I am not familiar with the reasons. I guess one could put in
some effort to match B_YCbCr_422 to the required SWS functions in FFmpeg
and turn support back on.

Because using libswscale provides us with conversions for all the formats and
they are better optimized than ours, I think. But I don't see why this is linked
to restricting to RGB32, I'm pretty sure libswscale can handle other formats
as well?

-- 
Adrien.


Other related posts: