~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to sunxi_disp.c

  • Committer: Jens Kuske
  • Date: 2016-02-16 13:12:22 UTC
  • Revision ID: git-v1:685769372a8281bf67046a958883323aaf14d232
Use libcedrus

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
                break;
173
173
        }
174
174
 
175
 
        disp->video_info.fb.addr[0] = surface->yuv->data->phys + 0x40000000;
176
 
        disp->video_info.fb.addr[1] = surface->yuv->data->phys + surface->vs->luma_size + 0x40000000;
177
 
        disp->video_info.fb.addr[2] = surface->yuv->data->phys + surface->vs->luma_size + surface->vs->chroma_size / 2 + 0x40000000;
 
175
        disp->video_info.fb.addr[0] = cedrus_mem_get_phys_addr(surface->yuv->data);
 
176
        disp->video_info.fb.addr[1] = cedrus_mem_get_phys_addr(surface->yuv->data) + surface->vs->luma_size;
 
177
        disp->video_info.fb.addr[2] = cedrus_mem_get_phys_addr(surface->yuv->data) + surface->vs->luma_size + surface->vs->chroma_size / 2;
178
178
 
179
179
        disp->video_info.fb.size.width = surface->vs->width;
180
180
        disp->video_info.fb.size.height = surface->vs->height;
249
249
                break;
250
250
        }
251
251
 
252
 
        disp->osd_info.fb.addr[0] = surface->rgba.data->phys + 0x40000000;
 
252
        disp->osd_info.fb.addr[0] = cedrus_mem_get_phys_addr(surface->rgba.data);
253
253
        disp->osd_info.fb.size.width = surface->rgba.width;
254
254
        disp->osd_info.fb.size.height = surface->rgba.height;
255
255
        disp->osd_info.src_win.x = surface->rgba.dirty.x0;