[FFmpeg-devel] [PATCH]Support putting RGB0 / RGB64 and friends in rawvideo
Michael Niedermayer
michaelni at gmx.at
Thu Feb 9 17:10:53 CET 2012
On Thu, Feb 09, 2012 at 10:35:42AM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> Assuming most of the rawvideo tags were invented, I think we should also add
> the new colourspaces.
>
> Please comment, Carl Eugen
> raw.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
> 49f69cc8565d5cecde0fcd65fc29ff861ae3e5c9 patchrgb0raw.diff
> diff --git a/libavcodec/raw.c b/libavcodec/raw.c
> index cfa650e..a28d26a 100644
> --- a/libavcodec/raw.c
> +++ b/libavcodec/raw.c
> @@ -82,10 +82,18 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
> { PIX_FMT_BGR444LE, MKTAG('B', 'G', 'R', 12) },
> { PIX_FMT_RGB444BE, MKTAG(12 , 'B', 'G', 'R') },
> { PIX_FMT_BGR444BE, MKTAG(12 , 'R', 'G', 'B') },
> + { PIX_FMT_RGBA64LE, MKTAG('R', 'G', 'B', 64 ) },
> + { PIX_FMT_BGRA64LE, MKTAG('B', 'G', 'R', 64 ) },
> + { PIX_FMT_RGBA64BE, MKTAG(64 , 'B', 'G', 'R') },
> + { PIX_FMT_BGRA64BE, MKTAG(64 , 'R', 'G', 'B') },
thats ambigous due to ARGB vs. RGBA
see docs/nut4cc.txt at svn://svn.mplayerhq.hu/nut
for a unambigous variant
> { PIX_FMT_RGBA, MKTAG('R', 'G', 'B', 'A') },
> + { PIX_FMT_RGB0, MKTAG('R', 'G', 'B', '0') },
> { PIX_FMT_BGRA, MKTAG('B', 'G', 'R', 'A') },
> + { PIX_FMT_BGR0, MKTAG('B', 'G', 'R', '0') },
> { PIX_FMT_ABGR, MKTAG('A', 'B', 'G', 'R') },
> + { PIX_FMT_0BGR, MKTAG('0', 'B', 'G', 'R') },
> { PIX_FMT_ARGB, MKTAG('A', 'R', 'G', 'B') },
> + { PIX_FMT_0RGB, MKTAG('0', 'R', 'G', 'B') },
should be ok
also feel free to update nut4cc.txt
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Incandescent light bulbs waste a lot of energy as heat so the EU forbids them.
Their replacement, compact fluorescent lamps, much more expensive, dont fit in
many old lamps, flicker, contain toxic mercury, produce a fraction of the light
that is claimed and in a unnatural spectrum rendering colors different than
in natural light. Ah and we now need to turn the heaters up more in winter to
compensate the lower wasted heat. Who wins? Not the environment, thats for sure
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120209/e36858b7/attachment.asc>
More information about the ffmpeg-devel
mailing list