summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--codec-cfg.c1
-rw-r--r--codec-cfg.h1
-rw-r--r--dec_video.c7
3 files changed, 9 insertions, 0 deletions
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. --------------------