Lines Matching defs:out_fmt
105 void ff_mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
107 mpi->imgfmt=out_fmt;
109 if(out_fmt == IMGFMT_MPEGPES ||
110 out_fmt == IMGFMT_ZRMJPEGNI || out_fmt == IMGFMT_ZRMJPEGIT || out_fmt == IMGFMT_ZRMJPEGIB ||
111 IMGFMT_IS_HWACCEL(out_fmt)){
116 if (IMGFMT_IS_RGB(out_fmt)) {
117 if (IMGFMT_RGB_DEPTH(out_fmt) < 8 && !(out_fmt&128))
118 mpi->bpp = IMGFMT_RGB_DEPTH(out_fmt);
120 mpi->bpp=(IMGFMT_RGB_DEPTH(out_fmt)+7)&(~7);
123 if (IMGFMT_IS_BGR(out_fmt)) {
124 if (IMGFMT_BGR_DEPTH(out_fmt) < 8 && !(out_fmt&128))
125 mpi->bpp = IMGFMT_BGR_DEPTH(out_fmt);
127 mpi->bpp=(IMGFMT_BGR_DEPTH(out_fmt)+7)&(~7);
131 if (IMGFMT_IS_XYZ(out_fmt)) {
132 mpi->bpp=3*((IMGFMT_XYZ_DEPTH(out_fmt) + 7) & ~7);
136 if (out_fmt == IMGFMT_GBR24P) {
140 } else if (out_fmt == IMGFMT_GBR12P) {
144 } else if (out_fmt == IMGFMT_GBR14P) {
150 if (ff_mp_get_chroma_shift(out_fmt, NULL, NULL, NULL)) {
152 mpi->bpp = ff_mp_get_chroma_shift(out_fmt, &mpi->chroma_x_shift, &mpi->chroma_y_shift, NULL);
156 switch(out_fmt){
234 ff_mp_msg(MSGT_DECVIDEO,MSGL_WARN,"mp_image: unknown out_fmt: 0x%X\n",out_fmt);