comparison libmpcodecs/mp_image.h @ 6863:713182435a76

planar yuv 444 422 411 support
author michael
date Thu, 01 Aug 2002 12:39:08 +0000
parents 415be01747ae
children 255b150a75a5
comparison
equal deleted inserted replaced
6862:fe7095e0adec 6863:713182435a76
110 mpi->chroma_width=(mpi->width>>2); 110 mpi->chroma_width=(mpi->width>>2);
111 mpi->chroma_height=(mpi->height>>2); 111 mpi->chroma_height=(mpi->height>>2);
112 mpi->chroma_x_shift=2; 112 mpi->chroma_x_shift=2;
113 mpi->chroma_y_shift=2; 113 mpi->chroma_y_shift=2;
114 return; 114 return;
115 case IMGFMT_444P:
116 mpi->flags|=MP_IMGFLAG_PLANAR;
117 mpi->bpp=24;
118 mpi->chroma_width=(mpi->width);
119 mpi->chroma_height=(mpi->height);
120 mpi->chroma_x_shift=0;
121 mpi->chroma_y_shift=0;
122 return;
123 case IMGFMT_422P:
124 mpi->flags|=MP_IMGFLAG_PLANAR;
125 mpi->bpp=16;
126 mpi->chroma_width=(mpi->width>>1);
127 mpi->chroma_height=(mpi->height);
128 mpi->chroma_x_shift=1;
129 mpi->chroma_y_shift=0;
130 return;
131 case IMGFMT_411P:
132 mpi->flags|=MP_IMGFLAG_PLANAR;
133 mpi->bpp=12;
134 mpi->chroma_width=(mpi->width>>2);
135 mpi->chroma_height=(mpi->height);
136 mpi->chroma_x_shift=2;
137 mpi->chroma_y_shift=0;
138 return;
115 case IMGFMT_Y800: 139 case IMGFMT_Y800:
116 case IMGFMT_Y8: 140 case IMGFMT_Y8:
117 /* they're planar ones, but for easier handling use them as packed */ 141 /* they're planar ones, but for easier handling use them as packed */
118 // mpi->flags|=MP_IMGFLAG_PLANAR; 142 // mpi->flags|=MP_IMGFLAG_PLANAR;
119 mpi->bpp=8; 143 mpi->bpp=8;