On Mon, Jun 24, 2019 at 01:01:02 +0200, Michael Niedermayer wrote:
> + if (sb + (j + k) / 64 > 29) {
[...]
> if (coding_method[ch][sb + (j + k) / 64][(j + k) % 64] >
> coding_method[ch][sb][j]) {
You could do the "sb + (j + k) / 64]" calculation only once and reuse
the result. OTOH, this code is full of magic numbers (notably 30, where
your 29 derives from) which could nicely make use of macros, but don't,
so it probably doesn't matter.
Moritz
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".