TWI842399B - Image decoder device and static-frame image decoding method thereof - Google Patents

Image decoder device and static-frame image decoding method thereof Download PDF

Info

Publication number
TWI842399B
TWI842399B TW112105885A TW112105885A TWI842399B TW I842399 B TWI842399 B TW I842399B TW 112105885 A TW112105885 A TW 112105885A TW 112105885 A TW112105885 A TW 112105885A TW I842399 B TWI842399 B TW I842399B
Authority
TW
Taiwan
Prior art keywords
frame
reference position
command
image
still
Prior art date
Application number
TW112105885A
Other languages
Chinese (zh)
Inventor
李波仔
饒松
Original Assignee
大陸商星宸科技股份有限公司
Filing date
Publication date
Application filed by 大陸商星宸科技股份有限公司 filed Critical 大陸商星宸科技股份有限公司
Application granted granted Critical
Publication of TWI842399B publication Critical patent/TWI842399B/en

Links

Images

Abstract

A static-frame image decoding method includes: decoding a first frame in first data of multiple data according to a reference frame at a reference location of a memory, and storing the first frame to the reference location to overwrite at least one part of the reference frame; selecting the first data from the multiple data and decoding a second frame in the first data according to the first frame at the reference location in response to a static-frame command; adjusting the second frame and storing the adjusted second frame to an output location of the memory; keeping the first frame at the reference location being unchanged in response to the static-frame command, in order to decode the second frame according to the first frame at the reference location again; and decoding the second frame again according to the first frame at the reference location in response to an end command, in order to store the second frame to the reference location to overwrite at least one part of the second frame.

Description

圖像解碼裝置與其靜幀圖像解碼方法Image decoding device and still frame image decoding method thereof

本案是關於圖像解碼裝置,尤其是關於具有靜幀功能的圖像解碼裝置與其靜幀圖像解碼方法。The present invention relates to an image decoding device, and more particularly to an image decoding device with a still frame function and a still frame image decoding method thereof.

在多通道視訊應用中,圖像解碼裝置可暫停播放視訊,並提供使用者瀏覽特定通道的單一靜止畫面。在一些相關技術中,由於解碼器會不斷地更新內部緩衝器而丟失原有的參考圖幀,使得解碼器在收到靜幀命令後僅能使用經過縮放或裁切後的圖幀資料來產生該單一靜止畫面。如此,該畫面會出現失真而變得不夠清晰。In multi-channel video applications, the image decoding device can pause the video and provide the user with a single still picture of a specific channel. In some related technologies, the decoder will lose the original reference frame because it will continuously update the internal buffer. Therefore, after receiving the still frame command, the decoder can only use the scaled or cropped frame data to generate the single still picture. In this way, the picture will be distorted and become unclear.

於一些實施態樣中,本案的目的之一在於提供一種具有靜幀功能的圖像解碼裝置與靜幀圖像解碼方法,以改善先前技術的不足。In some implementations, one of the purposes of the present invention is to provide an image decoding device and a still frame image decoding method with a still frame function to improve the deficiencies of the prior art.

於一些實施態樣中,靜幀圖像解碼方法包含下列操作:根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分;響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀;調整該第二圖幀,並將調整後的該第二圖幀儲存至該記憶體之一輸出位置;響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀;以及響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。In some embodiments, a still frame image decoding method includes the following operations: decoding a first frame in a first video data among a plurality of video data according to a reference frame at a reference position of a memory, and storing the first frame to the reference position to cover at least a portion of the reference frame; selecting the first video data from the video data in response to a still frame command and decoding a first frame in the first video data according to the first frame in the reference position; a second frame; adjusting the second frame and storing the adjusted second frame to an output position of the memory; maintaining the first frame in the reference position in response to the still frame command to decode the second frame again according to the first frame in the reference position; and decoding the second frame again according to the first frame in the reference position in response to an end command to store the second frame to the reference position to cover at least a portion of the first frame.

於一些實施態樣中,圖像解碼裝置包含視訊接收模組、圖像調整模組以及解碼器。視訊接收模組接收對應於不同通道的複數個視訊資料。解碼器用以:根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分;響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀,其中該圖像調整模組調整該第二圖幀並將調整後的該第二圖幀儲存至該記憶體之一輸出位置;響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀;以及響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。In some implementations, the image decoding device includes a video receiving module, an image adjustment module, and a decoder. The video receiving module receives a plurality of video data corresponding to different channels. The decoder is used to: decode a first frame in a first video data among a plurality of video data according to a reference frame at a reference position of a memory, and store the first frame to the reference position to cover at least a portion of the reference frame; select the first video data from the video data in response to a still frame command and decode a second frame in the first video data according to the first frame in the reference position, wherein the image adjustment module The present invention relates to a method for decoding a first frame in a video image processing unit and a method for decoding a second frame in a video image processing unit. The method comprises: adjusting the second frame and storing the adjusted second frame to an output position of the memory; maintaining the first frame in the reference position in response to the still frame command to decode the second frame again according to the first frame in the reference position; and decoding the second frame again according to the first frame in the reference position in response to an end command to store the second frame to the reference position to cover at least a portion of the first frame.

有關本案的特徵、實作與功效,茲配合圖式作較佳實施例詳細說明如下。The features, implementation and effects of the present invention are described in detail below with reference to the drawings for preferred embodiments.

本文所使用的所有詞彙具有其通常的意涵。上述之詞彙在普遍常用之字典中之定義,在本案的內容中包含任一於此討論的詞彙之使用例子僅為示例,不應限制到本案之範圍與意涵。同樣地,本案亦不僅以於此說明書所示出的各種實施例為限。All terms used herein have their usual meanings. The definitions of the above terms in commonly used dictionaries and any use examples of the terms discussed herein in the context of this application are for illustrative purposes only and should not limit the scope and meaning of this application. Similarly, this application is not limited to the various embodiments shown in this specification.

關於本文中所使用之『耦接』或『連接』,均可指二或多個元件相互直接作實體或電性接觸,或是相互間接作實體或電性接觸,亦可指二或多個元件相互操作或動作。如本文所用,用語『電路』可為由至少一個電晶體與/或至少一個主被動元件按一定方式連接以處理訊號的裝置。As used herein, "coupling" or "connection" may refer to two or more components making physical or electrical contact directly or indirectly, or two or more components operating or acting on each other. As used herein, the term "circuit" may refer to a device that is composed of at least one transistor and/or at least one active and passive component connected in a certain manner to process signals.

圖1為根據本案一些實施例繪製一種圖像解碼裝置100的示意圖。在一些實施例中,圖像解碼裝置100具有靜幀(static frame)功能。在一些實施例中,圖像解碼裝置100可響應靜幀命令來執行靜幀功能,其可讓圖像解碼裝置100暫停原有解碼操作,並產生具有清晰解析度的一特定靜止圖像給使用者瀏覽。FIG. 1 is a schematic diagram of an image decoding device 100 according to some embodiments of the present invention. In some embodiments, the image decoding device 100 has a static frame function. In some embodiments, the image decoding device 100 can respond to a static frame command to execute the static frame function, which allows the image decoding device 100 to pause the original decoding operation and generate a specific static image with clear resolution for the user to browse.

圖像解碼裝置100包含視訊接收模組110、解碼器120、圖像調整模組130以及顯示介面140。視訊接收模組110可經由不同通道接收多個視訊資料D[1]~D[n],其中n可為大於或等於1的正整數。在一些實施例中,視訊接收模組110可包含多個資料傳輸介面,其分別對應於不同通道以接收多個視訊資料D[1]~D[n]。視訊接收模組110可將所收到的多個視訊資料D[1]~D[n]儲存到記憶體100A。在一些實施例中,多個視訊資料D[1]~D[n]可為,但不限於,資料串流(data stream)。在一些實施例中,記憶體100A可為,但不限於,動態隨機存取記憶體。The image decoding device 100 includes a video receiving module 110, a decoder 120, an image adjustment module 130, and a display interface 140. The video receiving module 110 can receive a plurality of video data D[1] to D[n] through different channels, where n can be a positive integer greater than or equal to 1. In some embodiments, the video receiving module 110 can include a plurality of data transmission interfaces, which correspond to different channels to receive the plurality of video data D[1] to D[n]. The video receiving module 110 can store the received plurality of video data D[1] to D[n] in a memory 100A. In some embodiments, the plurality of video data D[1] to D[n] can be, but not limited to, a data stream. In some embodiments, the memory 100A may be, but is not limited to, a dynamic random access memory.

解碼器120可自記憶體100A獲得多個視訊資料D[1]~D[n],並對多個視訊資料D[1]~D[n]中每一者的圖幀(frame)進行解碼。在一些實施例中,記憶體100A包含參考緩衝器101A以及輸出緩衝器102A。在一些實施例中,參考緩衝器101A可為記憶體100A中位於參考位置(可對應至一或數個記憶體地址)的儲存空間,其可儲存用來進行圖像解碼的參考圖幀。在一些實施例中,輸出緩衝器102A可為記憶體100A中位於輸出位置(其可對應至一或數個記憶體地址,且不同於參考位置)的儲存空間,其可儲存經解碼後並等待被顯示的圖幀。以視訊資料D[1]為例,視訊資料D[1]可依序包含第一圖幀、第二圖幀、第三圖幀等等。解碼器120可利用幀內編碼(intra-frame coding)的方式來解碼該第一圖幀,並將解碼後的第一圖幀儲存到參考緩衝器101A。圖像調整模組130可調整解碼後的第一圖幀,並將調整後的第一圖幀儲存於輸出緩衝器102A。如此,顯示介面140可將輸出緩衝器102A中等待被顯示的第一圖幀輸出給一螢幕,以使該螢幕來顯示對應的圖像內容。在一些實施例中,解碼器120可包含圖像編解碼器電路,且圖像調整模組130可包括圖像縮放電路、圖像裁切電路、圖像拼接電路等。The decoder 120 can obtain multiple video data D[1]-D[n] from the memory 100A and decode the frame of each of the multiple video data D[1]-D[n]. In some embodiments, the memory 100A includes a reference buffer 101A and an output buffer 102A. In some embodiments, the reference buffer 101A can be a storage space located at a reference position (corresponding to one or more memory addresses) in the memory 100A, which can store reference frames used for image decoding. In some embodiments, the output buffer 102A may be a storage space in the memory 100A located at an output position (which may correspond to one or more memory addresses and is different from the reference position), which may store decoded frames waiting to be displayed. Taking the video data D[1] as an example, the video data D[1] may include a first frame, a second frame, a third frame, and so on in sequence. The decoder 120 may decode the first frame using intra-frame coding and store the decoded first frame in the reference buffer 101A. The image adjustment module 130 may adjust the decoded first frame and store the adjusted first frame in the output buffer 102A. Thus, the display interface 140 can output the first frame in the output buffer 102A to be displayed to a screen, so that the screen can display the corresponding image content. In some embodiments, the decoder 120 can include an image codec circuit, and the image adjustment module 130 can include an image scaling circuit, an image cropping circuit, an image splicing circuit, etc.

另一方面,參考緩衝器101A中的參考圖幀為第一圖幀。接著,解碼器120可利用幀間編碼(inter-frame coding)的方式來根據參考緩衝器101A中的第一圖幀來解碼第二圖幀,並將解碼後的第二圖幀儲存到參考緩衝器101A以及輸出給圖像調整模組130。圖像調整模組130調整解碼後的第二圖幀,該第二圖幀經圖像調整模組130調整為等待被顯示的第二圖幀,並被存入到輸出緩衝器102A中。如此,顯示介面140可將輸出緩衝器102A中等待被顯示的第二圖幀輸出至螢幕來顯示對應的圖像內容,且解碼器120可根據參考緩衝器101A中的第二圖幀來解碼第三圖幀。依此類推,應可理解解碼器120的相關操作。在一些實施例中,幀間編碼是基於連續的多個圖幀之間的相關性來進行資料壓縮,並參考先前圖幀(即參考緩衝器101A中的參考圖幀)來進行視訊編碼的資料處理。在一些實施例中,解碼器120亦可將解碼後的第二圖幀儲存到輸出緩衝器102A,且圖像調整模組130可自輸出緩衝器102A讀出該第二圖幀並調整該第二圖幀以使其成為等待被顯示的圖幀,最後將等待被顯示的該第二圖幀存入到輸出緩衝器102A。On the other hand, the reference frame in the reference buffer 101A is the first frame. Then, the decoder 120 can use inter-frame coding to decode the second frame according to the first frame in the reference buffer 101A, and store the decoded second frame in the reference buffer 101A and output it to the image adjustment module 130. The image adjustment module 130 adjusts the decoded second frame, and the second frame is adjusted by the image adjustment module 130 to be the second frame to be displayed and stored in the output buffer 102A. In this way, the display interface 140 can output the second frame waiting to be displayed in the output buffer 102A to the screen to display the corresponding image content, and the decoder 120 can decode the third frame according to the second frame in the reference buffer 101A. By analogy, the relevant operations of the decoder 120 should be understood. In some embodiments, inter-frame coding is based on the correlation between multiple consecutive frames to perform data compression, and refer to the previous frame (i.e., the reference frame in the reference buffer 101A) to perform data processing for video encoding. In some embodiments, the decoder 120 may also store the decoded second frame into the output buffer 102A, and the image adjustment module 130 may read the second frame from the output buffer 102A and adjust the second frame to make it a frame to be displayed, and finally store the second frame to be displayed into the output buffer 102A.

在一些實施例中,圖像調整模組130可根據預設指令(例如為多個視訊圖像組合顯示指令)調整經解碼器120解碼後的圖幀(例如前述的第一圖幀、第二圖幀等等),並將調整後的圖幀儲存到輸出緩衝器102A。例如,解碼器120可將解碼後的圖幀輸出至圖像調整模組130(或是將解碼後的圖幀儲存到輸出緩衝器102A,使得圖像調整模組130可自輸出緩衝器102A讀出解碼後的圖幀),且圖像調整模組130可根據預設指令對所收到的圖幀進行調整(例如可為縮小或裁切等圖像處理)以生成待顯示的圖幀,並將該待顯示的圖幀儲存到該輸出緩衝器102A。在一些實施例中,圖像調整模組130還可根據使用者的命令調整輸出緩衝器102A中所儲存的圖幀。例如,響應於使用者的縮放命令,圖像調整模組130可將一特定圖幀的圖像內容進行放大(或縮小),並經由顯示介面140輸出至螢幕來顯示調整後的圖像內容。或者,響應於使用者的裁剪命令,圖像調整模組130可對一特定圖幀的圖像內容進行裁切,並經由顯示介面140輸出至螢幕來顯示經裁切後的圖像內容。在一些實施例中,使用者可經由一用戶介面(例如可為,但不限於,經由軟體實施的介面)輸入上述的相關命令,且系統中的處理器電路(未示出)可接收使用者的命令,並發出相應的控制命令或控制訊號(未示出)給圖像解碼裝置100中的相關模組與/或電路來執行相應操作。在一些實施例中,圖像調整模組130可包含,但不限於,縮放比例控制器(scaler)電路等電路。在一些實施例中,顯示介面140可包含,但不限於,視訊輸出電路。In some embodiments, the image adjustment module 130 may adjust the frames decoded by the decoder 120 (such as the aforementioned first frame, second frame, etc.) according to a preset instruction (such as a combination display instruction of multiple video images), and store the adjusted frames in the output buffer 102A. For example, the decoder 120 may output the decoded frames to the image adjustment module 130 (or store the decoded frames in the output buffer 102A so that the image adjustment module 130 can read the decoded frames from the output buffer 102A), and the image adjustment module 130 may adjust the received frames according to the preset instructions (for example, image processing such as reduction or cropping) to generate the frames to be displayed, and store the frames to be displayed in the output buffer 102A. In some embodiments, the image adjustment module 130 may also adjust the frames stored in the output buffer 102A according to the user's command. For example, in response to a zoom command from a user, the image adjustment module 130 may enlarge (or reduce) the image content of a specific frame, and output the image content to the screen via the display interface 140 to display the adjusted image content. Alternatively, in response to a crop command from a user, the image adjustment module 130 may crop the image content of a specific frame, and output the image content to the screen via the display interface 140 to display the cropped image content. In some embodiments, the user may input the above-mentioned related commands through a user interface (for example, but not limited to, an interface implemented by software), and the processor circuit (not shown) in the system may receive the user's command and send corresponding control commands or control signals (not shown) to the relevant modules and/or circuits in the image decoding device 100 to perform corresponding operations. In some embodiments, the image adjustment module 130 may include, but not limited to, a scaling controller (scaler) circuit and other circuits. In some embodiments, the display interface 140 may include, but not limited to, a video output circuit.

舉例來說,在同時瀏覽對應於多個視訊資料D[1]~D[n]的多個圖像內容(其經過圖像調整模組130處理而組合顯示為單一畫面)時,若使用者對一特定視訊資料(例如為視訊資料D[1])的圖像內容感興趣而發出一靜幀命令,圖像解碼裝置100可響應此靜幀命令暫停原有的圖像解碼操作,並持續輸出該特定視訊資料的一對應圖幀之圖像內容至螢幕使其可顯示為單一畫面。在上述過程中,解碼器120可響應此靜幀命令而禁止參考緩衝器101A被寫入以避免其中的參考圖幀被覆蓋,並基於刷新命令利用該參考緩衝器101A中的參考圖幀來重複解碼該對應圖幀,以供顯示介面140持續輸出至螢幕來顯示該對應圖幀的圖像內容。如此,使用者可瀏覽到高於該圖幀原顯示解析度的同一圖像內容(相當於在瀏覽一靜止圖像)。在結束靜幀操作後,圖像解碼裝置100可恢復原有的圖像解碼操作,並依序更新參考緩衝器101A中的參考圖幀以依序進行圖像解碼。關於此處的操作將於後參照圖3A與圖3B說明。在不同實施例中,圖像解碼裝置100可與系統中的軟體、韌體或是其他電路偕同運作,以進行圖像解碼與/或靜幀操作等多個應用。For example, when simultaneously browsing multiple image contents corresponding to multiple video data D[1]~D[n] (which are processed by the image adjustment module 130 and combined and displayed as a single screen), if the user is interested in the image content of a specific video data (for example, the video data D[1]) and issues a still frame command, the image decoding device 100 can respond to the still frame command to pause the original image decoding operation and continue to output the image content of a corresponding frame of the specific video data to the screen so that it can be displayed as a single screen. In the above process, the decoder 120 can respond to the still frame command and prohibit the reference buffer 101A from being written to prevent the reference frame therein from being overwritten, and based on the refresh command, use the reference frame in the reference buffer 101A to repeatedly decode the corresponding frame, so that the display interface 140 can continuously output to the screen to display the image content of the corresponding frame. In this way, the user can browse the same image content with a higher resolution than the original display resolution of the frame (equivalent to browsing a still image). After the still frame operation is terminated, the image decoding device 100 can restore the original image decoding operation and update the reference frames in the reference buffer 101A in sequence to perform image decoding in sequence. The operation here will be described later with reference to FIG. 3A and FIG. 3B. In different embodiments, the image decoding device 100 can work together with software, firmware or other circuits in the system to perform multiple applications such as image decoding and/or still frame operation.

圖2為根據本案一些實施例繪製響應靜幀命令的操作流程圖。為方便說明,以下將圖1中的數值n設定為4進行說明。在此例中,顯示介面140所輸出至螢幕之畫面解析度設定為1920×1080。FIG2 is a flowchart of drawing a still frame command in response to some embodiments of the present invention. For the convenience of explanation, the value n in FIG1 is set to 4 for explanation. In this example, the image resolution outputted to the screen by the display interface 140 is set to 1920×1080.

在操作S201,經由視訊接收模組接收多個視訊資料。例如,視訊接收模組110可從多個通道接收多個視訊資料D[1]~D[4],且多個視訊資料D[1]~D[4]每一者的原始解析度可為1920×1080。In operation S201, a plurality of video data is received by the video receiving module. For example, the video receiving module 110 may receive a plurality of video data D[1]-D[4] from a plurality of channels, and the original resolution of each of the plurality of video data D[1]-D[4] may be 1920×1080.

在操作S202,解碼多個視訊資料,調整該些視訊資料的圖像內容。例如,解碼器120可解碼多個視訊資料D[1]~D[4]中每一者的圖幀,其中該些圖幀每一者的解析度為1920×1080。在一些實施例中,圖像調整模組130可調整該些圖幀中每一者的輸出解析度為960×540,並將多個視訊資料D[1]~D[4]中每一者的一對應圖幀(其解析度為960×540)拼接為單一畫面(其解析度對應於螢幕的解析度,例如為1920×1080)。在另一些實施例中,圖像調整模組130可調整該些圖幀中每一者的輸出解析度為960×540,並進一步裁切多個視訊資料D[1]~D[4]中至少一者的圖像內容,在將多個視訊資料D[1]~D[4]中每一者的一對應圖幀(其解析度為960×540)拼接為單一畫面(解析度為1920×1080)。In operation S202, a plurality of video data are decoded and image contents of the plurality of video data are adjusted. For example, the decoder 120 may decode a frame of each of the plurality of video data D[1] to D[4], wherein the resolution of each of the plurality of frames is 1920×1080. In some embodiments, the image adjustment module 130 may adjust the output resolution of each of the plurality of frames to 960×540, and splice a corresponding frame (whose resolution is 960×540) of each of the plurality of video data D[1] to D[4] into a single picture (whose resolution corresponds to the resolution of the screen, such as 1920×1080). In other embodiments, the image adjustment module 130 may adjust the output resolution of each of the frames to 960×540, and further crop the image content of at least one of the multiple video data D[1]~D[4], and then splice a corresponding frame (whose resolution is 960×540) of each of the multiple video data D[1]~D[4] into a single picture (with a resolution of 1920×1080).

在操作S203,響應靜幀命令自多個視訊資料選擇一特定視訊資料,並保持參考緩衝器的參考圖幀以根據該參考圖幀再次解碼該特定視訊資料的一對應圖幀。相對於靜幀命令之前的該對應圖幀的顯示解析度,響應靜幀命令後通過保持參考圖幀以根據該參考圖幀再次解碼該對應圖幀,從而該對應圖幀的顯示解析度得以提高來顯示該對應圖像的圖像內容。例如,使用者對視訊資料D[1]的圖像內容感興趣,使用者可經由軟體送出靜幀命令來著重觀看視訊資料D[1]的圖像內容。響應靜幀命令,解碼器120可禁止參考緩衝器101A被寫入以保持參考圖幀。接著,解碼器120響應刷新命令可重複地根據該參考圖幀來解碼視訊資料D[1]的一對應圖幀(例如為在解碼器120收到靜幀命令之後的圖幀)。如此,可在未經由圖像調整模組130的調整下獲得具有至少為原始解析度之品質的對應圖幀,並經由顯示介面140將該對應圖幀輸出至螢幕,從而以不低於該對應圖幀的原始解析度來顯示該對應圖幀的圖像內容。其中,該對應圖幀的原始解析度為1920×1080。如此一來,使用者可經由螢幕觀看到的該對應圖幀的圖像內容具有清晰的解析度(例如為對應螢幕的原始解析度,即前述的1920×1080)。In operation S203, in response to the still frame command, a specific video data is selected from a plurality of video data, and a reference frame of a reference buffer is maintained to decode a corresponding frame of the specific video data again according to the reference frame. Compared to the display resolution of the corresponding frame before the still frame command, the corresponding frame is decoded again according to the reference frame after the still frame command, so that the display resolution of the corresponding frame is improved to display the image content of the corresponding image. For example, if the user is interested in the image content of the video data D[1], the user can send a still frame command through the software to focus on viewing the image content of the video data D[1]. In response to the still frame command, the decoder 120 may prohibit the reference buffer 101A from being written to maintain the reference frame. Then, in response to the refresh command, the decoder 120 may repeatedly decode a corresponding frame of the video data D[1] (e.g., a frame after the decoder 120 receives the still frame command) according to the reference frame. In this way, the corresponding frame with a quality of at least the original resolution can be obtained without being adjusted by the image adjustment module 130, and the corresponding frame can be output to the screen via the display interface 140, so that the image content of the corresponding frame is displayed at a resolution not lower than the original resolution of the corresponding frame. The original resolution of the corresponding frame is 1920×1080. In this way, the image content of the corresponding frame that the user can view through the screen has a clear resolution (for example, the original resolution of the corresponding screen, ie, the aforementioned 1920×1080).

在一些相關技術中,參考緩衝器的參考圖幀會不斷地被更新。換言之,在該些技術中,每解碼完一次新的圖幀,參考緩衝器所儲存的原有參考圖幀將會丟失(即被覆蓋為新的圖幀)。如此,在該些技術中,當使用者執行靜幀命令時,僅可根據被編輯過(例如為解析度被調整為960×540與/或是裁剪處理)的圖幀進行放大來產生單一圖像(其解析度為1920×1080)。如此一來,該單一圖像的內容會出現失真而變為較不清晰。相較於上述相關技術,在本案一些實施例中,在解碼器120收到靜幀命令後,參考緩衝器101A中的參考圖幀不會被覆蓋。換言之,解碼器120不會丟失該參考圖幀的資訊,並可利用該參考圖幀來解碼特定視訊資料的對應圖幀(而非透過對已編輯過的圖幀進行放大),以使用不低於該對應圖幀的原始解析度來顯示該對應圖幀的圖像內容。如此,圖像解碼裝置100可提供更為清晰的靜幀圖像。In some related technologies, the reference frames of the reference buffer are constantly updated. In other words, in these technologies, each time a new frame is decoded, the original reference frame stored in the reference buffer will be lost (i.e., covered by the new frame). Thus, in these technologies, when the user executes a still frame command, only the edited (e.g., the resolution is adjusted to 960×540 and/or cropped) frame can be enlarged to generate a single image (with a resolution of 1920×1080). As a result, the content of the single image will be distorted and become less clear. Compared to the above-mentioned related technologies, in some embodiments of the present invention, after the decoder 120 receives the still frame command, the reference frame in the reference buffer 101A will not be overwritten. In other words, the decoder 120 will not lose the information of the reference frame, and can use the reference frame to decode the corresponding frame of the specific video data (rather than by enlarging the edited frame) to display the image content of the corresponding frame using an original resolution not lower than that of the corresponding frame. In this way, the image decoding device 100 can provide a clearer still frame image.

圖3A為根據本案一些實施例繪製圖1中的解碼器120執行靜幀操作的流程圖,且圖3B為根據本案一些實施例繪製圖1中的解碼器120進行圖像解碼的操作時序圖。為方便說明,圖3A的多個操作將搭配圖3B的操作時序一併說明,其中圖3B的時序是以基於靜幀命令所選取的一視訊資料(假設為視訊資料D[1])中的多個圖幀為例。FIG3A is a flowchart of the decoder 120 in FIG1 performing a still frame operation according to some embodiments of the present invention, and FIG3B is a timing diagram of the decoder 120 in FIG1 performing image decoding according to some embodiments of the present invention. For the convenience of explanation, the multiple operations of FIG3A will be described together with the operation timing of FIG3B, wherein the timing of FIG3B is based on multiple frames in a video data (assuming that it is video data D[1]) selected based on the still frame command as an example.

在操作S301,對視訊資料的第一圖幀進行解碼,並將解碼後的第一圖幀儲存到參考緩衝器。例如,如圖3B所示,在時間T0之前,解碼器120可利用幀內編碼對視訊資料D[1]的圖幀F1解碼,並將解碼後的圖幀F1儲存到參考緩衝器101A。在此條件下,參考緩衝器101A中的參考圖幀的至少一部分將被覆蓋為解碼後的圖幀F1。在時間T0之前,圖像調整模組130根據預設命令對解碼後的圖幀F1進行調整並將調整後等待被顯示的圖幀F1儲存到該輸出緩衝器102A。In operation S301, the first frame of the video data is decoded and the decoded first frame is stored in the reference buffer. For example, as shown in FIG. 3B , before time T0, the decoder 120 may decode the frame F1 of the video data D[1] using intraframe coding and store the decoded frame F1 in the reference buffer 101A. Under this condition, at least a portion of the reference frame in the reference buffer 101A will be overwritten with the decoded frame F1. Before time T0, the image adjustment module 130 adjusts the decoded frame F1 according to a preset command and stores the adjusted frame F1 to be displayed in the output buffer 102A.

在操作S302,根據參考緩衝器中的第一圖幀解碼視訊資料的第二圖幀,並將解碼後的第二圖幀儲存到參考緩衝器。例如,如圖3B所示,在時間T0,顯示介面140可將輸出緩衝器102A中等待被顯示的圖幀F1輸出給螢幕,以使螢幕顯示圖幀F1的圖像內容。另一方面,在時間T0與時間T1之間的期間,解碼器120可利用幀間編碼來根據儲存於參考緩衝器101A中的圖幀F1對視訊資料D[1]中的圖幀F2解碼,並將解碼後的圖幀F2儲存到參考緩衝器101A。在此條件下,參考緩衝器101A中的參考圖幀F1的至少一部分被覆蓋為圖幀F2。在時間T0與時間T1之間的期間,圖像調整模組130根據預設命令對圖幀F2進行調整並將調整後等待被顯示的圖幀F2儲存到該輸出緩衝器102A。In operation S302, the second frame of the video data is decoded according to the first frame in the reference buffer, and the decoded second frame is stored in the reference buffer. For example, as shown in FIG. 3B , at time T0, the display interface 140 may output the frame F1 waiting to be displayed in the output buffer 102A to the screen so that the screen displays the image content of the frame F1. On the other hand, during the period between time T0 and time T1, the decoder 120 may use inter-frame coding to decode the frame F2 in the video data D[1] according to the frame F1 stored in the reference buffer 101A, and store the decoded frame F2 in the reference buffer 101A. Under this condition, at least a portion of the reference frame F1 in the reference buffer 101A is covered as the frame F2. During the period between time T0 and time T1, the image adjustment module 130 adjusts the frame F2 according to the preset command and stores the adjusted frame F2 waiting to be displayed in the output buffer 102A.

在操作S303,根據參考緩衝器中的第二圖幀解碼視訊資料的第三圖幀,並響應靜幀命令保持參考緩衝器中的第二圖幀。例如,如圖3B所示,在時間T1,顯示介面140可將輸出緩衝器102A中等待被顯示的圖幀F2輸出給螢幕,以使螢幕顯示圖幀F2的圖像內容。另一方面,在時間T1與時間T2之間的期間,解碼器120可根據儲存於參考緩衝器101A中的圖幀F2對視訊資料D[1]中的圖幀F3解碼,圖像調整模組130對解碼後的圖幀F3進行調整並將調整後等待被顯示的圖幀F3儲存到輸出緩衝器102A。在時間T1’(其位於時間T1與時間T2之間,即在圖幀F3被解碼出來之前),解碼器120收到靜幀命令並響應靜幀命令禁止參考緩衝器101A被寫入,以避免參考緩衝器101A中的圖幀F2被覆蓋。於此條件下,參考緩衝器101A的參考圖幀可保持為圖幀F2,而不會被覆蓋為圖幀F3。In operation S303, the third frame of the video data is decoded according to the second frame in the reference buffer, and the second frame in the reference buffer is kept in response to the still frame command. For example, as shown in FIG. 3B , at time T1, the display interface 140 may output the frame F2 waiting to be displayed in the output buffer 102A to the screen, so that the screen displays the image content of the frame F2. On the other hand, during the period between time T1 and time T2, the decoder 120 can decode the frame F3 in the video data D[1] according to the frame F2 stored in the reference buffer 101A, and the image adjustment module 130 adjusts the decoded frame F3 and stores the adjusted frame F3 to be displayed in the output buffer 102A. At time T1' (which is between time T1 and time T2, i.e., before the frame F3 is decoded), the decoder 120 receives a still frame command and prohibits the reference buffer 101A from being written in response to the still frame command to prevent the frame F2 in the reference buffer 101A from being overwritten. Under this condition, the reference frame of the reference buffer 101A can remain as frame F2 and will not be overwritten as frame F3.

換言之,在收到靜幀命令前,解碼器120會將解碼後的新圖幀儲存到參考緩衝器101A。如此,參考緩衝器101A的參考圖幀的至少一部分會被覆蓋為新的圖幀。在收到靜幀命令後,解碼器120會禁止參考緩衝器101A被寫入。如此,參考緩衝器101A的參考圖幀不會被覆蓋為新的圖幀。In other words, before receiving the silent frame command, the decoder 120 will store the decoded new frame in the reference buffer 101A. In this way, at least a portion of the reference frame in the reference buffer 101A will be overwritten with the new frame. After receiving the silent frame command, the decoder 120 will prohibit the reference buffer 101A from being written. In this way, the reference frame in the reference buffer 101A will not be overwritten with the new frame.

如圖3B所示,在一些實施例中,在收到靜幀命令後的時間T2到時間Tm之間的多個期間,顯示介面140可持續地將輸出緩衝器102A中的圖幀F3輸出給螢幕,以使螢幕顯示圖幀F3的圖像內容。或者,在另一些實施例中,依據資料格式的要求與/或其他需求,解碼器120可根據參考緩衝器101A的圖幀F2再次解碼圖幀F3,並將解碼後的圖幀F3(未經圖像調整模組130調整)再次寫入至輸出緩衝器102A,使得顯示介面140可將輸出緩衝器102A中的圖幀F3輸出至螢幕來進行顯示。另一方面,在時間T1’到時間Tm的多個期間,解碼器120響應靜幀命令持續禁止參考緩衝器101A被寫入,以避免參考緩衝器101中的圖幀F2被覆蓋。於此條件下,參考緩衝器101A的參考圖幀持續保持為圖幀F2。As shown in FIG3B , in some embodiments, during multiple periods between time T2 and time Tm after receiving the still frame command, the display interface 140 may continuously output the frame F3 in the output buffer 102A to the screen so that the screen displays the image content of the frame F3. Alternatively, in other embodiments, according to the requirements of the data format and/or other requirements, the decoder 120 may decode the frame F3 again according to the frame F2 in the reference buffer 101A, and write the decoded frame F3 (without adjustment by the image adjustment module 130) to the output buffer 102A again, so that the display interface 140 can output the frame F3 in the output buffer 102A to the screen for display. On the other hand, during the multiple periods from time T1' to time Tm, the decoder 120 continues to prohibit the reference buffer 101A from being written in response to the quiet frame command to prevent the frame F2 in the reference buffer 101 from being overwritten. Under this condition, the reference frame of the reference buffer 101A continues to remain as frame F2.

在操作S304,響應刷新命令,根據參考緩衝器中的第二圖幀解碼該第三圖幀,並響應靜幀命令持續保持參考緩衝器中的第二圖幀。如圖3B所示,在收到靜幀命令之後的時間T4’(其位於時間T4與時間Tm之間),解碼器120響應刷新命令而根據參考緩衝器101A的圖幀F2再次解碼圖幀F3,並將解碼後的圖幀F3(標示為圖幀F3-1)儲存到輸出緩衝器102A。如此,在時間Tm,顯示介面140可將輸出緩衝器102A中的圖幀F3-1輸出至螢幕使顯示圖幀F3-1的圖像內容。類似地,在時間Tm’(其位於時間Tm到時間Tm+1之間),解碼器120可響應刷新命令而根據參考緩衝器101A的圖幀F2重新解碼圖幀F3,並將解碼後的圖幀F3(標示為圖幀F3-2)儲存到輸出緩衝器102A。如此,在時間Tm+1,顯示介面140可將輸出緩衝器102A中的圖幀F3-2輸出給螢幕,以使螢幕顯示圖幀F3-2的圖像內容。在上述過程中,解碼器120持續禁止參考緩衝器101A被寫入,以避免參考緩衝器101A中的圖幀F2被覆蓋。In operation S304, in response to the refresh command, the third frame is decoded according to the second frame in the reference buffer, and in response to the still frame command, the second frame in the reference buffer is continuously maintained. As shown in FIG3B , at time T4′ (which is between time T4 and time Tm) after receiving the still frame command, the decoder 120 decodes frame F3 again according to frame F2 of the reference buffer 101A in response to the refresh command, and stores the decoded frame F3 (labeled as frame F3-1) in the output buffer 102A. Thus, at time Tm, the display interface 140 can output the frame F3-1 in the output buffer 102A to the screen to display the image content of the frame F3-1. Similarly, at time Tm' (which is between time Tm and time Tm+1), the decoder 120 can respond to the refresh command and re-decode the frame F3 according to the frame F2 in the reference buffer 101A, and store the decoded frame F3 (labeled as frame F3-2) in the output buffer 102A. Thus, at time Tm+1, the display interface 140 can output the frame F3-2 in the output buffer 102A to the screen so that the screen displays the image content of the frame F3-2. In the above process, the decoder 120 continuously prohibits the reference buffer 101A from being written to prevent the frame F2 in the reference buffer 101A from being overwritten.

在一些實施例中,刷新命令可源自使用者對圖幀的圖像內容進行縮放或裁切等操作之編輯指令。例如,當使用者對圖幀F3的圖像中的特定物件有興趣時,使用者可透過裁切命令與/或放大命令來編輯圖幀F3的圖像內容以更清楚地觀看該特定物件。於此條件下,處理器可響應上述命令發出刷新命令,以要求解碼器120再次解碼圖幀F3,並透過圖像調整模組130對圖幀F3的圖像內容執行上述的裁切與/或放大等編輯操作來產生圖幀F3-1或F3-2(其圖像內容相關於圖幀F3,例如可為,但不限於,圖幀F3的圖像內容的至少一部分),並將圖幀F3-1或圖幀F3-2儲存到輸出緩衝器102A。In some embodiments, the refresh command may be derived from a user's editing command to zoom in or out or crop the image content of the frame. For example, when the user is interested in a specific object in the image of frame F3, the user may edit the image content of frame F3 through a crop command and/or a zoom command to view the specific object more clearly. Under this condition, the processor may issue a refresh command in response to the above command to request the decoder 120 to decode frame F3 again, and perform the above-mentioned editing operations such as cropping and/or enlarging on the image content of frame F3 through the image adjustment module 130 to generate frame F3-1 or F3-2 (whose image content is related to frame F3, for example, it may be, but not limited to, at least a portion of the image content of frame F3), and store frame F3-1 or frame F3-2 in the output buffer 102A.

繼續參照圖3A,在操作S305,響應結束命令根據參考緩衝器中的第二圖幀再次解碼第三圖幀,並將解碼後的第三圖幀儲存到參考緩衝器。如圖3B所示,在時間Tm+1’(其位於時間Tm+1與Tm+2之間),使用者發出結束命令以關閉靜幀功能。響應此結束命令,解碼器120可允許參考緩衝器101A被寫入以繼續原有的圖像解碼操作。例如,解碼器120可根據參考緩衝器101A中的圖幀F2再次解碼圖幀F3,並將解碼後的圖幀(標示為圖幀F3-3,其圖像內容相同於圖幀F3)儲存到參考緩衝器101A以覆蓋圖幀F2的至少一部分。於此條件下,參考緩衝器101A中的參考圖幀更新為圖幀F3-3(即原先的圖幀F2的至少一部份被覆蓋為新的圖幀F3-3)。另一方面,圖像調整模組130可調整圖幀F3-3,並將調整後的圖幀F3-3儲存到輸出緩衝器102A。Continuing to refer to FIG. 3A , in operation S305, in response to the end command, the third frame is decoded again according to the second frame in the reference buffer, and the decoded third frame is stored in the reference buffer. As shown in FIG. 3B , at time Tm+1′ (which is between time Tm+1 and Tm+2), the user issues an end command to turn off the still frame function. In response to this end command, the decoder 120 may allow the reference buffer 101A to be written to continue the original image decoding operation. For example, the decoder 120 may decode the frame F3 again according to the frame F2 in the reference buffer 101A, and store the decoded frame (labeled as frame F3-3, whose image content is the same as frame F3) in the reference buffer 101A to cover at least a portion of the frame F2. Under this condition, the reference frame in the reference buffer 101A is updated to the frame F3-3 (i.e., at least a portion of the original frame F2 is covered as the new frame F3-3). On the other hand, the image adjustment module 130 may adjust the frame F3-3 and store the adjusted frame F3-3 in the output buffer 102A.

在操作S306,根據參考緩衝器中的第三圖幀解碼視訊資料的第四圖幀,並將解碼後的第四圖幀儲存到參考緩衝器。例如,如圖3B所示,在時間Tm+2,顯示介面140可將輸出緩衝器102A中經調整至待顯示的圖幀F3-3輸出給螢幕,以使螢幕顯示圖幀F3-3的圖像內容。另一方面,在時間Tm+2與時間Tm+3之間的期間,解碼器120可根據儲存於參考緩衝器101A中的圖幀F3-3對視訊資料D[1]中的圖幀F4解碼,並將解碼後的圖幀F4儲存到參考緩衝器101A以覆蓋圖幀F3的至少一部分,且圖像調整模組130可對解碼後的圖幀F4進行調整並將調整後的圖幀F4儲存到輸出緩衝器102A。於此條件下,參考緩衝器101A的參考圖幀更新為圖幀F4。In operation S306, the fourth frame of the video data is decoded according to the third frame in the reference buffer, and the decoded fourth frame is stored in the reference buffer. For example, as shown in FIG. 3B , at time Tm+2, the display interface 140 may output the frame F3-3 adjusted to be displayed in the output buffer 102A to the screen, so that the screen displays the image content of the frame F3-3. On the other hand, during the period between time Tm+2 and time Tm+3, the decoder 120 may decode the frame F4 in the video data D[1] according to the frame F3-3 stored in the reference buffer 101A, and store the decoded frame F4 in the reference buffer 101A to cover at least a portion of the frame F3, and the image adjustment module 130 may adjust the decoded frame F4 and store the adjusted frame F4 in the output buffer 102A. Under this condition, the reference frame of the reference buffer 101A is updated to the frame F4.

在操作S307,根據參考緩衝器中的第四圖幀解碼視訊資料的第五圖幀,並將解碼後的第五圖幀儲存到參考緩衝器。如圖3B所示,在時間Tm+3,顯示介面140可將輸出緩衝器102A中的圖幀F4輸出給螢幕,以使螢幕顯示圖幀F4的圖像內容。另一方面,在時間Tm+3與時間Tm+4之間的期間,解碼器120可根據儲存於參考緩衝器101A中的圖幀F4對視訊資料D[1]中的圖幀F5解碼,並將解碼後的圖幀F5儲存到參考緩衝器101A以覆蓋圖幀F4的至少一部分,且圖像調整模組130對解碼後的圖幀F5進行調整並將調整後的圖幀F5儲存到輸出緩衝器102A。於此條件下,參考緩衝器101A的參考圖幀更新為圖幀F5。藉由類似的操作,顯示介面140可在時間Tm+4將顯示圖幀F5輸出給螢幕,以使螢幕顯示圖幀F5的圖像內容。解碼器120可在時間Tm+4與時間Tm+5之間的期間解碼視訊資料D[1]的圖幀F6,並將解碼後的圖幀F6儲存到參考緩衝器101A以覆蓋圖幀F5的至少一部分。圖像調整模組130可調整圖幀F6並將調整後的圖幀F6儲存到輸出緩衝器102A。依此類推,應可理解解碼器120、圖像調整模組130及顯示介面140之間的相關操作。In operation S307, the fifth frame of the video data is decoded according to the fourth frame in the reference buffer, and the decoded fifth frame is stored in the reference buffer. As shown in FIG3B, at time Tm+3, the display interface 140 can output the frame F4 in the output buffer 102A to the screen so that the screen displays the image content of the frame F4. On the other hand, during the period between time Tm+3 and time Tm+4, the decoder 120 may decode the frame F5 in the video data D[1] according to the frame F4 stored in the reference buffer 101A, and store the decoded frame F5 in the reference buffer 101A to cover at least a portion of the frame F4, and the image adjustment module 130 adjusts the decoded frame F5 and stores the adjusted frame F5 in the output buffer 102A. Under this condition, the reference frame of the reference buffer 101A is updated to the frame F5. By similar operations, the display interface 140 can output the display frame F5 to the screen at time Tm+4 so that the screen displays the image content of the frame F5. The decoder 120 can decode the frame F6 of the video data D[1] between time Tm+4 and time Tm+5, and store the decoded frame F6 in the reference buffer 101A to cover at least a portion of the frame F5. The image adjustment module 130 can adjust the frame F6 and store the adjusted frame F6 in the output buffer 102A. By analogy, the related operations between the decoder 120, the image adjustment module 130 and the display interface 140 can be understood.

在一些實施例中,解碼器120更儲存分別對應於圖1的多個視訊資料D[1]~D[n]的多個旗標訊號(未示出)。響應靜幀命令,解碼器120可將對應於靜幀命令所選擇的特定視訊資料之旗標訊號設定為一預設值,並藉由確認該旗標訊號的數值來確認是否要禁止參考緩衝器101A(其用來儲存該特定視訊資料的圖幀)被寫入以避免對應的參考圖幀被覆蓋,進而保持該參考圖幀。換言之,系統中的軟體與/或處理器可響應靜幀命令來控制解碼器120將對應一特定通道的旗標訊號設定為該預設值,並響應結束命令來控制解碼器120清除(或重置)該旗標訊號的數值。如此,解碼器120可根據該旗標訊號的數值來判斷是否禁止一對應的參考緩衝器101A被寫入,以進行靜幀操作(例如為前述的操作S303至操作S305)。In some embodiments, the decoder 120 further stores a plurality of flag signals (not shown) respectively corresponding to the plurality of video data D[1]-D[n] of FIG1. In response to a still frame command, the decoder 120 may set the flag signal corresponding to the specific video data selected by the still frame command to a default value, and confirm whether to prohibit the reference buffer 101A (which is used to store the frame of the specific video data) from being written by confirming the value of the flag signal to prevent the corresponding reference frame from being overwritten, thereby retaining the reference frame. In other words, the software and/or processor in the system can control the decoder 120 to set the flag signal corresponding to a specific channel to the default value in response to the still frame command, and control the decoder 120 to clear (or reset) the value of the flag signal in response to the end command. In this way, the decoder 120 can determine whether to prohibit a corresponding reference buffer 101A from being written according to the value of the flag signal to perform still frame operations (for example, the aforementioned operations S303 to S305).

在圖3B中,多個圖幀F1、F2、F3、F4、F5與F6為時間上連續的圖幀。在此例中,解碼器120可將前一個圖幀做為參考圖幀,並根據此參考圖幀解碼當前圖幀。例如,解碼器120可將圖幀F1做為參考圖幀,並根據圖幀F1來解碼圖幀F2。類似地,解碼器120可將圖幀F2做為參考圖幀,並根據圖幀F2來解碼圖幀F3。應當理解,上述的設置方式僅為示例,且本案並不以此為限。在其他實施例中,可利用當前圖幀的前一個圖幀、前兩個圖幀、前三個圖幀等先前圖幀的資訊來做為參考圖幀以對當前圖幀進行解碼。換言之,本案的實施例並不限於使用前一個圖幀來作為解碼用的參考圖幀。In FIG. 3B , multiple frames F1, F2, F3, F4, F5, and F6 are temporally continuous frames. In this example, the decoder 120 may use the previous frame as a reference frame and decode the current frame based on the reference frame. For example, the decoder 120 may use frame F1 as a reference frame and decode frame F2 based on frame F1. Similarly, the decoder 120 may use frame F2 as a reference frame and decode frame F3 based on frame F2. It should be understood that the above configuration is only an example and the present invention is not limited thereto. In other embodiments, the information of the previous frame, two frames, three frames, etc. before the current frame can be used as a reference frame to decode the current frame. In other words, the embodiments of this case are not limited to using the previous frame as a reference frame for decoding.

圖4為根據本案一些實施例繪製一種靜幀圖像解碼方法400的流程圖。在操作S410,根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分。在操作S420,響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀。在操作S430,調整該第二圖幀,並將調整後的該第二圖幀儲存至該記憶體之一輸出位置。在操作S440,響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀。在操作S450,響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。FIG. 4 is a flow chart of a still frame image decoding method 400 according to some embodiments of the present invention. In operation S410, a first frame in a first video data among a plurality of video data is decoded according to a reference frame in a reference position of a memory, and the first frame is stored in the reference position to cover at least a portion of the reference frame. In operation S420, in response to a still frame command, the first video data is selected from the video data and a second frame in the first video data is decoded according to the first frame in the reference position. In operation S430, the second frame is adjusted, and the adjusted second frame is stored in an output position of the memory. In operation S440, the first frame in the reference position is retained in response to the still frame command to decode the second frame again according to the first frame in the reference position. In operation S450, the second frame is decoded again according to the first frame in the reference position in response to an end command to store the second frame in the reference position to cover at least a portion of the first frame.

上述多個操作可參照前述各實施例理解,故不再重複贅述。上述靜幀圖像解碼方法400的多個操作僅為示例,並非限定需依照此示例中的順序執行。在不違背本案的各實施例的操作方式與範圍下,在靜幀圖像解碼方法400下的各種操作當可適當地增加、替換、省略或以不同順序執行(例如可以是同時執行或是部分同時執行)。The above-mentioned operations can be understood with reference to the above-mentioned embodiments, so they will not be repeated. The above-mentioned operations of the still frame image decoding method 400 are only examples, and are not limited to be executed in the order in this example. Without violating the operation mode and scope of the embodiments of the present case, the various operations under the still frame image decoding method 400 can be appropriately added, replaced, omitted or executed in a different order (for example, they can be executed simultaneously or partially executed simultaneously).

綜上所述,本案一些實施例中的圖像解碼裝置與靜幀圖像解碼方法可在靜幀操作中確保參考圖幀不丟失,從而產生清晰的靜幀圖像。如此,可改善靜幀圖像出現失真的問題。In summary, the image decoding device and still frame image decoding method in some embodiments of the present invention can ensure that the reference frame is not lost during still frame operation, thereby generating clear still frame images. In this way, the problem of still frame image distortion can be improved.

雖然本案之實施例如上所述,然而該些實施例並非用來限定本案,本技術領域具有通常知識者可依據本案之明示或隱含之內容對本案之技術特徵施以變異,凡此種種變異均可能屬於本案所尋求之專利保護範疇,換言之,本案之專利保護範圍須視本說明書之申請專利範圍所界定者為準。Although the embodiments of the present invention are described above, these embodiments are not intended to limit the present invention. A person with ordinary knowledge in the technical field may modify the technical features of the present invention according to the explicit or implicit contents of the present invention. All such modifications may fall within the scope of patent protection sought by the present invention. In other words, the scope of patent protection of the present invention shall be subject to the scope of the patent application defined in this specification.

100:圖像解碼裝置 100A:記憶體 101A:參考緩衝器 102A:輸出緩衝器 110:視訊接收模組 120:解碼器 130:圖像調整模組 140:顯示介面 400:靜幀圖像解碼方法 D[1]~D[n]:視訊資料 F1~F6, F3-1, F3-2, F3-3:圖幀 S201, S202, S203:操作 S301, S302, S303, S304, S305, S306, S307, S308:操作 S410, S420, S430, S440, S450:操作 T0~T4, Tm~Tm+5, T1’, T4’, Tm+1’:時間 100: Image decoding device 100A: Memory 101A: Reference buffer 102A: Output buffer 110: Video receiving module 120: Decoder 130: Image adjustment module 140: Display interface 400: Still image decoding method D[1]~D[n]: Video data F1~F6, F3-1, F3-2, F3-3: Frame S201, S202, S203: Operation S301, S302, S303, S304, S305, S306, S307, S308: Operation S410, S420, S430, S440, S450: Operation T0~T4, Tm~Tm+5, T1’, T4’, Tm+1’: time

[圖1]為根據本案一些實施例繪製一種圖像解碼裝置的示意圖; [圖2]為根據本案一些實施例繪製響應靜幀命令的操作流程圖; [圖3A]為根據本案一些實施例繪製圖1中的解碼器執行靜幀操作的流程圖;[圖3B]為根據本案一些實施例繪製圖1中的解碼器進行圖像解碼的操作時序圖;以及 [圖4]為根據本案一些實施例繪製一種靜幀圖像解碼方法的流程圖。 [Figure 1] is a schematic diagram of an image decoding device according to some embodiments of the present invention; [Figure 2] is a flowchart of an operation of responding to a still frame command according to some embodiments of the present invention; [Figure 3A] is a flowchart of the decoder in Figure 1 performing a still frame operation according to some embodiments of the present invention; [Figure 3B] is a timing diagram of the operation of the decoder in Figure 1 performing image decoding according to some embodiments of the present invention; and [Figure 4] is a flowchart of a still frame image decoding method according to some embodiments of the present invention.

400:靜幀圖像解碼方法 400: Still image decoding method

S410,S420,S430,S440,S450:操作 S410, S420, S430, S440, S450: Operation

Claims (14)

一種靜幀圖像解碼方法,包含:根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分;響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀;調整該第二圖幀,並將調整後的該第二圖幀儲存至該記憶體之一輸出位置;若該靜幀命令是接收於該第二圖幀解碼完成之前,響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀;以及響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。 A still frame image decoding method comprises: decoding a first frame in a first video data among a plurality of video data according to a reference frame in a reference position of a memory, and storing the first frame in the reference position to cover at least a portion of the reference frame; selecting the first video data from the video data in response to a still frame command and decoding a second frame in the first video data according to the first frame in the reference position; adjusting the second frame, and storing the adjusted frame in the reference position; The second frame after the decoding is stored in an output position of the memory; if the still frame command is received before the decoding of the second frame is completed, the first frame in the reference position is kept in response to the still frame command to decode the second frame again according to the first frame in the reference position; and the second frame is decoded again according to the first frame in the reference position in response to an end command to store the second frame in the reference position to cover at least a portion of the first frame. 如請求項1之靜幀圖像解碼方法,其中若該靜幀命令是接收於該第二圖幀解碼完成之前,響應該靜幀命令保持該參考位置中之該第一圖幀包含:響應該靜幀命令禁止該參考位置被寫入,以避免該參考位置中的該第一圖幀被覆蓋。 As in claim 1, the still frame image decoding method, wherein if the still frame command is received before the decoding of the second frame is completed, responding to the still frame command to keep the first frame in the reference position includes: responding to the still frame command to prohibit the reference position from being written to avoid the first frame in the reference position being overwritten. 如請求項1之靜幀圖像解碼方法,其中若該靜幀命令是接收於該第二圖幀解碼完成之前,響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀包含:將再次解碼所得的該第二圖幀儲存至該記憶體之該輸出位置。 The still frame image decoding method of claim 1, wherein if the still frame command is received before the decoding of the second frame is completed, in response to the still frame command, the first frame in the reference position is maintained to decode the second frame again according to the first frame in the reference position, including: storing the second frame obtained by decoding again to the output position of the memory. 如請求項1之靜幀圖像解碼方法,更包含:在收到該靜幀命令後,響應一刷新命令根據該參考位置中的該第一圖幀再次解碼該第二圖幀。 The static frame image decoding method of claim 1 further comprises: after receiving the static frame command, responding to a refresh command to decode the second frame again according to the first frame in the reference position. 如請求項4之靜幀圖像解碼方法,更包含:響應該刷新命令編輯該第二圖幀以顯示該第二圖幀中的至少一部分圖像內容。 The still frame image decoding method of claim 4 further comprises: editing the second frame in response to the refresh command to display at least a portion of the image content in the second frame. 如請求項5之靜幀圖像解碼方法,其中編輯該第二圖幀包含:對該第二圖幀進行放大或裁切。 As in claim 5, the still frame image decoding method, wherein editing the second frame includes: enlarging or cropping the second frame. 如請求項1之靜幀圖像解碼方法,其中響應該結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的該至少一部分包含:響應該結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀;調整該第二圖幀,並將調整後的該第二圖幀儲存到該記憶體之該輸出位置;以及將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的該至少一部分。 The still frame image decoding method of claim 1, wherein in response to the end command, the second frame is decoded again according to the first frame in the reference position to store the second frame in the reference position to cover the at least part of the first frame, comprising: in response to the end command, the second frame is decoded again according to the first frame in the reference position; adjusting the second frame and storing the adjusted second frame in the output position of the memory; and storing the second frame in the reference position to cover the at least part of the first frame. 一種圖像解碼裝置,包含:一視訊接收模組,接收對應於不同通道的複數個視訊資料; 一圖像調整模組;以及一解碼器,用以:根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分;響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀,其中該圖像調整模組調整該第二圖幀並將調整後的該第二圖幀儲存至該記憶體之一輸出位置;若該靜幀命令是接收於該第二圖幀解碼完成之前,響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀;以及響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。 An image decoding device comprises: a video receiving module, receiving a plurality of video data corresponding to different channels; an image adjustment module; and a decoder, for: decoding a first frame in a first video data among a plurality of video data according to a reference frame at a reference position of a memory, and storing the first frame to the reference position to cover at least a portion of the reference frame; selecting the first video data from the video data in response to a still frame command and decoding the first video data according to the first frame in the reference position; a second frame, wherein the image adjustment module adjusts the second frame and stores the adjusted second frame to an output position of the memory; if the still frame command is received before the decoding of the second frame is completed, in response to the still frame command, the first frame in the reference position is retained to decode the second frame again according to the first frame in the reference position; and in response to an end command, the second frame is decoded again according to the first frame in the reference position to store the second frame to the reference position to cover at least a portion of the first frame. 如請求項8之圖像解碼裝置,其中若該靜幀命令是接收於該第二圖幀解碼完成之前,該解碼器響應該靜幀命令禁止該參考位置被寫入,以避免該參考位置中的該第一圖幀被覆蓋,以保持該參考圖幀。 The image decoding device of claim 8, wherein if the still frame command is received before the decoding of the second frame is completed, the decoder prohibits the reference position from being written in response to the still frame command to prevent the first frame in the reference position from being overwritten to maintain the reference frame. 如請求項8之圖像解碼裝置,其中該解碼器更將再次解碼所得的該第二圖幀儲存至該記憶體之該輸出位置。 As in claim 8, the image decoding device, wherein the decoder further stores the second image frame obtained by re-decoding to the output position of the memory. 如請求項8之圖像解碼裝置,其中在收到該靜幀命令後,該解碼器響應一刷新命令根據該參考位置中的該第一圖幀再次解碼該第二圖幀。 As in claim 8, the image decoding device, wherein after receiving the still frame command, the decoder responds to a refresh command to decode the second frame again according to the first frame in the reference position. 如請求項11之圖像解碼裝置,其中該圖像調整模組響應該刷新命令編輯該第二圖幀,以使一螢幕顯示該第二圖幀中的至少一部分圖像內容。 As in claim 11, the image decoding device, wherein the image adjustment module edits the second frame in response to the refresh command so that a screen displays at least a portion of the image content in the second frame. 如請求項12之圖像解碼裝置,其中該圖像調整模組對該第二圖幀進行放大或裁切,以編輯該第二圖幀。 As in the image decoding device of claim 12, wherein the image adjustment module enlarges or crops the second image frame to edit the second image frame. 如請求項8之圖像解碼裝置,其中該解碼器響應該結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,並將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的該至少一部分,且該圖像調整模組調整該第二圖幀以將調整後的該第二圖幀儲存到該記憶體之該輸出位置。 The image decoding device of claim 8, wherein the decoder decodes the second frame again according to the first frame in the reference position in response to the end command, and stores the second frame to the reference position to cover the at least a portion of the first frame, and the image adjustment module adjusts the second frame to store the adjusted second frame to the output position of the memory.
TW112105885A 2023-02-17 Image decoder device and static-frame image decoding method thereof TWI842399B (en)

Publications (1)

Publication Number Publication Date
TWI842399B true TWI842399B (en) 2024-05-11

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113647114A (en) 2019-03-14 2021-11-12 诺基亚技术有限公司 Apparatus, method and computer program for video encoding and decoding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113647114A (en) 2019-03-14 2021-11-12 诺基亚技术有限公司 Apparatus, method and computer program for video encoding and decoding

Similar Documents

Publication Publication Date Title
US7349476B2 (en) Digital motion picture decoding apparatus and digital motion picture decoding method
US7855724B2 (en) Transitioning between two high resolution images in a slideshow
JP4802524B2 (en) Image processing apparatus, camera system, video system, network data system, and image processing method
JP2006287597A (en) Camera device
JP2006303896A (en) Camera system for changing over display of reduced guide image in reproducing image by magnification, and image display method
TWI383686B (en) Image processing circuit and image processing method
US6259740B1 (en) Moving picture experts group video decoding apparatus and method for supporting replay
JP2009296081A (en) Video image reproducer
TWI842399B (en) Image decoder device and static-frame image decoding method thereof
JP4349249B2 (en) Image reproducing apparatus and image reproducing method
JP6803463B2 (en) Display device and its control method
JP3073948B2 (en) Digital video decoding apparatus and digital video decoding method
US7260307B2 (en) Method and system for generating a user interface for digital televisions
JP2004350142A (en) Data recording and reproducing apparatus
JPH11313273A (en) Display device
US20040252771A1 (en) Image capture apparatus
CN116170597A (en) Image decoding device and static frame image decoding method thereof
JP2998640B2 (en) Video playback device
JP2002027457A (en) Decoding method for reduced delay time
JP3104776B2 (en) Image reproducing device and image decoding device
JP2010193131A (en) Method and apparatus for decoding moving images
TWI847280B (en) Video switching method and video processing system
US8681269B2 (en) Video reproduction apparatus and video reproducing method
JP2006269046A (en) Device and method for data processing
JP3307822B2 (en) Image processing device