Method and device for converting image with RGB format to YUV420 format

A format and image technology, applied in the field of image format conversion, can solve the problems of easy loss of key details of the picture, poor display effect, etc., and achieve the effect of improving the display effect

Active Publication Date: 2017-07-21
SANGFOR TECH INC
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing method of converting RGB format to YUV420 format, in the VDI environment, the key details of the picture in the computer-aided design scene are easily lost, and the display effect is poor

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
  • Method and device for converting image with RGB format to YUV420 format
  • Method and device for converting image with RGB format to YUV420 format

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0063] Specifically, the R, G, and B color components of each pixel in each of the pixel blocks are mapped to linear space respectively, and a preferred implementation mode is:

[0064] Divide the R, G, and B color components of each pixel in each pixel block respectively by 255 to obtain a floating-point number ranging from 0 to 1;

[0065] Each of the floating-point numbers is used as a power operation of gamma to obtain the linear value of the R, G, and B color components of each pixel in each pixel block.

[0066] It should be noted that the R, G, and B components of each pixel correspond to a certain value in the luminance level of 0 to 255; the value of gamma can be adjusted according to actual needs. Preferably, the value range of gamma is (0, 5), after repeated experiments, 2.2 is the best value of gamma, and other values ​​within the range of (0,5) can also be selected according to the actual scene.

[0067] It should also be noted that, according to the actual conve...

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 provides a method for converting an image with an RGB format to a YUV420 format. The method comprises the following steps: cutting the image with the RGB format to be processed into multiple 2*2 pixel blocks; mapping R, G and B color components of each pixel in each pixel block to a linear space, calculating the average value of each color component in the linear space, and mapping each average value to the range of 0-255 of the corresponding color component to obtain R, G and B modified color components of each pixel block so as to avoid the problem that the key details of pictures in computer-aided design scenes are easy to lose in a VDI environment in the prior art because the value of each color component is not converted to the linear space, the average value is calculated by directly summing the color components of each pixel in the pixel block, or a certain pixel is fixedly selected as a sampling point; and then separately calculating a U component and a V component of each pixel block according to the R, G and B modified color components, and finally combining a Y component to obtain the image with the YUV420 format. Thereby, the display effect of the image can be improved.

Description

technical field [0001] The present invention relates to the technical field of image format conversion, and more specifically, relates to a method and a device for converting an RGB format image to a YUV420 format. Background technique [0002] With the development of servers and networks, the application of desktop virtualization technology is becoming more and more extensive. However, in the process of promotion, virtualization technology has also brought some new problems, especially in the support of computer-aided design software. is particularly obvious. [0003] As we all know, computer-aided design software involves a lot of complex work such as calculation and rendering, and generally requires professional graphics card support, such as M4000 of NVIDIA (Chinese name: Yingwei Da). VDI (full name in English: Virtual Desktop Infrastructure) is a server-based computing model for enterprise-level remote dynamic access to desktop systems and data center hosting technolog...

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): H04N9/64H04N9/69
CPCH04N9/64H04N9/69
Inventor 位凯志
Owner SANGFOR TECH INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products