Inverse transform in Decoder

Skip to first unread message

Ritwik Ghosal

Nov 5, 2023, 6:42:14 AM11/5/23
to WebP Discussion
Suppose an image just uses Color indexing transfoirm.
While going through the decoder I found that the Inverse transform is being applied inside the 'ProcessRows" function but the processrows function is getting called after each 'copy'-type backreference is seen. 
As a result the array responsible for storing the inverse trasnformed pixel ,'argb_cache_' gets updated for each new copy type reference.

Q.1) where does exactly the inverse transformed pixels stored the argb_cache_ gets updated for each copy type reference?
Q.2)  And related to the above question, what is the pixel data used to write a decoded webp image to png image ?

Vincent Rabaud

Nov 6, 2023, 7:37:23 AM11/6/23

ProcessRows is called whenever a row is finished and it is a multiple of NUM_ARGB_CACHE_ROWS, that includes after a 'copy'-type backreference, cf


You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
Message has been deleted
0 new messages