1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

double buffering fixing

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4034 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-01-07 10:54:32 +00:00
parent 21699b7772
commit d9517dea6a

View File

@ -992,8 +992,17 @@ static void radeon_compute_framesize(vidix_playback_t *info)
{
unsigned pitch,awidth;
pitch = radeon_query_pitch(info->fourcc);
awidth = info->src.w + ((pitch-1) & ~(pitch-1));
info->frame_size = awidth*info->src.h+(awidth*info->src.h)/2;
awidth = (info->src.w + (pitch-1)) & ~(pitch-1);
switch(info->fourcc)
{
case IMGFMT_I420:
case IMGFMT_YV12:
case IMGFMT_IYUV:
info->frame_size = awidth*info->src.h+(awidth*info->src.h)/2;
break;
default: info->frame_size = awidth*info->src.h*2;
break;
}
}
int vixConfigPlayback(vidix_playback_t *info)
@ -1021,7 +1030,7 @@ int vixPlaybackOff( void )
return 0;
}
int vixPlaybackFrameSel(unsigned frame)
int vixPlaybackFrameSelect(unsigned frame)
{
uint32_t off0,off1,off2;
/* if(!besr.double_buff) return; */