Re: [FFmpeg-devel] [PATCH 3/8] avcodec/jpeglsenc: Move check out of loop

2020-09-06 Thread Paul B Mahol
On Sat, Sep 05, 2020 at 01:17:11AM +0200, Andreas Rheinhardt wrote: > ls_encode_line() encodes a line of input, going from left to right. In > order to calculate a predicted value it uses the left and upper-left > value of the output picture (that is, it uses how a decoder would see > the already e

[FFmpeg-devel] [PATCH 3/8] avcodec/jpeglsenc: Move check out of loop

2020-09-04 Thread Andreas Rheinhardt
ls_encode_line() encodes a line of input, going from left to right. In order to calculate a predicted value it uses the left and upper-left value of the output picture (that is, it uses how a decoder would see the already encoded part of the picture), unless this is the very first pixel of this lin