mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
b463e812bf
* add pikaCV-test.cpp * read(Image) and convert to RGB565 is tested ok * transfer can return res, but not assert * format tjpgd * add test for PikaCV * add assert for newContent * restore assets * restore PikaCV.pyi * restore PikaCV * restore uint16_t * add jpeg_test.py * move ADC, GPIO, RGB ... to Device * add jd_decomp * convert_JPEGtoREG888 is not ok * connecting tjpegdec * Converter.toRGB565() .toRGB888() .toGRay() eachother is ok * support Gray * add PikaCV_Image, PikaCV_ImageFormat * add classes for PikaCV * add PikaCV
47 lines
2.8 KiB
HTML
47 lines
2.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<link rel="up" title="TJpgDec" href="../00index.html">
|
|
<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
|
|
<title>TjpgDec - JDEC</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="para">
|
|
<h2>JDEC</h2>
|
|
<p>The <tt>JDEC</tt> structure holds the data, pointer and flags to manage the decompression session. Application program must not change any member in this structure.</p>
|
|
<pre>
|
|
<span class="k">typedef</span> <span class="k">struct</span> JDEC JDEC;
|
|
<span class="k">struct</span> JDEC {
|
|
size_t dctr; <span class="c">/* Number of bytes available in the input buffer */</span>
|
|
uint8_t* dptr; <span class="c">/* Current data read ptr */</span>
|
|
uint8_t* inbuf; <span class="c">/* Bit stream input buffer */</span>
|
|
uint8_t dmsk; <span class="c">/* Current bit in the current read byte */</span>
|
|
uint8_t scale; <span class="c">/* Output scaling ratio */</span>
|
|
uint8_t msx, msy; <span class="c">/* MCU size in unit of block (width, height) */</span>
|
|
uint8_t qtid[3]; <span class="c">/* Quantization table ID of each component */</span>
|
|
uint8_t ncomp; <span class="c">/* Number of color components (1:grayscale, 3:color) */</span>
|
|
int16_t dcv[3]; <span class="c">/* Previous DC element of each component */</span>
|
|
uint16_t nrst; <span class="c">/* Restart inverval */</span>
|
|
uint16_t width, height; <span class="c">/* Size of the input image (pixel) */</span>
|
|
uint8_t* huffbits[2][2]; <span class="c">/* Huffman bit distribution tables [yc][dcac] */</span>
|
|
uint16_t* huffcode[2][2]; <span class="c">/* Huffman code word tables [yc][dcac] */</span>
|
|
uint8_t* huffdata[2][2]; <span class="c">/* Huffman decoded data tables [yc][dcac] */</span>
|
|
int32_t* qttbl[4]; <span class="c">/* De-quaitizer tables [id] */</span>
|
|
void* workbuf; <span class="c">/* Working buffer for IDCT and RGB output */</span>
|
|
uint8_t* mcubuf; <span class="c">/* Working buffer for the MCU */</span>
|
|
void* pool; <span class="c">/* Pointer to available memory pool */</span>
|
|
size_t sz_pool; <span class="c">/* Size of momory pool (bytes available) */</span>
|
|
size_t (*infunc)(JDEC*, uint8_t*, size_t); <span class="c">/* Pointer to jpeg stream input function */</span>
|
|
void* device; <span class="c">/* Pointer to I/O device identifiler for the session */</span>
|
|
};
|
|
</pre>
|
|
</div>
|
|
|
|
<p class="foot"><a href="../00index_e.html">Return</a></p>
|
|
</body>
|
|
</html>
|