rawspeed icon indicating copy to clipboard operation
rawspeed copied to clipboard

Simplify&parallelize Cr2Decompressor

Open LebedevRI opened this issue 7 years ago • 2 comments

Since predictor is reset for each row of the slice to the first pixel of previous slice row, i believe it means only the first pixel of the row depends on the value of the first pixel of the previous row. Thus it should be feasible to parallelize it?

LebedevRI avatar Mar 29 '17 18:03 LebedevRI

i believe it means only the first pixel of the row depends on the value of the first pixel of the previous row

That is correct.

Thus it should be feasible to parallelize it?

Unfortunately not: you need to decode each and every pixel of the full row, just to know where exactly in the bitstream the next row starts.

axxel avatar Mar 31 '17 00:03 axxel

Unfortunately not: you need to decode each and every pixel of the full row, just to know where exactly in the bitstream the next row starts.

Who said anything about decoding huffmantable in parallel too?

LebedevRI avatar Mar 31 '17 07:03 LebedevRI