Method and system for converting pixel format from argb to nv12 through gpu

A pixel format and conversion algorithm technology, applied in the field of pixel format conversion, can solve the problems of difficult data transmission bandwidth, reduce the efficiency of pixel format conversion conversion, prolong the calculation process of pixel format conversion, etc., to increase data transmission bandwidth, reduce bandwidth, Effect of improving conversion efficiency

Active Publication Date: 2019-06-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the CPU is the core of the computer's work, the CPU must perform other tasks while performing pixel format conversion; that is to say, it is difficult to maximize the data transmission bandwidth of the pixel format conversion on the CPU, which in turn prolongs the calculation process of pixel format conversion. Reduced conversion efficiency for pixel format conversion

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 system for converting pixel format from argb to nv12 through gpu
  • Method and system for converting pixel format from argb to nv12 through gpu

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0018] First, explain the ARGB pixel format and the NV12 pixel format respectively:

[0019] ARGB (Alpha, Red, Green, Blue) pixel format is one of the RGB color formats, using 32 bits to represent a pixel, each RGB component uses 8 bits, and the remaining 8 bits are used as Alpha (transparency); The arrangement order of ARGB components in the memory is: B0, G0, R0, A0, B1, G1, R1, A1, B2, G2, R2, A2.

[0020] NV12 pixel format belongs to YUV420 format, the mode is two-plane (double-layer plane), that is, the image in NV12 pixel format includes two planes: Y (brightness) plane and UV (color) plane, and UV plane (CbCr) is interleaved storage of. For example, define an image in NV12 pixel format with a width of d and a height of h, then the width of the Y plane of the image and the number of bytes of a row of pixels are both d and the height is...

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 discloses a method and system for converting pixel formats from ARGB (Alpha, Red, Green, Blue) into NV12 through a GPU (graphics processing unit), and relates to the field of pixel format conversion. The method comprises the following steps of creating one 8-bit pixel format Y plane storage texture and one 16-bit pixel format UV plane storage texture in a two-dimensional texture interface of a graphical programming interface; inputting ARGB storage textures to be converted into the GPU; converting the pixel formats of images in the ARGB storage textures into NV12 from ARGB by the GPU via HLSL (high level shader language); assigning a Y plane of the images in the NV12 pixel format to Y plane storage textures; assigning a UV plane of the images in the NV12 pixel format to UV plane storage textures. The method and the system have the advantages that the pixel format conversion calculating process can be shortened; the conversion efficiency is improved.

Description

technical field [0001] The present invention relates to the field of pixel format conversion, in particular to a method and system for converting a pixel format from ARGB to NV12 through a GPU (Graphics Processing Unit, graphics processor). Background technique [0002] When performing H.264 (digital video compression format) encoding, it is necessary to convert pixels in RGB format to pixels in YUV format. First explain RGB and YUV separately: [0003] The RGB color mode (Red, Green, Blue, red, green, blue three-color color mode) is a color standard in the industry, through the three color channels of red (R), green (G) and blue (B) The changes and their mutual superposition to obtain different colors, RGB is the color representing the three channels of red, green and blue, this standard includes almost all the colors that human vision can perceive, and is currently the most widely used One of the color systems. [0004] The YUV (color coding method) format is divided in...

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 Patents(China)
IPC IPC(8): G06T7/90H04N19/186
CPCH04N19/186
Inventor 杨亮
Owner WUHAN DOUYU NETWORK TECH CO LTD
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