mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
sorry, i really wanted to add vidix_start and stop as int, to detect if something went into the wrong way (also implement check in vo_xvidix)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4235 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8594ea6dbc
commit
eee64579f9
@ -164,7 +164,7 @@ extern int vo_gamma_blue_intense;
|
||||
|
||||
vidix_video_eq_t vid_eq;
|
||||
|
||||
void vidix_start(void)
|
||||
int vidix_start(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
@ -188,7 +188,7 @@ void vidix_start(void)
|
||||
if((err=vdlPlaybackOn(vidix_handler))!=0)
|
||||
{
|
||||
printf("vosub_vidix: Can't start playback: %s\n",strerror(err));
|
||||
return;
|
||||
return -1;
|
||||
}
|
||||
vid_eq.brightness = vo_gamma_brightness;
|
||||
vid_eq.saturation = vo_gamma_saturation;
|
||||
@ -199,16 +199,18 @@ void vidix_start(void)
|
||||
vid_eq.blue_intense = vo_gamma_blue_intense;
|
||||
vid_eq.flags = VEQ_FLG_ITU_R_BT_601;
|
||||
vdlPlaybackSetEq(vidix_handler,&vid_eq);
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void vidix_stop(void)
|
||||
int vidix_stop(void)
|
||||
{
|
||||
int err;
|
||||
if((err=vdlPlaybackOff(vidix_handler))!=0)
|
||||
{
|
||||
printf("vosub_vidix: Can't stop playback: %s\n",strerror(err));
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void vidix_term( void )
|
||||
|
@ -19,8 +19,8 @@ int vidix_init(unsigned src_width,unsigned src_height,
|
||||
unsigned dest_x,unsigned dest_y,unsigned dst_width,
|
||||
unsigned dst_height,unsigned format,unsigned dest_bpp,
|
||||
unsigned vid_w,unsigned vid_h);
|
||||
void vidix_start(void);
|
||||
void vidix_stop(void);
|
||||
int vidix_start(void);
|
||||
int vidix_stop(void);
|
||||
void vidix_term( void );
|
||||
uint32_t vidix_query_fourcc(unsigned fourcc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user