mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
fixed U/V swapping for direct rendering, and 3rd plane offset calculation when height!=0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5312 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7bb3412a05
commit
4a1e0aef9b
@ -716,8 +716,9 @@ static uint32_t get_image(mp_image_t *mpi){
|
||||
if(mpi->width==image_width){
|
||||
if(mpi->flags&MP_IMGFLAG_PLANAR){
|
||||
mpi->planes[0]=xvimage[current_buf]->data;
|
||||
mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height;
|
||||
mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height*5/4;
|
||||
mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height;
|
||||
// mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height*5/4;
|
||||
mpi->planes[1]=mpi->planes[2]+(image_width>>1)*(image_height>>1);
|
||||
mpi->stride[0]=image_width;
|
||||
mpi->stride[1]=mpi->stride[2]=image_width/2;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user