Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2022-03-11
GUANGDONG STARFIVE TECH LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the deficiencies of the prior art, the present invention discloses a jpeg image encoding method and system based on RISC-V SOC, which is used to solve the problem that the JPEG IP possessed by RISC-V SOC cannot be fully autonomously and controllably designed. ; Under the SOC that does not support JPEG, it is not possible to complete the jpeg encoding of the image; increase the readability of the isp debug output image

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • RISC-V SOC-based jpeg image coding method and system
  • RISC-V SOC-based jpeg image coding method and system

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of image coding, in particular to a jpeg image coding method and system based on RISC-V SOC, and the method comprises the following steps: coding a JPEG frame header, inputting image data, and converting the image data into a YUV format; the image is divided into n * n sub-blocks, the n * n sub-blocks are independently stored according to each component of Y, Cb and Cr, and n is a positive integer; performing DCT (Discrete Cosine Transform) and DQT (Discrete Quantitative Transform) quantization on Y, Cb and Cr components of the sub-blocks in sequence to obtain a DC coefficient and an AC coefficient; the quantized AC coefficient is subjected to run length coding, and the quantized DC coefficient is subjected to differential pulse modulation coding (DPCM); and performing Huffman entropy coding, and after data compression of each sub-block is completed, compiling an EOI file end to complete JPEG coding. According to the method, JPEG image coding is realized on the basis of the RISC-V SOC; the JPEG image coding is autonomous and controllable; and during SOC debugging, the readability of the isp output image is optimized.

Description

technical field [0001] The invention relates to the technical field of image coding, in particular to a RISC-V SOC-based jpeg image coding method and system. Background technique [0002] In the prior art, in the soc environment that does not support jpeg, the jpeg image encoding system can be used to encode the image into a jpg file; when debugging the isp, the image can be encoded into a jpg file to increase the readability of the image under windows , to facilitate debugging. [0003] However, the existing technology has the following defects: the JPEG IP possessed by RISC-V SOC cannot be completely autonomously controlled when it is not designed independently; under the SOC that does not support JPEG, it is impossible to complete jpeg encoding of images; increase isp debugging The readability of the output image. Contents of the invention [0004] Aiming at the deficiencies of the prior art, the present invention discloses a jpeg image encoding method and system base...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N19/122H04N19/124H04N19/129H04N19/13H04N19/176
CPCH04N19/122H04N19/124H04N19/13H04N19/129H04N19/176
Inventor 饶静
Owner GUANGDONG STARFIVE TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products