TWI842399B - Image decoder device and static-frame image decoding method thereof - Google Patents
Image decoder device and static-frame image decoding method thereof Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000004044 response Effects 0.000 claims abstract description 43
- 230000003068 static effect Effects 0.000 claims description 6
- 230000000717 retained effect Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 4
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Abstract
Description
本案是關於圖像解碼裝置,尤其是關於具有靜幀功能的圖像解碼裝置與其靜幀圖像解碼方法。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
圖像解碼裝置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
解碼器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
另一方面,參考緩衝器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
在一些實施例中,圖像調整模組130可根據預設指令(例如為多個視訊圖像組合顯示指令)調整經解碼器120解碼後的圖幀(例如前述的第一圖幀、第二圖幀等等),並將調整後的圖幀儲存到輸出緩衝器102A。例如,解碼器120可將解碼後的圖幀輸出至圖像調整模組130(或是將解碼後的圖幀儲存到輸出緩衝器102A,使得圖像調整模組130可自輸出緩衝器102A讀出解碼後的圖幀),且圖像調整模組130可根據預設指令對所收到的圖幀進行調整(例如可為縮小或裁切等圖像處理)以生成待顯示的圖幀,並將該待顯示的圖幀儲存到該輸出緩衝器102A。在一些實施例中,圖像調整模組130還可根據使用者的命令調整輸出緩衝器102A中所儲存的圖幀。例如,響應於使用者的縮放命令,圖像調整模組130可將一特定圖幀的圖像內容進行放大(或縮小),並經由顯示介面140輸出至螢幕來顯示調整後的圖像內容。或者,響應於使用者的裁剪命令,圖像調整模組130可對一特定圖幀的圖像內容進行裁切,並經由顯示介面140輸出至螢幕來顯示經裁切後的圖像內容。在一些實施例中,使用者可經由一用戶介面(例如可為,但不限於,經由軟體實施的介面)輸入上述的相關命令,且系統中的處理器電路(未示出)可接收使用者的命令,並發出相應的控制命令或控制訊號(未示出)給圖像解碼裝置100中的相關模組與/或電路來執行相應操作。在一些實施例中,圖像調整模組130可包含,但不限於,縮放比例控制器(scaler)電路等電路。在一些實施例中,顯示介面140可包含,但不限於,視訊輸出電路。In some embodiments, the
舉例來說,在同時瀏覽對應於多個視訊資料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
圖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
在操作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
在操作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
在操作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
在一些相關技術中,參考緩衝器的參考圖幀會不斷地被更新。換言之,在該些技術中,每解碼完一次新的圖幀,參考緩衝器所儲存的原有參考圖幀將會丟失(即被覆蓋為新的圖幀)。如此,在該些技術中,當使用者執行靜幀命令時,僅可根據被編輯過(例如為解析度被調整為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
圖3A為根據本案一些實施例繪製圖1中的解碼器120執行靜幀操作的流程圖,且圖3B為根據本案一些實施例繪製圖1中的解碼器120進行圖像解碼的操作時序圖。為方便說明,圖3A的多個操作將搭配圖3B的操作時序一併說明,其中圖3B的時序是以基於靜幀命令所選取的一視訊資料(假設為視訊資料D[1])中的多個圖幀為例。FIG3A is a flowchart of the
在操作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
在操作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
在操作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
換言之,在收到靜幀命令前,解碼器120會將解碼後的新圖幀儲存到參考緩衝器101A。如此,參考緩衝器101A的參考圖幀的至少一部分會被覆蓋為新的圖幀。在收到靜幀命令後,解碼器120會禁止參考緩衝器101A被寫入。如此,參考緩衝器101A的參考圖幀不會被覆蓋為新的圖幀。In other words, before receiving the silent frame command, the
如圖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
在操作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
在一些實施例中,刷新命令可源自使用者對圖幀的圖像內容進行縮放或裁切等操作之編輯指令。例如,當使用者對圖幀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
繼續參照圖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
在操作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
在操作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
在一些實施例中,解碼器120更儲存分別對應於圖1的多個視訊資料D[1]~D[n]的多個旗標訊號(未示出)。響應靜幀命令,解碼器120可將對應於靜幀命令所選擇的特定視訊資料之旗標訊號設定為一預設值,並藉由確認該旗標訊號的數值來確認是否要禁止參考緩衝器101A(其用來儲存該特定視訊資料的圖幀)被寫入以避免對應的參考圖幀被覆蓋,進而保持該參考圖幀。換言之,系統中的軟體與/或處理器可響應靜幀命令來控制解碼器120將對應一特定通道的旗標訊號設定為該預設值,並響應結束命令來控制解碼器120清除(或重置)該旗標訊號的數值。如此,解碼器120可根據該旗標訊號的數值來判斷是否禁止一對應的參考緩衝器101A被寫入,以進行靜幀操作(例如為前述的操作S303至操作S305)。In some embodiments, the
在圖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
圖4為根據本案一些實施例繪製一種靜幀圖像解碼方法400的流程圖。在操作S410,根據一記憶體之一參考位置之一參考圖幀解碼複數個視訊資料中之一第一視訊資料中的一第一圖幀,並將該第一圖幀儲存至該參考位置以覆蓋該參考圖幀的至少一部分。在操作S420,響應一靜幀命令自該等視訊資料選擇該第一視訊資料並根據該參考位置中之該第一圖幀解碼該第一視訊資料中的一第二圖幀。在操作S430,調整該第二圖幀,並將調整後的該第二圖幀儲存至該記憶體之一輸出位置。在操作S440,響應該靜幀命令保持該參考位置中之該第一圖幀,以根據該參考位置中之該第一圖幀再次解碼該第二圖幀。在操作S450,響應一結束命令根據該參考位置中之該第一圖幀再次解碼該第二圖幀,以將該第二圖幀儲存至該參考位置以覆蓋該第一圖幀的至少一部分。FIG. 4 is a flow chart of a still 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
綜上所述,本案一些實施例中的圖像解碼裝置與靜幀圖像解碼方法可在靜幀操作中確保參考圖幀不丟失,從而產生清晰的靜幀圖像。如此,可改善靜幀圖像出現失真的問題。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)
Publications (1)
Publication Number | Publication Date |
---|---|
TWI842399B true TWI842399B (en) | 2024-05-11 |
Family
ID=
Citations (1)
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)
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 |