mirror of
https://github.com/mpv-player/mpv
synced 2024-08-28 05:46:13 +02:00
"support" YUVJ colorspaces added to libavcodec, makes mjpeg decoding work again
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14598 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1aeb3a74cc
commit
dfc63d36af
@ -483,9 +483,15 @@ static int init_vo(sh_video_t *sh, enum PixelFormat pix_fmt){
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user