~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to decoder.c

  • Committer: Jens Kuske
  • Date: 2016-12-17 09:58:38 UTC
  • Revision ID: git-v1:1a2bb1d942bc3c9db61ceaccc2012cb68471dd5e
Fix VdpVideoSurfaceGetBitsYCbCr on H3 and newer

Newer SoCs don't use the tiled video format anymore, so we must
not convert from tiled to normal.
This only works for YV12 now, NV12 would need some conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        if (!vid)
147
147
                return VDP_STATUS_INVALID_HANDLE;
148
148
 
149
 
        vid->source_format = INTERNAL_YCBCR_FORMAT;
 
149
        if (cedrus_get_ve_version(dec->device->cedrus) >= 0x1680)
 
150
                vid->source_format = VDP_YCBCR_FORMAT_YV12;
 
151
        else
 
152
                vid->source_format = INTERNAL_YCBCR_FORMAT;
 
153
 
150
154
        unsigned int i, pos = 0;
151
155
 
152
156
        for (i = 0; i < bitstream_buffer_count; i++)