[FFmpeg-devel] [RFC] Bayer colorspaces: CODEC_ID, PIX_FMT or both?

Peter Ross pross
Sun Jan 30 01:45:51 CET 2011


Hi,

Any ideas/comments/opinions on how bayer colorspaces should be handled
by FFmpeg. Here the advantages that I can see of each approach.

1. PIX_FMT

Enables avfilters to be written that operate on native bayer colorspace.
Other users of libswscale can take advantage of these.


2. CODEC_ID

Easy route; no changes required to libswscale, pixdesc, et al


3. BOTH (CODEC_ID and PIX_FMT)

Some bayer implementations pack the samples. e.g. 12-bit RGGB, means
each sample consumes 12 bits in memory. Other bayer implementations
pad each samples out to 16-bits.

A hybrid implementation would have PIX_FMTs defined for 8-bit and
16-bit sample sizes, and make a BAYER codec available to unpack the
samples into PIX_FMT_BAYER_xxxx16{LE|BE}

Comments?

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110130/a80181ac/attachment.pgp>



More information about the ffmpeg-devel mailing list