From addc76186c4a622485f9821fbd15465f4abed93c Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 11 Aug 2001 23:11:16 +0000 Subject: [PATCH] raw (uncompressed) video codec git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1489 b3059339-0415-0410-9bf9-f77b7e298cf2 --- codec-cfg.c | 1 + codec-cfg.h | 1 + dec_video.c | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/codec-cfg.c b/codec-cfg.c index a103d6603d..f1eff92dbf 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -215,6 +215,7 @@ static short get_driver(char *s,int audioflag) "ffmpeg", "vfwex", "divx4", + "raw", NULL }; char **drv=audioflag?audiodrv:videodrv; diff --git a/codec-cfg.h b/codec-cfg.h index 05c7965f4c..63298ad92c 100644 --- a/codec-cfg.h +++ b/codec-cfg.h @@ -34,6 +34,7 @@ #define VFM_FFMPEG 5 #define VFM_VFWEX 6 #define VFM_DIVX4 7 +#define VFM_RAW 8 typedef struct { unsigned long f1; diff --git a/dec_video.c b/dec_video.c index bcdbde45d1..f1b528ef6a 100644 --- a/dec_video.c +++ b/dec_video.c @@ -316,6 +316,9 @@ switch(sh_video->codec->driver){ mpeg2_allocate_image_buffers (picture); break; } + case VFM_RAW: { + break; + } } return 1; @@ -500,6 +503,10 @@ else mpeg2_decode_data(video_out, start, start+in_size,drop_frame); if(!drop_frame) blit_frame=1; break; + case VFM_RAW: + planes[0]=start; + blit_frame=2; + break; } // switch //------------------------ frame decoded. --------------------