RISC-V SOC-based jpeg image coding method and system
An image coding and coding technology, which is applied in the field of image coding, can solve the problems of increasing readability, not being able to encode images with jpeg, and not being completely autonomous and controllable, so as to achieve the effect of optimizing readability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] The present embodiment provides a jpeg image coding method based on RISC-V SOC, comprising the following steps:
[0028] S1 initializes, encodes the JPEG frame header, and inputs the image data, and converts the image data into YUV format at the same time;
[0029] S2 splits the image into n×n sub-blocks, and stores them separately according to the components of Y, Cb, and Cr, where n is a positive integer;
[0030] S3 performs DCT transformation and DQT quantization on the Y, Cb, and Cr components of the sub-block in sequence to obtain DC coefficients and AC coefficients;
[0031] S4 performs run-length coding on the quantized AC coefficients, and performs differential pulse modulation coding DPCM on the DC coefficients;
[0032] S5 performs Huffman entropy encoding on the result in S4, and writes the EOI file tail after completing data compression for each sub-block, and completes JPEG encoding.
[0033] This embodiment can solve the situation that the JPEG IP posse...
Embodiment 2
[0035] At the implementation level, see figure 1 The present embodiment shown provides a kind of specific implementation of the jpeg image coding method based on RISC-V SOC, specifically as follows:
[0036] 1. Encode the JPEG frame header, see figure 2 As shown, the frame header consists of SOI (image start flag), APP0 (image identification information-JFIF format), DQT (definition quantization table), SOF0 (image basic information), DHT (definition of Huffman table), SOS (start of scanning line) ;
[0037] 2. Input image data;
[0038] 3. Convert image data to YUV format;
[0039] 4. Split the image into 16x16 sub-blocks, and store them separately according to the components of Y, Cb, and Cr;
[0040] 5. Perform DCT transformation (discrete cosine transformation) on the Y, Cb, and Cr components of the sub-block, transform the signal from the time domain to the frequency domain, obtain the DC coefficient, and lose the high-frequency part;
[0041] 6. Perform DQT quantiz...
Embodiment 3
[0048] This embodiment provides a jpeg image coding system based on RISC-V SOC, including a processor; and a memory, on which computer-readable instructions are stored, and the computer-readable instructions are implemented when executed by the processor JPEG image coding method based on RISC-V SOC.
[0049] To sum up, the present invention realizes JPEG image encoding based on RISC-V SOC; achieves independent controllability of JPEG image encoding; and optimizes the readability of isp output images during SOC debugging.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com