changeset 1488:70652cb8c402

raw (uncompressed) video codec
author arpi
date Sat, 11 Aug 2001 23:11:16 +0000
parents 93f0db9d1ef9
children f6b80dff8c25
files codec-cfg.c codec-cfg.h dec_video.c
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Sat Aug 11 22:49:18 2001 +0000
+++ b/codec-cfg.c	Sat Aug 11 23:11:16 2001 +0000
@@ -215,6 +215,7 @@
 		"ffmpeg",
 		"vfwex",
 		"divx4",
+		"raw",
 		NULL
 	};
         char **drv=audioflag?audiodrv:videodrv;
--- a/codec-cfg.h	Sat Aug 11 22:49:18 2001 +0000
+++ b/codec-cfg.h	Sat Aug 11 23:11:16 2001 +0000
@@ -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;
--- a/dec_video.c	Sat Aug 11 22:49:18 2001 +0000
+++ b/dec_video.c	Sat Aug 11 23:11:16 2001 +0000
@@ -316,6 +316,9 @@
    mpeg2_allocate_image_buffers (picture);
    break;
  }
+ case VFM_RAW: {
+   break;
+ }
 }
 
   return 1;
@@ -500,6 +503,10 @@
     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. --------------------