[NUT-devel] [RFC] FourCCs for rawvideo rgb4_byte / bgr4_byte

Stefano Sabatini stefasab at gmail.com
Wed May 26 00:49:54 CEST 2010


On date Sunday 2010-05-23 04:30:44 +0200, Michael Niedermayer wrote:
> On Fri, May 21, 2010 at 12:19:10AM +0200, Stefano Sabatini wrote:
> > Hi all, this follows a thread from ffmpeg-devel:
> > http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/109054/focus=109394
> > 
> > I proposed these names:
> > B4BY (bgr4_byte) Packed BGR 1:2:1,  8bpp, (msb)1B 2G 1R(lsb)
> > R4BY (rgb4_byte) Packed RGB 1:2:1,  8bpp, (msb)1R 2G 1B(lsb)
> > 
> > Other idea:
> > bgr4_byte => B[1][2][1]
> > rgb4_byte => R[1][2][1]
> > 
> 
> > Note that I'm very satisfied with these names, maybe someone can find
> > a better scheme.
> > 
> > What do you think?
> 
> i think you are missin a "not" in your sentance

Yes indeed.
 
> and iam not sure abut the fourccs here, this format is simply inefficient
> to store 4bit rgb, is it used in the wild?

I have not the faintest idea, and I couldn't even manage to understand
who introduced it, since it exists since the night of time of FFmpeg.

> if not (its just for ffmpegs test lavfi test system we can just pick any
> random fourcc and treat it like some ffmpeg internal thing)
> either of your choices would do for that

My problem is that I need to *write* such a format in NUT, so I need a
codec for that. Also to add such a tag shouldn't hurt anyway. If you
have an idea for avoiding to define a tag for it and still be able to
store such a format in NUT please tell (well an idea would be to make
possible to define the codec tag), as for me I prefer to add these two
rather than add exceptions/special cases to the FFmpeg code.

Patch updated, regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-bgr4-rgb4-byte-codec-tags.patch
Type: text/x-diff
Size: 1152 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20100526/9b3c5ea1/attachment.patch>


More information about the NUT-devel mailing list