mirror of https://github.com/mpv-player/mpv
init_video_vaa() removed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5156 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f7718eb735
commit
984d3bcd5c
|
@ -148,25 +148,6 @@ int i;
|
|||
|
||||
extern int vaa_use_dr;
|
||||
|
||||
static int use_dr=0,use_dr_422=0;
|
||||
static bes_da_t bda;
|
||||
void init_video_vaa( unsigned width )
|
||||
{
|
||||
unsigned adp;
|
||||
memset(&bda,0,sizeof(bes_da_t));
|
||||
if(vo_vaa.query_bes_da)
|
||||
use_dr = vo_vaa.query_bes_da(&bda) ? 0 : 1;
|
||||
if(!vaa_use_dr) use_dr = 0;
|
||||
if(use_dr)
|
||||
{
|
||||
uint32_t sstride,dstride;
|
||||
sstride=width*2;
|
||||
adp = bda.dest.pitch.y-1;
|
||||
dstride=(width*2+adp)&~adp;
|
||||
if(sstride == dstride) use_dr_422 = 1;
|
||||
}
|
||||
}
|
||||
|
||||
int decode_video(vo_functions_t *video_out,sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame){
|
||||
mp_image_t *mpi=NULL;
|
||||
int blit_frame=0;
|
||||
|
|
Loading…
Reference in New Issue