From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:Libjpeg-turbo" |
|---|
| claim | "libjpeg-turbo's x86 SSE2 RGB->YCbCr constants (jccolor-sse2.asm, i386 and x86_64): PW_F0299_F0337 = (19595, 22086) x4, PW_F0114_F0250 = (7471, 16384) x4, PW_MF016_MF033 = (-11059, -21709) x4 as little-endian u16, 48 bytes. Present in builds with SIMD (NASM/yasm available at build time); the AVX2 twin jconst_rgb_ycc_convert_avx2 has each row x8." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libjpeg-turbo" |
|---|
| observed_in | | "Pillow 12.3.0 _imaging.cp311-win_amd64.pyd (v3.1.4.1)" |
| "PHP 8.3.30 php_gd.dll (2.1.0)" |
|
|---|
|
|---|
| data | | pattern | "8B 4C 46 56 8B 4C 46 56 8B 4C 46 56 8B 4C 46 56 2F 1D 00 40 2F 1D 00 40 2F 1D 00 40 2F 1D 00 40 CD D4 33 AB CD D4 33 AB CD D4 33 AB CD D4 33 AB" |
|---|
| matches | "jconst_rgb_ycc_convert_sse2 (simd/x86_64/jccolor-sse2.asm, simd/i386/jccolor-sse2.asm)" |
|---|
| name | "jconst_rgb_ycc_convert_sse2" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "F_0_299 equ 19595, F_0_337 equ (F_0_587 - F_0_250) = 22086, F_0_114 equ 7471, F_0_250 equ 16384, F_0_168 11059, F_0_331 21709; PW_F0299_F0337 times 4 dw F_0_299, F_0_337 ..." |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "simd/x86_64/jccolor-sse2.asm" |
|---|
| lines | "18-42" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Exactly one match in Pillow _imaging and php_gd.dll (the 32-byte two-row version matched 4 times, because jcgray and the AVX2 tables share the first rows); absent from SIMD-less builds (Blender/OpenImageIO, SkiaSharp)" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "jconst_rgb_ycc_convert_sse2" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:07:22.005Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:17:37.367Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read simd/x86_64/jccolor-sse2.asm at 2fa570c5 lines 18-42: F_0_299=19595, F_0_337=38470-16384=22086, F_0_114=7471, F_0_250=16384, F_0_168=11059, F_0_331=21709; PW rows times 4 dw of (19595,22086), (7471,16384), (-11059,-21709) as LE words equal the 48-byte pattern. i386 file not read." |
|---|
|
|
|---|