raw (uncompressed) video codec

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1489 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-11 23:11:16 +00:00
parent a473bf2d0f
commit addc76186c
3 changed files with 9 additions and 0 deletions

View File

@ -215,6 +215,7 @@ static short get_driver(char *s,int audioflag)
"ffmpeg", "ffmpeg",
"vfwex", "vfwex",
"divx4", "divx4",
"raw",
NULL NULL
}; };
char **drv=audioflag?audiodrv:videodrv; char **drv=audioflag?audiodrv:videodrv;

View File

@ -34,6 +34,7 @@
#define VFM_FFMPEG 5 #define VFM_FFMPEG 5
#define VFM_VFWEX 6 #define VFM_VFWEX 6
#define VFM_DIVX4 7 #define VFM_DIVX4 7
#define VFM_RAW 8
typedef struct { typedef struct {
unsigned long f1; unsigned long f1;

View File

@ -316,6 +316,9 @@ switch(sh_video->codec->driver){
mpeg2_allocate_image_buffers (picture); mpeg2_allocate_image_buffers (picture);
break; break;
} }
case VFM_RAW: {
break;
}
} }
return 1; return 1;
@ -500,6 +503,10 @@ else
mpeg2_decode_data(video_out, start, start+in_size,drop_frame); mpeg2_decode_data(video_out, start, start+in_size,drop_frame);
if(!drop_frame) blit_frame=1; if(!drop_frame) blit_frame=1;
break; break;
case VFM_RAW:
planes[0]=start;
blit_frame=2;
break;
} // switch } // switch
//------------------------ frame decoded. -------------------- //------------------------ frame decoded. --------------------