compositor_frame tagged every RGB picture full range and passed its
samples through, so an AV1 4:4:4 picture with the identity matrix and a
limited-range flag drew black (code 16) as dark gray. RGB samples tagged
limited range are now expanded from black at 16 and white at 235, scaled
to the plane's depth, before the frame is tagged full range.
craft-video's VideoFrame::new now starts RGB frames full range, so RGB
frames whose source does not signal a range (VMD palettes, DNx RGB, and
frames built by hand) are not expanded. AV1 and VP9 still set the range
they decode.
compositor_frame and compositor_frame_within take the picture a
craft-video decoder returns (craft_video::frame::VideoFrame) and build
the craft_frame::VideoFrame a MediaSource returns, with every buffer
bounded by a byte limit.
- Y'CbCr and gray pictures become Yuv8, or Yuv16 at the deepest plane's
bit depth. 4:2:0, 4:2:2 and 4:4:4 keep their subsampling; other
subsamplings are repeated out to 4:4:4. Gray gets neutral chroma.
- RGB pictures become Rgba8 when every plane is 8 bits and the transfer
is BT.709 or sRGB, otherwise linear premultiplied RgbaF32.
- H.273 color tags map onto ColorInfo, with BT.601 defaults under 720
lines and BT.709 otherwise. The sample aspect ratio becomes the pixel
aspect ratio.