mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
raw (uncompressed) video codec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1489 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a473bf2d0f
commit
addc76186c
@ -215,6 +215,7 @@ static short get_driver(char *s,int audioflag)
|
||||
"ffmpeg",
|
||||
"vfwex",
|
||||
"divx4",
|
||||
"raw",
|
||||
NULL
|
||||
};
|
||||
char **drv=audioflag?audiodrv:videodrv;
|
||||
|
@ -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;
|
||||
|
@ -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. --------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user