CN102800122B - Based on image processing method and the device thereof of Direct3D technology - Google Patents

Based on image processing method and the device thereof of Direct3D technology Download PDF

Info

Publication number
CN102800122B
CN102800122B CN201210206062.9A CN201210206062A CN102800122B CN 102800122 B CN102800122 B CN 102800122B CN 201210206062 A CN201210206062 A CN 201210206062A CN 102800122 B CN102800122 B CN 102800122B
Authority
CN
China
Prior art keywords
texture
view data
technology
direct3d
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210206062.9A
Other languages
Chinese (zh)
Other versions
CN102800122A (en
Inventor
蒙兴柳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Group Co Ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210206062.9A priority Critical patent/CN102800122B/en
Publication of CN102800122A publication Critical patent/CN102800122A/en
Application granted granted Critical
Publication of CN102800122B publication Critical patent/CN102800122B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of image processing method based on Direct3D technology, comprising: the graphics pipeline creating surface, the first texture, the second texture by Direct3D technology and bind with the second texture; View data is sent to surface; View data in surface is sent to the first texture; View data in first texture is sent to the second texture; By graphics pipeline, view data is processed.Also disclose a kind of image processing apparatus based on Direct3D technology, comprise creation module, view data sending module and image data processing module.The present invention utilizes the surface created in video memory directly to receive view data, by creating texture with the view data in receiving surface in video memory, and utilizes graphics pipeline to process image.Due in the transmitting procedure of view data without the need to through Installed System Memory, and walked around CPU, therefore improve processing speed and the display efficiency of image.

Description

Based on image processing method and the device thereof of Direct3D technology
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of image processing method based on Direct3D technology and a kind of image processing apparatus based on Direct3D technology.
Background technology
Current image pick-up card generally adopts Direct3D technology to show the view data captured.In order to the view data adopting Direct3D graphics pipeline to catch to process capture card, common practices first view data is sent to Installed System Memory, then create dynamic texture according to the view data in Installed System Memory, recycling Direct3D graphics pipeline completes process to view data and display.This way, before processing view data, needs first to be sent to video memory by view data from Installed System Memory, the graphics pipeline in video memory then could be utilized to process.Namely also view data needs to transmit between Installed System Memory and video memory, and there is the problems such as the high and image display efficiency of CPU usage is low, particularly when carrying out windows display, this problem is more obvious.
Summary of the invention
For solving above-mentioned Problems existing, the invention provides a kind of image processing method based on Direct3D technology and a kind of image processing apparatus based on Direct3D technology.
Based on an image processing method for Direct3D technology, comprise the following steps:
By the graphics pipeline that Direct3D technology creates surface, the first texture, the second texture and binds with the second texture; Wherein, adopt the D3D9EX in Direct3D technology to create described surface, adopt D3D10.1 technology to create described graphics pipeline;
View data is sent to described surface;
View data in described surface is sent to described first texture;
By the shared mechanism in Direct3D technology, the view data in described first texture is sent to described second texture; Wherein, realize sharing between D3D9EX and D3D10.1, utilize the surface sharing mechanism in Direct3D technology, by synchronous for the view data in described first texture and described second texture;
By the described graphics pipeline bound with the second texture, view data is processed.
Compared with general technology, the image processing method that the present invention is based on Direct3D technology creates surface by Direct3D technology in video memory, utilizes the surface created directly to receive the view data got.By creating texture with the view data in receiving surface in video memory, and graphics pipeline is utilized to process image.Due in the transmitting procedure of view data without the need to through Installed System Memory, and walked around CPU, therefore greatly enhanced processing speed and the display efficiency of image.
Based on an image processing apparatus for Direct3D technology, comprise creation module, view data sending module and image data processing module;
Described creation module is used for the graphics pipeline being created surface, the first texture, the second texture by Direct3D technology and bound with the second texture; Wherein, adopt the D3D9EX in Direct3D technology to create described surface, adopt D3D10.1 technology to create described graphics pipeline;
Described view data sending module is used for view data to be sent to described surface, view data in described surface is sent to described first texture, and by the shared mechanism in Direct3D technology, the view data in described first texture is sent to described second texture; Wherein, realize sharing between D3D9EX and D3D10.1, utilize the surface sharing mechanism in Direct3D technology, by synchronous for the view data in described first texture and described second texture;
Described image data processing module is used for being processed view data by the described graphics pipeline bound with the second texture.
Compared with general technology, the image processing apparatus that the present invention is based on Direct3D technology creates surface by Direct3D technology in video memory, utilizes the surface created directly to receive the view data got.By creating texture with the view data in receiving surface in video memory, and graphics pipeline is utilized to process image.Due in the transmitting procedure of view data without the need to through Installed System Memory, and walked around CPU, therefore greatly enhanced processing speed and the display efficiency of image.
Accompanying drawing explanation
Fig. 1 is the schematic flow diagram of the image processing method that the present invention is based on Direct3D technology;
Fig. 2 is the structural representation of the image processing apparatus that the present invention is based on Direct3D technology.
Embodiment
For further setting forth the technological means that the present invention takes and the effect obtained, below in conjunction with accompanying drawing and preferred embodiment, to technical scheme of the present invention, carry out clear and complete description.
Refer to Fig. 1, for the present invention is based on the schematic flow diagram of the image processing method of Direct3D technology.The image processing method that the present invention is based on Direct3D technology comprises the following steps:
The graphics pipeline that S101 is created surface, the first texture, the second texture by Direct3D technology and bound with the second texture;
Create device object one by Direct3D technology, comprise and create surface and the first texture; Create device object two, the graphics pipeline comprising establishment second texture and bind with the second texture.
As one of them embodiment, by D3D9 technology, create described surface and described first texture; By D3D9 technology, D3D10 technology or D3D11 technology, create described second texture and the described graphics pipeline bound with the second texture.
Such as, the D3D9EX in Direct3D technology can be adopted to create surface, adopt the establishment of D3D10.1 technology to be used for the graphics pipeline processed view data.
View data is sent to described surface by S102;
As one of them embodiment, obtain view data by Image Data Acquisition Card; To Image Data Acquisition Card sending controling instruction, the view data of being caught is sent to described surface.
View data in described surface is sent to described first texture by S103;
View data in surface can be copied to the first texture, view data can adopt the mode shared to be sent to the second texture by the first texture.
View data in described first texture is sent to described second texture by S104;
As one of them embodiment, by the shared mechanism in Direct3D technology, the view data in described first texture is sent to described second texture.
Such as, can realize sharing between D3D9EX and D3D10.1, utilize the surface sharing mechanism in Direct3D technology, realize the synchronous of view data in two textures.Wherein, the second texture has bound the graphics pipeline be pre-created.
S105 is processed view data by the described graphics pipeline bound with the second texture.
After view data arrives the second texture, just can send drafting instruction control graphics pipeline and start image data processing.Such as, image real time transfer is carried out by the graphics pipeline in D3D10.1.
In addition, after step S105 completes, surface also again can be utilized to obtain view data, be then shared to the second texture by the first texture, and further view data processed.So can form a cyclic process, data processing and the display of multiwindow and Large Copacity image can be adapted to like this.
Compared with general technology, the image processing method that the present invention is based on Direct3D technology creates surface by Direct3D technology in video memory, utilizes the surface created directly to receive the view data got.By creating texture with the view data in receiving surface in video memory, and graphics pipeline is utilized to process image.Due in the transmitting procedure of view data without the need to through Installed System Memory, and walked around CPU, therefore greatly enhanced processing speed and the display efficiency of image.
The view data of capture card collection can be directly supplied to D3D10.1 programmable graphics streamline by the present invention, be convenient to programmable graphics streamline and sweetly disposition is carried out to image, to overcome the quality problems zooming in or out middle appearance of image, as acute tooth phenomenon and losing shape.The view data that capture card can be captured by the present invention is sent, and (as adopted the mode of DMA), to the surface that D3D9EX creates, can reduce cpu resource to a great extent and take.By utilizing graphics pipeline to carry out processing the treatment effect that can significantly improve the image that capture card is caught to view data, and further display quality.
In addition, also disclosed a kind of image processing apparatus based on Direct3D technology.
Refer to Fig. 2, for the present invention is based on the structural representation of the image processing apparatus of Direct3D technology.Based on an image processing apparatus for Direct3D technology, comprise creation module 201, view data sending module 202 and image data processing module 203;
The graphics pipeline of described creation module 201 for creating surface, the first texture, the second texture by Direct3D technology and bind with the second texture;
As one of them embodiment, described creation module can comprise the first creation module and the second creation module; Described first creation module is used for by D3D9 technology, creates described surface and described first texture; Described second creation module is used for by D3D9 technology, D3D10 technology or D3D11 technology, creates described second texture and the described graphics pipeline bound with the second texture.
Such as, the D3D9EX in Direct3D technology can be adopted to create surface, adopt the establishment of D3D10.1 technology to be used for the graphics pipeline processed view data.
View data in described surface, for view data is sent to described surface, is sent to described first texture by described view data sending module 202, and the view data in described first texture is sent to described second texture;
As one of them embodiment, described view data sending module can comprise image data acquisition module and steering order sending module; Described image data acquisition module is used for obtaining view data by Image Data Acquisition Card; Described steering order sending module is used for Image Data Acquisition Card sending controling instruction, and the view data of being caught is sent to described surface.
As one of them embodiment, described view data sending module can be used for by the shared mechanism in Direct3D technology, and the view data in described first texture is sent to described second texture.
Described image data processing module 203 is for processing view data by the described graphics pipeline bound with the second texture.
After view data arrives the second texture, just can send drafting instruction control graphics pipeline and start image data processing.Such as, image real time transfer is carried out by the graphics pipeline in D3D10.1.
Compared with general technology, the image processing apparatus that the present invention is based on Direct3D technology creates surface by Direct3D technology in video memory, utilizes the surface created directly to receive the view data got.By creating texture with the view data in receiving surface in video memory, and graphics pipeline is utilized to process image.Due in the transmitting procedure of view data without the need to through Installed System Memory, and walked around CPU, therefore greatly enhanced processing speed and the display efficiency of image.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (6)

1. based on an image processing method for Direct3D technology, it is characterized in that, comprise the following steps:
By the graphics pipeline that Direct3D technology creates surface, the first texture, the second texture and binds with the second texture; Wherein, adopt the D3D9EX in Direct3D technology to create described surface, adopt D3D10.1 technology to create described graphics pipeline;
View data is sent to described surface;
View data in described surface is sent to described first texture;
By the shared mechanism in Direct3D technology, the view data in described first texture is sent to described second texture; Wherein, realize sharing between D3D9EX and D3D10.1, utilize the surface sharing mechanism in Direct3D technology, by synchronous for the view data in described first texture and described second texture;
By the described graphics pipeline bound with the second texture, view data is processed.
2. the image processing method based on Direct3D technology according to claim 1, is characterized in that, described establishment surface, the first texture, the second texture and the step of graphics pipeline of binding with the second texture, comprise the following steps:
By D3D9 technology, create described surface and described first texture;
By D3D9 technology, D3D10 technology or D3D11 technology, create described second texture and the described graphics pipeline bound with the second texture.
3. the image processing method based on Direct3D technology according to claim 1, is characterized in that, described step view data being sent to described surface, comprises the following steps:
View data is obtained by Image Data Acquisition Card;
To Image Data Acquisition Card sending controling instruction, the view data of being caught is sent to described surface.
4. based on an image processing apparatus for Direct3D technology, it is characterized in that, comprise creation module, view data sending module and image data processing module;
Described creation module is used for the graphics pipeline being created surface, the first texture, the second texture by Direct3D technology and bound with the second texture; Wherein, adopt the D3D9EX in Direct3D technology to create described surface, adopt D3D10.1 technology to create described graphics pipeline;
Described view data sending module is used for view data to be sent to described surface, view data in described surface is sent to described first texture, and by the shared mechanism in Direct3D technology, the view data in described first texture is sent to described second texture; Wherein, realize sharing between D3D9EX and D3D10.1, utilize the surface sharing mechanism in Direct3D technology, by synchronous for the view data in described first texture and described second texture;
Described image data processing module is used for being processed view data by the described graphics pipeline bound with the second texture.
5. the image processing apparatus based on Direct3D technology according to claim 4, is characterized in that, described creation module comprises the first creation module and the second creation module;
Described first creation module is used for by D3D9 technology, creates described surface and described first texture;
Described second creation module is used for by D3D9 technology, D3D10 technology or D3D11 technology, creates described second texture and the described graphics pipeline bound with the second texture.
6. the image processing apparatus based on Direct3D technology according to claim 4, is characterized in that, described view data sending module comprises image data acquisition module and steering order sending module;
Described image data acquisition module is used for obtaining view data by Image Data Acquisition Card;
Described steering order sending module is used for Image Data Acquisition Card sending controling instruction, and the view data of being caught is sent to described surface.
CN201210206062.9A 2012-06-20 2012-06-20 Based on image processing method and the device thereof of Direct3D technology Expired - Fee Related CN102800122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210206062.9A CN102800122B (en) 2012-06-20 2012-06-20 Based on image processing method and the device thereof of Direct3D technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210206062.9A CN102800122B (en) 2012-06-20 2012-06-20 Based on image processing method and the device thereof of Direct3D technology

Publications (2)

Publication Number Publication Date
CN102800122A CN102800122A (en) 2012-11-28
CN102800122B true CN102800122B (en) 2015-09-02

Family

ID=47199219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210206062.9A Expired - Fee Related CN102800122B (en) 2012-06-20 2012-06-20 Based on image processing method and the device thereof of Direct3D technology

Country Status (1)

Country Link
CN (1) CN102800122B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164227B (en) * 2013-03-28 2016-06-22 北京视博云科技有限公司 The acquisition method of a kind of video in window and device
CN105302580B (en) * 2015-11-28 2019-04-23 武汉斗鱼网络科技有限公司 It is a kind of to pass through the shared method and system for realizing quick obtaining game image of GPU texture
CN105700887A (en) * 2016-01-13 2016-06-22 广州市赛普电子科技有限公司 Content sharing system and method based on Directxll viewport
CN107968923A (en) * 2017-11-30 2018-04-27 腾讯科技(深圳)有限公司 A kind of image processing method, device, computing device and storage medium
CN110489083B (en) * 2018-05-14 2022-06-21 武汉斗鱼网络科技有限公司 Texture sharing method, computer equipment and storage medium
CN113096233B (en) * 2021-06-11 2021-08-27 腾讯科技(深圳)有限公司 Image processing method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8497861B2 (en) * 2008-05-30 2013-07-30 Siemens Aktiengesellschaft Method for direct volumetric rendering of deformable bricked volumes
CN101650822B (en) * 2009-09-21 2012-05-16 潘建 Method and system for generating mutual information
CN101882077B (en) * 2010-05-19 2013-03-20 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic
CN101968776B (en) * 2010-10-19 2012-05-23 广东威创视讯科技股份有限公司 Method and system for acquiring and outputting images
CN102098451A (en) * 2010-12-15 2011-06-15 广东威创视讯科技股份有限公司 Image segmentation display method based on synthetic video

Also Published As

Publication number Publication date
CN102800122A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN102800122B (en) Based on image processing method and the device thereof of Direct3D technology
EP2570989A3 (en) Resolution and contrast enhancement with fusion in low-resolution IR images
EP2662838A3 (en) Apparatus and method for augmented reality
GB201120987D0 (en) A reconstruction system and method
EP2491989A3 (en) Information processing system, information processing method, information processing device and information processing program
EP2533146A3 (en) Apparatus and method for providing web browser interface using gesture in device
EP2725548A3 (en) Image processing apparatus and method
GB201312823D0 (en) Image transmission device, image transmission method, image transmission program, image recognition and authentication system, and image reception device
EP2677732A3 (en) Method, apparatus and computer program product for capturing video content
CN103037205A (en) Method and system of video transmission
EP2398247A3 (en) Method and apparatus for converting 2D image into 3D image
EP2364023A3 (en) Partial expansion method of encoded images and image processing apparatus
JP2012519924A5 (en)
CN102857703A (en) High-definition video character superimposing system and control method
CN208316891U (en) A kind of image processing system
EP2432236A3 (en) Information Processing Apparatus, Program and Information Processing Method
WO2012098117A3 (en) Image sensor, image capture system and method for capturing an image
CN103475877A (en) Video transmission method and system
EP2309446A3 (en) Image processing apparatus, control method and program
EP2431874A3 (en) Information processing system, information processing program and information processing method
WO2011103835A3 (en) User access control method, apparatus and system
EP2772891A3 (en) System and method for interacting with digital video recorders through social networking applications
CN103064935A (en) System and method for multimedia data parallel processing
EP2390782A3 (en) Method and apparatus for forming an image
CN102509315B (en) Stroke type symbol generator and writing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee after: VTRON GROUP Co.,Ltd.

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: VTRON TECHNOLOGIES Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150902