A method and system for converting a yuv420 image into an rgb565 image
A YUV420, image conversion technology, used in image communication, color signal processing circuits, electrical components, etc., can solve the problems of reducing user experience, increasing the amount of memory access, and many cycles, improving conversion efficiency and reducing access to memory. , the effect of maintaining locality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Image 6 It is a flow chart of the first preferred embodiment of the method for converting a YUV420 image into an RGB565 image in the present invention. The method comprises the steps of:
[0027] S601, divide the original YUV420 image into at least one original YUV420 image block; and preset the original YUV420 image's scaling factor Fx in the horizontal direction and scaling factor Fy in the vertical direction;
[0028] The horizontal scaling factor Fx=Ns_x / Ds_x of the original YUV420 image, the vertical scaling factor Fy=Ns_y / Ds_y of the original YUV420 image;
[0029] Among them, Ns_x, Ds_x, Ns_y and Ds_y are all positive integers and the values meet the conditions: they are in the relationship of scaling multiples and are positive integers. At the same time, (2*Ds_x)*(Ns_x / Ds_x) is equal to the width of the scaled YUV420 image block tx, (2*Ds_y)*(Ns_y / Ds_y) is equal to the height ty of the scaled YUV420 image block; divide the YUV420 image into at least one YUV...
Embodiment 2
[0039] Figure 7 It is a flow chart of the second preferred embodiment of the method for converting a YUV420 image into an RGB565 image in the present invention. The method comprises the steps of:
[0040] S701, preset the Y, U, V components of the original YUV420 image, the original YUV420 image is equally divided into at least one YUV420 image block; the horizontal zoom factor Fx and the vertical zoom factor Fy of the preset YUV420 image; the preset zoom buffer , used to store the Y component, U component and V component of the scaled YUV420 image block, which are referenced by the variables Yt, Ut and Vt respectively; the preset loop variables x, y, x1, y1, i, j are initially 0;
[0041] The first address pointer rgb of the target address of the preset RGB565 image and the pointer p of the target address stored in the current RGB565 image block are both defined as short* type; the output coordinate variables x2 and y2 of the preset RGB565 image block;
[0042] The horizon...
Embodiment 3
[0144] Figure 8 It is a schematic structural diagram of the first preferred embodiment of the system for converting YUV420 images into RGB565 images of the present invention.
[0145] The system includes: an initial module, a scaling module and an output module;
[0146] The initial module is connected with the scaling module, and is used to equally divide the original YUV420 image into at least one original YUV420 image block; and preset the scaling factor of the horizontal direction and the vertical direction of the original YUV420 image;
[0147] The horizontal zoom factor Fx=Ns_x / Ds_x of the original YUV420 image, the vertical zoom factor Fy=Ns_y / Ds_y of the original YUV420 image, wherein the values of Ns_x and Ds_x, Ns_y and Ds_y satisfy the condition: a zoom factor relationship , and is a positive integer, at the same time, (2*Ds_x)*(Ns_x / Ds_x) is equal to the width tx of the scaled YUV420 image block, (2*Ds_y)*(Ns y / Ds_y) is equal to the scaled YUV420 image block’s ...
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