mirror of https://github.com/mpv-player/mpv
10l. use mpcodecs_draw_slice, instead of libvo directly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7757 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2e89c76a2c
commit
539d77e892
|
@ -91,14 +91,13 @@ static void uninit(sh_video_t *sh){
|
|||
}
|
||||
|
||||
static void draw_slice (vo_frame_t * frame, uint8_t ** src){
|
||||
vo_functions_t * output = frame->vo;
|
||||
int stride[3];
|
||||
int y=picture->slice<<4;
|
||||
|
||||
stride[0]=picture->coded_picture_width;
|
||||
stride[1]=stride[2]=stride[0]/2;
|
||||
|
||||
output->draw_slice (src,
|
||||
mpcodecs_draw_slice(frame->vo, src,
|
||||
stride, picture->display_picture_width,
|
||||
(y+16<=picture->display_picture_height) ? 16 :
|
||||
picture->display_picture_height-y,
|
||||
|
@ -205,7 +204,7 @@ static mp_image_t* parse_chunk (sh_video_t* sh, int code, uint8_t * buffer, int
|
|||
mpi, (mpi->flags&MP_IMGFLAG_DIRECT)?"DR!":"");
|
||||
}
|
||||
|
||||
picture->current_frame->vo=sh->video_out;
|
||||
picture->current_frame->vo=sh;
|
||||
picture->slice=0;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue