[MPlayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.141,1.142

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Jan 26 20:06:58 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv363

Modified Files:
	vd_ffmpeg.c 
Log Message:
"support" YUVJ colorspaces added to libavcodec, makes mjpeg decoding work again


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -r1.141 -r1.142
--- vd_ffmpeg.c	22 Jan 2005 17:52:34 -0000	1.141
+++ vd_ffmpeg.c	26 Jan 2005 19:06:56 -0000	1.142
@@ -483,9 +483,15 @@
 	sh->disp_h = avctx->height;
 	ctx->vo_inited=1;
 	switch(pix_fmt){
+	// YUVJ are YUV formats that use the full Y range and not just
+	// 16 - 235 (see colorspaces.txt).
+	// Currently they are all treated the same way.
 	case PIX_FMT_YUV410P: ctx->best_csp=IMGFMT_YVU9;break; //svq1
+	case PIX_FMT_YUVJ420P:
 	case PIX_FMT_YUV420P: ctx->best_csp=IMGFMT_YV12;break; //mpegs
+	case PIX_FMT_YUVJ422P:
 	case PIX_FMT_YUV422P: ctx->best_csp=IMGFMT_422P;break; //mjpeg / huffyuv
+	case PIX_FMT_YUVJ444P:
 	case PIX_FMT_YUV444P: ctx->best_csp=IMGFMT_444P;break; //photo jpeg
 	case PIX_FMT_YUV411P: ctx->best_csp=IMGFMT_411P;break; //dv ntsc
 	case PIX_FMT_YUV422:  ctx->best_csp=IMGFMT_YUY2;break; //huffyuv perhaps in the future




More information about the MPlayer-cvslog mailing list