~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to surface_video.c

  • Committer: Jens Kuske
  • Date: 2016-02-29 22:01:00 UTC
  • Revision ID: git-v1:cba127cf8457a7e4a2e02832f0b653e85f2c97c7
Add A64 support

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
VdpStatus rec_prepare(video_surface_ctx_t *video_surface)
72
72
{
73
 
        if (cedrus_get_ve_version(video_surface->device->cedrus) == 0x1680)
 
73
        if (cedrus_get_ve_version(video_surface->device->cedrus) >= 0x1680)
74
74
        {
75
75
                if (!video_surface->rec)
76
76
                {
192
192
        if (destination_pitches[0] < vs->width || destination_pitches[1] < vs->width / 2)
193
193
                return VDP_STATUS_ERROR;
194
194
 
 
195
#ifndef __aarch64__
195
196
        switch (destination_ycbcr_format)
196
197
        {
197
198
        case VDP_YCBCR_FORMAT_NV12:
206
207
                tiled_deinterleave_to_planar(cedrus_mem_get_pointer(vs->yuv->data) + vs->luma_size, destination_data[2], destination_data[1], destination_pitches[1], vs->width, vs->height / 2);
207
208
                return VDP_STATUS_OK;
208
209
        }
 
210
#endif
209
211
 
210
212
        return VDP_STATUS_ERROR;
211
213
}