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

GPU (Graphics Processing Unit) pixel copying method based on glCopyPixels

A copy method and pixel technology, applied in the field of GPU pixel copy based on glCopyPixels, can solve the problem of no definition

Active Publication Date: 2020-03-31
XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the design of graphics processor chips (hereinafter referred to as GPU), the glCopyPixels function defined by the OpenGL API supports copying pixels from the buffer to a new location in the buffer, but OpenGL does not define when the copy coordinates are outside the buffer, the copied pixels how to deal with

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
  • GPU (Graphics Processing Unit) pixel copying method based on glCopyPixels

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0105] Below in conjunction with accompanying drawing the present invention is described in further detail, please refer to figure 1 .

[0106] A method for copying GPU pixels based on glCopyPixels, comprising the following steps:

[0107] Step 1: Calculation of copy range parameters: Calculate the original copy end point coordinates according to the copy coordinates and width and height. When the copy coordinates are smaller than the buffer area, reset the copy start point coordinates x or y beyond the buffer area to 0. If the original copy end point coordinates are larger than the buffer area area, the copy length in the negative direction is the absolute value of the starting point coordinates, otherwise the copy length in the negative direction is the input copy length. When the copy coordinate is larger than the buffer, the copy length in the negative direction is 0, and the copy start coordinate is the same as the copy coordinate. Then calculate the tile coordinates of...

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 computer graphics. The GPU pixel copying method based on glCopyPixels comprises the following steps: (1) calculating copying range parameters; (2) calculating grating range parameters; (3) comparing positions of copies and gratings; (4) copying data from a buffer area; the GPU pixel copying method based on glCopyPixels solves the GPU pixel copying problem based on glCopyPixels, the GPU pixel copying problem comprises multiple position relations of copying coordinates, grating coordinates and a buffer area, the relation between the two coordinatesis accurately calculated, and buffer area pixels which do not need to be drawn cannot be copied excessively. According to the pixel replication method for the OpenGL API glCopyPixels, the pixel replication method for the OpenGL API glCopyPixels is correctly and efficiently realized.

Description

technical field [0001] The invention belongs to the technical field of computer graphics and relates to a GPU pixel copy method based on glCopyPixels. Background technique [0002] In the design of graphics processor chips (hereinafter referred to as GPU), the glCopyPixels function defined by the OpenGL API supports copying pixels from the buffer to a new location in the buffer, but OpenGL does not define when the copied coordinates are outside the buffer, the copied pixels How to deal with it. In order to improve performance, the GPU does not write pixel by pixel when copying pixels. For the various positional relationships between copy coordinates, raster coordinates and buffers, how to complete pixel copy with high performance without missing any cases, It will not copy more pixels that do not need to be drawn, which is a technical problem that needs to be solved. Contents of the invention [0003] The object of the present invention is to provide a GPU pixel copy met...

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): G06T1/20
CPCG06T1/20Y02D10/00
Inventor 陈佳张少锋姜丽云吴晓成任向隆楼晓强
Owner XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
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