[FFmpeg-devel] Using dsp.fdct()
Ramiro Polla
ramiro
Sat Apr 19 04:25:44 CEST 2008
Hello,
While writing the mimic decoder, iive taught me that to use
dsp.idct_xxx() functions, I had to create a scantable such as:
init() {
ff_init_scantable(ctx->dsp.idct_permutation, &ctx->table, zig_zag);
}
decode() {
while(coeffs)
block[ctx->table.permutated[pos]] = coeff;
ctx->dsp.idct(block);
}
Now, with dsp.fdct(), do I also have to use a scantable?
If so, how should I use it?
init() {
ff_init_scantable(ctx->dsp.idct_permutation, &ctx->table, zig_zag);
}
encode() {
ctx->dsp.fdct(block);
encode runs between block[ctx->table.permutated[i]];
}
...?
Ramiro Polla
More information about the ffmpeg-devel
mailing list