I420 format texture image conversion method, storage medium, electronic device and system

A texture image and conversion method technology, applied in image enhancement, image analysis, image data processing, etc., can solve the problems of reducing the conversion efficiency of pixel format conversion, prolonging the calculation process of pixel format conversion, and difficult data transmission bandwidth, etc., to achieve increased The effect of data transmission bandwidth, improvement of conversion efficiency, and reduction of work pressure

Inactive Publication Date: 2018-12-18
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 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. Reduce the conversion efficiency of pixel format conversion; especially when the width and height of the image to be converted are very large, the conversion efficiency is even lower

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
  • I420 format texture image conversion method, storage medium, electronic device and system
  • I420 format texture image conversion method, storage medium, electronic device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0025] see figure 1 As shown, the conversion method of the I420 format texture image in the embodiment of the present invention comprises the following steps:

[0026] S1: Define the width of the I420 format texture image to be converted as W and the height as H, and create three input texture images with the same pixel format (DXGI_FORMAT_R8_UNORM, which is the existing pixel format) according to the I420 format texture image: PY , PU and PV. PY is used to carry the Y pixel plane of the texture image in I420 format, the width of PY is W, and the height is H; PU is used to carry the U pixel plane of the texture image in I420 format, the width of PU is W / 2, and the height is H / 2; PV is used to carry the V pixel plane of the texture image in I420 format, the width of PV is W / 2, and the height is H / 2, go to S2.

[0027] S2: According to the t...

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 an I420 format texture image conversion method, a storage medium, an electronic device and a system, which relate to the texture image conversion field. The method comprises the following steps: according to the texture image of I420 format to be converted, creating three input texture images with the same pixel format: PY, PU and PV; creating an output texture image from the texture image in I420 format; determining a Y pixel value of PY, a U pixel value of PU, and a V pixel value of PV; calculating R, G and B channel values of an output texture image according to Y pixel values, V pixel values and U pixel values; assigning the A, R, G, and B channel value to that output texture image. The invention can carry out the format conversion operation with the largest workload through the GPU, remarkably reducing the working pressure of the CPU and the system memory, thereby greatly increasing the data transmission bandwidth during the pixel format conversion, that is, shortening the calculation process of the pixel format conversion, and improving the conversion efficiency.

Description

technical field [0001] The invention relates to the field of texture image conversion, in particular to a conversion method, storage medium, electronic equipment and system of an I420 format texture image. Background technique [0002] When Direct3D10 (graphics acceleration interface) displays the I420 format texture image under the WIN7 system, it needs to convert the I420 format image to the A8R8G8B8 format image first. [0003] The I420 format is a kind of YUV (color coding method) format. The YUV format is divided into three components. "Y" represents the brightness (Luminance or Luma), which is the gray value; while "U" and "V" represent It is chroma (Chrominance or Chroma), which is used to describe the color and saturation of the image, and is used to specify the color of the pixel. The YUV format is mainly used in television systems and analog video fields. It separates brightness information (Y) from color information (UV). It can display a complete image without U...

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
IPC IPC(8): G06T7/90G06T1/20
CPCG06T1/20G06T7/40G06T2207/10004
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