From 1a265f6187e9036b649fc08f8293b5e1fcd8dfbe Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 2 Feb 2012 20:54:53 +0100 Subject: prores encoder --- libavcodec/proresdsp.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libavcodec/proresdsp.c') diff --git a/libavcodec/proresdsp.c b/libavcodec/proresdsp.c index 7e753e9dc7..e19eed208b 100644 --- a/libavcodec/proresdsp.c +++ b/libavcodec/proresdsp.c @@ -51,13 +51,30 @@ static void prores_idct_put_c(uint16_t *out, int linesize, DCTELEM *block, const put_pixels(out, linesize >> 1, block); } +static void prores_fdct_c(const uint16_t *src, int linesize, DCTELEM *block) +{ + int x, y; + const uint16_t *tsrc = src; + + for (y = 0; y < 8; y++) { + for (x = 0; x < 8; x++) + block[y * 8 + x] = tsrc[x]; + tsrc += linesize >> 1; + } + ff_jpeg_fdct_islow_10(block); +} + void ff_proresdsp_init(ProresDSPContext *dsp) { dsp->idct_put = prores_idct_put_c; dsp->idct_permutation_type = FF_NO_IDCT_PERM; + dsp->fdct = prores_fdct_c; + dsp->dct_permutation_type = FF_NO_IDCT_PERM; if (HAVE_MMX) ff_proresdsp_x86_init(dsp); ff_init_scantable_permutation(dsp->idct_permutation, dsp->idct_permutation_type); + ff_init_scantable_permutation(dsp->dct_permutation, + dsp->dct_permutation_type); } -- cgit v1.2.3