~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to mpeg12.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:
116
116
        writel(pic_header, ve_regs + VE_MPEG_PIC_HDR);
117
117
 
118
118
        // ??
119
 
        writel(0x80000138 | ((cedrus_get_ve_version(decoder->device->cedrus) != 0x1680) << 7), ve_regs + VE_MPEG_CTRL);
120
 
        if (cedrus_get_ve_version(decoder->device->cedrus) == 0x1680)
 
119
        writel(0x80000138 | ((cedrus_get_ve_version(decoder->device->cedrus) < 0x1680) << 7), ve_regs + VE_MPEG_CTRL);
 
120
        if (cedrus_get_ve_version(decoder->device->cedrus) >= 0x1680)
121
121
                writel((0x2 << 30) | (0x1 << 28) | (output->chroma_size / 2), ve_regs + VE_EXTRA_OUT_FMT_OFFSET);
122
122
 
123
123
        // set forward/backward predicion buffers