#
✕ nick:henje[m]
#asahi-re · 2022-03-20 10:43
henje[m]You could also go to HSL or whatever uses the same matrix format for conversion
#asahi-re · 2022-03-20 10:42
henje[m]It should be if it’s just a matrix, because one does RGB -> YCbCr, and the other does YCbCr -> RGB, which need another matrix
#asahi-re · 2022-03-20 10:36
henje[m]So MATRIX_MULT has to be set differently for decoding and encoding, right?
#asahi-re · 2022-03-20 10:34
henje[m]Right
#asahi-re · 2022-03-20 10:34
henje[m]Is the QTBL register the quantization matrix? In the gist it does not seem to be set
#asahi-re · 2022-03-20 10:17
henje[m]But 11 values? Shouldn’t that be 9?
#asahi-re · 2022-03-20 10:16
henje[m]Yes
#asahi-re · 2022-03-20 10:16
henje[m]Ah thx
#asahi-re · 2022-03-20 10:15
henje[m]rqou_: if you mind, could you dump the values and share them?
#asahi-re · 2022-03-20 10:13
henje[m]So if it’s a quantization matrix in some form, later entries should effect higher frequency contents, i.e. sharp edges
#asahi-re · 2022-03-20 10:07
henje[m]JPEG encodes blocks of 8x8 pixels using a discrete cosine transformation. The cosine coefficients form a matrix and are multiplied with a quantization matrix, which effectively eliminates unneeded coefficients. But both matrices should be 8x8.