#[repr(C)]pub struct DEC {Show 31 fields
pub imageproperty: IMAGEPROPERTY,
pub swreset: SWRESET,
pub decodingstatus: DECODINGSTATUS,
pub quanttableno: QUANTTABLENO,
pub huffmantableno: HUFFMANTABLENO,
pub dri: DRI,
pub sizey: SIZEY,
pub sizex: SIZEX,
pub decodingoption: DECODINGOPTION,
pub intr_dec_en: INTR_DEC_EN,
pub intr_dec: INTR_DEC,
pub errorcode: ERRORCODE,
pub correctioncropstatus: CORRECTIONCROPSTATUS,
pub suspend: SUSPEND,
pub dnl: DNL,
pub cropstarty: CROPSTARTY,
pub cropstartx: CROPSTARTX,
pub cropsizey: CROPSIZEY,
pub cropsizex: CROPSIZEX,
pub quanttable0: [QUANTTABLE0; 32],
pub quanttable1: [QUANTTABLE1; 32],
pub quanttable2: [QUANTTABLE2; 32],
pub quanttable3: [QUANTTABLE3; 32],
pub huffmantabledc0codelength: [HUFFMANTABLEDC0CODELENGTH; 4],
pub huffmantabledc0groupno: [HUFFMANTABLEDC0GROUPNO; 3],
pub huffmantableac0codelength: [HUFFMANTABLEAC0CODELENGTH; 4],
pub huffmantableac0groupno: [HUFFMANTABLEAC0GROUPNO; 41],
pub huffmantabledc1codelength: [HUFFMANTABLEDC1CODELENGTH; 4],
pub huffmantabledc1groupno: [HUFFMANTABLEDC1GROUPNO; 3],
pub huffmantableac1codelength: [HUFFMANTABLEAC1CODELENGTH; 4],
pub huffmantableac1groupno: [HUFFMANTABLEAC1GROUPNO; 41],
/* private fields */
}
Expand description
Register block
Fields§
§imageproperty: IMAGEPROPERTY
0x00 - Image property settings.
swreset: SWRESET
0x04 - Software reset trigger.
decodingstatus: DECODINGSTATUS
0x08 - Decoding status
quanttableno: QUANTTABLENO
0x0c - Quantization table number downloaded from the JPEG image.
huffmantableno: HUFFMANTABLENO
0x10 - Huffman Table number downloaded from the JPEG image.
dri: DRI
0x14 - The DRI value downloaded from the JPEG image.
sizey: SIZEY
0x18 - Y size downloaded from the JPEG image.
sizex: SIZEX
0x1c - X size downloaded from the JPEG image.
decodingoption: DECODINGOPTION
0x24 - Decoding option settings.
intr_dec_en: INTR_DEC_EN
0x28 - Interrupt Setting
intr_dec: INTR_DEC
0x2c - Interrupt status
errorcode: ERRORCODE
0x30 - Error code for INTR_DEC.ErrorMarker.
correctioncropstatus: CORRECTIONCROPSTATUS
0x34 - Correction Mode and Crop Decoding status. This register is initialized by the decoding start trigger (CMD.START).
suspend: SUSPEND
0x38 - Suspend status. Decoding can be resumed from Suspended State by writing ‘1’ to CMD.RESUME.
dnl: DNL
0x3c - DNL value downloaded from the JPEG image. This register is initialized by the decoding start trigger (CMD.START).
cropstarty: CROPSTARTY
0x40 - Y crop start position
cropstartx: CROPSTARTX
0x44 - X crop start position
cropsizey: CROPSIZEY
0x48 - Crop size for Y direction
cropsizex: CROPSIZEX
0x4c - Crop size for X direction
quanttable0: [QUANTTABLE0; 32]
0x100..0x180 - Quantization Table number 0 downloaded from a JPEG image.
quanttable1: [QUANTTABLE1; 32]
0x180..0x200 - Quantization Table number 1 downloaded from a JPEG image.
quanttable2: [QUANTTABLE2; 32]
0x200..0x280 - Quantization Table number 2 downloaded from a JPEG image.
quanttable3: [QUANTTABLE3; 32]
0x280..0x300 - Quantization Table number 3 downloaded from a JPEG image.
huffmantabledc0codelength: [HUFFMANTABLEDC0CODELENGTH; 4]
0x300..0x310 - Shows the code length distribution for DC Huffman Table 0. For each Huffman code lengths (0 to 16), the number of used codes is shown. e.g. Field for code length 3 has the value ‘5’ when 010/011/100/101/110 are used.
huffmantabledc0groupno: [HUFFMANTABLEDC0GROUPNO; 3]
0x310..0x31c - Shows the group numbers in the order of descending appearance frequencies for DC Huffman Table 0.
huffmantableac0codelength: [HUFFMANTABLEAC0CODELENGTH; 4]
0x320..0x330 - Shows the code length distribution for AC Huffman Table 0. For each Huffman code lengths (0 to 16), the number of used codes is shown. e.g. Field for code length 3 has the value ‘5’ when 010/011/100/101/110 are used.
huffmantableac0groupno: [HUFFMANTABLEAC0GROUPNO; 41]
0x330..0x3d4 - Shows the zero run-length+group number values in the order of descending appearance frequencies for AC Huffman Table 0.
huffmantabledc1codelength: [HUFFMANTABLEDC1CODELENGTH; 4]
0x414..0x424 - Shows the code length distribution for DC Huffman Table 1. For each Huffman code lengths (0 to 16), the number of used codes is shown. e.g. Field for code length 3 has the value ‘5’ when 010/011/100/101/110 are used.
huffmantabledc1groupno: [HUFFMANTABLEDC1GROUPNO; 3]
0x424..0x430 - Shows the group numbers in the order of descending appearance frequencies for DC Huffman Table 1.
huffmantableac1codelength: [HUFFMANTABLEAC1CODELENGTH; 4]
0x434..0x444 - Shows the code length distribution for AC Huffman Table 1. For each Huffman code lengths (0 to 16), the number of used codes is shown. e.g. Field for code length 3 has the value ‘5’ when 010/011/100/101/110 are used.
huffmantableac1groupno: [HUFFMANTABLEAC1GROUPNO; 41]
0x444..0x4e8 - Shows the zero run-length+group number values in the order of descending appearance frequencies for AC Huffman Table 1.