mirror of
https://github.com/mpv-player/mpv
synced 2024-08-28 05:46:13 +02:00
Add support for grayscale [m]jpeg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17562 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d4ade611df
commit
ae8e77ca8d
@ -799,6 +799,7 @@ videocodec ffmjpeg
|
||||
out YUY2 ; queried (conversion from yuv422p)
|
||||
out YV12,I420,IYUV
|
||||
out BGR32 ; lossless JPEG
|
||||
out Y800
|
||||
|
||||
videocodec ffmjpegb
|
||||
info "FFmpeg MJPEG-B decoder"
|
||||
|
@ -560,6 +560,7 @@ static int init_vo(sh_video_t *sh, enum PixelFormat pix_fmt){
|
||||
case PIX_FMT_BGR24 : ctx->best_csp=IMGFMT_BGR24;break; //8bps
|
||||
case PIX_FMT_RGB555: ctx->best_csp=IMGFMT_BGR15;break; //rpza,cram
|
||||
case PIX_FMT_RGB565: ctx->best_csp=IMGFMT_BGR16;break; //4xm
|
||||
case PIX_FMT_GRAY8: ctx->best_csp=IMGFMT_Y800;break; // gray jpeg
|
||||
case PIX_FMT_PAL8: ctx->best_csp=IMGFMT_BGR8;break; //8bps,mrle,cram
|
||||
#ifdef HAVE_XVMC
|
||||
case PIX_FMT_XVMC_MPEG2_MC:ctx->best_csp=IMGFMT_XVMC_MOCO_MPEG2;break;
|
||||
|
Loading…
Reference in New Issue
Block a user