[MPlayer-G2-dev] MID proposal
Michael Niedermayer
michaelni at gmx.at
Sun Nov 2 02:13:45 CET 2003
Hi
On Sunday 02 November 2003 01:00, D Richard Felker III wrote:
> On Sat, Nov 01, 2003 at 04:38:14PM +0100, Alex Beregszaszi wrote:
> > Hi,
> >
> > Here's my idea of a IMGFMT replacement: MID stands for MPlayer Image
> > Description.
>
> Here's what I have so far:
>
> // MPlayer Imageformat Description
>
> #define MID_TYPE_YUV 1
> #define MID_TYPE_RGB 2
> #define MID_TYPE_PALETTE 3
> #define MID_TYPE_SPECIAL 4
>
> #define MID_FLAG_SWAPPED 0x1
>
> typedef struct mid_s {
> int type;
> int flags;
> int bpp;
> int depth;
> int csh, csv; // chroma shift, horiz. and vert.
> int num_planes; // 0=packed, 1=gray, 2=semiplanar(nv12), 3=full
> planar int chan_bits[4]; // sizes and offsets of channels (in bits). order
> is: int chan_offs[4]; // R,G,B[,A] for RGB; Y1,Y2,U,V for packed YUV
> unsigned int imgfmt; // legacy "fourcc"
> char *name, *longname;
> } mid_t;
>
> Some comments:
>
> Q: Why separate type and flags again?
> A: if (mid.type==MID_TYPE_YUV) is cleaner than
> if ((mid.flags & MID_FLAG_TYPEMASK) == MID_TYPE_YUV).
hmm if(mid.flags & MID_TYPE_YUV) would be an option too
[...]
--
Michael
level[i]= get_vlc(); i+=get_vlc(); (violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535)
buf[i]= qp - buf[i-1]; (violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en
More information about the MPlayer-G2-dev
mailing list