From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:JPEG" |
|---|
| claim | "The Adobe APP14 segment (FF EE, length 14): "Adobe", u16 BE version (100 in practice), u16 flags0, u16 flags1, and a colour-transform byte: 0 = no transform (RGB for 3 components, CMYK for 4), 1 = YCbCr, 2 = YCCK. libjpeg writes it for RGB, CMYK and YCCK images and decoders use the transform byte to choose the colour space when there is no JFIF marker." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:JPEG" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "adobe_app14" |
|---|
| size | 16 |
|---|
| fields | | offset | 0 |
|---|
| size | 2 |
|---|
| type | "uint8[2]" |
|---|
| name | "marker" |
|---|
| notes | "FF EE" |
|---|
|
| offset | 2 |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "length" |
|---|
| notes | "14" |
|---|
|
| offset | 4 |
|---|
| size | 5 |
|---|
| type | "char[5]" |
|---|
| name | "identifier" |
|---|
| notes | ""Adobe" (no NUL)" |
|---|
|
| offset | 9 |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "version" |
|---|
| notes | "100" |
|---|
|
| offset | 11 |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "flags0" |
|---|
|
| offset | 13 |
|---|
| size | 2 |
|---|
| type | "uint16_be" |
|---|
| name | "flags1" |
|---|
|
| offset | 15 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| name | "transform" |
|---|
| notes | "0 none (RGB/CMYK), 1 YCbCr, 2 YCCK" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "emit_adobe_app14(): length 2+5+2+2+2+1, 'A','d','o','b','e', version 100, flags0 0, flags1 0, transform 1 for YCbCr, 2 for YCCK, else 0" |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "src/jcmarker.c" |
|---|
| lines | "390-430" |
|---|
|
| type | "source" |
|---|
| detail | "examine_app14(): APP14_DATA_LEN 12, transform = data[11]" |
|---|
| repo | "https://github.com/libjpeg-turbo/libjpeg-turbo" |
|---|
| commit | "2fa570c514a4b0e70342ef8b32ce1cda21b85710" |
|---|
| path | "src/jdmarker.c" |
|---|
| lines | "679-705" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Pillow 12.3.0 CMYK save: FF EE 00 0E 41 64 6F 62 65 00 64 00 00 00 00 00 (transform 0); RGB with keep_rgb=True: same, components 'R','G','B'" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Adobe APP14 segment" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:07:20.914Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:11:55.660Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libjpeg-turbo jcmarker.c emit_adobe_app14 (length 14, 'Adobe', version 100, flags 0/0, transform 1 YCbCr/2 YCCK/else 0), jcparam.c lines 357-392 (write_Adobe_marker TRUE for RGB, CMYK, YCCK), jdmarker.c examine_app14 (transform = data[11]) and jdapimin.c 151-205 (JFIF seen -> YCbCr, else Adobe transform decides)." |
|---|
|
|
|---|