Method and Apparatus for Image Capture in Transmitter of Wireless Communications System

Abstract
A method for capturing an image in a transmitter of a wireless communications system, the method comprising controlling a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by a central processing unit (CPU) of the transmitter when a specified condition is detected; controlling the GPU to release a control for the frames to the CPU; encoding the frames in the buffer which is accessible by the CPU; and transmitting the encoded frames to a receiver of the wireless communications system; wherein the graphic card is connected to the transmitter.
Description
BACKGROUND

The present invention relates to a method and apparatus utilized in a wireless communications system, and more particularly, to a method and apparatus of capturing an image in a transmitter in a wireless communication system.


Wireless Fidelity (Wi-Fi) Display specification is a standard for a Wi-Fi technology and used in a latency-aware application for streaming in a short distance. In the Wi-Fi Display application, a connection is established between a source device and a sink device. The source device encodes video contents into encoded video bit streams and sends the encoded video bit streams to the sink device. The sink device further decodes the received video bit streams and recovers to the video contents. Therefore, a user can watch the video contents via a suitable display of the sink device for the user's purpose than a display of the source device. For example, a user shares a video from a notebook computer to a large screen television so that people can comfortably watch the video on the television together. In this scenario, the notebook computer is the source device and the television is the sink device (assuming the television supports Wi-Fi Display specifications), and the source device transmits video contents to the sink device for playback on a display of the sink device.


In order to encode video contents into encoded video bit streams and send the encoded video bit streams to the sink device, the source device should use an external graphic card to capture the video content and perform the relevant operations. Besides, the source device duplicates the encoded video bit streams to show the video contents in the source device and the sink device simultaneously.


Therefore, how to accurately perform the abovementioned operations in the source device and further speed up the display in the sink device is a goal in the industry.


SUMMARY

The present invention therefore provides a method and apparatus for capturing an image in a transmitter of a wireless communications system, to enhance display performance in a receiver of the wireless communications system.


A method for capturing an image in a transmitter of a wireless communications system is disclosed. The method comprises controlling a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by a central processing unit (CPU) of the transmitter when a specified condition is detected; controlling the GPU to release a control for the frames to the CPU; encoding the frames in the buffer which is accessible by the CPU; and transmitting the encoded frames to a receiver of the wireless communications system; wherein the graphic card is connected to the transmitter.


A communication apparatus for a wireless communications system is disclosed. The communication apparatus comprises a processing means; a storage unit; and a program code, stored in the storage unit, wherein the program code instructs the processing means to execute the following steps: controlling a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by the processing means when a specified condition is detected; controlling the GPU to release a control for the frames to the processing means; controlling an encoding unit to encode the frames in the buffer which is accessible by the processing means; and controlling a communication interfacing module to transmit the encoded frames to a receiver of the wireless communications system; wherein the graphic card is connected to the communication apparatus.


These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram of a wireless communications system according to an example of the present invention.



FIG. 2 is a flowchart of a process according to an example of the present invention.





DETAILED DESCRIPTION

Please refer to FIG. 1, which is a schematic diagram of a wireless communications system 10 according to an example of the present invention. The wireless communications system 10 comprises a first communication apparatus 100 and a second communication apparatus 102. The first communication apparatus 100 and the second communication apparatus 102 are simply utilized for illustrating the structure of the wireless communications system 10. Practically, the first communication apparatus 100 and the second communication apparatus 102 can communicate with each other by a wireless technique, such as Wireless Fidelity (Wi-Fi) or Bluetooth. For example, in a Wi-Fi system, the first communication apparatus 100 may be a source device and the second communication apparatus 102 maybe a sink device. Besides, the first communication apparatus 100 may include a processing means 104 such as a microprocessor or Application Specific Integrated Circuit (ASIC), a storage unit 106 and a communication interfacing module 108. The storage unit 106 may be any data storage device that can store a program code 110, accessed and executed by the processing means 104. Examples of the storage unit 106 include but are not limited to read-only memory (ROM), flash memory, random-access memory (RAM), CD-ROM/DVD-ROM, magnetic tape, hard disk and optical data storage device. The communication interfacing module 108 is preferably a transceiver and is used to transmit and receive signals (e.g., messages or packets) according to processing results of the processing means 104.


Please refer to FIG. 2, which is a flowchart of a process 20 according to an example of the present invention. The process 20 is utilized in the wireless communications system 10 shown in FIG. 1, for capturing an image. The process 20 can be utilized in the first communication apparatus 100, such as a source device, and may be compiled into the program code 110. The process 20 includes the following steps:


Step 200: Start.


Step 202: Control a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by the processing means 104 when a specified condition is detected.


Step 204: Control the GPU to release a control for the frames to the processing means 104.


Step 206: Control an encoding unit to encode the frames.


Step 208: Control the communication interfacing module 108 to transmit the encoded frames to the second communication apparatus 102.


Step 210: End.


According to the process 20, the first communication apparatus 100 controls the GPU to move the frames to the buffer which can be accessible by the processing means 104 and release the control for the frames to the processing means 104, so that the processing means 104 can take replace of the GPU to perform relevant operations for the frames in the application layer. Therefore, the speed of display operation in the second communication apparatus 102 is increased.


In Steps 202 and 204, the first communication apparatus 100 may use an application programming interface with a graphic programming language to access the GPU graphic card and control the GPU to move the frames to the buffer which can be accessible by the processing means 104 and release the control for the frames to the processing means 104, wherein the graphic card may be externally connected to the first communication apparatus 100. Besides, in Step 206, since the GPU releases a control for the frames to the processing means 104, the processing means 104 can control the following operations for the frames, such as encoding operation. In Step 208, the first communication apparatus 100 transmits the encoded frames to the second communication apparatus 102 via the communication interfacing module 108, so that the second communication apparatus 102 can display the image.


In brief, since the processing means 104 cannot directly access the graphic card frame buffer, the processing means 104 is allowed to handle the frames via the moving and releasing operations of the GPU. Therefore, the first communication apparatus 100 performs relevant operations for the frames in the application layer so as to speed up the display operations of the second communication apparatus 102.


Note that, the process 20 is an example of the present invention, and those skilled in the art should readily make combinations, modifications and/or alterations on the abovementioned description and examples. For example, the application programming interface may be any programming interface capable of accessing the graphic card, such as Microsoft DirectX 11 or its updated version. The graphic programming language may be high level shader language (HLSL). Besides, the encoding unit is included in the first communication apparatus 100 and may be Intel H.264 encoder. In addition, the specified condition may be that the image changes or the image displays over a specific time. The specific time may be a pre-defined value. In other words, when the image being shown in a display of the first communication apparatus 100 or the second communication apparatus 102 is changed or the displaying operation of the image lasts over the specific time, the processing means 104 starts to control the GPU to move the frames from the graphic card frame buffer to the buffer which is accessible by the processing means 104 and follows to handle the frames. In another aspect, the graphic card frame buffer and the buffer which is accessible by the processing means 104 may be two independent memories, i.e. the graphic card frame buffer is allocated in the graphic card and the buffer which is accessible by the processing means 104 is allocated in the first communication apparatus 100. The graphic card frame buffer and the buffer which is accessible by the processing means 104 may also share the same memory in the first communication apparatus 100, but not limited herein.


In the present invention, the first communication apparatus controls the GPU to move the frames to the buffer which can be accessible by the processing means and release the control for the frames to the processing means. In other words, the first communication apparatus is allowed to handle the frames in the application layer due to the moving and releasing operations of the GPU, so that the speed of display operation in the second communication apparatus is increased.


To sum up, the present invention provides a method and an apparatus for capturing image, to enhance the display performance.


Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Claims
  • 1. A method for capturing an image in a transmitter of a wireless communications system, the method comprising: controlling a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by a central processing unit (CPU) of the transmitter when a specified condition is detected;controlling the GPU to release a control for the frames to the CPU;encoding the frames in the buffer which is accessible by the CPU; andtransmitting the encoded frames to a receiver of the wireless communications system;wherein the graphic card is connected to the transmitter.
  • 2. The method of claim 1, wherein the specified condition is that the image changes or the image displays over a specific time.
  • 3. The method of claim 1, wherein the step of controlling the GPU of the graphic card to move the frames corresponding to the image from the graphic card frame buffer to the buffer which is accessible by the CPU of the transmitter comprises using an application programming interface with a graphic programming language to control and access the GPU.
  • 4. The method of claim 3, wherein the application programming interface is Microsoft DirectX 11 or updated version.
  • 5. The method of claim 3, wherein the graphic programming language is high level shader language (HLSL).
  • 6. A communication apparatus for a wireless communications system, comprising: a processing means;a storage unit; anda program code, stored in the storage unit, wherein the program code instructs the processing means to execute the following steps: controlling a graphic processing unit (GPU) of a graphic card to move frames corresponding to the image from a graphic card frame buffer to a buffer which is accessible by the processing means when a specified condition is detected;controlling the GPU to release a control for the frames to the processing means;controlling an encoding unit to encode the frames in the buffer which is accessible by the processing means; andcontrolling a communication interfacing module to transmit the encoded frames to a receiver of the wireless communications system;wherein the graphic card is connected to the communication apparatus.
  • 7. The communication apparatus of claim 6, wherein the specified condition is that the image changes or the image displays over a specific time.
  • 8. The communication apparatus of claim 6, wherein the step of controlling the GPU of the graphic card to move the frames corresponding to the image from the graphic card frame buffer to the buffer which is accessible by the processing means comprises using an application programming interface with a graphic programming language to control and access the GPU.
  • 9. The communication apparatus of claim 8, wherein the application programming interface is Microsoft DirectX 11 or updated version.
  • 10. The communication apparatus of claim 8, wherein the graphic programming language is high level shader language (HLSL).
CROSS REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 61/748,450, filed on Jan. 3, 2013, entitled “Miracast screen capture system and method, using High Level Shader Language and Direct X11”, the contents of which are incorporated herein in their entirety.

Provisional Applications (1)
Number Date Country
61748450 Jan 2013 US