[go: up one dir, main page]

TWI511078B - Image processing adjustment method and electronic device thereof - Google Patents

Image processing adjustment method and electronic device thereof Download PDF

Info

Publication number
TWI511078B
TWI511078B TW101120903A TW101120903A TWI511078B TW I511078 B TWI511078 B TW I511078B TW 101120903 A TW101120903 A TW 101120903A TW 101120903 A TW101120903 A TW 101120903A TW I511078 B TWI511078 B TW I511078B
Authority
TW
Taiwan
Prior art keywords
data
image
image data
electronic device
transmitted
Prior art date
Application number
TW101120903A
Other languages
Chinese (zh)
Other versions
TW201351341A (en
Inventor
jun liang Lu
Hsin Yu Chen
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW101120903A priority Critical patent/TWI511078B/en
Publication of TW201351341A publication Critical patent/TW201351341A/en
Application granted granted Critical
Publication of TWI511078B publication Critical patent/TWI511078B/en

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

影像處理的調整方法及其電子裝置Image processing adjustment method and electronic device thereof

本發明是有關於一種影像處理的調整系統設定值機制,且特別是有關於一種影像處理的調整方法及其電子裝置。The present invention relates to an adjustment system setting value mechanism for image processing, and more particularly to an image processing adjustment method and an electronic device thereof.

現有的顯示裝置,例如顯示器、電視、投影機等,大多是經由有線的傳輸線(例如,VGA、DVI、HDMI規格的傳輸線)來接受訊號裝置(例如,筆記型電腦或個人電腦)所發送出來的視頻訊號與音頻訊號。而近來逐漸發展的無線顯示方式(wireless display)則是將送視頻訊號或音頻訊號以無線通訊方式(例如,Wi-Fi訊號)傳送至顯示裝置,以避免使用傳輸線的距離限制與連接複雜度。或者,還利用普及率較高的通用串列匯流排(USB)傳輸線,來傳送視頻訊號或音頻訊號至顯示裝置。然而,由於無線訊號傳送的頻寬限制與USB連接的頻寬限制,必須壓縮待傳送的視頻訊號或音頻訊號。Existing display devices, such as displays, televisions, projectors, etc., are mostly transmitted via a wired transmission line (for example, a VGA, DVI, or HDMI transmission line) to a signal device (eg, a notebook or a personal computer). Video signal and audio signal. Recently, the wireless display method is to transmit a video signal or an audio signal to a display device by wireless communication (for example, a Wi-Fi signal) to avoid the distance limitation and connection complexity of the transmission line. Alternatively, a universal serial bus (USB) transmission line with a high penetration rate is used to transmit a video signal or an audio signal to the display device. However, due to the bandwidth limitation of the wireless signal transmission and the bandwidth limitation of the USB connection, the video signal or audio signal to be transmitted must be compressed.

圖1A繪示利用有線的傳輸線傳送顯示資料。如圖1A所示,電子裝置10包括一中央處理器(CPU)與一影像處理器(GPU)。電子裝置10利用VGA/DVI/HDMI規格的傳輸線,將影像資料傳送至顯示裝置11來輸出,顯示裝置11不需要解碼影像資料,即可直接輸出視頻訊號或音頻訊號。當電子裝置10播放影片時,通常利用GPU(例如設 置於顯示卡的GPU)做影像解碼,再透過VGA/DVI/HDMI規格的傳輸線,將影像資料傳送至顯示裝置11進行播放。當前的影像播放程式(video player)會直接使用GPU來做運算(例如,硬體加速解碼功能(hardware decode)),藉此降低CPU的負載,以增進播放影片的整體效能。FIG. 1A illustrates the transmission of display material using a wired transmission line. As shown in FIG. 1A, the electronic device 10 includes a central processing unit (CPU) and a video processing unit (GPU). The electronic device 10 uses the transmission line of the VGA/DVI/HDMI standard to transmit the image data to the display device 11 for output. The display device 11 can directly output the video signal or the audio signal without decoding the image data. When the electronic device 10 plays a movie, the GPU is usually utilized (for example, The GPU placed on the display card performs image decoding, and then transmits the image data to the display device 11 for playback through a transmission line of a VGA/DVI/HDMI specification. Current video players use GPUs directly (eg, hardware decode) to reduce CPU load and improve overall movie performance.

圖1B繪示利用無線傳輸方式或通用串列匯流排傳輸線傳送顯示資料。現有技術還可以藉由USB、無線傳輸(例如,Wi-Fi)或無線顯示(Wireless Display)技術來傳送影像資料。為了解決的影像播放程式相容性的問題,通常都會將作業系統預設的硬體加速(例如,Direct Draw與Direct 3D)關閉。關閉硬體加速的原因在於,某些影像播放程式會強制性優先使用GPU來做硬體加速解碼。USB/Wireless Display則會擷取作業系統中影像緩衝區(frame buffer)的影像資料來進行壓縮編碼(encode)處理,由CPU壓縮編碼後,透過USB/Wireless傳送到顯示裝置11去做解碼處理後再播放出來。FIG. 1B illustrates the transmission of display data by means of a wireless transmission method or a universal serial bus transmission line. The prior art can also transmit image data by USB, wireless transmission (eg, Wi-Fi) or wireless display (Wireless Display) technology. In order to solve the problem of video player compatibility, the operating system preset hardware acceleration (for example, Direct Draw and Direct 3D) is usually turned off. The reason for turning off hardware acceleration is that some video players will force the GPU to use hardware for accelerated decoding. The USB/Wireless Display captures the image data of the frame buffer in the operating system for compression processing. After being compressed and encoded by the CPU, it is transmitted to the display device 11 via USB/Wireless for decoding. Play it again.

由於,作業系統僅開放輸入/輸出端口(I/O port)給VGA/DVI/HDMI,但不開放給USB/Wireless Display。如果此時不把硬體加速關閉,便無法從作業系統的影像緩衝區中擷取出影像資料。因此,顯示裝置11播放出來的影片部份就會是黑畫面。播放影片時要用GPU作解碼以及後續重現(rendering),但是作業系統不開放USB/Wireless Display去存取影像緩衝區,因而造成黑畫面。然而,一致性關閉GPU的硬體加速又會導致CPU負載增加,並降低了影像 播放程式的整體效能,或導致整體作業系統的運行速度降低。如此,會產生畫面容易停頓或畫面不順暢的副作用。因此,如何即時判斷關閉硬體加速的時間點,但同時降低播放不順暢的問題,或在播放影片時開啟硬體加速並同時利用USB/無線傳輸來傳送影像資料時,減少黑畫面的情況確為目前重要的課題。Because the operating system only opens the I/O port to VGA/DVI/HDMI, it is not open to USB/Wireless Display. If the hardware is not turned off at this time, the image data cannot be extracted from the image buffer of the operating system. Therefore, the portion of the movie played by the display device 11 will be a black screen. The GPU is used for decoding and subsequent rendering when playing the movie, but the operating system does not open the USB/Wireless Display to access the image buffer, thus causing a black screen. However, consistently turning off the GPU's hardware acceleration will result in increased CPU load and reduced image quality. The overall performance of the player or the overall operating system is slower. In this way, there is a side effect that the screen is liable to pause or the screen is not smooth. Therefore, how to instantly determine the time point for turning off the hardware acceleration, but at the same time reduce the problem of unsmooth playback, or when the movie is turned on while the video is being accelerated and the image data is transmitted by USB/wireless transmission, the black frame is reduced. It is an important topic at present.

承上所述,本發明之示範實施例提供一種影像處理的調整方法及其電子裝置。根據目前電子裝置是否正在播放影片,或者根據能否擷取影像緩衝區的影像資料,來判斷要維持或關閉影像處理器執行的硬體加速功能。如此一來,可以改善在無線顯示中出現的黑畫面或顯示畫面不流暢的問題。As described above, an exemplary embodiment of the present invention provides an image processing adjustment method and an electronic device thereof. According to whether the electronic device is currently playing a movie, or according to whether the image data of the image buffer can be captured, it is determined whether the hardware acceleration function performed by the image processor is maintained or turned off. In this way, the problem that the black screen or the display screen appearing in the wireless display is not smooth can be improved.

根據本發明的一示範實施例,本發明提出一種影像處理的調整方法置。所述的方法適用於電子裝置傳送影像資料至一顯示裝置,並包括下列步驟。根據電子裝置目前是否正播放影片,來判斷是否關閉預設的硬體加速功能,其中此硬體加速功能係利用影像處理器執行。當電子裝置沒有播放影片時,就維持此硬體加速功能。當電子裝置正在播放影片時,偵測是否能擷取電子裝置的作業系統的影像緩衝區的影像資料。According to an exemplary embodiment of the present invention, the present invention provides an adjustment method for image processing. The method is suitable for an electronic device to transmit image data to a display device, and includes the following steps. The default hardware acceleration function is determined according to whether the electronic device is currently playing a movie, wherein the hardware acceleration function is performed by the image processor. This hardware acceleration function is maintained when the electronic device does not play a movie. When the electronic device is playing a movie, it detects whether the image data of the image buffer of the operating system of the electronic device can be captured.

在本發明的一示範實施例中,在偵測是否能擷取影像緩衝區的影像資料的步驟之後,所述的方法還包括:當無 法擷取影像緩衝區的影像資料時,則關閉硬體加速功能,並利用電子裝置的中央處理器解碼處理一已壓縮影像資料為一待傳送影像資料,並繼續利用此中央處理器壓縮編碼此待傳送影像資料為一顯示資料,並傳送此顯示資料至顯示裝置。In an exemplary embodiment of the present invention, after detecting the step of capturing image data of the image buffer, the method further includes: when no When the image data of the image buffer is captured, the hardware acceleration function is turned off, and the compressed image data is decoded by the central processing unit of the electronic device as a to-be-transmitted image data, and the central processing unit continues to compress and encode the image data. The image data to be transmitted is a display material, and the display data is transmitted to the display device.

在本發明的一示範實施例中,在偵測是否能擷取影像緩衝區的影像資料的步驟之後,所述的方法還包括:當可以擷取影像緩衝區的影像資料時,則維持硬體加速功能,並利用影像處理器解碼處理一已壓縮影像資料為一待傳送影像資料,並繼續利用電子裝置的一中央處理器,來壓縮編碼此待傳送影像資料為一顯示資料,並傳送此顯示資料至顯示裝置。In an exemplary embodiment of the present invention, after the step of detecting whether the image data of the image buffer can be captured, the method further includes: when the image data of the image buffer can be captured, maintaining the hardware Accelerating function, and using image processor to decode and process a compressed image data into a to-be-transmitted image data, and continue to use a central processing unit of the electronic device to compress and encode the image data to be transmitted as a display material, and transmit the display Data to the display device.

在本發明的一示範實施例中,所述的電子裝置藉由一無線通信方式或藉由一通用串列匯流排傳輸線傳送顯示資料至顯示裝置。In an exemplary embodiment of the invention, the electronic device transmits display data to the display device by a wireless communication method or by a universal serial bus transmission line.

根據本發明的一示範實施例,本發明提出一種影像處理的調整方法。所述的方法適用於一電子裝置傳送一影像資料至一顯示裝置,並包括下列步驟。根據電子裝置的作業系統的一影像緩衝區的資料,判斷是否關閉預設的硬體加速功能,其中此硬體加速功能係利用此電子裝置的一影像處理器執行。當關閉硬體加速功能時,利用此電子裝置的中央處理器解碼,來處理一已壓縮影像資料為一待傳送影像資料,並利用此中央處理器壓縮編碼此待傳送影像資料為一顯示資料。當維持硬體加速功能時,利用影像處理 器解碼來解碼處理已壓縮影像資料為待傳送影像資料,或直接擷取此影像緩衝區的資料。According to an exemplary embodiment of the present invention, the present invention provides an adjustment method of image processing. The method is suitable for an electronic device to transmit an image data to a display device, and includes the following steps. Determining whether to turn off the preset hardware acceleration function according to the data of an image buffer of the operating system of the electronic device, wherein the hardware acceleration function is performed by an image processor of the electronic device. When the hardware acceleration function is turned off, the central processing unit of the electronic device decodes to process a compressed image data into a to-be-transmitted image data, and the central processing unit compresses and encodes the to-be-transmitted image data into a display material. Use image processing when maintaining hardware acceleration The decoder decodes and processes the compressed image data into image data to be transmitted, or directly captures the data of the image buffer.

在本發明的一示範實施例中,所述根據影像緩衝區的資料,判斷是否關閉預設的硬體加速功能的步驟包括:擷取並檢測此影像緩衝區的資料是否為一無效資料;當確認此影像緩衝區的資料為無效資料時,則關閉硬體加速功能;以及當確認此影像緩衝區的資料不是無效資料時,則維持硬體加速功能。In an exemplary embodiment of the present invention, the step of determining whether to turn off the preset hardware acceleration function according to the data of the image buffer includes: capturing and detecting whether the data of the image buffer is an invalid data; When the data in the image buffer is confirmed to be invalid, the hardware acceleration function is turned off; and when the data in the image buffer is confirmed to be not invalid, the hardware acceleration function is maintained.

在本發明的一示範實施例中,所述的方法還包括:此電子裝置藉由一無線通信方式或藉由一通用串列匯流排傳輸線連接顯示裝置;以及藉由此無線通信方式或藉由此通用串列匯流排傳輸線傳送此顯示資料至此顯示裝置。In an exemplary embodiment of the present invention, the method further includes: the electronic device is connected to the display device by a wireless communication method or by a universal serial bus transmission line; and by using the wireless communication method or by This universal serial bus transmission line transmits this display data to this display device.

在本發明的一示範實施例中,利用影像處理器解碼處理已壓縮影像資料為待傳送影像資料,或直接擷取影像緩衝區的資料的步驟包括:檢測電子裝置目前是否正播放影片;當電子裝置目前沒有播放影片時,僅擷取影像緩衝區的資料為待傳送影像資料;以及當電子裝置目前正播放影片時,利用影像處理器解碼處理此已壓縮影像資料為待傳送影像資料。In an exemplary embodiment of the present invention, the step of decoding the processed image data into the image data to be transmitted by using the image processor, or directly capturing the data of the image buffer includes: detecting whether the electronic device is currently playing the movie; When the device is not playing a video, only the image buffer data is captured as the image data to be transmitted; and when the electronic device is currently playing the video, the image processor is used to decode and process the compressed image data as the image data to be transmitted.

在本發明的一示範實施例中,在利用所述的影像處理器解碼處理已壓縮影像資料為待傳送影像資料,或直接擷取影像緩衝區的資料的步驟之後,所述的方法還包括:利用中央處理器壓縮編碼此待傳送影像資料為一顯示資料。In an exemplary embodiment of the present invention, after the step of decoding the processed image data into the image data to be transmitted by using the image processor, or directly capturing the data of the image buffer, the method further includes: The image data to be transmitted is compression-encoded by the central processing unit into a display material.

在本發明的一示範實施例中,在壓縮編碼所述的待傳 送影像資料為顯示資料之後,所述的方法還包括:藉由一通用串列匯流排傳輸線或一無線通信方式傳送此顯示資料至顯示裝置。In an exemplary embodiment of the invention, the encoding is to be transmitted in compression encoding After the image data is sent to display the data, the method further includes: transmitting the display data to the display device by using a universal serial bus transmission line or a wireless communication manner.

根據本發明的一示範實施例,本發明提出一種電子裝置,適用於傳送影像資料至一顯示裝置。此電子裝置包括影像處理器、作業系統、中央處理器與控制單元。影像處理器,用來執行預設的硬體加速功能,並解碼一已壓縮影像資料。作業系統連接至影像處理器,其包括一影像緩衝區,用來暫存影像資料。中央處理器連接至作業系統,用來當硬體加速功能被關閉時,解碼一已壓縮影像資料為一待傳送影像資料。控制單元連接至中央處理器,用來根據此電子裝置目前是否正播放影片,來判斷是否關閉硬體加速功能。另外,當此電子裝置沒有播放影片時,控制單元就不關閉硬體加速功能。此外,當此電子裝置正在播放影片時,控制單元進一步偵測是否能擷取影像緩衝區的影像資料。According to an exemplary embodiment of the invention, the invention provides an electronic device adapted to transmit image data to a display device. The electronic device includes an image processor, an operating system, a central processing unit, and a control unit. An image processor for performing a preset hardware acceleration function and decoding a compressed image data. The operating system is coupled to the image processor and includes an image buffer for temporarily storing image data. The central processing unit is coupled to the operating system for decoding a compressed image data as a to-be-transmitted image data when the hardware acceleration function is turned off. The control unit is connected to the central processing unit for determining whether to turn off the hardware acceleration function according to whether the electronic device is currently playing a movie. In addition, when the electronic device does not play a movie, the control unit does not turn off the hardware acceleration function. In addition, when the electronic device is playing a movie, the control unit further detects whether the image data of the image buffer can be captured.

根據本發明的一示範實施例,本發明提出一種電子裝置,適用於傳送影像資料至一顯示裝置。此電子裝置包括影像處理器、作業系統、中央處理器與控制單元。影像處理器用來執行預設的硬體加速功能,並解碼一已壓縮影像資料。作業系統連接至影像處理器,其包括一影像緩衝區,用來暫存影像資料。中央處理器連接至作業系統,用來當硬體加速功能被關閉時,解碼一已壓縮影像資料為一待傳送影像資料。控制單元連接至中央處理器,用來根據影像 緩衝區的資料,判斷是否關閉硬體加速功能。According to an exemplary embodiment of the invention, the invention provides an electronic device adapted to transmit image data to a display device. The electronic device includes an image processor, an operating system, a central processing unit, and a control unit. The image processor is used to perform a preset hardware acceleration function and decode a compressed image data. The operating system is coupled to the image processor and includes an image buffer for temporarily storing image data. The central processing unit is coupled to the operating system for decoding a compressed image data as a to-be-transmitted image data when the hardware acceleration function is turned off. The control unit is connected to the central processor for viewing images The data in the buffer determines whether the hardware acceleration function is turned off.

根據本發明的示範實施例,本發明提出影像處理的調整方法及其電子裝置。藉由判斷目前是否正在播放影片,適應性維持或關閉利用影像處理器執行的硬體加速功能,以及根據能否擷取影像緩衝區的影像資料,來進一步判斷是否利用中央處理器來解碼影片的來源影像資料。如此一來,可以適應性地改善在顯示裝置出現黑畫面或顯示畫面容易停頓不流暢的問題。According to an exemplary embodiment of the present invention, the present invention proposes an adjustment method of image processing and an electronic device thereof. By judging whether the video is currently being played, adaptively maintaining or turning off the hardware acceleration function performed by the image processor, and further determining whether to use the central processing unit to decode the video according to whether the image data of the image buffer can be captured. Source image data. In this way, it is possible to adaptively improve the problem that a black screen appears on the display device or the display screen is easily stopped and not smooth.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

本發明提供一種影像處理的調整方法及其電子裝置。所提出的方法,主要在傳送顯示資料給顯示裝置時,適應性調整系統設定值,來減少顯示畫面為黑畫面或畫面不順暢的問題。藉由即時偵測並判斷一電子裝置有播放影片時,如果此影片播放程式會使用「硬體加速功能」而導致無法從作業系統的影像緩衝區中擷取到影像資料,才把「硬體加速功能」關閉。同時僅擷取在作業系統的影像緩衝區中,正在播放的影像資料,並利用CPU做壓縮編碼,再透過USB/無線傳輸(Wireless display)傳送到顯示裝置進行後續解碼與播放影像資料。The invention provides an image processing adjustment method and an electronic device thereof. The proposed method mainly adjusts the system setting value when transmitting the display material to the display device to reduce the problem that the display screen is black or the screen is not smooth. By instantly detecting and judging that an electronic device has a video playing, if the video player uses the "hard acceleration function" and the image data cannot be retrieved from the image buffer of the operating system, "hardware" The acceleration function is turned off. At the same time, only the image data being played in the image buffer of the operating system is captured, and the CPU is used for compression coding, and then transmitted to the display device via USB/Wireless display for subsequent decoding and playback of the image data.

具體而言,本發明改善的地方在於:即時偵測並動態調整GPU的「硬體加速功能」的設定,改善同時進行 USB/Wireless display的傳輸與影片播放程式的整體效能,且改善影片播放程式相同性問題(此即,播放影片時會出現黑畫面)。當電子裝置沒有播放影片時,就不關閉GPU的硬體加速。當電子裝置有播放播放影片時,則進一步偵測是否能擷取作業系統的影像緩衝區的影像資料。Specifically, the improvement of the present invention is to instantly detect and dynamically adjust the setting of the "hard acceleration function" of the GPU, and improve the simultaneous operation. The overall performance of the USB/Wireless display and the video player, and improve the homogeneity of the video player (this is a black screen when playing a movie). When the electronic device does not play a movie, the hardware acceleration of the GPU is not turned off. When the electronic device plays the playing video, it further detects whether the image data of the image buffer of the operating system can be captured.

當電子裝置的CPU無法擷取作業系統的影像緩衝區的影像資料時,則關閉「硬體加速功能」,並改為利用CPU只對已壓縮的影像資料做影片的解碼處理,並將解碼後的影像資料壓縮編碼,以利於USB/Wireless display的傳輸。當電子裝置的CPU可以擷取到作業系統的影像緩衝區的影像資料時,則不關閉「硬體加速功能」,先利用GPU做影片的解碼,再利用CPU對影像資料壓縮編碼,以傳送到顯示裝置進行後續解碼與播放影像。When the CPU of the electronic device cannot capture the image data of the image buffer of the operating system, the "hard acceleration function" is turned off, and the CPU only uses the CPU to decode the compressed image data, and decodes the video. The image data is compressed and encoded to facilitate the transmission of USB/Wireless display. When the CPU of the electronic device can capture the image data of the image buffer of the operating system, the "hard acceleration function" is not turned off, and the GPU is used to decode the video, and then the CPU compresses and encodes the image data for transmission to the image. The display device performs subsequent decoding and playback of the image.

本發明的創新概念在於,當利用USB/Wireless display傳輸顯示資料給顯示裝置時,不用一致性地將「硬體加速功能」,而造成整體電子裝置的效能降低,而是藉由偵測是否能從作業系統的影像緩衝區中擷取到資料,來判斷是否關閉硬體加速。當關閉硬體加速且同時播放影片的情況下,只會擷取作業系統的影像緩衝區中的影像資料。如此一來,可降低CPU在壓縮編碼時的負載,也同時讓顯示端在輸出時得到全畫面的影像圖框(video frame)。The innovative concept of the present invention is that when the display device is transmitted to the display device by using the USB/Wireless display, the "hard acceleration function" is not consistently performed, thereby reducing the performance of the overall electronic device, but by detecting whether it can Data is retrieved from the image buffer of the operating system to determine whether to turn off hardware acceleration. When the hardware is turned off and the movie is played at the same time, only the image data in the image buffer of the operating system is captured. In this way, the load of the CPU during compression encoding can be reduced, and at the same time, the display end can obtain a full-frame video frame at the time of output.

圖2是根據本發明的一示範實施例所繪示一種電子裝置的功能方塊圖。請參照圖1A,所提出的電子裝置20適用於傳送影像資料至一顯示裝置,而電子裝置10可為一無 線顯示系統的傳送端裝置,例如圖1B中的電子裝置10。此電子裝置20包括:一作業系統21、一中央處理器(CPU)22、一影像處理器(GPU)23、一記憶體24、一有線連接端口(或稱為有線連接埠)25、一無線通信模組26與一控制單元27。所述的電子裝置10例如為個人電腦、筆記型電腦、平板電腦、智慧型行動電話。另外,無線通信模組26可支援例如無線區域網路相容標準(Wi-Fi)的無線傳輸技術,而有線連接端口可以為USB端口。所述顯示裝置,例如為圖1B中的顯示裝置11可以為一投影裝置,而電子裝置20可以藉由USB或Wi-Fi來連接至顯示裝置11。2 is a functional block diagram of an electronic device according to an exemplary embodiment of the invention. Referring to FIG. 1A, the proposed electronic device 20 is adapted to transmit image data to a display device, and the electronic device 10 can be The line end of the line display system, such as the electronic device 10 of Figure 1B. The electronic device 20 includes an operating system 21, a central processing unit (CPU) 22, a video processing unit (GPU) 23, a memory 24, a wired connection port (or wired connection port) 25, and a wireless device. The communication module 26 and a control unit 27. The electronic device 10 is, for example, a personal computer, a notebook computer, a tablet computer, or a smart mobile phone. In addition, the wireless communication module 26 can support wireless transmission technology such as Wireless Local Area Network Compatible Standard (Wi-Fi), and the wired connection port can be a USB port. The display device, for example, the display device 11 in FIG. 1B may be a projection device, and the electronic device 20 may be connected to the display device 11 by USB or Wi-Fi.

請參照圖2,影像處理器23用來執行預設的硬體加速功能,並解碼一已壓縮影像資料為待顯示影像資料或一待傳送影像資料。作業系統21連接至影像處理器23,其包括一影像緩衝區210,用來暫存影像資料。作業系統21還可用來執行一應用程式240,例如:多媒體播放程式。中央處理器22連接至作業系統21、影像緩衝區210與影像處理器23,用來當影像處理器23的硬體加速功能(對應於已壓縮影像資料的解碼處理流程)被關閉時,解碼一已壓縮影像資料為一待傳送影像資料。Referring to FIG. 2, the image processor 23 is configured to perform a preset hardware acceleration function and decode a compressed image data as image data to be displayed or image data to be transmitted. The operating system 21 is coupled to the image processor 23 and includes an image buffer 210 for temporarily storing image data. The operating system 21 can also be used to execute an application 240, such as a multimedia player. The central processing unit 22 is connected to the operating system 21, the image buffer 210 and the image processor 23 for decoding when the hardware acceleration function of the image processor 23 (corresponding to the decoding processing flow of the compressed image data) is turned off. The compressed image data is a piece of image data to be transmitted.

控制單元27連接至中央處理器22,並藉由中央處理器22連接至作業系統21、影像緩衝區210與影像處理器23,用來根據此電子裝置20目前是否正播放影片(此即作業系統21是否執行一多媒體播放程式來播放影片),來判斷是否要關閉硬體加速功能。另外,當此電子裝置20沒有 播放影片時,控制單元27就不關閉硬體加速功能。此外,當此電子裝置20正在播放影片時,控制單元27進一步偵測是否能擷取影像緩衝區210的影像資料。The control unit 27 is connected to the central processing unit 22, and is connected to the operating system 21, the image buffer 210 and the image processor 23 by the central processing unit 22 for determining whether the electronic device 20 is currently playing a movie (this is the operating system). 21 Whether to execute a multimedia player to play the movie) to determine whether to turn off the hardware acceleration function. In addition, when the electronic device 20 does not have When the movie is played, the control unit 27 does not turn off the hardware acceleration function. In addition, when the electronic device 20 is playing a movie, the control unit 27 further detects whether the image data of the image buffer 210 can be captured.

在其他實施例中,中央處理器22還可用來當影像處理器23的硬體加速功能被關閉時,解碼已壓縮影像資料為一待傳送影像資料。控制單元27還可用來根據影像緩衝區210的資料,判斷是否關閉硬體加速功能。In other embodiments, the central processing unit 22 can also be used to decode the compressed image data into a to-be-transmitted image data when the hardware acceleration function of the image processor 23 is turned off. The control unit 27 can also be used to determine whether to turn off the hardware acceleration function based on the data of the image buffer 210.

在本發明中,中央處理器22可以為一處理器模組,其包括多個處理器核心單元。同理,影像處理器23也可為一影像處理器模組,其包括多個影像處理器核心單元。另外,電子裝置20還可以包括一輸入單元(未繪示)、一輸出單元(未繪示),且可以包括其他元件,用來協助上述揭露的各元件執行其功能。中央處理器22還可以執行作業系統21與應用程式240。另外,在其他實施例中,控制單元27可以與作業系統21整合為一體,並協調與控制前述中央處理器22、影像處理器23、記憶體24、有線連接端口25與無線通信模組26。In the present invention, central processor 22 can be a processor module that includes a plurality of processor core units. Similarly, the image processor 23 can also be an image processor module including a plurality of image processor core units. In addition, the electronic device 20 may further include an input unit (not shown), an output unit (not shown), and other components may be included to assist the components disclosed above to perform their functions. The central processing unit 22 can also execute the operating system 21 and the application program 240. In addition, in other embodiments, the control unit 27 can be integrated with the operating system 21, and coordinate and control the central processing unit 22, the image processor 23, the memory 24, the wired connection port 25, and the wireless communication module 26.

在本發明的一實施例中,提出一種影像處理的調整方法,其包括下列主要步驟。請參照圖2,控制單元27根據電子裝置20目前是否正在播放影片,來判斷是否關閉預設的影像處理器23的硬體加速功能。所述的硬體加速功能在預設模式下為啟動的。當控制單元27確認電子裝置20沒有播放影片時,就維持此硬體加速功能。當控制單元27確認電子裝置20正在播放影片時,並進一步偵測是否能擷 取作業系統21的影像緩衝區210的影像資料。In an embodiment of the invention, an image processing adjustment method is proposed, which includes the following main steps. Referring to FIG. 2, the control unit 27 determines whether to turn off the hardware acceleration function of the preset image processor 23 according to whether the electronic device 20 is currently playing a movie. The hardware acceleration function is activated in the preset mode. When the control unit 27 confirms that the electronic device 20 is not playing a movie, the hardware acceleration function is maintained. When the control unit 27 confirms that the electronic device 20 is playing a movie, it further detects whether it can The image data of the image buffer 210 of the operating system 21 is taken.

更清楚地說明,在本實施例中,在控制單元27偵測是否能擷取影像緩衝區210的影像資料的步驟之後,所提出的影像處理的調整方法還包括:當無法擷取影像緩衝區210的影像資料時,則關閉硬體加速功能,並利用中央處理器22解碼處理一已壓縮影像資料為一待傳送影像資料,並繼續利用此中央處理器22來壓縮編碼此待傳送影像資料為一顯示資料,並傳送此顯示資料至顯示裝置11。More specifically, in the embodiment, after the step of the control unit 27 detecting whether the image data of the image buffer 210 can be captured, the method for adjusting the image processing further includes: when the image buffer cannot be captured When the image data of 210 is turned off, the hardware acceleration function is turned off, and the compressed image data is decoded by the central processing unit 22 into a to-be-transmitted image data, and the central processing unit 22 is continuously used to compress and encode the image data to be transmitted. The data is displayed and transmitted to the display device 11.

更清楚地說明,在本實施例中,在控制單元27偵測是否能擷取影像緩衝區210的影像資料的步驟之後,所提出的影像處理的調整方法還包括:當可以擷取影像緩衝區210的影像資料時,則維持預設的硬體加速功能,並利用影像處理器23來解碼處理一已壓縮影像資料為一待傳送影像資料,並繼續利用中央處理器22來壓縮編碼此待傳送影像資料為一顯示資料,並傳送此顯示資料至顯示裝置11。另外,電子裝置20藉由一無線通信方式或藉由一USB傳輸線傳送顯示資料至顯示裝置11。More specifically, in the embodiment, after the step of the control unit 27 detecting whether the image data of the image buffer 210 can be captured, the method for adjusting the image processing further includes: when the image buffer can be captured When the image data of 210 is maintained, the preset hardware acceleration function is maintained, and the image processor 23 is used to decode and process a compressed image data into a to-be-transmitted image data, and continues to use the central processing unit 22 to compress and encode the to-be-transmitted image. The image data is a display material, and the display data is transmitted to the display device 11. In addition, the electronic device 20 transmits the display material to the display device 11 by a wireless communication method or by a USB transmission line.

圖3是根據本發明的一示範實施例所繪示一種影像處理的調整方法的流程圖。圖3所繪示的影像處理的調整方法更清楚地介紹上述的影像處理的調整方法,並適用於電子裝置20傳送影像資料至一顯示裝置,且包括下列步驟。請參照圖3,所提出的影像處理的調整方法起始於步驟S302。在此步驟S302中,藉由一無線通信方式或藉由一有線連接方式傳送顯示資料至顯示裝置。在步驟S304中, 檢查電子裝置目前是否正在播放影片,其中,若檢查結果為是,則在步驟S304之後,繼續進行步驟S306;若檢查結果為否,則在步驟S304之後,繼續進行步驟S308。FIG. 3 is a flow chart of a method for adjusting image processing according to an exemplary embodiment of the invention. The image processing adjustment method illustrated in FIG. 3 more clearly introduces the above-described image processing adjustment method, and is applicable to the electronic device 20 for transmitting image data to a display device, and includes the following steps. Referring to FIG. 3, the proposed image processing adjustment method starts in step S302. In this step S302, the display data is transmitted to the display device by a wireless communication method or by a wired connection. In step S304, It is checked whether the electronic device is currently playing a movie. If the result of the check is yes, then step S306 is continued after step S304; if the result of the check is no, then step S308 is continued after step S304.

請繼續參照圖3,在步驟S306中,進一步檢測是否能擷取影像緩衝區的影像資料,其中,若檢測結果為是,則在步驟S306之後,繼續進行步驟S310;若檢測結果為否,則在步驟S306之後,繼續進行步驟S312。在步驟308中,維持預設的硬體加速功能。在步驟S308之後,繼續進行步驟S318。在步驟310中,維持預設的硬體加速功能。在步驟S312中,關閉預設的硬體加速功能。With reference to FIG. 3, in step S306, it is further detected whether the image data of the image buffer can be captured. If the detection result is yes, then after step S306, proceed to step S310; if the detection result is no, then After step S306, step S312 is continued. In step 308, the preset hardware acceleration function is maintained. After step S308, step S318 is continued. In step 310, the preset hardware acceleration function is maintained. In step S312, the preset hardware acceleration function is turned off.

在步驟S314中,僅利用影像處理器模組來解碼影像資料(或作一已壓縮影像資料),並進一步利用中央處理器來壓縮編碼此已壓縮影像資料為一顯示資料。在步驟S316中,由於硬體加速功能已關閉,改為僅利用中央處理器來解碼一已壓縮影像資料,並利用中央處理器來壓縮編碼此已壓縮影像資料為顯示資料。在步驟S308、步驟S310與步驟S314之後,繼續進行步驟S318。在步驟S318中,藉由一無線通信方式或藉由一有線連接方式傳送顯示資料至顯示裝置,以作後續的解碼處理與後續的顯示影像。在步驟S318之後,所提出的影像處理的調整方法到此結束。In step S314, only the image processor module is used to decode the image data (or a compressed image data), and the central processor is further used to compress and encode the compressed image data into a display material. In step S316, since the hardware acceleration function is turned off, only the central processing unit is used to decode a compressed image data, and the central processing unit is used to compress and encode the compressed image data into display data. After step S308, step S310, and step S314, step S318 is continued. In step S318, the display data is transmitted to the display device by a wireless communication method or by a wired connection method for subsequent decoding processing and subsequent display images. After step S318, the proposed adjustment method of the image processing ends here.

根據本發明的另一個實施例,提出一種影像處理的調整方法,其包括下列主要步驟。請參照圖2,控制單元27根據電子裝置20的作業系統21的影像緩衝區210的資料,判斷是否關閉預設的影像處理器23的硬體加速功能。 當控制單元27確認硬體加速功能已關閉時,控制單元27利用此電子裝置20的中央處理器22來解碼處理一已壓縮影像資料為一待傳送影像資料,並利用此中央處理器22來壓縮編碼此待傳送影像資料為一顯示資料。當控制單元27確認要維持硬體加速功能時,控制單元27利用影像處理器23來解碼處理此已壓縮影像資料為待傳送影像資料,或直接地擷取此影像緩衝區210的資料。According to another embodiment of the present invention, an adjustment method of image processing is proposed, which includes the following main steps. Referring to FIG. 2, the control unit 27 determines whether to turn off the hardware acceleration function of the preset image processor 23 according to the data of the image buffer 210 of the operating system 21 of the electronic device 20. When the control unit 27 confirms that the hardware acceleration function is turned off, the control unit 27 uses the central processing unit 22 of the electronic device 20 to decode and process a compressed image data into a to-be-transmitted image data, and compresses by using the central processing unit 22 The image data to be transmitted is encoded as a display material. When the control unit 27 confirms that the hardware acceleration function is to be maintained, the control unit 27 uses the image processor 23 to decode and process the compressed image data as the image data to be transmitted, or directly capture the data of the image buffer 210.

更清楚地說明,在本實施例中,前述控制單元27根據影像緩衝區210的資料,判斷是否關閉預設的硬體加速功能的步驟包括:控制單元27擷取並檢測此影像緩衝區210的資料是否為一無效資料(NULL);當控制單元27確認此影像緩衝區210的資料是無效資料時,則關閉硬體加速功能,其中影像緩衝區210的資料為無效資料時,此情況代表中央處理器22無法存取此影像緩衝區210的資料;以及當控制單元27確認此影像緩衝區210的資料不是無效資料時,則控制單元27維持預設的硬體加速功能。More specifically, in the embodiment, the step of determining, by the control unit 27, whether to turn off the preset hardware acceleration function according to the data of the image buffer 210 includes: the control unit 27 captures and detects the image buffer 210. Whether the data is an invalid data (NULL); when the control unit 27 confirms that the data of the image buffer 210 is invalid data, the hardware acceleration function is turned off, and when the data of the image buffer 210 is invalid data, the situation represents the central The processor 22 cannot access the data of the image buffer 210; and when the control unit 27 confirms that the data of the image buffer 210 is not invalid, the control unit 27 maintains the preset hardware acceleration function.

更清楚地說明,在本實施例中,所提供的影像處理的調整方法還包括:此電子裝置20藉由一無線通信方式或藉由一通用串列匯流排傳輸線連接顯示裝置11;以及藉由此無線通信方式或藉由此通用串列匯流排傳輸線,來傳送此顯示資料至顯示裝置11。More specifically, in the embodiment, the image processing adjustment method further includes: the electronic device 20 is connected to the display device 11 by a wireless communication method or by a universal serial bus transmission line; The wireless communication method or the universal serial bus transmission line transmits the display material to the display device 11.

更清楚地說明,在本實施例中,前述控制單元27僅利用影像處理器23解碼處理一已壓縮影像資料為待傳送影像資料,或直接地擷取影像緩衝區210的資料的步驟包 括:控制單元27檢測電子裝置10目前是否正在播放影片;當電子裝置10目前沒有播放影片時,控制單元27僅擷取影像緩衝區210的資料為待傳送影像資料;以及當電子裝置10目前正在播放影片時,控制單元27僅利用影像處理器來解碼處理一已壓縮影像資料為待傳送影像資料。More specifically, in the embodiment, the foregoing control unit 27 uses only the image processor 23 to decode and process a compressed image data as the image data to be transmitted, or directly captures the data of the image buffer 210. The control unit 27 detects whether the electronic device 10 is currently playing a movie; when the electronic device 10 does not currently play the movie, the control unit 27 only captures the data of the image buffer 210 as the image data to be transmitted; and when the electronic device 10 is currently When the movie is played, the control unit 27 uses only the image processor to decode and process a compressed image data as the image data to be transmitted.

更清楚地說明,在本實施例中,在前述利用所述的影像處理器解碼處理一已壓縮影像資料為待傳送影像資料或直接地擷取影像緩衝區的資料的步驟之後,所提供的影像處理的調整方法還包括:控制單元27利用中央處理器22來壓縮編碼此待傳送影像資料為一顯示資料。另外,中央處理器22藉由一通用串列匯流排傳輸線或一無線通信方式傳送此顯示資料至顯示裝置11。More clearly, in the embodiment, after the step of decoding and processing a compressed image data by using the image processor as the image data to be transmitted or directly capturing data of the image buffer, the provided image is provided. The adjustment method of the processing further includes: the control unit 27 uses the central processing unit 22 to compress and encode the image data to be transmitted into a display material. In addition, the central processing unit 22 transmits the display data to the display device 11 by means of a universal serial bus transmission line or a wireless communication method.

圖4是根據本發明的一示範實施例所繪示另一種影像處理的調整方法的流程圖。圖4所繪示的影像處理的調整方法更清楚地介紹上述的影像處理的調整方法,並適用於電子裝置20傳送影像資料至一顯示裝置,且包括下列步驟。請參照圖3,所提出的影像處理的調整方法起始於步驟S410。在此步驟S410中,藉由一無線通信方式或藉由一有線連接方式傳送顯示資料至顯示裝置。在步驟S422中,擷取影像緩衝區的資料,並檢測此影像緩衝區的資料是否為一無效資料,其中,若檢測結果為是,則在步驟S422之後,繼續進行步驟S424;若檢測結果為否,則在步驟S422之後,繼續進行步驟S426。FIG. 4 is a flow chart showing another method of adjusting image processing according to an exemplary embodiment of the present invention. The image processing adjustment method illustrated in FIG. 4 more clearly introduces the above-described image processing adjustment method, and is applicable to the electronic device 20 for transmitting image data to a display device, and includes the following steps. Referring to FIG. 3, the proposed image processing adjustment method starts in step S410. In this step S410, the display data is transmitted to the display device by a wireless communication method or by a wired connection. In step S422, the data of the image buffer is captured, and the data of the image buffer is detected as an invalid data. If the detection result is yes, after step S422, step S424 is continued; if the detection result is Otherwise, after step S422, step S426 is continued.

請繼續參照圖4,在步驟S424中,關閉預設的硬體加 速功能。在步驟S432中,利用中央處理器來壓縮編碼一影像資料(或一已壓縮影像資料)為一待傳送影像資料。在步驟S434中,僅從影像緩衝區擷取影像資料(此為待傳送影像資料)。Please continue to refer to FIG. 4, in step S424, the preset hardware plus is turned off. Speed function. In step S432, the central processing unit is used to compress and encode an image data (or a compressed image data) into a to-be-transmitted image data. In step S434, only the image data is captured from the image buffer (this is the image data to be transmitted).

在步驟S426中,維持預設的硬體加速功能。在步驟S442中,進一步檢測電子裝置目前是否正在播放影片,其中,若檢測結果為是,則在步驟S442之後,繼續進行步驟S446;若檢測結果為否,則在步驟S442之後,繼續進行步驟S448。在步驟S446中,僅利用影像處理器來解碼影像資料(或已壓縮影像資料)為待傳送影像資料。在步驟S448中,直接擷取影像緩衝區的影像資料為待傳送影像資料。另外,在步驟S446與步驟S448之後,皆繼續進行步驟S436。在步驟S436中,利用中央處理器來壓縮編碼此待傳送影像資料為顯示資料。In step S426, the preset hardware acceleration function is maintained. In step S442, it is further detected whether the electronic device is currently playing a movie. If the detection result is yes, after step S442, step S446 is continued; if the detection result is no, then after step S442, step S448 is continued. . In step S446, only the image processor is used to decode the image data (or the compressed image data) as the image data to be transmitted. In step S448, the image data of the image buffer is directly captured as the image data to be transmitted. In addition, after step S446 and step S448, step S436 is continued. In step S436, the central processing unit is used to compress and encode the image data to be transmitted as display data.

在步驟S452中,藉由一無線通信方式或藉由一有線連接方式傳送顯示資料至顯示裝置。在步驟S454中,顯示裝置進行後續的解碼處理與後續的顯示影像,以顯示影像。在步驟S454之後,所提出的影像處理的調整方法到此結束。In step S452, the display data is transmitted to the display device by a wireless communication method or by a wired connection. In step S454, the display device performs subsequent decoding processing and subsequent display of the image to display the image. After step S454, the proposed adjustment method of the image processing ends here.

綜上所述,根據上述的示範實施例,本發明提供影像處理的調整方法及其電子裝置。藉由判斷目前是否正在播放影片,適應性維持或關閉利用影像處理器執行的硬體加速功能,以及根據能否擷取影像緩衝區的影像資料,來進一步判斷是否利用中央處理器來解碼影片的對應影像資 料。如此一來,可以適應性地改善在顯示裝置出現黑畫面或顯示畫面容易停頓不流暢的問題。In summary, according to the above exemplary embodiments, the present invention provides an image processing adjustment method and an electronic device thereof. By judging whether the video is currently being played, adaptively maintaining or turning off the hardware acceleration function performed by the image processor, and further determining whether to use the central processing unit to decode the video according to whether the image data of the image buffer can be captured. Corresponding image material. In this way, it is possible to adaptively improve the problem that a black screen appears on the display device or the display screen is easily stopped and not smooth.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

10、20‧‧‧電子裝置10, 20‧‧‧ electronic devices

102、22‧‧‧中央處理器102, 22‧‧‧ central processor

104、23‧‧‧影像處理器104, 23‧‧ ‧ image processor

11‧‧‧顯示裝置11‧‧‧ display device

21‧‧‧作業系統21‧‧‧Operating system

210‧‧‧影像緩衝區210‧‧‧Image buffer

24‧‧‧記憶體24‧‧‧ memory

240‧‧‧應用程式240‧‧‧Application

25‧‧‧有線連接端口25‧‧‧Wired connection port

26‧‧‧無線通信模組26‧‧‧Wireless communication module

27‧‧‧控制單元27‧‧‧Control unit

S302~S318、S410~S454‧‧‧步驟S302~S318, S410~S454‧‧‧ steps

圖1A繪示利用有線的傳輸線傳送顯示資料。FIG. 1A illustrates the transmission of display material using a wired transmission line.

圖1B繪示利用無線傳輸方式或通用串列匯流排傳輸線傳送顯示資料。FIG. 1B illustrates the transmission of display data by means of a wireless transmission method or a universal serial bus transmission line.

圖2是根據本發明的一示範實施例所繪示一種電子裝置的功能方塊圖。2 is a functional block diagram of an electronic device according to an exemplary embodiment of the invention.

圖3是根據本發明的一示範實施例所繪示一種影像處理的調整方法的流程圖。FIG. 3 is a flow chart of a method for adjusting image processing according to an exemplary embodiment of the invention.

圖4是根據本發明的一示範實施例所繪示另一種影像處理的調整方法的流程圖。FIG. 4 is a flow chart showing another method of adjusting image processing according to an exemplary embodiment of the present invention.

S302~S318‧‧‧步驟S302~S318‧‧‧Steps

Claims (23)

一種影像處理的調整方法,適用於一電子裝置傳送一影像資料至一顯示裝置,包括:根據該電子裝置目前是否正在播放影片,來判斷是否關閉預設的一硬體加速功能,其中該硬體加速功能係利用該電子裝置的一影像處理器執行;當該電子裝置沒有播放影片時,就不關閉該硬體加速功能;以及當該電子裝置正在播放影片時,偵測是否能擷取該電子裝置的一作業系統的一影像緩衝區的影像資料來判斷是否關閉該硬體加速功能。 An image processing adjustment method is applicable to an electronic device transmitting an image data to a display device, comprising: determining whether to turn off a preset hardware acceleration function according to whether the electronic device is currently playing a movie, wherein the hardware is The acceleration function is performed by an image processor of the electronic device; when the electronic device does not play a movie, the hardware acceleration function is not turned off; and when the electronic device is playing a movie, detecting whether the electronic device can capture the electronic device The image data of an image buffer of an operating system of the device determines whether the hardware acceleration function is turned off. 如申請專利範圍第1項所述的方法,其中在偵測是否能擷取該影像緩衝區的該影像資料的步驟之後,所述的方法更包括:當無法擷取該影像緩衝區的該影像資料時,則關閉該硬體加速功能,並利用該電子裝置的一中央處理器解碼處理一已壓縮影像資料為一待傳送影像資料,並繼續利用該中央處理器壓縮編碼該待傳送影像資料為一顯示資料,並傳送該顯示資料至該顯示裝置。 The method of claim 1, wherein after detecting the step of capturing the image data of the image buffer, the method further comprises: when the image of the image buffer cannot be captured When the data is turned off, the hardware acceleration function is turned off, and a central processing unit of the electronic device decodes and processes a compressed image data into a to-be-transmitted image data, and continues to compress and encode the to-be-transmitted image data by using the central processing unit. Displaying the data and transmitting the display data to the display device. 如申請專利範圍第1項所述的方法,其中在偵測是否能擷取該影像緩衝區的該影像資料的步驟之後,所述的方法更包括:當可以擷取該影像緩衝區的該影像資料時,則維持該硬體加速功能,並利用該影像處理器解碼處理一已壓縮影 像資料為一待傳送影像資料,並繼續利用該電子裝置的一中央處理器壓縮編碼該待傳送影像資料為一顯示資料,並傳送該顯示資料至該顯示裝置。 The method of claim 1, wherein after detecting the step of capturing the image data of the image buffer, the method further comprises: capturing the image of the image buffer When the data is maintained, the hardware acceleration function is maintained, and the image processor is used to decode and process a compressed image. The image data is a piece of image data to be transmitted, and a central processing unit of the electronic device continues to compress and encode the image data to be transmitted into a display material, and transmits the display data to the display device. 如申請專利範圍第1項所述的方法,其中該電子裝置藉由一無線通信方式或藉由一通用串列匯流排傳輸線傳送該顯示資料至該顯示裝置。 The method of claim 1, wherein the electronic device transmits the display material to the display device by a wireless communication method or by a universal serial bus transmission line. 一種影像處理的調整方法,適用於一電子裝置傳送一影像資料至一顯示裝置,包括:根據該電子裝置的一作業系統的一影像緩衝區的資料,判斷是否關閉預設的一硬體加速功能,其中該硬體加速功能係利用該電子裝置的一影像處理器執行;當關閉該硬體加速功能時,利用該電子裝置的一中央處理器解碼處理一已壓縮影像資料為一待傳送影像資料,並利用該中央處理器壓縮編碼該待傳送影像資料為一顯示資料;以及當維持該硬體加速功能時,利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料或直接擷取該影像緩衝區的資料。 An image processing adjustment method is applicable to an electronic device transmitting an image data to a display device, comprising: determining whether to turn off a preset hardware acceleration function according to data of an image buffer of an operating system of the electronic device The hardware acceleration function is performed by an image processor of the electronic device; when the hardware acceleration function is turned off, a central processing unit of the electronic device decodes and processes a compressed image data into a to-be-transmitted image data. And using the central processing unit to compress and encode the to-be-transmitted image data into a display data; and when the hardware acceleration function is maintained, using the image processor to decode and process the compressed image data into the to-be-transmitted image data or directly Take the data of the image buffer. 如申請專利範圍第5項所述的方法,其中根據該影像緩衝區的資料,判斷是否關閉預設的該硬體加速功能的步驟包括:擷取並檢測該影像緩衝區的資料是否為一無效資料;當確認該影像緩衝區的資料為該無效資料時,則關閉該硬體加速功能;以及 當確認該影像緩衝區的資料不是該無效資料時,則維持該硬體加速功能。 The method of claim 5, wherein the step of determining whether to turn off the preset hardware acceleration function according to the data of the image buffer comprises: capturing and detecting whether the data of the image buffer is invalid. Data; when the data of the image buffer is confirmed as the invalid data, the hardware acceleration function is turned off; When it is confirmed that the data of the image buffer is not the invalid data, the hardware acceleration function is maintained. 如申請專利範圍第5項所述的方法,更包括:該電子裝置藉由一無線通信方式或藉由一通用串列匯流排傳輸線連接該顯示裝置;以及藉由該無線通信方式或藉由該通用串列匯流排傳輸線傳送該待傳送影像資料至該顯示裝置。 The method of claim 5, further comprising: connecting the display device by a wireless communication method or by a universal serial bus transmission line; and by using the wireless communication method or by using the wireless communication method The universal serial bus transmission line transmits the image data to be transmitted to the display device. 如申請專利範圍第5項所述的方法,其中利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料或直接擷取該影像緩衝區的資料的步驟包括:檢測該電子裝置目前是否正播放影片;當該電子裝置目前沒有播放影片時,僅擷取該影像緩衝區的資料為該待傳送影像資料;以及當該電子裝置目前正在播放影片時,利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料。 The method of claim 5, wherein the step of decoding, by the image processor, the compressed image data as the image data to be transmitted or directly capturing data of the image buffer comprises: detecting the current electronic device Whether the video is being played; when the electronic device does not currently play the movie, only the data of the image buffer is captured as the image data to be transmitted; and when the electronic device is currently playing the video, the image processor is used to decode and process the video. The compressed image data is the image data to be transmitted. 如申請專利範圍第8項所述的方法,其中在利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料或直接擷取該影像緩衝區的資料的步驟之後,所述的方法更包括:利用該中央處理器壓縮編碼該待傳送影像資料為一顯示資料。 The method of claim 8, wherein after the step of decoding the processed image data into the image data to be transmitted or directly capturing the data of the image buffer by using the image processor, the method The method further includes: compressing and encoding the to-be-transmitted image data into a display material by using the central processing unit. 如申請專利範圍第9項所述的方法,其中在壓縮編碼該待傳送影像資料為該顯示資料之後,所述的方法更包括: 藉由一通用串列匯流排傳輸線或一無線通信方式傳送該顯示資料至該顯示裝置。 The method of claim 9, wherein after compressing and encoding the image data to be transmitted as the display material, the method further comprises: The display data is transmitted to the display device by a universal serial bus transmission line or a wireless communication method. 一種電子裝置,適用於傳送一影像資料至一顯示裝置,該電子裝置包括:一影像處理器,用來執行預設的一硬體加速功能,並解碼一已壓縮影像資料;一作業系統,連接至該影像處理器,其包括一影像緩衝區,用來暫存影像資料;一中央處理器,連接至該作業系統,用來當該硬體加速功能被關閉時,解碼一已壓縮影像資料為一待傳送影像資料;以及一控制單元,連接至該中央處理器,用來根據該電子裝置目前是否正在播放影片,來判斷是否關閉該硬體加速功能,其中:當該電子裝置沒有播放影片時,該控制單元就不關閉該硬體加速功能;以及當該電子裝置正在播放影片時,該控制單元進一步偵測是否能擷取該影像緩衝區的影像資料。 An electronic device, configured to transmit an image data to a display device, the electronic device comprising: an image processor for performing a preset hardware acceleration function, and decoding a compressed image data; an operating system, connecting The image processor includes an image buffer for temporarily storing image data; and a central processing unit connected to the operating system for decoding a compressed image data when the hardware acceleration function is turned off And a control unit is connected to the central processing unit to determine whether to turn off the hardware acceleration function according to whether the electronic device is currently playing a movie, wherein: when the electronic device does not play the movie The control unit does not turn off the hardware acceleration function; and when the electronic device is playing a movie, the control unit further detects whether the image data of the image buffer can be captured. 如申請專利範圍第11項所述的顯示裝置,其中:當無法擷取該影像緩衝區的該影像資料時,則該控制單元關閉該硬體加速功能,並利用該中央處理器解碼處理該已壓縮影像資料為該待傳送影像資料,且繼續利用該中央處理器壓縮編碼該待傳送影像資料為該顯示資料,並傳送該顯示像資料至該顯示裝置。 The display device of claim 11, wherein: when the image data of the image buffer cannot be captured, the control unit turns off the hardware acceleration function, and uses the central processing unit to decode and process the image. The compressed image data is the image data to be transmitted, and the central processing unit continues to compress and encode the image data to be transmitted into the display data, and transmits the display image data to the display device. 如申請專利範圍第11項所述的顯示裝置,其中:當可以擷取該影像緩衝區的該影像資料時,則維持該硬體加速功能,利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料,且繼續利用該中央處理器壓縮編碼該待傳送影像資料為該顯示資料,並傳送該顯示資料至該顯示裝置。 The display device of claim 11, wherein: when the image data of the image buffer is captured, the hardware acceleration function is maintained, and the compressed image data is decoded and processed by the image processor. The image data to be transmitted is continuously compressed and encoded by the central processing unit to be the display data, and the display data is transmitted to the display device. 如申請專利範圍第11項所述的顯示裝置,其中該電子裝置更包括一有線連接端口,連接該顯示裝置,用來傳送該顯示資料至該顯示裝置。 The display device of claim 11, wherein the electronic device further comprises a wired connection port connected to the display device for transmitting the display data to the display device. 如申請專利範圍第14項所述的顯示裝置,其中該有線連接端口係為一通用串列匯流排端口。 The display device of claim 14, wherein the wired connection port is a universal serial bus port. 如申請專利範圍第11項所述的顯示裝置,其中該電子裝置更包括一無線通信模組,用來藉由一無線通信方式傳送該顯示資料至該顯示裝置。 The display device of claim 11, wherein the electronic device further comprises a wireless communication module for transmitting the display data to the display device by a wireless communication method. 一種電子裝置,適用於傳送一影像資料至一顯示裝置,該電子裝置包括:一影像處理器,用來執行預設的一硬體加速功能,並解碼一已壓縮影像資料;一作業系統,連接至該影像處理器,其包括一影像緩衝區,用來暫存影像資料;一中央處理器,連接至該作業系統,用來當該硬體加速功能被關閉時,解碼一已壓縮影像資料為一待傳送影像資料;以及一控制單元,連接至該中央處理器,用來根據該影像緩衝區的資料,判斷是否關閉該硬體加速功能。 An electronic device, configured to transmit an image data to a display device, the electronic device comprising: an image processor for performing a preset hardware acceleration function, and decoding a compressed image data; an operating system, connecting The image processor includes an image buffer for temporarily storing image data; and a central processing unit connected to the operating system for decoding a compressed image data when the hardware acceleration function is turned off And a control unit is connected to the central processing unit to determine whether to turn off the hardware acceleration function according to the data of the image buffer. 如申請專利範圍第17項所述的顯示裝置,其中:當該控制單元確認關閉該硬體加速功能時,該控制單元利用該中央處理器解碼處理該已壓縮影像資料為該待傳送影像資料,並利用該中央處理器壓縮編碼該待傳送影像資料為一顯示資料;以及當該控制單元維持該硬體加速功能時,該控制單元利用該影像處理器解碼處理該已壓縮影像資料為該待傳送影像資料或直接擷取該影像緩衝區的資料。 The display device of claim 17, wherein: when the control unit confirms that the hardware acceleration function is turned off, the control unit uses the central processing unit to decode and process the compressed image data into the image data to be transmitted. And the central processing unit compresses and encodes the to-be-transmitted image data into a display data; and when the control unit maintains the hardware acceleration function, the control unit uses the image processor to decode and process the compressed image data for the to-be-transmitted Image data or directly capture the data in the image buffer. 如申請專利範圍第17項所述的顯示裝置,其中:該控制單元擷取並檢測該影像緩衝區的資料是否為一無效資料;當該控制單元確認該影像緩衝區的資料為該無效資料時,則該控制單元關閉該硬體加速功能;以及當該控制單元確認該影像緩衝區的資料不是該無效資料時,則該控制單元維持該硬體加速功能。 The display device of claim 17, wherein: the control unit captures and detects whether the data of the image buffer is an invalid data; when the control unit confirms that the data of the image buffer is the invalid data And the control unit turns off the hardware acceleration function; and when the control unit confirms that the data of the image buffer is not the invalid data, the control unit maintains the hardware acceleration function. 如申請專利範圍第17項所述的顯示裝置,其中該控制單元利用該中央處理器壓縮編碼該待傳送影像資料為一顯示資料。 The display device of claim 17, wherein the control unit compresses and encodes the image data to be transmitted into a display data by using the central processing unit. 如申請專利範圍第20項所述的顯示裝置,其中該電子裝置更包括一有線連接端口,連接該顯示裝置,用來傳送該顯示資料至該顯示裝置。 The display device of claim 20, wherein the electronic device further comprises a wired connection port connected to the display device for transmitting the display data to the display device. 如申請專利範圍第21項所述的顯示裝置,其中該有線連接端口係為一通用串列匯流排端口。 The display device of claim 21, wherein the wired connection port is a universal serial bus port. 如申請專利範圍第20項所述的顯示裝置,其中該電子裝置更包括一無線通信模組,用來藉由一無線通信方 式傳送該顯示資料至該顯示裝置。The display device of claim 20, wherein the electronic device further comprises a wireless communication module for using a wireless communication party The display data is transmitted to the display device.
TW101120903A 2012-06-11 2012-06-11 Image processing adjustment method and electronic device thereof TWI511078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101120903A TWI511078B (en) 2012-06-11 2012-06-11 Image processing adjustment method and electronic device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101120903A TWI511078B (en) 2012-06-11 2012-06-11 Image processing adjustment method and electronic device thereof

Publications (2)

Publication Number Publication Date
TW201351341A TW201351341A (en) 2013-12-16
TWI511078B true TWI511078B (en) 2015-12-01

Family

ID=50158076

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101120903A TWI511078B (en) 2012-06-11 2012-06-11 Image processing adjustment method and electronic device thereof

Country Status (1)

Country Link
TW (1) TWI511078B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI565311B (en) * 2015-09-22 2017-01-01 佳世達科技股份有限公司 Method for adjusting video images

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200941189A (en) * 2008-03-28 2009-10-01 Asus Technology Suzhou Co Ltd A display card with overclocking function and the overclocking method thereof
US8009729B2 (en) * 2005-11-30 2011-08-30 Qualcomm Incorporated Scaler architecture for image and video processing
TW201142702A (en) * 2010-01-06 2011-12-01 Apple Inc Policy-based switching between graphics processing units

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009729B2 (en) * 2005-11-30 2011-08-30 Qualcomm Incorporated Scaler architecture for image and video processing
TW200941189A (en) * 2008-03-28 2009-10-01 Asus Technology Suzhou Co Ltd A display card with overclocking function and the overclocking method thereof
TW201142702A (en) * 2010-01-06 2011-12-01 Apple Inc Policy-based switching between graphics processing units

Also Published As

Publication number Publication date
TW201351341A (en) 2013-12-16

Similar Documents

Publication Publication Date Title
CN1901605B (en) Low latency remote display rendering using a slice-based rendering system
WO2022111672A1 (en) Data processing method and apparatus, and electronic device
US9424660B2 (en) Media encoding using changed regions
US8977206B2 (en) Data transmission device, system and method using the same
US8526882B2 (en) Data transmission device, system and method using the same
US20190028668A1 (en) System and method for streaming multimedia data
WO2023142389A1 (en) Screen mirroring method and apparatus, and electronic device and storage medium
CN110996117A (en) Video transcoding method and device, electronic equipment and storage medium
CN110418209B (en) An information processing method and terminal device applied to video transmission
CN113726815B (en) Method for dynamically adjusting video, electronic equipment, chip system and storage medium
US20190369738A1 (en) System and method for wireless audiovisual transmission
US20120154678A1 (en) Receiving device, screen frame transmission system and method
TWI511078B (en) Image processing adjustment method and electronic device thereof
CN117472304A (en) Screen capture method, device, terminal equipment and storage medium
CN101378384A (en) Handhold terminal and method for instantly displaying interface thereof in a computer
TWM567406U (en) Wireless video/audio transmission system
CN103856604A (en) Multimedia terminal easy for operation
CN103531217B (en) Image processing adjustment method and electronic device thereof
CN102547204B (en) Receiving device, screen image transmission system and transmission method thereof
CN119906861A (en) Video transmission method, video display method and device
CN106412684A (en) High-definition video wireless transmission method and system
TWI524767B (en) Receiving device, screen frame transmission system and method
CN119729126B (en) Solution and Device for Screen Tear in Cloud Gaming Scenes Based on Adaptive Synchronization Technology
CN102955666B (en) Method for automatically adjusting wireless display quality, display device and communication device thereof
JP5651872B2 (en) Receiving device, screen frame transmission system and method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees