On 12/03/14 12:49, wm4 wrote:
>> Another point, (again AFAIU) pixel format/range/space seem to be more a frame
>> property, instead of a context one (kinda like interlacing). Would it make 
>> sense
>> to move everything there? The API I would envision would be an entry in 
>> AVFrame
>> and an AVFrameSideData for the color range and spaces.
> 
> They could be direct fields in AVFrame. I think they're important
> enough - they're crucial for correct processing or display. And there
> are much less important fields in AVFrame. I would suggest adding the
> following fields:
> 
>     enum AVColorSpace colorspace;
>     enum AVColorRange color_range;
> 
> ffmpeg already has these. And I don't think there's a need for
> gratuitous incompatibility without reasons.
> 

If you are willing to send patches here would be great. I'm not sure why
a field has an _ and the other does not though...

and IIRC there are 4 fields useful not just those two.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to