TW201345269A - Image encoder, image coding method, image coding program, transmitter, transmission method, and transmission program, and image decoder, image decoding method, image decoding program, receiver, reception method, and reception program - Google Patents

Image encoder, image coding method, image coding program, transmitter, transmission method, and transmission program, and image decoder, image decoding method, image decoding program, receiver, reception method, and reception program Download PDF

Info

Publication number
TW201345269A
TW201345269A TW102111561A TW102111561A TW201345269A TW 201345269 A TW201345269 A TW 201345269A TW 102111561 A TW102111561 A TW 102111561A TW 102111561 A TW102111561 A TW 102111561A TW 201345269 A TW201345269 A TW 201345269A
Authority
TW
Taiwan
Prior art keywords
block
signal
quantization parameter
image
filtering
Prior art date
Application number
TW102111561A
Other languages
Chinese (zh)
Other versions
TWI563833B (en
Inventor
Hiroya Nakamura
Shigeru Fukushima
Masayoshi Nishitani
Original Assignee
Jvc Kenwood Corp
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
Priority claimed from JP2013070432A external-priority patent/JP2013229866A/en
Priority claimed from JP2013070431A external-priority patent/JP2013229865A/en
Application filed by Jvc Kenwood Corp filed Critical Jvc Kenwood Corp
Publication of TW201345269A publication Critical patent/TW201345269A/en
Application granted granted Critical
Publication of TWI563833B publication Critical patent/TWI563833B/zh

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A quantization parameter determination unit (102) sets the quantization parameters of a block. An orthogonal transform and quantization unit (108) quantizes the image signal of a block based on quantization parameters, compresses, and codes the image signal. A PCM coding unit (104) codes the uncompressed block image signal. A deblocking filter (111) uses the quantization parameter values set for each of the blocks on both sides of a block boundary to calculate the filtering strength, and applies a filtering process to the blocks on both sides of the block boundary. The deblocking filter (111) outputs the input signal before filtering without any modification as the output signal if the block is a coded uncompressed block.

Description

影像編碼裝置、影像編碼方法、影像編碼程式、送訊裝置、送訊方法、及送訊程式、以及影像解碼裝置、影像解碼方法、影像解碼程式、收訊裝置、收訊方法、及收訊程式 Image coding device, image coding method, image coding program, transmission device, transmission method, and transmission program, and image decoding device, image decoding method, image decoding program, receiving device, receiving method, and receiving program

本發明係有關於影像編碼及解碼技術,尤其是有關於利用了濾波的影像編碼及解碼技術。 The present invention relates to video encoding and decoding techniques, and more particularly to image encoding and decoding techniques that utilize filtering.

動態影像的壓縮編碼方式的具有代表性者,係有MPEG-2視訊、MPEG-4映像、MPEG-4 AVC/H.264等規格。在這些規格中,是將圖像分割成複數矩形區塊而以區塊單位來進行編碼/解碼。由於是以區塊單位,進行畫面內預測、畫面間預測、正交轉換、量化而進行編碼,因此在區塊的交界會產生失真。此失真被稱作區塊失真。區塊失真,係因為夾著區塊交界的上下、或左右的2個區塊間的畫面內/畫面間等之模式、在畫面間預測中所參照之影像、在畫面間預測中所使用的運動向量、量化之際的量化參數等之差異等原因,而發生。對解碼後的影像,去除或減少該區塊失真的處理,稱作去區塊濾波法。 Representatives of the compression coding method for moving pictures include MPEG-2 video, MPEG-4 video, and MPEG-4 AVC/H.264. Among these specifications, an image is divided into a plurality of rectangular blocks and encoded/decoded in block units. Since intra-picture prediction, inter-picture prediction, orthogonal conversion, and quantization are performed in block units, encoding is performed at the boundary of the block. This distortion is called block distortion. The block distortion is a pattern that is interposed between the upper and lower sides of the block boundary or between the two blocks on the left and right sides, the image referred to between the inter-picture predictions, and the inter-picture prediction. Occurs due to differences in motion vectors, quantization parameters, and the like. The process of removing or reducing the block distortion for the decoded image is called deblocking filtering.

[先前技術文獻] [Previous Technical Literature] [非專利文獻] [Non-patent literature]

[非專利文獻1]ISO/IEC 14496-10 Information technology--Coding of audio-visual objects--Part 10:Advanced Video Coding [Non-Patent Document 1] ISO/IEC 14496-10 Information technology--Coding of audio-visual objects--Part 10: Advanced Video Coding

為了減少因量化所產生的區塊失真,去區塊濾波之強度,必須要隨著量化參數而適切地設定。 In order to reduce the block distortion caused by quantization, the intensity of the deblocking filter must be appropriately set with the quantization parameter.

本發明係有鑑於此種狀況而研發,其目的在於,提供一種,為了降低區塊失真而可適切地設定去區塊濾波之強度(濾波強度)的影像編碼技術及對應於其的影像解碼技術。 The present invention has been developed in view of such a situation, and an object thereof is to provide an image coding technique capable of appropriately setting the intensity (filtering strength) of deblocking filtering in order to reduce block distortion and an image decoding technique corresponding thereto .

為了解決上記課題,本發明的某個態樣的影像編碼裝置,係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼裝置,其係含有:量化參數決定部(102),係將區塊的量化參數,予以設定;和第1編碼部(108),係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼部(104),係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波器部(111),係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾波器部(111),係在前記 被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 In order to solve the above problems, a video encoding apparatus according to an aspect of the present invention is a video encoding apparatus for encoding a video signal including a luminance signal and a color difference signal in a block unit, and includes: a quantization parameter determining unit (102) And setting a quantization parameter of the block; and the first coding unit (108) quantizes, compresses, and encodes the video signal of the block based on the pre-quantization parameter; and the second coding unit (104), The image signal of the block is uncompressed and encoded; and the deblocking filter unit (111) uses the quantization parameter values set by the blocks on both sides of the block boundary to derive the filter strength. The blocks on both sides of the boundary of the preceding block are subjected to filtering processing. The pre-recorded block filter unit (111) is based on the pre-record On the block that is not compression-coded, the input signal before the pre-filtering process is implemented as an output signal.

本發明的另一態樣,係亦為影像編碼裝置。該裝置係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼裝置,其係含有:量化參數決定部(102),係將區塊的量化參數,予以設定;和第1編碼部(108),係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼部(104),係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波器部(111),係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾波器部(111)係若前記區塊是進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 Another aspect of the invention is also an image encoding device. The device is a video encoding device that encodes an image signal including a luminance signal and a color difference signal in a block unit, and includes: a quantization parameter determining unit (102) that sets a quantization parameter of the block; and the first The encoding unit (108) quantizes, compresses, and encodes the video signal of the block based on the pre-quantified quantization parameter; and the second encoding unit (104) performs non-compression encoding on the video signal of the block; The block filter unit (111) determines the filter strength by using the quantization parameter values set by the blocks on both sides of the block boundary, and performs filtering processing on the blocks on both sides of the boundary of the preceding block. The pre-blocking filter unit (111) is a block that performs non-compression coding if the pre-block is a block, and the input signal before filtering is directly used as an output signal.

本發明的另一其他態樣,係為影像編碼方法。該方法係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法,其係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記 濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the present invention is an image encoding method. The method is a video encoding method for encoding an image signal containing a luminance signal and a color difference signal in a block unit, comprising: a quantization parameter determining step of setting a quantization parameter of the block; and a first encoding step, The image signal of the block is quantized, compressed and encoded based on the pre-quantified quantization parameter; and the second encoding step is to perform non-compression coding on the image signal of the block; and the deblocking filtering step is to use the block The quantization parameter values set by the blocks on both sides of the boundary are used to derive the filter strength, and the blocks on both sides of the boundary of the preceding block are subjected to filtering processing. The pre-blocking filtering step is performed on the block that was previously uncompressed and encoded. The input signal before the filtering process is directly used as the output signal.

本發明的再另一態樣,係亦為影像編碼方法。該方法係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法,其係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾波步驟係若前記區塊是進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 Still another aspect of the present invention is also an image encoding method. The method is a video encoding method for encoding an image signal containing a luminance signal and a color difference signal in a block unit, comprising: a quantization parameter determining step of setting a quantization parameter of the block; and a first encoding step, The image signal of the block is quantized, compressed and encoded based on the pre-quantified quantization parameter; and the second encoding step is to perform non-compression coding on the image signal of the block; and the deblocking filtering step is to use the block The quantization parameter values set by the blocks on both sides of the boundary determine the filtering strength, and the filtering processing is performed on the blocks on both sides of the boundary of the preceding block. The pre-blocking filtering step is that if the pre-block is a block that is not compression-coded, the input signal before filtering is directly used as an output signal.

本發明的另一其他態樣,係為送訊裝置。該裝置係具備:封包處理部,係將編碼位元列進行封包化而獲得編碼串流,該編碼位元列係藉由以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法而被編碼而成;和送訊部,係將已被封包化之前記編碼串流,予以發送。前記影像編碼方法係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾 波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the invention is a signal transmitting device. The apparatus includes a packet processing unit that encapsulates a coded bitstream to obtain a coded stream, the coded bitstream is an image in which a video signal including a luminance signal and a color difference signal is encoded in a block unit. The encoding method is encoded; and the transmitting unit transmits the encoded stream before being packetized. The pre-image encoding method includes: a quantization parameter determining step of setting a quantization parameter of the block; and a first encoding step of quantizing, compressing, and encoding the image signal of the block based on the pre-quantified parameter; The second encoding step is to perform uncompressed encoding on the image signal of the block; and the deblocking filtering step is to use the quantization parameter values set by the blocks on both sides of the block boundary to derive the filtering strength. Filtering is performed on the blocks on both sides of the boundary of the preceding block. Pre-blocking filter The wave step is performed on the block which is previously uncompressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal.

本發明的另一其他態樣,係為送訊方法。該方法係具備:封包處理步驟,係將編碼位元列進行封包化而獲得編碼串流,該編碼位元列係藉由以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法而被編碼而成;和送訊步驟,係將已被封包化之前記編碼串流,予以發送。前記影像編碼方法係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理。前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the present invention is a method of transmitting. The method includes: a packet processing step of packetizing a coded bit column to obtain a coded stream, wherein the coded bit string is an image obtained by encoding a video signal including a luminance signal and a color difference signal in a block unit. The encoding method is encoded; and the sending step is to encode the stream before being packetized and send it. The pre-image encoding method includes: a quantization parameter determining step of setting a quantization parameter of the block; and a first encoding step of quantizing, compressing, and encoding the image signal of the block based on the pre-quantified parameter; The second encoding step is to perform uncompressed encoding on the image signal of the block; and the deblocking filtering step is to use the quantization parameter values set by the blocks on both sides of the block boundary to derive the filtering strength. Filtering is performed on the blocks on both sides of the boundary of the preceding block. The pre-blocking filtering step is performed on the block which is previously uncompressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal.

本發明的某個態樣的影像解碼裝置,係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼裝置,其係含有:量化參數導出部(205),係將區塊的量化參數,予以導出;和第1解碼部(209),係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部(207),係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波器部(211),係使用區塊交界之兩側的區塊所各自被設定之量 化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波器部(211),係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 A video decoding apparatus for decoding a video signal including a luminance signal and a color difference signal in a block unit includes a quantization parameter deriving unit (205), which is a block. And the first decoding unit (209) performs inverse quantization and decoding on the video signal of the block that has been compression-coded based on the pre-determined quantization parameter; and the second decoding unit (207) The image signal of the block that has been uncompressed coded is decoded; and the deblocking filter unit (211) is used to set the amount of each block on both sides of the block boundary. The parameter values are used to derive the filter strength, and the decoded image signals of the blocks on both sides of the pre-block boundary are subjected to filtering processing. The pre-blocking block filter unit (211) directly converts the input signal before the pre-filtering process into the output signal on the pre-recorded video signal of the block which is uncompressed.

本發明的另一態樣,係亦為影像解碼裝置。該裝置係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼裝置,其係含有:量化參數導出部(205),係將區塊的量化參數,予以導出;和第1解碼部(209),係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部(207),係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波器部(221),係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波器部(221)係若前記區塊是被進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 Another aspect of the present invention is also a video decoding device. The device is a video decoding device for decoding an image signal including a luminance signal and a color difference signal in a block unit, and includes: a quantization parameter deriving unit (205) for deriving the quantization parameter of the block; and the first The decoding unit (209) performs inverse quantization and decoding on the video signal of the block that has been compression-coded based on the pre-quantization parameter; and the second decoding unit (207) is a block that has been non-compressed. The image signal is decoded; and the deblocking filter unit (221) determines the filter strength by using the quantization parameter values set by the blocks on both sides of the block boundary, and the two sides of the boundary of the preceding block are determined. The decoded video signal of the block is subjected to filtering processing. The pre-blocking filter unit (221) is used to directly convert the input signal before filtering into an output signal if the pre-block is a block that is subjected to non-compression coding.

本發明的另一其他態樣,係為影像解碼方法。該方法係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼方法,其係含有:量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟 ,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the present invention is a video decoding method. The method is a video decoding method for decoding an image signal containing a luminance signal and a color difference signal in a block unit, comprising: a quantization parameter deriving step of deriving a quantization parameter of the block; and a first decoding step, The image signal of the block that has been compression-coded is inverse quantized and decoded based on the pre-quantified quantization parameter; and the second decoding step is to decode the image signal of the block that has been uncompressed, and de-algorithm Block filtering step The filtering intensity is derived by using the quantization parameter values set by the blocks on both sides of the block boundary, and the decoded image signals of the blocks on both sides of the pre-block boundary are subjected to filtering processing. The pre-blocking filtering step is performed on the pre-recorded decoded video signal of the block which is not compressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal.

本發明的再另一態樣,係亦為影像解碼方法。該方法係以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼方法,其係含有:量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波步驟係若前記區塊是已被非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 Still another aspect of the present invention is also a video decoding method. The method is a video decoding method for decoding an image signal containing a luminance signal and a color difference signal in a block unit, comprising: a quantization parameter deriving step of deriving a quantization parameter of the block; and a first decoding step, The image signal of the block that has been compression-coded is inverse quantized and decoded based on the pre-quantified quantization parameter; and the second decoding step is to decode the image signal of the block that has been uncompressed, and de-algorithm The block filtering step determines the filtering strength by using the quantization parameter values set by the blocks on both sides of the block boundary, and performs filtering processing on the decoded image signals of the blocks on both sides of the pre-block boundary. The pre-blocking filtering step is to treat the input signal before filtering as an output signal if the pre-block is a block that has been non-compressed.

本發明的另一其他態樣,係為收訊裝置。該裝置係屬於將影像所被編碼而成之編碼位元列予以接收並解碼的收訊裝置,其係含有:受信部,係將編碼串流予以接收,該編碼串流係為,含有亮度訊號與色差訊號的影像訊號是以區塊單位被編碼而成之編碼位元列所被封包化而成;和復原部,係將已被接收到的前記編碼串流進行封包處理,以復原出原本的編碼位元列;和量化參數導出部 (205),係將區塊的量化參數,予以導出;和第1解碼部(209),係從已被復原之前記原本的編碼位元列,將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部(207),係從已被復原之前記原本的編碼位元列,解碼出已被非壓縮編碼之區塊的影像訊號;和去區塊濾波器部(211),係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波器部(211),係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the invention is a receiving device. The device belongs to a receiving device that receives and decodes a coded bit sequence encoded by an image, and includes a receiving unit that receives a coded stream, and the encoded stream is a brightness signal. And the image signal of the color difference signal is encapsulated by the coded bit column encoded by the block unit; and the restoring unit encapsulates the received pre-coded stream to recover the original Encoded bit column; and quantization parameter derivation unit (205), the quantization parameter of the block is derived; and the first decoding unit (209) records the video signal of the block that has been compression-coded from the original coded bit sequence before being restored. Performing inverse quantization and decoding based on the pre-quantization parameter; and the second decoding unit (207) decodes the video signal of the block that has been non-compressed encoded from the original encoded bit sequence before being restored; The block filter unit (211) uses the quantization parameter values set by the blocks on both sides of the block boundary to derive the filter strength, and the decoded image signals of the blocks on both sides of the boundary of the preceding block boundary. Perform filtering processing. The pre-blocking block filter unit (211) directly converts the input signal before the pre-filtering process into the output signal on the pre-recorded video signal of the block which is uncompressed.

本發明的另一其他態樣,係為收訊方法。該方法係屬於將影像所被編碼而成之編碼位元列予以接收並解碼的收訊方法,其係含有:受信步驟,係將編碼串流予以接收,該編碼串流係為,含有亮度訊號與色差訊號的影像訊號是以區塊單位被編碼而成之編碼位元列所被封包化而成;和復原步驟,係將已被接收到的前記編碼串流進行封包處理,以復原出原本的編碼位元列;和量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係從已被復原之前記原本的編碼位元列,將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係從已被復原之前記原本的編碼位元列,解碼出已被非壓縮編碼之區塊的影像訊號;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設 定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理。前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 Another aspect of the present invention is a receiving method. The method belongs to a receiving method for receiving and decoding a coded bit sequence encoded by an image, which comprises: a receiving step of receiving a coded stream, wherein the encoded stream is a brightness signal And the image signal of the color difference signal is encapsulated by the coded bit column encoded by the block unit; and the restoration step is to packetize the received pre-coded stream to recover the original a coding bit column; and a quantization parameter derivation step of deriving the quantization parameter of the block; and a first decoding step of recording the originally coded bit column from the original encoded bit column before being restored The image signal of the block is inversely quantized and decoded based on the pre-quantitative parameter; and the second decoding step is to decode the original image bit sequence from the original bit before decoding, and decode the image signal of the block that has been non-compressed. And the deblocking filtering step, the blocks on both sides of the block boundary are respectively set. The parameter values are quantized to derive the filter strength, and the decoded image signals of the blocks on both sides of the pre-block boundary are subjected to filtering processing. The pre-blocking filtering step is performed on the pre-recorded decoded video signal of the block which is not compressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal.

此外,即使將以上構成要素之任意組合、本發明之表現,在方法、裝置、系統、記錄媒體、電腦程式等之間做轉換而成者,對本發明的態樣而言皆為有效。 Further, even if any combination of the above constituent elements and the expression of the present invention are converted between a method, an apparatus, a system, a recording medium, a computer program, etc., it is effective for the aspect of the present invention.

若依據本發明,則可適切地設定濾波強度以降低區塊失真。 According to the present invention, the filter strength can be appropriately set to reduce block distortion.

101‧‧‧影像記憶體 101‧‧‧Image memory

102‧‧‧量化參數決定部 102‧‧‧Quantity Parameter Determination Department

103‧‧‧畫面內預測部 103‧‧‧Intra-frame prediction department

104‧‧‧PCM編碼部 104‧‧‧PCM coding department

105‧‧‧畫面間預測部 105‧‧‧Inter-picture prediction department

106‧‧‧編碼方法決定部 106‧‧‧Code Method Determination Department

107‧‧‧殘差訊號生成部 107‧‧‧Residual Signal Generation Department

108‧‧‧正交轉換‧量化部 108‧‧‧Orthogonal Conversion ‧Quantity Department

109‧‧‧逆量化‧逆正交轉換部 109‧‧‧ inverse quantization ‧ inverse orthogonal transformation

110‧‧‧解碼影像訊號重疊部 110‧‧‧Decoded image signal overlap

111‧‧‧去區塊濾波器部 111‧‧‧Deblocking Filter Section

112‧‧‧編碼資訊儲存記憶體 112‧‧‧ Coded information storage memory

113‧‧‧第1解碼影像記憶體 113‧‧‧1st decoded image memory

114‧‧‧第2解碼影像記憶體 114‧‧‧2nd decoded image memory

115‧‧‧第1編碼位元列生成部 115‧‧‧1st coded bit column generation unit

116‧‧‧第2編碼位元列生成部 116‧‧‧2nd coded bit column generation unit

117‧‧‧第3編碼位元列生成部 117‧‧‧3rd coded bit column generation unit

118‧‧‧編碼位元列多工化部 118‧‧‧Coded bit column

119‧‧‧開關 119‧‧‧ switch

201‧‧‧編碼位元列分離部 201‧‧‧Coded bit column separation

202‧‧‧第1編碼位元列解碼部 202‧‧‧1st coded bit column decoding unit

203‧‧‧第2編碼位元列解碼部 203‧‧‧2nd coded bit column decoding unit

204‧‧‧第3編碼位元列解碼部 204‧‧‧3rd coded bit column decoding unit

205‧‧‧量化參數導出部 205‧‧‧Quantity Parameter Derivation Department

206‧‧‧畫面內預測部 206‧‧‧Intra-frame prediction department

207‧‧‧PCM解碼部 207‧‧‧PCM decoding department

208‧‧‧畫面間預測部 208‧‧‧Inter-picture prediction department

209‧‧‧逆量化‧逆正交轉換部 209‧‧‧ inverse quantization ‧ inverse orthogonal transformation

210‧‧‧解碼影像訊號重疊部 210‧‧‧Decoded image signal overlap

211‧‧‧去區塊濾波器部 211‧‧‧Deblocking Filter Division

212‧‧‧編碼資訊儲存記憶體 212‧‧‧ Coded information storage memory

213‧‧‧第1解碼影像記憶體 213‧‧‧1st decoded image memory

214‧‧‧第2解碼影像記憶體 214‧‧‧2nd decoded image memory

215‧‧‧開關 215‧‧‧ switch

216‧‧‧開關 216‧‧‧ switch

[圖1]實施形態的影像編碼裝置之構成的區塊圖。 Fig. 1 is a block diagram showing the configuration of a video encoding apparatus according to an embodiment.

[圖2]實施形態的影像解碼裝置之構成的區塊圖。 Fig. 2 is a block diagram showing the configuration of a video decoding device according to an embodiment.

[圖3]本實施例所規定之樹區塊、及編碼區塊的說明圖。 Fig. 3 is an explanatory diagram of a tree block and a coding block defined in the present embodiment.

[圖4]本實施例所規定之分割模式的說明圖。 Fig. 4 is an explanatory diagram of a division mode defined in the present embodiment.

[圖5]量化群組區塊之一例的說明圖。 [Fig. 5] An explanatory diagram of an example of quantizing a group block.

[圖6]量化參數之決定及編碼處理程序的說明用流程圖。 [Fig. 6] A flowchart for explaining the determination of the quantization parameter and the description of the encoding processing procedure.

[圖7]量化參數之解碼.導出處理程序的說明用流程圖。 [Figure 7] Decoding of quantization parameters. The flow chart is used to describe the export handler.

[圖8]圖6的步驟S1109、圖7的步驟S1206中的量 化參數之預測值之導出處理之程序的說明用流程圖。 8] The amount in step S1109 of FIG. 6 and step S1206 of FIG. A flow chart is used to explain the procedure for deriving the predicted value of the parameter.

[圖9]區塊交界之像素之一例的說明圖。 [Fig. 9] An explanatory diagram of an example of a pixel at a block boundary.

[圖10]影像編碼裝置的去區塊濾波器部111及影像解碼裝置的去區塊濾波器部211所進行的處理之程序的說明用流程圖。 FIG. 10 is a flowchart for explaining a procedure of processing performed by the deblocking filter unit 111 of the video encoding device and the deblocking filter unit 211 of the video decoding device.

[圖11]每編碼區塊的去區塊濾波器處理程序的說明用流程圖。 [Fig. 11] A flowchart for explaining the deblocking filter processing procedure for each coding block.

[圖12]編碼區塊內的轉換區塊的垂直交界與水平交界之一例的說明圖。 [Fig. 12] An explanatory diagram of an example of a vertical boundary and a horizontal boundary of a conversion block in a coding block.

[圖13]編碼區塊內的預測區塊的垂直交界與水平交界之一例的說明圖。 [Fig. 13] An explanatory diagram of an example of a vertical boundary and a horizontal boundary of a prediction block in a coding block.

[圖14]圖11的步驟S2204的訊號之濾波處理程序的流程圖。 FIG. 14 is a flowchart of a filter processing procedure of the signal of step S2204 of FIG.

[圖15]第1實施例的圖14之步驟S2302的區塊邊緣的濾波處理程序的流程圖。 Fig. 15 is a flowchart showing a filter processing procedure of the block edge in step S2302 of Fig. 14 of the first embodiment.

[圖16]將索引indexB與變數β建立對應而成的表的說明圖。 FIG. 16 is an explanatory diagram of a table in which an index indexB and a variable β are associated with each other.

[圖17]將索引indexTc與變數tc建立對應而成的表的說明圖。 FIG. 17 is an explanatory diagram of a table in which an index indexTc is associated with a variable tc.

[圖18]第1實施例的圖15之步驟S3114中的每線之訊號的濾波處理之程序的流程圖。 Fig. 18 is a flowchart showing a procedure of filtering processing of signals of each line in step S3114 of Fig. 15 of the first embodiment.

[圖19]第2實施例及第3實施例的圖14之步驟S2302的區塊邊緣的濾波處理程序的流程圖。 Fig. 19 is a flowchart showing a filter processing procedure of the block edge in step S2302 of Fig. 14 of the second embodiment and the third embodiment.

[圖20]第2實施例的圖19之步驟S3114中的每線之 訊號的濾波處理之程序的流程圖。 20] Each line in step S3114 of FIG. 19 of the second embodiment Flowchart of the program for filtering the signal.

[圖21]第3實施例的圖19之步驟S3114中的每線之訊號的濾波處理之程序的流程圖。 Fig. 21 is a flowchart showing a procedure of filtering processing of signals of each line in step S3114 of Fig. 19 of the third embodiment.

在本實施形態中,係關於動態影像的編碼,尤其是以將圖像分割成任意尺寸、形狀之矩形而成的區塊單位,進行後述的畫面內預測、畫面間預測、正交轉換、量化而進行編碼。 In the present embodiment, the encoding of the moving image is performed, in particular, by dividing the image into blocks of a rectangle of an arbitrary size and shape, and performing intra-frame prediction, inter-frame prediction, orthogonal conversion, and quantization, which will be described later. And coding.

首先定義本實施形態中所使用的技術、及技術用語。 First, the technique and technical terms used in the present embodiment are defined.

(關於樹區塊、編碼區塊) (about tree block, coding block)

在實施形態中,如圖3所示,將圖像內均等分割成任意之同一尺寸的正方之矩形單位。將此單位定義為樹區塊,是用來在圖像內將編碼/解碼對象區塊(編碼處理時係為編碼對象區塊、解碼處理時係為解碼對象區塊。以下若無特別聲明則都是如此意思)加以特定所需之位址管理的基本單位。單色除外的樹區塊,係由1個亮度訊號與2個色差訊號所構成。樹區塊的尺寸係隨應於圖像尺寸或圖像內的紋理,而可自由設定成2的次方數的尺寸。樹區塊係會隨著圖像內的紋理,為了使編碼處理最佳化,而可因應需要而將樹區塊內的亮度訊號及色差訊號遞迴地4分割(縱橫各2分割),變成小尺寸的區塊。將此區塊分別定義為 編碼區塊,是進行編碼及解碼之際的處理的基本單位。單色除外的編碼區塊,也是由1個亮度訊號與2個色差訊號所構成。編碼區塊的最大尺寸係和樹區塊的尺寸相同。編碼區塊的最小尺寸之編碼區塊稱作最小編碼區塊,可自由設定成2的次方數的尺寸。 In the embodiment, as shown in FIG. 3, the image is equally divided into rectangular units of any square of the same size. This unit is defined as a tree block, which is used to encode/decode the target block in the image (the encoding process block is the encoding target block and the decoding process is the decoding target block. Unless otherwise stated) This is the basic unit of address management that is specifically required. A tree block other than monochrome is composed of one luminance signal and two color difference signals. The size of the tree block corresponds to the size of the image or the texture within the image, and can be freely set to the size of the power of two. In order to optimize the encoding process, the tree block system can change the brightness signal and the color difference signal in the tree block back to the ground (2 divisions in the vertical and horizontal directions) according to the texture in the image. Small size blocks. Define this block as The coding block is the basic unit of processing at the time of encoding and decoding. The coding block except for monochrome is also composed of one luminance signal and two color difference signals. The maximum size of the coding block is the same as the size of the tree block. The coding block of the smallest size of the coding block is called the minimum coding block and can be freely set to the size of the power of 2.

於圖3中,編碼區塊A係不將樹區塊做分割,而當作1個編碼區塊。編碼區塊B係為將樹區塊做4分割而成的編碼區塊。編碼區塊C係為將樹區塊做4分割而成的區塊再做4分割而成的編碼區塊。編碼區塊D係為將樹區塊做4分割而成的區塊再遞迴地二度做4分割而成的編碼區塊,是最小尺寸的編碼區塊。 In FIG. 3, the coding block A does not divide the tree block and treats it as one coding block. The coding block B is a coding block in which the tree block is divided into four. The coding block C is a coding block in which a block in which the tree block is divided into four is further divided into four. The coding block D is a coding block in which a block in which a tree block is divided into four and is divided into four and is divided into four, and is a coding block of a minimum size.

於實施形態的說明中,是以色差格式為4:2:0的方式,將樹區塊的尺寸設定成亮度訊號為64×64像素、色差訊號為32×32像素,將最小編碼區塊的尺寸設定成亮度訊號為8×8像素、色差訊號為4×4像素。在圖3中,編碼區塊A的尺寸係在亮度訊號為64×64像素、色差訊號為32×32像素,編碼區塊B的尺寸係在亮度訊號為32×32像素、色差訊號為16×16像素,編碼區塊C的尺寸係在亮度訊號為16×16像素、色差訊號為8×8像素,編碼區塊D的尺寸係在亮度訊號為8×8像素、色差訊號為4×4像素。此外,當色差格式是4:4:4時,各編碼區塊的亮度訊號與色差訊號的尺寸係相等。當色差格式是4:2:2時,編碼區塊A的尺寸係在色差訊號為32×64像素,編碼區塊B的尺寸係在色差訊號為16×32像素,編碼區塊C的 尺寸係在色差訊號為8×16像素,最小編碼區塊亦即編碼區塊D的尺寸係在色差訊號為4×8像素。 In the description of the embodiment, the size of the tree block is set to a luminance signal of 64×64 pixels and a color difference signal of 32×32 pixels in a manner that the color difference format is 4:2:0, and the minimum coding block is The size is set to 8×8 pixels for the luminance signal and 4×4 pixels for the color difference signal. In FIG. 3, the size of the coding block A is 64×64 pixels for the luminance signal and 32×32 pixels for the color difference signal, and the size of the coding block B is 32×32 pixels for the luminance signal and 16× for the color difference signal. 16 pixels, the size of the coding block C is 16×16 pixels, the color difference signal is 8×8 pixels, and the size of the coding block D is 8×8 pixels for the luminance signal and 4×4 pixels for the color difference signal. . In addition, when the color difference format is 4:4:4, the luminance signal of each coding block is equal to the size of the color difference signal. When the color difference format is 4:2:2, the size of the coding block A is 32×64 pixels in the color difference signal, and the size of the coding block B is 16×32 pixels in the color difference signal, and the coding block C is The size is 8 × 16 pixels, and the smallest coding block, that is, the size of the coding block D is 4 × 8 pixels.

(關於預測模式) (about prediction mode)

以編碼區塊單位,切換著不使用已編碼/解碼(在編碼處理時係用於將已編碼之訊號進行解碼後的圖像、預測區塊、影像訊號等,在解碼處理時係用於已解碼之圖像、預測區塊、影像訊號等。以下,只要沒有特別聲明,就照該意義來使用)的圖像就在編碼/解碼對象圖像內進行編碼的畫面內模式(MODE_INTRA)、及參照已編碼/解碼之圖像的解碼影像訊號來進行畫面間預測以進行編碼的畫面間模式(MODE_INTER)。將用來識別該畫面內模式(MODE_INTRA)與畫面間模式(MODE_INTER)的模式,定義成預測模式(PredMode)。預測模式(PredMode)係具有畫面內模式(MODE_INTRA)、或畫面間模式(MODE_INTER)之值,可選擇而編碼。 In the coding block unit, switching to not use the encoded/decoded (in the encoding process, the image, the prediction block, the video signal, etc., which are used to decode the encoded signal, are used in the decoding process. In-picture mode (MODE_INTRA) in which an image to be decoded is encoded in an encoding/decoding target image, and an image to be decoded, a prediction block, an image signal, and the like, which will be used in the following sense unless otherwise specified An inter-picture mode (MODE_INTER) for performing inter-picture prediction by referring to the decoded video signal of the encoded/decoded picture. The mode for identifying the intra mode (MODE_INTRA) and the inter mode (MODE_INTER) is defined as a prediction mode (PredMode). The prediction mode (PredMode) has the value of the intra mode (MODE_INTRA) or the inter mode (MODE_INTER), and can be selected and encoded.

(關於分割模式、預測區塊、預測單元) (About split mode, prediction block, prediction unit)

將圖像內分割成區塊來進行畫面內預測及畫面間預測時,為了使畫面內預測及畫面間預測之方法的切換單位更小,會因應需要而將編碼區塊進行分割然後進行預測。將用來識別該編碼區塊之亮度訊號與色差訊號的分割方法的模式,定義成分割模式(PartMode)。然後,還因應需要而將該已被分割之區塊,定義成預測區塊。如圖4所示,隨 著編碼區塊的亮度訊號的分割方法,定義8種分割模式(PartMode)。 When intra-picture prediction and inter-picture prediction are performed by dividing an intra-picture into blocks, in order to make the switching unit of the intra-picture prediction and the inter-picture prediction method smaller, the coding block is divided and predicted as necessary. A mode for identifying a segmentation method of the luminance signal and the color difference signal of the coding block is defined as a split mode (PartMode). Then, the divided block is also defined as a prediction block as needed. As shown in Figure 4, with The division method of the luminance signal of the coding block defines eight division modes (PartMode).

將圖4(a)所示未將編碼區塊之亮度訊號做分割而視為1個預測區塊的分割模式(PartMode),定義為2N×2N分割(PART_2Nx2N)。將圖4(b)、(c)、(d)所示未將編碼區塊之亮度訊號分割成上下並排之2個預測區塊的分割模式(PartMode),分別定義為2N×N分割(PART_2NxN)、2N×nU分割(PART_2NxnU)、2N×nD分割(PART_2NxnD)。但是,2N×N分割(PART_2NxN)係為上下以1:1之比率做分割的分割模式,2N×nU分割(PART_2NxnU)係為上下以1:3之比率做分割的分割模式,2N×nD分割(PART_2NxnD)係為上下以3:1之比率做分割的分割模式。將圖4(e)、(f)、(g)所示未將編碼區塊之亮度訊號分割成左右並排之2個預測區塊的分割模式(PartMode),分別定義為N×2N分割(PART_Nx2N)、nL×2N分割(PART_nLx2N)、nR×2N分割(PART_nRx2N)。但是,N×2N分割(PART_Nx2N)係為左右以1:1之比率做分割的分割模式,nL×2N分割(PART_nLx2N)係為左右以1:3之比率做分割的分割模式,nR×2N分割(PART_nRx2N)係為左右以3:1之比率做分割的分割模式。將圖4(h)所示的編碼區塊的亮度訊號做上下左右4分割,而將變成4個預測區塊的分割模式(PartMode),分別定義為N×N分割(PART_NxN)。 The division mode (PartMode) in which the luminance signal of the coding block is not divided as shown in FIG. 4(a) is regarded as 2N×2N division (PART_2Nx2N). 4(b), (c), and (d), the division mode (PartMode) of the two prediction blocks that are not divided into upper and lower side by the luminance signal of the coding block is defined as 2N×N division (PART_2NxN). ), 2N × nU segmentation (PART_2NxnU), 2N × nD segmentation (PART_2NxnD). However, the 2N×N segmentation (PART_2NxN) is a segmentation mode in which the upper and lower divisions are divided by a ratio of 1:1, and the 2N×nU segmentation (PART_2NxnU) is a segmentation mode in which the upper and lower divisions are divided by a ratio of 1:3, 2N×nD segmentation. (PART_2NxnD) is a split mode in which the upper and lower divisions are divided by a ratio of 3:1. 4(e), (f), and (g) show that the luminance signal of the coding block is not divided into two partitioning modes (PartMode) of the two prediction blocks, which are defined as N×2N partitions (PART_Nx2N). ), nL × 2N division (PART_nLx2N), nR × 2N division (PART_nRx2N). However, the N×2N segmentation (PART_Nx2N) is a segmentation mode in which the left and right are divided by a ratio of 1:1, and the nL×2N segmentation (PART_nLx2N) is a segmentation mode in which the ratio is divided by a ratio of 1:3, nR×2N segmentation. (PART_nRx2N) is a split mode in which the ratio is divided by a ratio of 3:1. The luminance signal of the coding block shown in FIG. 4(h) is divided into four upper and lower divisions, and the division mode (PartMode) which becomes four prediction blocks is defined as N×N division (PART_NxN).

此外,各分割模式(PartMode)皆分別是以和亮 度訊號之縱橫分割比率同樣地,分割色差訊號。 In addition, each split mode (PartMode) is respectively bright and bright The vertical and horizontal division ratio of the signal is equally divided into the color difference signals.

在預測模式(PredMode)為畫面間模式(MODE_INTER)時,分割模式(PartMode)係定義2N×2N分割(PART_2Nx2N)、2N×N分割(PART_2NxN)、2N×nU分割(PART_2NxnU)、2N×nD分割(PART_2NxnD)、N×2N分割(PART_Nx2N)、nL×2N分割(PART_nLx2N)、及nR×2N分割(PART_nRx2N)。僅最小編碼區塊的編碼區塊D,分割模式(PartMode)係除了2N×2N分割(PART_2Nx2N)、2N×N分割(PART_2NxN)、2N×nU分割(PART_2NxnU)、2N×nD分割(PART_2NxnD)、N×2N分割(PART_Nx2N)、nL×2N分割(PART_nLx2N)、及nR×2N分割(PART_nRx2N)之外還可定義N×N分割(PART_NxN)。此外,最小編碼區塊以外不定義N×N分割(PART_NxN)的理由是,在最小編碼區塊以外,無法將編碼區塊做4分割而表現更小的編碼區塊。 When the prediction mode (PredMode) is the inter mode mode (MODE_INTER), the partition mode (PartMode) defines 2N×2N segmentation (PART_2Nx2N), 2N×N segmentation (PART_2NxN), 2N×nU segmentation (PART_2NxnU), 2N×nD segmentation. (PART_2NxnD), N×2N division (PART_Nx2N), nL×2N division (PART_nLx2N), and nR×2N division (PART_nRx2N). Only the coding block D of the smallest coding block, the partition mode (PartMode) is 2N×2N partition (PART_2Nx2N), 2N×N partition (PART_2NxN), 2N×nU partition (PART_2NxnU), 2N×nD partition (PART_2NxnD), N×N division (PART_NxN) may be defined in addition to N×2N division (PART_Nx2N), nL×2N division (PART_nLx2N), and nR×2N division (PART_nRx2N). Further, the reason why the N×N division (PART_NxN) is not defined outside the minimum coding block is that, outside the minimum coding block, the coding block cannot be divided into four to represent a smaller coding block.

在預測模式(PredMode)為畫面內模式(MODE_INTRA)時,除了最小編碼區塊亦即編碼區塊D(本實施例係亮度訊號為8×8像素)以外,分割模式(PartMode)係僅定義2N×2N分割(PART_2Nx2N),僅最小編碼區塊的編碼區塊D,分割模式(PartMode)係定義2N×2N分割(PART_2Nx2N)還有N×N分割(PART_NxN)。此外,最小編碼區塊以外不定義N×N分割(PART_NxN)的理由是,在最小編碼區塊以外,無法將編碼區塊做4分割而表現更小的編碼區塊。 When the prediction mode (PredMode) is the intra mode (MODE_INTRA), except for the minimum coding block, that is, the coding block D (the luminance signal of the embodiment is 8×8 pixels), the partition mode (PartMode) defines only 2N. × 2N partition (PART_2Nx2N), only the coding block D of the minimum coding block, and the partition mode (PartMode) defines 2N×2N partition (PART_2Nx2N) and N×N partition (PART_NxN). Further, the reason why the N×N division (PART_NxN) is not defined outside the minimum coding block is that, outside the minimum coding block, the coding block cannot be divided into four to represent a smaller coding block.

(關於畫面內預測、畫面內預測模式) (About intra prediction, intra prediction mode)

在畫面內預測中係根據相同圖像內的周圍之已解碼的區塊的像素之值,來預測處理對象區塊的像素之值。本實施例的編碼裝置及解碼裝置中,從34種畫面內預測模式中進行選擇,進行畫面內預測。畫面內預測模式(intraPredMode),係根據上方之已解碼區塊在垂直方向上進行預測的垂直預測(畫面內預測模式intraPredMode=0),根據左方之已解碼區塊在水平方向上進行預測的水平預測(畫面內預測模式intraPredMode=1),根據周圍之已解碼區塊算出平均值以進行預測的平均值預測(畫面內預測模式intraPredMode=2),根據周圍之已解碼區塊以斜向45度之角度進行預測的平均值預測(intraPredMode=3)以外,還定義了根據周圍之已解碼區塊而在以各種角度傾斜之方向上進行預測的31種角度預測(畫面內預測模式intraPredMode=4...34)。 In intra-picture prediction, the value of the pixel of the processing target block is predicted based on the value of the pixel of the surrounding decoded block in the same image. In the encoding device and the decoding device of the present embodiment, intra-frame prediction is performed by selecting from among 34 kinds of intra-screen prediction modes. The intra prediction mode (intraPredMode) is a vertical prediction (intra picture prediction mode intraPredMode=0) that is predicted in the vertical direction according to the decoded block above, and is predicted in the horizontal direction according to the decoded block on the left side. Horizontal prediction (intra-picture prediction mode intraPredMode=1), an average value is calculated from the surrounding decoded blocks to perform prediction average prediction (intra-picture prediction mode intraPredMode=2), and obliquely 45 according to surrounding decoded blocks In addition to the average prediction of the angle of the degree (intraPredMode=3), 31 kinds of angle predictions for predicting in the direction inclined at various angles according to the surrounding decoded blocks are defined (intra-picture prediction mode intraPredMode=4) ...34).

以畫面內模式(MODE_INTRA)從已編碼/解碼之周圍的影像訊號來進行預測的畫面內預測之際所使用的畫面內預測模式,係分別準備亮度訊號、色差訊號,將亮度訊號用的畫面內預測模式定義為畫面內亮度預測模式,將色差訊號用的畫面內預測模式定義為畫面內色差預測模式。畫面內亮度預測模式的編碼、及解碼時,係利用與周邊區塊之畫面內亮度預測模式的相關性,在編碼側上若判斷為可根據周邊區塊之畫面內亮度預測模式來進行預測時 ,就將進行參照之區塊加以特定的資訊予以傳輸,若判斷為與其根據周邊區塊之畫面內亮度預測模式來進行預測,不如對畫面內亮度預測模式設定別的值較佳時,才將畫面內亮度預測模式之值予以編碼、或解碼,是採用如此機制。藉由根據周邊區塊之畫面內亮度預測模式來預測編碼.解碼對象區塊的畫面內亮度預測模式,就可削減所傳輸的編碼量。另一方面,畫面內色差預測模式的編碼、及解碼時,係利用與色差訊號之預測區塊相同位置的亮度訊號的預測區塊的畫面內亮度預測模式的相關性,在編碼側上若判斷為可根據畫面內亮度預測模式來進行預測時,就根據畫面內亮度預測模式之值來預測畫面內色差預測模式之值,若判斷為與其根據畫面內亮度預測模式來進行預測,不如對畫面內色差預測模式設定獨自的值較佳時,則將畫面內色差預測模式之值予以編碼、或解碼,是採用如此機制。藉由根據畫面內亮度預測模式來預測畫面內色差預測模式,就可削減所傳輸的編碼量。 In-screen prediction mode used for intra-prediction prediction from the video signal around the encoded/decoded mode in the intra-picture mode (MODE_INTRA), the luminance signal and the color difference signal are separately prepared, and the luminance signal is used in the screen. The prediction mode is defined as an intra-picture luminance prediction mode, and an intra-picture prediction mode for a color difference signal is defined as an intra-screen color difference prediction mode. In the intra-picture luma prediction mode encoding and decoding, the correlation is determined by the intra-picture luma prediction mode of the neighboring block, and the intra-picture luma prediction mode of the peripheral block is determined on the encoding side. The specific information transmitted by the referenced block is transmitted. If it is determined that the prediction is based on the intra-picture brightness prediction mode of the peripheral block, it is better to set a different value for the intra-picture brightness prediction mode. The mechanism for encoding or decoding the value of the intra-picture luminance prediction mode is to adopt such a mechanism. The prediction is predicted by the intra-picture luminance prediction mode of the neighboring block. By decoding the intra-picture luminance prediction mode of the target block, the amount of code transmitted can be reduced. On the other hand, in the intra-picture color difference prediction mode encoding and decoding, the correlation between the intra-picture luminance prediction modes of the prediction blocks of the luminance signal at the same position as the prediction block of the color difference signal is used, and it is judged on the encoding side. When the prediction is performed according to the intra-picture luminance prediction mode, the value of the intra-screen chrominance prediction mode is predicted based on the value of the intra-picture luminance prediction mode, and if it is determined that the prediction is based on the intra-picture luminance prediction mode, it is not as good as When the color difference prediction mode sets a value unique to itself, the value of the intra-screen color difference prediction mode is encoded or decoded, and such a mechanism is employed. By predicting the intra-screen chrominance prediction mode based on the intra-picture luminance prediction mode, the amount of code transmitted can be reduced.

(關於畫面內PCM編碼) (About PCM encoding in the screen)

在實施形態中,在畫面內模式(MODE_INTRA)裡,係除了使用根據已編碼/解碼的周圍之影像訊號來進行預測的畫面內預測而進行編碼的畫面內預測編碼以外,還定義了不使用畫面內預測、畫面間預測、正交轉換、量化等之壓縮處理,將影像訊號以非壓縮而直接編碼成PCM訊號的畫面內PCM編碼。在畫面內PCM中,係隨著編碼區塊 的尺寸與PCM訊號的位元深度,編碼量會是固定長度,因此可當作保證所定單位之編碼量的緊急模式來加以靈活運用。又,進行了細緻量化之際而編碼量變大的情況下,選擇非壓縮畫面內PCM編碼,有時候反而可以用較小的編碼量來進行編碼。甚至,亦可支援,將所有的影像訊號進行畫面內PCM編碼而可成為無損編碼。畫面內PCM編碼係以編碼區塊單位而被進行。 In the embodiment, in the intra-screen mode (MODE_INTRA), in addition to the intra-screen predictive coding that performs intra-picture prediction based on the encoded/decoded surrounding video signal, the non-use picture is defined. The compression processing of intra prediction, inter-picture prediction, orthogonal conversion, quantization, etc., directly encodes the video signal into the intra-picture PCM code of the PCM signal without compression. In the PCM in the picture, along with the coding block The size and the bit depth of the PCM signal, the amount of encoding will be a fixed length, so it can be used as an emergency mode to ensure the coding amount of the specified unit. Further, when the amount of encoding is increased when the quantization is performed, the PCM encoding in the uncompressed picture is selected, and sometimes the encoding can be performed with a small amount of encoding. In addition, it is also possible to support and perform all-in-one image signal PCM coding in the picture to become lossless coding. The intra-picture PCM coding is performed in coding block units.

(轉換區塊) (conversion block)

和先前同樣地,在本實施形態中也是使用DCT(離散餘弦轉換)、DST(離散正弦轉換)等,將離散訊號轉換成頻率領域的正交轉換和其逆轉換,以謀求編碼量之削減。編碼區塊係可隨應於圖像內的紋理,為了使編碼處理最佳化,因應需要而可將編碼區塊內的亮度訊號、及色差訊號,進行遞迴性4分割,然後以較小的區塊單位,來進行轉換、或逆轉換。因應需要而將已被分割之作為正交轉換或逆正交轉換之對象的區塊,定義成轉換區塊。 Similarly to the prior art, in the present embodiment, DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), or the like is used, and the discrete signal is converted into orthogonal conversion and inverse conversion in the frequency domain to reduce the amount of coding. The coding block can be adapted to the texture in the image. In order to optimize the coding process, the luminance signal and the color difference signal in the coding block can be recursively divided into 4 segments, and then smaller. Block unit for conversion, or inverse conversion. A block that has been divided as an object of orthogonal transform or inverse orthogonal transform is defined as a conversion block as needed.

(量化參數) (quantization parameter)

在實施形態中,將已被正交轉換之係數進行量化之際的量化步進之大小予以導出所需的量化參數,是以下記的量化群組區塊單位來進行設定並傳輸。藉由在編碼側控制此量化參數的值,可控制量化步進之大小,可控制編碼量、控制主觀畫質。藉由將量化參數之值設定得較小,量化 步進就會變小而可進行細緻的量化。此情況下,雖然需要較多的編碼量,但可降低影像的劣化,可使區塊失真或飛蚊失真等之編碼失真不容易變得醒目。另一方面,藉由將量化參數之值設定得較大,量化步進就會變大而可進行粗糙的量化。此情況下,雖然可以較少的編碼量進行編碼,但影像的劣化會變高,區塊失真或飛蚊失真等之編碼失真會容易變得醒目。在實施形態中,量化參數QPY係可採取-QpBdOffsetY至51的值。其中,變數QpBdOffsetY係為根據所被編碼之映像訊號的位元深度而被設定的變數,是由下式而被導出。QpBdOffsetY=6 * bit_depth_luma_minus8其中,變數bit_depth_luma_minus8係為根據所被編碼之亮度訊號的位元深度而被設定的語法要素,帶有從所被編碼之亮度訊號的位元深度之值減去8之後的值。在亮度訊號的位元深度是8位元的時候,bit_depth_luma_minus8、QpBdOffsetY之值皆為0,在10位元的時候,bit_depth_luma_minus8之值係為2,QpBdOffsetY之值係為12。 In the embodiment, the quantization parameter required to derive the magnitude of the quantization step when the coefficients that have been orthogonally converted are quantized is set and transmitted in the quantized group block unit described below. By controlling the value of this quantization parameter on the encoding side, the size of the quantization step can be controlled, the amount of coding can be controlled, and the subjective image quality can be controlled. Quantize by setting the value of the quantization parameter to be small The stepping will be smaller and can be finely quantified. In this case, although a large amount of code is required, the deterioration of the image can be reduced, and the coding distortion such as block distortion or mosquito noise can be prevented from becoming conspicuous. On the other hand, by setting the value of the quantization parameter to be large, the quantization step becomes large and coarse quantization can be performed. In this case, although the encoding can be performed with a small amount of encoding, the deterioration of the image is high, and the coding distortion such as block distortion or mosquito noise is likely to become conspicuous. In an embodiment, the quantization parameter QPY may take a value of -QpBdOffsetY to 51. The variable QpBdOffsetY is a variable that is set according to the bit depth of the encoded video signal, and is derived from the following equation. QpBdOffsetY=6 * bit_depth_luma_minus8, where the variable bit_depth_luma_minus8 is a syntax element set according to the bit depth of the encoded luminance signal, with a value after subtracting 8 from the value of the bit depth of the encoded luminance signal . When the bit depth of the luminance signal is 8 bits, the values of bit_depth_luma_minus8 and QpBdOffsetY are all 0. When 10 bits, the value of bit_depth_luma_minus8 is 2, and the value of QpBdOffsetY is 12.

然後,量化、逆量化之際所被實際使用的亮度訊號之量化參數QPY’、色差訊號Cb、Cr之量化參數QPCb’、QPCr’係藉由下式而被導出。 QPY’=QPY+QpBdOffsetY QPCb’=QPY+cb_qp_offset+QpBdOffsetC QPCr’=QPY+cr_qp_offset+QpBdOffsetC其中,變數QpBdOffsetC係為根據所被編碼之色差訊號的位元深度而被設定的變數,是由下式而被導出。QpBdOffsetC=6 * bit_depth_chroma_minus8其中,變數bit_depth_chroma_minus8係為根據所被編碼之色差訊號的位元深度而被設定的語法要素,帶有從所被編碼之色差訊號的位元深度之值減去8之後的值。在色差訊號的位元深度是8位元的時候,bit_depth_chroma_minus8、QpBdOffsetC之值皆為0,在10位元的時候,bit_depth_luma_minus8之值係為2,QpBdOffsetC之值係為12。又,亮度訊號的量化參數QPY’係可採取0至51+QpBdOffsetY的值。又,色差訊號Cb、Cr的量化參數QPCb’、QPCr’係可採取0至51+QpBdOffsetC的值。 Then, the quantization parameter QPY' of the luminance signal actually used for quantization and inverse quantization, and the quantization parameters QPCb' and QPCr' of the color difference signals Cb and Cr are derived by the following equation. QPY'=QPY+QpBdOffsetY QPCb'=QPY+cb_qp_offset+QpBdOffsetC QPCr'=QPY+cr_qp_offset+QpBdOffsetC, where the variable QpBdOffsetC is a variable that is set according to the bit depth of the encoded color difference signal, and is of the following formula Is exported. QpBdOffsetC=6 * bit_depth_chroma_minus8 wherein the variable bit_depth_chroma_minus8 is a syntax element set according to the bit depth of the encoded color difference signal, with a value after subtracting 8 from the value of the bit depth of the encoded color difference signal. . When the bit depth of the color difference signal is 8 bits, the values of bit_depth_chroma_minus8 and QpBdOffsetC are 0. When 10 bits, the value of bit_depth_luma_minus8 is 2, and the value of QpBdOffsetC is 12. Further, the quantization parameter QPY' of the luminance signal can take a value of 0 to 51 + QpBdOffsetY. Further, the quantization parameters QPCb' and QPCr' of the color difference signals Cb and Cr can take values of 0 to 51 + QpBdOffsetC.

(量化群組區塊) (quantized group block)

在實施形態中,係定義了量化參數之基本單位亦即量化群組區塊,對每一量化群組區塊,設定1個量化參數。 In the embodiment, the basic unit of the quantization parameter, that is, the quantized group block is defined, and one quantization parameter is set for each quantized group block.

(樹區塊、編碼區塊、預測區塊、轉換區塊之位置) (tree block, coding block, prediction block, conversion block location)

本實施形態的樹區塊、編碼區塊、預測區塊、轉換區塊為首的各區塊之位置,係令亮度訊號的圖像之最左上之亮度訊號的像素位置為原點(0,0),將各個區塊領域中所包含之最左上的亮度訊號之像素位置,以(x,y)的二維座標來表示。座標軸的方向係水平方向朝右的方向、垂直方向朝下的方向分別令為正的方向,單位係為亮度訊號的1像素單位。亮度訊號與色差訊號上影像尺寸(像素數)是相同的色差格式是4:4:4時不用說,亮度訊號與色差訊號上影像尺寸(像素數)是不同的色差格式是4:2:0、4:2:2的情況下,也將色差訊號的各區塊之位置以該區塊之領域中所包含之亮度訊號的像素之座標來表示,單位係為亮度訊號的1像素。藉由如此設計,不但可以特定色差訊號的各區塊之位置,只需藉由比較座標之值,亮度訊號的區塊與色差訊號的區塊之位置關係也很明確。在實施形態中,係不論色差格式之種類或區塊的形狀、大小,只有當所定義之亮度訊號的區塊的座標與色差訊號的區塊的座標的x成分與y成分之值皆相同時,這些區塊係定義為相同位置。 The position of each block headed by the tree block, the coding block, the prediction block, and the conversion block in this embodiment is such that the pixel position of the leftmost luminance signal of the image of the luminance signal is the origin (0, 0). The pixel position of the leftmost luminance signal included in each block field is represented by a two-dimensional coordinate of (x, y). The direction of the coordinate axis is a direction in which the horizontal direction is toward the right direction and the direction perpendicular to the vertical direction is a positive direction, and the unit is a pixel unit of the luminance signal. The image size (number of pixels) on the luminance signal and the color difference signal is the same. The color difference format is 4:4:4. Needless to say, the image size (pixel number) on the luminance signal and the color difference signal is different. The color difference format is 4:2:0. In the case of 4:2:2, the position of each block of the color difference signal is also represented by the coordinates of the pixel of the luminance signal included in the field of the block, and the unit is 1 pixel of the luminance signal. By designing this, not only the position of each block of the color difference signal can be specified, but also by comparing the values of the coordinates, the positional relationship between the block of the luminance signal and the block of the color difference signal is also clear. In the embodiment, regardless of the type of the color difference format or the shape and size of the block, only when the coordinates of the block of the defined luminance signal and the values of the x and y components of the block of the color difference signal are the same. These blocks are defined as the same location.

圖1係實施形態所述之影像編碼裝置之構成的區塊。實施形態的影像編碼裝置,係具備:影像記憶體101、量化參數決定部102、畫面內預測部103、PCM編碼部104、畫面間預測部105、編碼方法決定部106、殘差訊號生成部107、正交轉換‧量化部108、逆量化‧逆 正交轉換部109、解碼影像訊號重疊部110、去區塊濾波器部111、編碼資訊儲存記憶體112、第1解碼影像記憶體113、第2解碼影像記憶體114、第1編碼位元列生成部115、第2編碼位元列生成部116、第3編碼位元列生成部117、編碼位元列多工化部118、開關119。 Fig. 1 is a block showing the configuration of a video encoding apparatus according to an embodiment. The video encoding device according to the embodiment includes an image memory 101, a quantization parameter determining unit 102, an intra-screen prediction unit 103, a PCM encoding unit 104, an inter-picture prediction unit 105, an encoding method determining unit 106, and a residual signal generating unit 107. Orthogonal conversion ‧ quantization unit 108, inverse quantization ‧ inverse The orthogonal transform unit 109, the decoded video signal superimposing unit 110, the deblocking filter unit 111, the encoded information storage memory 112, the first decoded video memory 113, the second decoded video memory 114, and the first encoded bit sequence The generating unit 115, the second encoding bit sequence generating unit 116, the third encoding bit column generating unit 117, the encoding bit column multiplexing unit 118, and the switch 119.

在影像記憶體101中,係將按照時間順序所供給的編碼對象之影像訊號,予以暫時儲存。被儲存在影像記憶體101中的編碼對象之影像訊號,係被排序成編碼順序,以相應於設定之複數組合而被分割成各個編碼區塊單位,然後,被分割成各個預測區塊單位,供給至畫面內預測部103、畫面間預測部105、殘差訊號生成部107。 In the image memory 101, the image signal of the encoding target supplied in chronological order is temporarily stored. The image signals of the coded objects stored in the image memory 101 are sorted into a coding order, and are divided into respective coding block units corresponding to the set complex combination, and then divided into respective prediction block units. It is supplied to the intra-screen prediction unit 103, the inter-screen prediction unit 105, and the residual signal generation unit 107.

在量化參數決定部102中,從編碼量控制、適應量化等之觀點來看,以量化群組區塊單位來決定量化參數。所被決定之量化參數係被供給至編碼方法決定部106、正交轉換‧量化部108、逆量化‧逆正交轉換部109,並且被儲存在編碼資訊儲存記憶體112中。 The quantization parameter determining unit 102 determines the quantization parameter in units of quantized group blocks from the viewpoints of encoding amount control, adaptive quantization, and the like. The determined quantization parameter is supplied to the encoding method determination unit 106, the orthogonal conversion ‧ quantization unit 108, the inverse quantization ‧ inverse orthogonal conversion unit 109, and stored in the encoded information storage memory 112.

畫面內預測部103係以複數編碼區塊單位中的各個分割模式(PartMode)所相應的預測區塊單位,根據第1解碼影像記憶體113中所儲存的已解碼之影像訊號,針對編碼對象之預測區塊的亮度訊號、色差訊號,分別進行相應於複數畫面內亮度預測模式、及畫面內色差預測模式的各個畫面內預測,獲得畫面內預測訊號。 The intra-screen prediction unit 103 is for the encoding target based on the decoded video signal stored in the first decoded video memory 113 in the prediction block unit corresponding to each partition mode (PartMode) in the complex coding block unit. The luminance signal and the color difference signal of the prediction block are respectively subjected to intra-screen prediction corresponding to the intra-picture luminance prediction mode and the intra-screen color difference prediction mode to obtain an intra-frame prediction signal.

從以預測區塊單位所供給之編碼對象之訊號,每一像素地減算預測區塊單位的畫面內預測訊號,獲得 預測殘差訊號。使用該預測殘差訊號來算出用來評估編碼量與失真量所需的評價值,以預測區塊單位,從複數畫面內預測模式之中,根據最佳編碼量、及失真量之觀點來選擇最佳之模式,作為該當預測區塊的畫面內預測之候補,將已被選擇之畫面內預測模式所對應的畫面內預測資訊、畫面內預測訊號、及畫面內預測之評價值,供給至編碼方法決定部106。 Obtaining the intra-frame prediction signal of the prediction block unit per pixel from the signal of the coding object supplied by the prediction block unit Predict residual signal. The prediction residual signal is used to calculate an evaluation value required for evaluating the amount of coding and the amount of distortion, and the block unit is predicted, and from among the complex intra-picture prediction modes, the optimal coding amount and the distortion amount are selected. The optimal mode is used as a candidate for the intra prediction of the prediction block, and the intra prediction information, the intra prediction signal, and the intra prediction prediction value corresponding to the selected intra prediction mode are supplied to the coding. Method decision unit 106.

PCM編碼部104係將以編碼區塊單位而編碼成為PCM訊號所需的PCM訊號,進行排列。被PCM編碼部104所生成的PCM訊號,係以編碼區塊之尺寸與訊號之位元深度,而被統一決定其編碼量。又,由於沒有編碼劣化,不發生編碼失真,因此將失真量設成0。將這些編碼量與失真量當成畫面內PCM編碼的評價值,與PCM訊號一同供給至編碼方法決定部106。 The PCM encoding unit 104 arranges the PCM signals required to be encoded into PCM signals in units of coding blocks. The PCM signal generated by the PCM encoding unit 104 is determined by the size of the code block and the bit depth of the signal. Further, since there is no coding degradation and no coding distortion occurs, the amount of distortion is set to zero. These code amounts and distortion amounts are used as evaluation values of PCM code in the picture, and are supplied to the coding method determination unit 106 together with the PCM signal.

畫面間預測部105係以複數編碼區塊單位中的各個分割模式(PartMode)所相應的單位,亦即預測區塊單位,根據第2解碼影像記憶體114中所儲存的已解碼之影像訊號來進行複數畫面間預測模式(L0預測、L1預測、雙預測)及相應於參照影像的各個畫面間預測,獲得畫面間預測訊號。此時,進行運動向量探索,隨應於所探索到的運動向量來進行畫面間預測。此外,在雙預測的情況下,是將2個畫面間預測訊號做每一像素地平均、或是加算權重,以進行雙預測的畫面間預測。從以預測區塊單位所供給之編碼對象之訊號,每一像素地減算預測區塊單位的 畫面間預測訊號,獲得預測殘差訊號。使用該預測殘差訊號來算出用來評估編碼量與失真量所需的評價值,以預測區塊單位,從複數畫面間預測模式之中,根據最佳編碼量、及失真量之觀點來選擇最佳之模式,作為該當預測區塊的畫面間預測之候補,將已被選擇之畫面間預測模式所對應的畫面間預測資訊、畫面間預測訊號、及畫面間預測之評價值,供給至編碼方法決定部106。 The inter-screen prediction unit 105 is based on the unit corresponding to each partition mode (PartMode) in the complex coding block unit, that is, the prediction block unit, based on the decoded video signal stored in the second decoded image memory 114. The inter-picture prediction mode (L0 prediction, L1 prediction, and bi-prediction) and each inter-picture prediction corresponding to the reference picture are obtained, and an inter-picture prediction signal is obtained. At this time, motion vector exploration is performed, and inter-picture prediction is performed in accordance with the motion vector that is explored. In addition, in the case of bi-prediction, two inter-picture prediction signals are averaged per pixel or added to perform inter-picture prediction for bi-prediction. Calculating the prediction block unit per pixel from the signal of the coding object supplied by the prediction block unit The inter-picture prediction signal obtains the prediction residual signal. Using the prediction residual signal to calculate an evaluation value required for evaluating the amount of coding and the amount of distortion, in order to predict the block unit, and selecting from the viewpoint of the optimal coding amount and the distortion amount from among the complex inter-picture prediction modes The optimal mode is used as a candidate for the inter-picture prediction of the prediction block, and the inter-picture prediction information, the inter-picture prediction signal, and the inter-picture prediction evaluation value corresponding to the selected inter-picture prediction mode are supplied to the coding. Method decision unit 106.

編碼方法決定部106係基於複數編碼區塊單位中的各個預測區塊所分別被選擇之畫面內預測資訊所對應的畫面內預測評價值、畫面間預測資訊所對應的畫面間預測評價值,而決定最佳的編碼區塊之分割方法、預測模式(PredMode)、分割模式(PartMode)、是否編碼成為PCM訊號、轉換區塊之分割方法,將含有符合決定之編碼區塊之分割方法、含表示是否編碼成為PCM訊號之資訊的畫面內預測資訊、或畫面間預測資訊的編碼資訊,供給至第2編碼位元列生成部116,並且儲存至編碼資訊儲存記憶體112中,將符合所決定之已被畫面內預測或畫面間預測而成的預測訊號,供給至殘差訊號生成部107、及解碼影像訊號重疊部110。然後,將符合決定之量化參數、轉換區塊之分割方法,供給至正交轉換‧量化部108、逆量化‧逆正交轉換部109、第3編碼位元列生成部117,並且儲存至編碼資訊儲存記憶體112。又,當畫面內PCM編碼被選擇時,則供給至第2編碼位元列生成部116。 The coding method determination unit 106 is based on the intra-screen prediction evaluation value corresponding to the intra-screen prediction information selected by each of the prediction blocks in the complex coding block unit, and the inter-frame prediction evaluation value corresponding to the inter-frame prediction information. Determining the optimal coding block division method, prediction mode (PredMode), partition mode (PartMode), whether to encode into a PCM signal, and a division method of the conversion block, and a segmentation method including the coding block conforming to the decision, and a representation Whether or not to encode the intra-frame prediction information or the inter-picture prediction information of the information of the PCM signal is supplied to the second coded bitstream generation unit 116 and stored in the coded information storage memory 112, which is in accordance with the determined decision. The prediction signal that has been predicted by the intra-frame prediction or the inter-picture is supplied to the residual signal generating unit 107 and the decoded video signal overlapping unit 110. Then, the quantization parameter that conforms to the determination and the division method of the conversion block are supplied to the orthogonal transform ‧ quantization unit 108, inverse quantization ‧ inverse orthogonal transform unit 109, third coded bit sequence generation unit 117, and stored to the code Information storage memory 112. Moreover, when the intra-picture PCM code is selected, it is supplied to the second coded bit line generation unit 116.

殘差訊號生成部107,係在編碼方法決定部 106中決定了以畫面內預測或畫面間預測進行編碼之際,從進行編碼的影像訊號,每一像素地減去已被畫面內預測或畫面間預測而成的預測訊號而生成殘差訊號,供給至正交轉換‧量化部108。 The residual signal generation unit 107 is a coding method determination unit. In 106, when it is determined that intra-picture prediction or inter-picture prediction is performed, a residual signal is generated by subtracting a prediction signal that has been predicted by intra-picture prediction or inter-picture from each pixel of the encoded video signal. It is supplied to the orthogonal conversion ‧ quantization unit 108.

正交轉換‧量化部108,係在編碼方法決定部106中決定了以畫面內預測或畫面間預測進行編碼之際,係對於從編碼方法決定部106所供給之殘差訊號,使用根據從量化參數決定部102供給之量化參數QPY而被導出的亮度訊號之量化參數QPY’、及色差訊號Cb、Cr的色差訊號之量化參數QPCb’、QPCr’,來進行會轉換成DCT或DST等之頻率領域的正交轉換及量化而生成已被正交轉換‧量化之殘差訊號,供給至第3編碼位元列生成部117、及逆量化‧逆正交轉換部109。 Orthogonal conversion ‧ The quantization unit 108 determines the residual signal supplied from the encoding method determining unit 106 when using the intra-frame prediction or the inter-picture prediction when the encoding method determining unit 106 determines to encode the residual signal supplied from the encoding method determining unit 106. The quantization parameter QPY' of the luminance signal derived from the quantization parameter QPY supplied from the parameter determination unit 102, and the quantization parameters QPCb' and QPCr' of the color difference signals of the color difference signals Cb and Cr are converted into frequencies such as DCT or DST. The orthogonal transform and quantization of the domain generate a residual signal that has been orthogonally converted and quantized, and is supplied to the third coded bitstream generation unit 117 and the inverse quantization and inverse orthogonal transform unit 109.

第1編碼位元列生成部115,係依照語法要素之意義、定義導出方法的語意規則,而算出序列、圖像、及切片單位之編碼資訊的相關之語法要素之值,將所算出的各語法要素之值,依照語法規則而進行可變長度編碼、算術編碼等之熵編碼,生成第1編碼位元列,將已被編碼之第1編碼位元列,供給至編碼位元列多工化部118。 The first coded bitstream generation unit 115 calculates the values of the syntax elements related to the coded information of the sequence, the image, and the slice unit in accordance with the meaning of the syntax element and the semantic rule of the definition derivation method, and calculates the calculated values of the syntax elements. The value of the syntax element is subjected to entropy coding such as variable length coding and arithmetic coding according to the grammar rule, and the first coded bitstream column is generated, and the encoded first coded bitstream column is supplied to the coded bitstream column to be multiplexed. Department 118.

第2編碼位元列生成部116,係依照語法要素之意義、定義導出方法的語意規則,而對每一樹區塊,算出編碼區塊之分割資訊、編碼區塊單位之編碼資訊以外,還對每一預測區塊算出被編碼方法決定部106所決定之編碼資訊之相關的語法要素之值。具體而言,除了算出編碼 區塊的分割方法、預測模式(PredMode)、分割模式(PartMode)等之編碼區塊單位的編碼資訊,還算出預測區塊單位之編碼資訊的相關之語法要素之值。若預測模式(PredMode)為畫面內模式(MODE_INTRA)且畫面內預測編碼時,則將用來表示是否畫面內PCM編碼的語法要素pcm_flag設成0,算出含有畫面內亮度預測模式、及畫面內色差預測模式的畫面內預測模式的相關之語法要素之值,若畫面內模式(MODE_INTRA)且畫面內PCM編碼時,則將用來表示是否畫面內PCM編碼的語法要素pcm_flag設成1,若預測模式(PredMode)是畫面間模式(MODE_INTER),則算出畫面間預測模式、用來特定參照影像之資訊、運動向量等之畫面間預測資訊的相關之語法要素之值。將已被算出的各語法要素之值,依照語法規則而進行可變長度編碼、算術編碼等之熵編碼,生成第2編碼位元列,將已被編碼之第2編碼位元列,供給至編碼位元列多工化部118。然後,若為畫面內PCM編碼時,則將PCM訊號予以編碼。 The second coded bitstream generation unit 116 calculates the segmentation information of the coding block and the coding information of the coding block unit for each tree block in accordance with the meaning of the syntax element and the semantic rule of the definition derivation method. The value of the syntax element related to the encoded information determined by the encoding method determining unit 106 is calculated for each prediction block. Specifically, in addition to calculating the code The coding information of the coding block unit such as the segmentation method of the block, the prediction mode (PredMode), and the division mode (PartMode), and the value of the syntax element related to the coding information of the prediction block unit are also calculated. When the prediction mode (PredMode) is the intra mode (MODE_INTRA) and the intra prediction coding is performed, the syntax element pcm_flag indicating whether or not the intra-picture PCM coding is set to 0, and the intra-picture luminance prediction mode and the intra-picture color difference are calculated. The value of the syntax element related to the intra prediction mode of the prediction mode is set to 1 if the intra-picture mode (MODE_INTRA) and intra-picture PCM coding is used, and if the intra-picture PCM coding syntax element pcm_flag is set to 1, if the prediction mode (PredMode) is an inter-picture mode (MODE_INTER), and calculates a value of a syntax element related to inter-picture prediction mode, information for specifying a reference picture, and inter-picture prediction information such as a motion vector. The values of the grammatical elements that have been calculated are subjected to entropy coding such as variable length coding and arithmetic coding according to grammar rules, to generate a second coding bit sequence, and to supply the encoded second coding bit sequence to The bit row multiplexer 118 is encoded. Then, if it is PCM coded in the picture, the PCM signal is encoded.

第3編碼位元列生成部117,係將轉換區塊之分割資訊、量化參數資訊,予以編碼。將已被正交轉換及量化之殘差訊號,依照規定之語法規則而進行可變長度編碼、算術編碼等之熵編碼,生成第3編碼位元列,將第3編碼位元列,供給至編碼位元列多工化部118。量化參數資訊編碼的詳細處理,將於後述。 The third coded bitstream generation unit 117 encodes the segmentation information and the quantization parameter information of the conversion block. The residual signal that has been orthogonally converted and quantized is subjected to entropy coding such as variable length coding and arithmetic coding according to a predetermined syntax rule to generate a third coding bit sequence, and the third coding bit sequence is supplied to The bit row multiplexer 118 is encoded. The detailed processing of the quantization parameter information coding will be described later.

在編碼位元列多工化部118中,將第1編碼 位元列與第2編碼位元列、及第3編碼位元列,依照規定之語法規則而進行多工化,生成位元串流,將已被多工化之位元串流,予以輸出。 In the coded bit column multiplexing unit 118, the first code is used The bit sequence, the second coded bitstream, and the third coded bitstream are multiplexed according to a predetermined grammar rule to generate a bitstream, and the multiplexed bitstream is streamed and output. .

逆量化‧逆正交轉換部109,係將從正交轉換‧量化部108所供給之已被正交轉換‧量化之殘差訊號,使用根據從量化參數決定部102供給之量化參數QPY而被導出的亮度訊號之量化參數QPY’、及色差訊號Cb、Cr的色差訊號之量化參數QPCb’、QPCr’,來進行逆量化及逆正交轉換以算出殘差訊號,供給至解碼影像訊號重疊部110。解碼影像訊號重疊部110,係隨著編碼方法決定部106所做的決定而將已被畫面內預測或畫面間預測而成的預測訊號與已被逆量化‧逆正交轉換部109進行逆量化及逆正交轉換後的殘差訊號加以重疊而生成解碼影像,儲存至第1解碼影像記憶體113中。 The inverse quantization ‧ inverse orthogonal transform unit 109 converts the residual signal that has been orthogonally converted and quantized by the orthogonal transform ‧ quantization unit 108 using the quantization parameter QPY supplied from the quantization parameter determining unit 102 The quantization parameter QPY′ of the derived luminance signal and the quantization parameters QPCb′ and QPCr′ of the color difference signals of the color difference signals Cb and Cr are subjected to inverse quantization and inverse orthogonal conversion to calculate a residual signal, which is supplied to the decoded video signal overlapping unit. 110. The decoded video signal superimposing unit 110 inversely quantizes the prediction signal that has been subjected to intra-frame prediction or inter-picture prediction with the inverse quantization ‧ inverse orthogonal transform unit 109 as determined by the encoding method determination unit 106 The residual signals after the inverse orthogonal transform are superimposed to generate a decoded image, which is stored in the first decoded image memory 113.

去區塊濾波器部111係隨應於編碼資訊儲存記憶體112中所儲存之編碼資訊而對第1解碼影像記憶體113中所儲存之解碼影像,實施用來減少編碼所致區塊失真等的濾波處理,然後儲存至第2解碼影像記憶體114。去區塊濾波器部111之詳細處理,將於後述。 The deblocking filter unit 111 performs decoding of the decoded video stored in the first decoded video memory 113 in accordance with the encoded information stored in the encoded information storage memory 112 to reduce block distortion caused by encoding, and the like. The filtering process is then stored in the second decoded image memory 114. The detailed processing of the deblocking filter unit 111 will be described later.

圖2係圖1之影像編碼裝置所對應之實施形態所述之影像解碼裝置之構成的區塊。實施形態的影像解碼裝置,係具備:編碼位元列分離部201、第1編碼位元列解碼部202、第2編碼位元列解碼部203、第3編碼位元列解碼部204、量化參數導出部205、畫面內預測部 206、PCM解碼部207、畫面間預測部208、逆量化‧逆正交轉換部209、解碼影像訊號重疊部210、去區塊濾波器部211、編碼資訊儲存記憶體212、第1解碼影像記憶體213、第2解碼影像記憶體214、及開關215、216、217。 Fig. 2 is a block diagram showing the configuration of the video decoding device according to the embodiment corresponding to the video encoding device of Fig. 1. The video decoding device according to the embodiment includes a coded bit column separation unit 201, a first coded bitstream decoding unit 202, a second coded bitstream decoding unit 203, a third coded bitstream decoding unit 204, and quantization parameters. Derivation unit 205 and intra-screen prediction unit 206, PCM decoding unit 207, inter-picture prediction unit 208, inverse quantization ‧ inverse orthogonal conversion unit 209, decoded video signal superimposing unit 210, deblocking filter unit 211, coded information storage memory 212, and first decoded video memory The body 213, the second decoded video memory 214, and the switches 215, 216, and 217.

被供給至編碼位元列分離部201的位元串流係依照規定之語法規則而進行分離,表示序列、圖像、及切片單位之編碼資訊的第1編碼位元列會被供給至第1編碼位元列解碼部202,含有編碼區塊單位之編碼資訊的第2編碼位元列會被供給至第2編碼位元列解碼部203,含有已被正交轉換及量化之殘差訊號的第3編碼位元列會被供給至第3編碼位元列解碼部204。 The bit stream supplied to the coded bit column separation unit 201 is separated according to a predetermined syntax rule, and the first code bit sequence indicating the coded information of the sequence, the image, and the slice unit is supplied to the first bit. The coded bitstream decoding unit 202 supplies the second coded bitstream including the coded information of the coded block unit to the second coded bitstream decoder unit 203, and includes the residual signal that has been orthogonally converted and quantized. The third coded bitstream is supplied to the third coded bitstream decoding unit 204.

第1編碼位元列解碼部202係依照語法規則,將所被供給之第1編碼位元列進行熵解碼,獲得序列、圖像、及切片單位之編碼資訊的相關之語法要素之各值。依照語法要素之意義、定義導出方法的語意規則,而根據已被解碼之序列、圖像、及切片單位之編碼資訊的相關之語法要素之值,算出序列、圖像、及切片單位的編碼資訊。第1編碼位元列解碼部202係對應於編碼側之第1編碼位元列生成部115的編碼位元列解碼部,具有從含有已被第1編碼位元列生成部115所編碼之序列、圖像、及切片單位之編碼資訊的編碼位元列,還原出各個編碼資訊的機能。第1編碼位元列解碼部202所獲得之序列、圖像、及切片單位之編碼資訊係被供給至編碼資訊儲存記憶體212 ,並且在未圖示的所有區塊中被使用。 The first coded bitstream decoding unit 202 entropy decodes the supplied first coded bitstream according to a grammar rule, and obtains values of syntax elements related to the coded information of the sequence, the image, and the slice unit. According to the meaning of the grammatical elements, defining the semantic rules of the derivation method, and calculating the coding information of the sequence, the image, and the slice unit according to the values of the related grammatical elements of the decoded sequence, the image, and the coding information of the slice unit. . The first coded bitstream decoding unit 202 corresponds to the coded bitstream decoding unit of the first coded bitstream generation unit 115 on the encoding side, and has a sequence including the coded by the first coded bitstream generation unit 115. The encoded bit column of the encoded information of the image, and the slice unit, restores the function of each encoded information. The coded information of the sequence, image, and slice unit obtained by the first coded bitstream decoding unit 202 is supplied to the coded information storage memory 212. And is used in all blocks not shown.

第2編碼位元列解碼部203係依照語法規則,將所被供給之第2編碼位元列進行熵解碼,針對每一樹區塊,分別獲得編碼區塊之分割資訊、編碼區塊、及預測區塊單位之編碼資訊的相關之語法要素之各值。依照語法要素之意義、定義導出方法的語意規則,而將所被供給之編碼區塊之分割資訊予以解碼,根據編碼區塊單位、及預測區塊單位的編碼資訊的相關之語法要素之值,算出編碼區塊單位、及預測區塊單位的編碼資訊。第2編碼位元列解碼部203係對應於編碼側之第2編碼位元列生成部116的編碼資訊算出部,具有從含有已被第2編碼位元列生成部116所編碼之編碼區塊、及預測區塊單位之編碼資訊的第2編碼位元列,還原出各個編碼資訊的機能。具體而言,若從將第2編碼位元列依照規定之語法規則進行解碼而得的各語法要素,解碼出編碼區塊之分割方法、預測模式(PredMode)、分割模式(PartMode)的預測模式(PredMode)是畫面內模式(MODE_INTRA),則將用來表示是否畫面內PCM編碼的語法要素pcm_flag予以解碼。若pcm_flag為0則為畫面內預測編碼,會獲得含有畫面內亮度預測模式、及畫面內色差預測模式的畫面內預測模式。若pcm_flag為1則為畫面內PCM編碼,獲得PCM訊號。另一方面,若預測模式(PredMode)是畫面間模式(MODE_INTER),則會獲得畫面間預測模式、用來特定參照影像之資訊、運動向量等之畫面間預測資訊。若預測模式(PredMode)為畫面 內模式(MODE_INTRA)且pcm_flag為0時,則透過開關215,將含有畫面內亮度預測模式、及畫面內色差預測模式的畫面內預測模式,供給至畫面內預測部206,若預測模式(PredMode)是畫面間模式(MODE_INTER),則透過開關215,將畫面間預測模式、用來特定參照影像之資訊、運動向量等之畫面間預測資訊,供給至畫面間預測部208。若為畫面內PCM編碼則將PCM訊號供給至PCM解碼部207。 The second coded bitstream decoding unit 203 entropy decodes the supplied second coded bitstream according to a grammar rule, and obtains the segmentation information, the coded block, and the prediction of the coded block for each tree block. The values of the relevant grammatical elements of the block information of the block unit. Decoding the segmentation information of the supplied coding block according to the meaning of the grammatical element and defining the semantic rules of the derived method, and according to the coding block unit and the value of the related grammatical element of the coding information of the prediction block unit, The coding information of the coding block unit and the prediction block unit is calculated. The second coded bitstream decoding unit 203 corresponds to the coded information calculation unit of the second coded bitstream generation unit 116 on the encoding side, and has a coded block including the coded block encoded by the second coded bitstream generation unit 116. And the second coded bit column that predicts the coding information of the block unit, and restores the function of each coded information. Specifically, the decoding method of the coding block, the prediction mode (PredMode), and the prediction mode of the division mode (PartMode) are decoded from the syntax elements obtained by decoding the second coding bit sequence in accordance with a predetermined syntax rule. (PredMode) is an intra-picture mode (MODE_INTRA), and is used to indicate whether or not the PCM-encoded syntax element pcm_flag in the picture is decoded. If pcm_flag is 0, it is intra-picture prediction coding, and an intra-picture prediction mode including an intra-picture luminance prediction mode and an intra-screen color difference prediction mode is obtained. If pcm_flag is 1, it is PCM coded in the picture, and the PCM signal is obtained. On the other hand, if the prediction mode (PredMode) is the inter-picture mode (MODE_INTER), the inter-picture prediction mode, the information for specifying the reference picture, the motion vector, and the like are obtained. If the prediction mode (PredMode) is the screen When the internal mode (MODE_INTRA) and the pcm_flag are 0, the intra-screen prediction mode including the intra-screen luminance prediction mode and the intra-screen chroma prediction mode is supplied to the intra-screen prediction unit 206 via the switch 215, and the prediction mode (PredMode) is used. In the inter-picture mode (MODE_INTER), the inter-picture prediction mode, the information for specifying the reference picture, and the inter-picture prediction information such as the motion vector are supplied to the inter-picture prediction unit 208 via the switch 215. The PCM signal is supplied to the PCM decoding unit 207 in the case of intra-picture PCM coding.

第3編碼位元列解碼部204係將所被供給之編碼位元列予以解碼而取得轉換區塊之分割資訊、量化參數資訊、已被正交轉換‧量化之殘差訊號,將已被正交轉換‧量化之殘差訊號,供給至逆量化‧逆正交轉換部209。然後,將量化參數資訊(後述之語法要素cu_qp_delta),供給至量化參數導出部205。量化參數導出部205,係從所被供給之量化參數資訊(後述之語法要素cu_qp_delta)、及第1編碼位元列解碼部202所得之編碼資訊,導出量化參數QPY,供給至逆量化‧逆正交轉換部209,並且儲存至編碼資訊儲存記憶體212中。 The third coded bitstream decoding unit 204 decodes the supplied coded bitstream to obtain the split information of the converted block, the quantization parameter information, and the residual signal that has been orthogonally converted and quantized, and is already positive. The residual ‧ quantized residual signal is supplied to the inverse quantization ‧ inverse orthogonal transform unit 209. Then, the quantization parameter information (syntax element cu_qp_delta, which will be described later) is supplied to the quantization parameter deriving unit 205. The quantization parameter derivation unit 205 derives the quantization parameter QPY from the supplied quantization parameter information (the syntax element cu_qp_delta to be described later) and the coding information obtained by the first coding bit column decoding unit 202, and supplies the quantization parameter QPY to the inverse quantization ‧ The conversion unit 209 is exchanged and stored in the encoded information storage memory 212.

畫面內預測部206係隨應於所被供給之含有畫面內亮度預測模式、及畫面內色差預測模式的畫面內預測模式,根據第1解碼影像記憶體213中所儲存的已解碼之周邊區塊,藉由畫面內預測而生成預測影像訊號,透過開關216,將預測影像訊號供給至解碼影像訊號重疊部210。又,在本實施形態中,係在根據畫面內亮度預測模 式之值來預測畫面內色差預測模式之值之際,隨應於色差格式,畫面內色差預測模式的導出方法有所不同。此時,係使用會隨應於色差格式而不同之方法所導出的畫面內預測模式,來進行畫面內預測。 The intra-screen prediction unit 206 is based on the decoded intra-prediction mode including the intra-screen luminance prediction mode and the intra-screen chroma prediction mode, and the decoded peripheral block stored in the first decoded video memory 213. The predicted video signal is generated by intra-picture prediction, and the predicted video signal is supplied to the decoded video signal overlapping unit 210 through the switch 216. Further, in the present embodiment, the prediction mode is based on the brightness in the screen. When the value of the formula is used to predict the value of the intra-picture color difference prediction mode, the method of deriving the intra-picture color difference prediction mode differs depending on the color difference format. At this time, intra-screen prediction is performed using an intra-screen prediction mode that is derived in accordance with a method different from the color difference format.

PCM解碼部207係進行所被輸入之訊號的解碼處理,獲得編碼區塊單位的PCM訊號。將所獲得之編碼區塊單位的PCM訊號,透過開關217而儲存至第1解碼影像記憶體213。 The PCM decoding unit 207 performs decoding processing of the input signal to obtain a PCM signal of the coding block unit. The PCM signal of the obtained coding block unit is stored in the first decoded image memory 213 through the switch 217.

畫面間預測部208係使用所被供給之畫面間預測模式、用來特定參照圖像之資訊、運動向量等之畫面間預測資訊,根據第2解碼影像記憶體214中所儲存的已解碼之參照圖像,藉由使用了運動補償的畫面間預測而生成預測影像訊號,透過開關216,將預測影像訊號供給至解碼影像訊號重疊部210。此外,在雙預測的情況下,係對L0預測、L1預測的2個運動補償預測影像訊號,適應性地乘算權重係數,生成最終的預測影像訊號。 The inter-screen prediction unit 208 uses the inter-picture prediction mode supplied, the information for specifying the reference picture, the inter-picture prediction information such as the motion vector, and the decoded reference stored in the second decoded video memory 214. The image is generated by using motion compensated inter-picture prediction to generate a predicted video signal, and the predicted video signal is supplied to the decoded video signal overlapping unit 210 via the switch 216. In addition, in the case of double prediction, the two motion compensated prediction image signals for the L0 prediction and the L1 prediction are adaptively multiplied by the weight coefficients to generate a final predicted image signal.

逆量化‧逆正交轉換部209,係使用根據從量化參數導出部205所供給之量化參數QPY而被導出的亮度訊號之量化參數QPY’、及色差訊號Cb、Cr的色差訊號之量化參數QPCb’、QPCr’,而對第3編碼位元列解碼部204所解碼之已被正交轉換‧量化之殘差訊號,進行逆正交轉換及逆量化,獲得已被逆正交轉換.逆量化之殘差訊號。 The inverse quantization ‧ inverse orthogonal transform unit 209 uses the quantization parameter QPY' of the luminance signal derived from the quantization parameter QPY supplied from the quantization parameter deriving unit 205, and the quantization parameter QPCb of the color difference signal of the color difference signals Cb and Cr ', QPCr', and the residual signal that has been orthogonally converted and quantized by the third coded bit column decoding unit 204 is subjected to inverse orthogonal transform and inverse quantization to obtain inverse orthogonal transform. The inverse quantized residual signal.

解碼影像訊號重疊部210,係將已被畫面內預 測部206、或畫面間預測部208所預測出來的預測影像訊號、和已被逆量化‧逆正交轉換部209進行逆正交轉換.逆量化之殘差訊號加以重疊,以將解碼影像訊號予以解碼,並透過開關217,儲存至第1解碼影像記憶體213。 The decoded video signal overlapping unit 210 is already pre-screened The predicted video signal predicted by the measuring unit 206 or the inter-picture predicting unit 208 and the inverse orthogonal transform unit 209 are inverse orthogonally converted. The inverse quantized residual signals are superimposed to decode the decoded video signal and stored in the first decoded video memory 213 through the switch 217.

去區塊濾波器部211係對第1解碼影像記憶體213中所儲存之解碼影像,實施用來減少編碼所致區塊失真等的濾波處理,然後儲存至第2解碼影像記憶體214。第2解碼影像記憶體214中所儲存的解碼影像訊號,係按照輸出順序而被輸出。 The deblocking filter unit 211 performs filtering processing for reducing the block distortion caused by the encoding on the decoded video stored in the first decoded video memory 213, and stores the result in the second decoded video memory 214. The decoded video signals stored in the second decoded video memory 214 are output in the order of output.

接著,詳細說明實施形態的重點之1的量化群組區塊。 Next, the quantized group block of the first aspect of the embodiment will be described in detail.

如前述,在本實施形態中,係定義了將量化參數進行編碼之單位亦即量化群組區塊,對每一量化群組區塊,設定量化參數。圖5係量化群組區塊之一例的說明圖。在圖5中,以實線描繪的區塊A、B0、B1、B2、C0、C1、C2及D0、D1、D2、D3係為編碼區塊,以虛線描繪的區塊係為量化群組區塊。在圖5所示的例子中,樹區塊的尺寸係在亮度訊號是設成64×64像素,在色差訊號是設定成32×32像素。編碼區塊A係不將樹區塊做分割,而當作1個編碼區塊,編碼區塊A的尺寸係在亮度訊號為64×64像素、在色差訊號為32×32像素。編碼區塊B0、B1、B2係為將樹區塊做4分割而成的編碼區塊,編碼區塊B0、B1、B2的尺寸係在亮度訊號為32×32像素、在色差訊號為16×16像素。編碼區塊C0、C1、C2係為將樹區 塊做4分割而成的區塊再做4分割而成的編碼區塊,編碼區塊C0、C1、C2的尺寸係在亮度訊號為16×16像素、在色差訊號為8×8像素。編碼區塊D0、D1、D2、D3係為將樹區塊做4分割而成的區塊再階層式地做二度4分割而成的編碼區塊,編碼區塊D0、D1、D2、D3的尺寸係在亮度訊號為8×8像素、在色差訊號為4×4像素。在圖5所示的例子中,係將量化群組區塊之尺寸在亮度訊號設定成32×32像素,在色差訊號設定成16×16像素。 As described above, in the present embodiment, a quantization group block in which a quantization parameter is encoded is defined, and a quantization parameter is set for each quantization group block. Fig. 5 is an explanatory diagram of an example of quantizing a group block. In FIG. 5, blocks A, B0, B1, B2, C0, C1, C2, and D0, D1, D2, and D3 depicted by solid lines are coded blocks, and blocks depicted by broken lines are quantized groups. Block. In the example shown in Fig. 5, the size of the tree block is set to 64 x 64 pixels for the luminance signal and 32 x 32 pixels for the color difference signal. The coding block A does not divide the tree block, but is regarded as one coding block. The size of the coding block A is 64×64 pixels in the luminance signal and 32×32 pixels in the color difference signal. The coding blocks B0, B1, and B2 are coding blocks formed by dividing the tree block into four. The coding blocks B0, B1, and B2 are of a size of 32×32 pixels and a color difference signal of 16×. 16 pixels. Code blocks C0, C1, C2 are the tree areas The block is divided into four blocks and then divided into four blocks. The coding blocks C0, C1, and C2 are of a size of 16×16 pixels and a color difference signal of 8×8 pixels. The code blocks D0, D1, D2, and D3 are code blocks formed by dividing the tree block into 4 blocks and then dividing the block by 2 degrees, and coding blocks D0, D1, D2, and D3. The size is 8×8 pixels for the luminance signal and 4×4 pixels for the color difference signal. In the example shown in FIG. 5, the size of the quantized group block is set to 32×32 pixels in the luminance signal, and the color difference signal is set to 16×16 pixels.

在本實施形態中,係存在於與量化群組區塊相同位置的編碼區塊及轉換區塊的量化參數,係為相同。量化群組區塊之尺寸係亦可設定成與樹區塊之尺寸相同,也可設定成較小。甚至,量化群組區塊之尺寸係亦可和編碼區塊之尺寸相同,也可比編碼區塊之尺寸還大、或還小。 In the present embodiment, the quantization parameters of the coding block and the conversion block existing at the same position as the quantization group block are the same. The size of the quantized group block can also be set to be the same as the size of the tree block, or can be set to be smaller. Even the size of the quantized group block may be the same as the size of the coded block, or may be larger or smaller than the size of the coded block.

當量化群組區塊之尺寸小於編碼區塊之尺寸時,雖然在量化群組區塊中會含有複數個編碼區塊,但這些編碼區塊的量化參數係為相同的值。在圖5所示的例子中,比最右上之量化群組區塊還小的4個編碼區塊D0、D1、D2、D3的量化參數,係被設定成相同的值。 When the size of the quantized group block is smaller than the size of the coded block, although the quantized group block may contain a plurality of code blocks, the quantization parameters of the code blocks are the same value. In the example shown in FIG. 5, the quantization parameters of the four coding blocks D0, D1, D2, and D3 smaller than the rightmost quantization group block are set to the same value.

當量化群組區塊之尺寸大於編碼區塊之尺寸時,雖然在編碼區塊中會含有複數個量化群組區塊,但這些量化群組區塊的量化參數係為相同的值。在圖5所示的例子中,編碼區塊A中所含的16個量化群組區塊的量化參數係被設定成相同的值,編碼區塊B0中所含的4個量 化群組區塊的量化參數係被設定成相同的值,編碼區塊B1中所含的4個量化群組區塊的量化參數係被設定成相同的值,B2中所含的4個量化群組區塊的量化參數係被設定成相同的值。 When the size of the quantized group block is larger than the size of the coded block, although the plurality of quantized group blocks are included in the code block, the quantization parameters of the quantized group blocks are the same value. In the example shown in FIG. 5, the quantization parameters of the 16 quantized group blocks included in the coding block A are set to the same value, and the four quantities included in the coding block B0. The quantization parameters of the group block are set to the same value, and the quantization parameters of the four quantized group blocks included in the code block B1 are set to the same value, and the four quantizations included in B2. The quantization parameters of the group block are set to the same value.

接著,詳細說明實施形態的重點之1的量化參數之決定、編碼/解碼、導出。 Next, the determination, encoding/decoding, and derivation of the quantization parameter of the first aspect of the embodiment will be described in detail.

圖6係量化參數之決定及編碼處理程序的說明用流程圖。這些處理係在影像編碼裝置的量化參數決定部102及第3編碼位元列生成部117中進行。對圖像內的每個切片,進行步驟S1102至S1122的處理(步驟S1101~S1123)。然後,對切片內的每個編碼樹區塊,進行步驟S1103至S1121的處理(步驟S1102~S1122)。 Fig. 6 is a flow chart for explaining the determination of the quantization parameter and the description of the encoding processing program. These processes are performed by the quantization parameter determination unit 102 and the third coding bit sequence generation unit 117 of the video encoding device. The processing of steps S1102 to S1122 is performed for each slice in the image (steps S1101 to S1123). Then, the processing of steps S1103 to S1121 is performed for each coding tree block in the slice (steps S1102 to S1122).

首先,對編碼樹區塊內的每一量化群組區塊,決定量化參數QPY量化(步驟S1103~S1105)。這些處理係在影像編碼裝置的量化參數決定部102中進行。量化參數QPY係於編碼量控制中,當發生編碼量降低時,則對量化參數QPY設定較大的值,當發生編碼量上升時,則對量化參數QPY設定較小的值。用來調整主觀畫質所需的適應量化之際,編碼列會會容易醒目之量化群組區塊,係對量化參數QPY設定較大的值,編碼劣化容易醒目之量化群組區塊係對量化參數QPY設定較小的值。 First, quantization parameter QPY quantization is determined for each quantized group block in the coding tree block (steps S1103 to S1105). These processes are performed in the quantization parameter determination unit 102 of the video encoding device. The quantization parameter QPY is used in the encoding amount control. When the amount of encoding decreases, a larger value is set for the quantization parameter QPY, and when the amount of encoding increases, a smaller value is set for the quantization parameter QPY. When it is used to adjust the adaptive quantization required for subjective image quality, the coded column will be easy to quantize the quantized group block, which is a large value for the quantization parameter QPY, and the quantization group is easy to be conspicuous. The quantization parameter QPY sets a smaller value.

接著,藉由對編碼樹區塊內的每一編碼區塊,進行步驟S1107至S1120的處理,以將量化群組區塊的量化參數QPY予以編碼(步驟S1106~S1121)。這些處理 係在影像編碼裝置中在第3編碼位元列生成部117裡被實施。在將量化參數QPY進行編碼之際,是導出語法要素cu_qp_delta,將該所被導出之語法要素cu_qp_delta,予以編碼。 Next, the processing of steps S1107 to S1120 is performed by encoding each coding block in the coding tree block to encode the quantization parameter QPY of the quantized group block (steps S1106 to S1121). These treatments The video encoding device is implemented in the third coded bitstream generation unit 117. When the quantization parameter QPY is encoded, the syntax element cu_qp_delta is derived, and the derived syntax element cu_qp_delta is encoded.

首先,身為對象之編碼區塊在編碼順序上位於量化群組區塊之開頭時(步驟S1107的YES),則對用來表示身為對象之編碼區塊所對應之量化群組區塊之QPY所對應之語法要素cu_qp_delta是否有被編碼的變數IsCuQpDeltaCoded設定0(步驟S1108),導出量化參數的預測值QPPRED(步驟S1109)。針對步驟S1109之處理,係使用圖8來詳細說明。 First, when the coding block that is the target is located at the beginning of the quantization group block in the coding order (YES in step S1107), it is used to represent the quantized group block corresponding to the coding block that is the object. Whether or not the syntax element cu_qp_delta corresponding to QPY has the encoded variable IsCuQpDeltaCoded set to 0 (step S1108), and the predicted value QPPRED of the quantization parameter is derived (step S1109). The processing of step S1109 will be described in detail using FIG.

接著將步驟S1109中所導出之量化參數的預測值QPPRED之值,設定至編碼資訊儲存記憶體112的量化群組區塊的QPY(步驟S1110)。此對編碼資訊儲存記憶體112之設定之際,若相較於量化群組區塊之尺寸,編碼區塊之尺寸是較大,則將相同量化參數的預測值QPPRED之值,設定至編碼區塊中所包含之所有量化群組區塊的量化參數QPY。 Next, the value of the predicted value QPPRED of the quantization parameter derived in step S1109 is set to QPY of the quantized group block of the encoded information storage memory 112 (step S1110). When the coded information storage memory 112 is set, if the size of the coded block is larger than the size of the quantized group block, the value of the predicted value QPPRED of the same quantization parameter is set to the coding area. The quantization parameter QPY of all quantized group blocks included in the block.

另一方面,若身為對象之編碼區塊並非在編碼順序上位於量化群組區塊之開頭時(步驟S1107的NO),則前進至步驟S1111。 On the other hand, if the coding block that is the target is not located at the beginning of the quantization group block in the coding order (NO in step S1107), the process proceeds to step S1111.

接著,若編碼區塊是畫面內PCM編碼時(步驟S1111的NO),則略過步驟S1112至S1220之處理而前進至步驟S1221。若編碼區塊並非畫面內PCM編碼時(步 驟S1111的YES),則藉由對編碼區塊內的每一轉換區塊進行步驟S1113至S1119的處理,以將量化群組區塊的量化參數QPY予以編碼(步驟S1112~S1120)。首先,判定身為對象之轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之值(步驟S1113)。此處,變數cbf_luma係含有對象之亮度之轉換區塊為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。變數cbf_cb係含有對象之色差Cb之轉換區塊為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。變數cbf_cr係含有對象之色差Cr之轉換區塊為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。當身為對象之轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之任一者為1時(步驟S1113的YES),則進行步驟S1114至S1119之處理,當轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之任一者均非1時,亦即全部為0時(步驟S1113的NO),則略過步驟S1114至S1119之處理,前進至步驟S1120。 Next, when the coding block is intra-picture PCM coding (NO in step S1111), the processing of steps S1112 to S1220 is skipped and the process proceeds to step S1221. If the coding block is not in-picture PCM coding (step In step S1111, YES), the quantization parameter QPY of the quantized group block is encoded by performing the processing of steps S1113 to S1119 for each of the conversion blocks in the coding block (steps S1112 to S1120). First, the values of the variables cbf_luma, cbf_cb, and cbf_cr of the conversion block that is the target are determined (step S1113). Here, the variable cbf_luma is a coefficient (non-zero coefficient) in which the conversion block of the luminance of the object is non-zero, and is 1 when the coefficient is encoded, and does not include a coefficient other than 0, and is 0 when the coefficient is not encoded. Variables. The variable cbf_cb is a variable containing a coefficient (non-zero coefficient) of a non-zero conversion block of the color difference Cb of the object, and a coefficient of 1 when the coefficient is encoded, and a coefficient of 0 when the coefficient is not encoded and 0 is not encoded. . The variable cbf_cr is a variable containing a coefficient of non-zero (non-zero coefficient) of the color difference Cr of the object, and a coefficient of 1, when the coefficient is encoded, and a coefficient of 0 when the coefficient is not encoded and 0 is not encoded. . When any of the variables cbf_luma, cbf_cb, and cbf_cr of the target conversion block is 1 (YES in step S1113), the processing of steps S1114 to S1119 is performed, when the variables of the conversion block cbf_luma, cbf_cb, and cbf_cr are converted. When none of them is 1, that is, when all of them are 0 (NO in step S1113), the processing of steps S1114 to S1119 is skipped, and the processing proceeds to step S1120.

在步驟S1114中,係判定變數IsCuQpDeltaCoded(步驟S1114),若變數IsCuQpDeltaCoded為0(步驟S1114的YES),則進行步驟S1115至S1118之處理,若變數IsCuQpDeltaCoded為1(步驟S1114的NO),則略過步驟S1115至S1118之處理,前進至步驟S1119。 In step S1114, the variable IsCuQpDeltaCoded is determined (step S1114), and if the variable IsCuQpDeltaCoded is 0 (YES in step S1114), the processing of steps S1115 to S1118 is performed, and if the variable IsCuQpDeltaCoded is 1 (NO in step S1114), skipping The processing of steps S1115 to S1118 proceeds to step S1119.

將步驟S1104中所被設定的量化群組區塊的量化參數QPY之值,設定至編碼資訊儲存記憶體112的量化群組區塊的量化參數QPY(步驟S1115)。此對編碼資訊儲存記憶體112之設定之際,若相較於量化群組區塊之尺寸,編碼區塊之尺寸是較大,則將相同量化參數QPY之值,設定至編碼區塊中所包含之所有量化群組區塊的量化參數QPY。在步驟S1110中被覆寫至編碼資訊儲存記憶體112中所儲存之量化群組區塊的量化參數QPY。 The value of the quantization parameter QPY of the quantized group block set in step S1104 is set to the quantization parameter QPY of the quantized group block of the encoded information storage memory 112 (step S1115). When the size of the coded block is larger than the size of the quantized group block, the value of the same quantization parameter QPY is set to the code block. The quantization parameter QPY of all quantized group blocks included. The quantization parameter QPY of the quantized group block stored in the encoded information storage memory 112 is overwritten in step S1110.

在步驟S1116中,藉由下式而導出語法要素cu_qp_delta(步驟S1116)。QPDIFF=QPY-QPPRED cu_qp_delta=(QPDIFF+78+QpBdOffsetY+(QpBdOffsetY/2))%(52+QpBdOffsetY)-26-(QpBdOffsetY/2);其中,變數QpBdOffsetY係為根據映像訊號的位元深度而被設定的變數,在8位元下係為0,在10位元下係為12。 In step S1116, the syntax element cu_qp_delta is derived by the following equation (step S1116). QPDIFF=QPY-QPPRED cu_qp_delta=(QPDIFF+78+QpBdOffsetY+(QpBdOffsetY/2))%(52+QpBdOffsetY)-26-(QpBdOffsetY/2); wherein the variable QpBdOffsetY is set according to the bit depth of the image signal The variable is 0 in 8-bit and 12 in 10-bit.

接著,將語法要素cu_qp_delta進行熵編碼(步驟S1117),對變數IsCuQpDeltaCoded設定1(步驟S1118),將轉換區塊的係數予以編碼(步驟S1119)。 Next, the syntax element cu_qp_delta is entropy encoded (step S1117), the variable IsCuQpDeltaCoded is set to 1 (step S1118), and the coefficients of the conversion block are encoded (step S1119).

若編碼區塊內的所有轉換區塊之處理都完成,則前進至步驟S1121,進行下個編碼區塊之處理。 If the processing of all the conversion blocks in the coding block is completed, the process proceeds to step S1111 to perform the processing of the next coding block.

若編碼樹區塊內的所有編碼區塊之處理都完 成,則前進至步驟S1122,進行下個編碼樹區塊之處理。 If all the coding blocks in the coding tree block are processed If yes, proceed to step S1122 to perform processing of the next coding tree block.

若切片內的所有編碼樹區塊之處理都完成,則前進至步驟S1123,進行下個切片之處理。 If the processing of all the coding tree blocks in the slice is completed, the process proceeds to step S1123 to perform the processing of the next slice.

若切片內的所有切片之處理都完成,則結束本量化參數決定、編碼處理。 If the processing of all the slices in the slice is completed, the quantization parameter determination and the encoding process are ended.

圖7係量化參數之解碼.導出處理程序的說明用流程圖。這些處理係在影像解碼裝置的量化參數導出部205中進行。但是,步驟S1212的熵解碼處理,係在影像解碼裝置的第3編碼位元列解碼部204中進行。對圖像內的每個切片,進行步驟S1202至S1219的處理(步驟S1201~S1220)。然後,對切片內的每個編碼樹區塊,進行步驟S1203至S1218的處理(步驟S1202~S1219)。 Figure 7 is the decoding of the quantization parameters. The flow chart is used to describe the export handler. These processes are performed in the quantization parameter deriving unit 205 of the video decoding device. However, the entropy decoding process of step S1212 is performed by the third coded bitstream decoding unit 204 of the video decoding device. The processing of steps S1202 to S1219 is performed for each slice in the image (steps S1201 to S1220). Then, the processing of steps S1203 to S1218 is performed for each coding tree block in the slice (steps S1202 to S1219).

接著,藉由對編碼樹區塊內的每一編碼區塊,進行步驟S1204至S1217的處理,以將量化群組區塊的量化參數QPY予以解碼並導出(步驟S1203~S1218)。這些處理係在影像解碼裝置中在第3編碼位元列解碼部204及量化參數導出部205裡被實施。在導出量化參數QPY之際,係將量化參數的預測值QPPRED予以導出,將語法要素cu_qp_delta予以解碼,使用此已被解碼之語法要素cu_qp_delta來導出量化參數QPY。 Next, the processing of steps S1204 to S1217 is performed on each coding block in the coding tree block to decode and derive the quantization parameter QPY of the quantized group block (steps S1203 to S1218). These processes are implemented in the video encoding device in the third coded bitstream decoding unit 204 and the quantization parameter deriving unit 205. When the quantization parameter QPY is derived, the predicted value QPPRED of the quantization parameter is derived, the syntax element cu_qp_delta is decoded, and the quantized parameter QPY is derived using the decoded syntax element cu_qp_delta.

首先,身為對象之編碼區塊在解碼順序上位於量化群組區塊之開頭時(步驟S1204的YES),則對用來表示身為對象之編碼區塊所對應之量化群組區塊之QPY所對應之語法要素cu_qp_delta是否有被解碼的變數 IsCuQpDeltaCoded設定0(步驟S1205),導出量化參數QPY之預測值QPPRED(步驟S1206)。針對步驟S1206之處理,係使用圖8來詳細說明。 First, when the coding block that is the target is located at the beginning of the quantization group block in the decoding order (YES in step S1204), it is used to represent the quantized group block corresponding to the coding block that is the object. Whether the syntax element cu_qp_delta corresponding to QPY has decoded variables IsCuQpDeltaCoded is set to 0 (step S1205), and the predicted value QPPRED of the quantization parameter QPY is derived (step S1206). The processing of step S1206 will be described in detail using FIG.

接著將步驟S1109中所導出之量化參數的預測值QPPRED之值,設定至編碼資訊儲存記憶體212的量化群組區塊的量化參數QPY(步驟S1207)。此編碼資訊儲存記憶體212之際,若相較於量化群組區塊之尺寸,編碼區塊之尺寸是較大,則將相同量化參數的預測值QPPRED之值,設定至編碼區塊中所包含之所有量化群組區塊的量化參數QPY。 Next, the value of the predicted value QPPRED of the quantization parameter derived in step S1109 is set to the quantization parameter QPY of the quantized group block of the encoded information storage memory 212 (step S1207). When the coded information storage memory 212 is larger than the size of the quantized group block, the size of the coded block is larger, and the value of the predicted value QPPRED of the same quantization parameter is set to the code block. The quantization parameter QPY of all quantized group blocks included.

另一方面,若身為對象之編碼區塊並非在解碼順序上位於量化群組區塊之開頭時(步驟S1204的NO),則前進至步驟S1208。 On the other hand, if the coding block that is the target is not located at the beginning of the quantization group block in the decoding order (NO in step S1204), the process proceeds to step S1208.

接著,若編碼區塊是畫面內PCM編碼時(步驟S1210的NO),則略過步驟S1209至S1217之處理而前進至步驟S1218。若編碼區塊並非畫面內PCM編碼時(步驟S1210的YES),則藉由對編碼區塊內的每一轉換區塊進行步驟S1210至S1216的處理,以將量化群組區塊的量化參數QPY予以解碼並導出(步驟S1209~S1217)。首先,判定身為對象之轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之值(步驟S1210)。此處,變數cbf_luma係含有對象之亮度之轉換區塊為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。變數cbf_cb係含有對象之色差Cb之轉換區塊 為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。變數cbf_cr係含有對象之色差Cr之轉換區塊為非0的係數(非0係數)、且係數是被編碼時則為1,不含非0之係數、係數不被編碼時則為0的變數。當身為對象之轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之任一者為1時(步驟S1210的YES),則進行步驟S1211至S1216之處理,當轉換區塊的變數cbf_luma、cbf_cb、cbf_cr之任一者均非1時,亦即全部為0時(步驟S1210的NO),則略過步驟S1211至S1216之處理,前進至步驟S1217。 Next, when the coding block is intra-picture PCM coding (NO in step S1210), the processing of steps S1209 to S1217 is skipped, and the process proceeds to step S1218. If the coding block is not intra-picture PCM coding (YES in step S1210), the quantization parameter QPY of the quantization group block is to be performed by performing the processing of steps S1210 to S1216 for each conversion block in the coding block. It is decoded and derived (steps S1209 to S1217). First, the values of the variables cbf_luma, cbf_cb, and cbf_cr of the conversion block that is the target are determined (step S1210). Here, the variable cbf_luma is a coefficient (non-zero coefficient) in which the conversion block of the luminance of the object is non-zero, and is 1 when the coefficient is encoded, and does not include a coefficient other than 0, and is 0 when the coefficient is not encoded. Variables. The variable cbf_cb is a conversion block containing the color difference Cb of the object A coefficient that is non-zero (non-zero coefficient) and that is 1 when the coefficient is encoded, does not contain a coefficient other than 0, and is a variable that is 0 when the coefficient is not encoded. The variable cbf_cr is a variable containing a coefficient of non-zero (non-zero coefficient) of the color difference Cr of the object, and a coefficient of 1, when the coefficient is encoded, and a coefficient of 0 when the coefficient is not encoded and 0 is not encoded. . When any of the variables cbf_luma, cbf_cb, and cbf_cr of the target conversion block is 1 (YES in step S1210), the processing of steps S1211 to S1216 is performed, when the variables of the conversion block cbf_luma, cbf_cb, and cbf_cr are converted. When none of them is 1, that is, when all of them are 0 (NO in step S1210), the processing of steps S1211 to S1216 is skipped, and the processing proceeds to step S1217.

在步驟S1211中,係判定變數IsCuQpDeltaCoded(步驟S1211),若變數IsCuQpDeltaCoded為0(步驟S1211的YES),則進行步驟S1212至S1215之處理,若變數IsCuQpDeltaCoded為1(步驟S1211的NO),則略過步驟S1212至S1215之處理,前進至步驟S1216。 In step S1211, the variable IsCuQpDeltaCoded is determined (step S1211), and if the variable IsCuQpDeltaCoded is 0 (YES in step S1211), the processing of steps S1212 to S1215 is performed, and if the variable IsCuQpDeltaCoded is 1 (NO in step S1211), skipping is performed. The processing of steps S1212 to S1215 proceeds to step S1216.

接著,將語法要素cu_qp_delta進行熵解碼(步驟S1212)。 Next, the syntax element cu_qp_delta is entropy decoded (step S1212).

接著,藉由下式而導出量化群組區塊的量化參數QPY(步驟S1213)。QPY=(((QPPRED+cu_qp_delta+52+2 * QpBdOffsetY)%(52+QpBdOffsetY))-QpBdOffsetY 其中,變數QpBdOffsetY係為根據映像訊號之位元深度而被設定的變數。 Next, the quantization parameter QPY of the quantized group block is derived by the following equation (step S1213). QPY=(((QPPRED+cu_qp_delta+52+2 * QpBdOffsetY)%(52+QpBdOffsetY))-QpBdOffsetY The variable QpBdOffsetY is a variable that is set according to the bit depth of the image signal.

將步驟S1213中所被導出的量化群組區塊的量化參數QPY之值,對編碼資訊儲存記憶體212設定至量化群組區塊的量化參數QPY(步驟S1214)。此對編碼資訊儲存記憶體212之設定之際,若相較於量化群組區塊之尺寸,編碼區塊之尺寸是較大,則將相同量化參數QPY之值,設定至編碼區塊中所包含之所有量化群組區塊的量化參數QPY。在步驟S1207中被覆寫至編碼資訊儲存記憶體212中所儲存之量化群組區塊的量化參數QPY。 The value of the quantization parameter QPY of the quantized group block derived in step S1213 is set to the quantization parameter QPY of the quantized group block to the coded information storage memory 212 (step S1214). When the size of the coded block is larger than the size of the quantized group block, the value of the same quantization parameter QPY is set to the code block. The quantization parameter QPY of all quantized group blocks included. The quantization parameter QPY of the quantized group block stored in the encoded information storage memory 212 is overwritten in step S1207.

接著,對變數IsCuQpDeltaCoded設定1(步驟S1215),將轉換區塊的係數予以解碼(步驟S1216)。 Next, the variable IsCuQpDeltaCoded is set to 1 (step S1215), and the coefficients of the conversion block are decoded (step S1216).

若編碼區塊內的所有轉換區塊之處理都完成,則前進至步驟S1218,進行下個編碼區塊之處理。 If the processing of all the conversion blocks in the coding block is completed, the process proceeds to step S1218, where the processing of the next coding block is performed.

若編碼樹區塊內的所有編碼區塊之處理都完成,則前進至步驟S1219,進行下個編碼樹區塊之處理。 If the processing of all the coding blocks in the coding tree block is completed, the process proceeds to step S1219 to perform the processing of the next coding tree block.

若切片內的所有編碼樹區塊之處理都完成,則前進至步驟S1220,進行下個切片之處理。 If the processing of all the coding tree blocks in the slice is completed, the process proceeds to step S1220 to perform the processing of the next slice.

若切片內的所有切片之處理都完成,則結束本量化參數解碼、導出處理。 If the processing of all the slices in the slice is completed, the quantization parameter decoding and derivation processing is ended.

圖8係圖6的步驟S1109、圖7的S1206的量化參數之預測值的導出處理程序的說明用流程圖。這些處理係在影像編碼裝置的第3編碼位元列生成部117及影像解碼裝置的量化參數導出部205中進行。首先,被儲存至 影像編碼裝置的編碼資訊儲存記憶體112或影像解碼裝置的編碼資訊儲存記憶體212中。 FIG. 8 is a flowchart for explaining the process of deriving the predicted value of the quantization parameter of step S1109 of FIG. 6 and S1206 of FIG. 7. These processes are performed in the third coded bitstream generation unit 117 of the video encoding device and the quantization parameter derivation unit 205 of the video decoding device. First, it is stored to The encoded information storage memory 112 of the video encoding device or the encoded information storage memory 212 of the video decoding device.

判定左方相鄰之量化群組區塊是否為可利用,若左方相鄰之量化群組區塊是可利用(步驟S1301的YES),則將左方相鄰之量化群組區塊的量化參數QPLEFT之值,設定至量化參數QPA(步驟S1302),若為無法利用(步驟S1301的NO),則將編碼/解碼順序上前一個量化群組區塊的量化參數QPPREV之值,設定至量化參數QPA(步驟S1303)。 Determining whether the left adjacent quantized group block is available, and if the left adjacent quantized group block is available (YES in step S1301), the value of the quantization parameter QPLEFT of the left adjacent quantized group block, If the quantization parameter QPA is set (step S1302), if it is not available (NO in step S1301), the value of the quantization parameter QPPREV of the previous quantization group block in the encoding/decoding order is set to the quantization parameter QPA (step S1303). ).

判定上方相鄰之量化群組區塊是否為可利用,若上方相鄰之量化群組區塊是可利用(步驟S1304的YES),則將上方相鄰之量化群組區塊的量化參數QPLEFT之值,設定至量化參數QPB(步驟S1305),若為無法利用(步驟S1304的NO),則將編碼/解碼順序上前一個量化群組區塊的量化參數QPPREV之值,設定至量化參數QPB(步驟S1306)。 Determining whether the adjacent adjacent quantized group block is available, and if the upper adjacent quantized group block is available (YES in step S1304), the quantization parameter QPLEFT of the upper adjacent quantized group block is determined. The value is set to the quantization parameter QPB (step S1305), and if it is not available (NO in step S1304), the value of the quantization parameter QPPREV of the previous quantization group block in the encoding/decoding order is set to the quantization parameter QPB. (Step S1306).

接著,藉由下式,算出量化參數QPA與量化參數QPB的平均值,當作量化參數的預測值QPPRED(步驟S1307),結束本量化參數導出處理。QPPRED=(QPA+QPB+1)>>1 Next, the average value of the quantization parameter QPA and the quantization parameter QPB is calculated by the following equation, and is used as the predicted value QPPRED of the quantization parameter (step S1307), and the present quantization parameter derivation processing is ended. QPPRED=(QPA+QPB+1)>>1

在畫面內PCM編碼中雖然不進行量化,但在本實施形態中,係在去區塊濾波之際,會使用量化參數。 於是,對畫面內PCM之編碼區塊,也設定量化參數。與非畫面內PCM編碼之編碼區塊的量化參數同樣地,將含有畫面內PCM之編碼區塊的量化群組區塊的量化參數,視作畫面內PCM之編碼區塊的量化參數。 Although quantization is not performed in the intra-picture PCM coding, in the present embodiment, quantization parameters are used in deblocking filtering. Thus, the quantization parameter is also set for the coding block of the PCM in the picture. Similarly to the quantization parameter of the non-intra-picture PCM coded block, the quantization parameter of the quantized group block containing the coded block of the intra-picture PCM is regarded as the quantization parameter of the coded block of the PCM in the picture.

說明畫面內PCM區塊之尺寸與量化群組區塊之尺寸的關係與量化參數之值。 The relationship between the size of the PCM block in the picture and the size of the quantized group block and the value of the quantization parameter are described.

編碼區塊為畫面內PCM編碼,且編碼區塊之尺寸是量化群組區塊之尺寸以上的情況下,語法要素cu_qp_delta就不會被編碼,畫面內PCM區塊的量化參數QPY之值係與量化參數的預測值QPPRED相等,該與量化參數之預測值QPPRED相等的量化參數QPY之值,係被儲存至影像編碼裝置的編碼資訊儲存記憶體112或影像解碼裝置的編碼資訊儲存記憶體212中。 When the coding block is intra-picture PCM coding, and the size of the coding block is greater than the size of the quantization group block, the syntax element cu_qp_delta is not encoded, and the value of the quantization parameter QPY of the PCM block in the picture is The predicted value QPPRED of the quantization parameter is equal, and the value of the quantization parameter QPY equal to the predicted value QPPRED of the quantization parameter is stored in the encoded information storage memory 112 of the video encoding device or the encoded information storage memory 212 of the video decoding device. .

編碼區塊為畫面內PCM編碼,且編碼區塊之尺寸是未滿量化群組區塊之尺寸的情況下,同一量化群組區塊內的非畫面內PCM編碼之編碼區塊中語法要素cu_qp_delta有可能被編碼,畫面內PCM編碼之編碼區塊的量化參數QPY之值係並不一定與量化參數之預測值QPPRED之值相等,要被編碼/解碼之量化參數QPY之值係被儲存至影像編碼裝置的編碼資訊儲存記憶體112或影像解碼裝置的編碼資訊儲存記憶體212中。 If the coding block is intra-picture PCM coding, and the size of the coding block is less than the size of the quantized group block, the syntax element cu_qp_delta in the non-intra-picture PCM coding coding block in the same quantization group block It is possible to be encoded, and the value of the quantization parameter QPY of the coded block of the PCM code in the picture is not necessarily equal to the value of the predicted value QPPRED of the quantization parameter, and the value of the quantization parameter QPY to be encoded/decoded is stored to the image. The encoded information storage memory 112 of the encoding device or the encoded information storage memory 212 of the video decoding device.

此外,為了更適切地設定去區塊濾波器的濾波強度來降低區塊失真,即使當編碼區塊是畫面內PCM編碼的情況下,亦可仍將量化參數QPY之值進行編碼/解 碼。此情況下,要被編碼/解碼之量化參數QPY之值係被儲存至影像編碼裝置的編碼資訊儲存記憶體112或影像解碼裝置的編碼資訊儲存記憶體212中。 In addition, in order to more appropriately set the filtering strength of the deblocking filter to reduce block distortion, even when the coding block is intra-picture PCM coding, the value of the quantization parameter QPY can be encoded/solved. code. In this case, the value of the quantization parameter QPY to be encoded/decoded is stored in the encoded information storage memory 112 of the video encoding apparatus or the encoded information storage memory 212 of the video decoding apparatus.

接著,詳細說明實施形態的重點之1的去區塊濾波器的編碼/解碼。在本實施形態中,係在亮度訊號,導出將圖像切割成8×8像素區塊之際位於交界上之轉換區塊及預測區塊之交界,進行去區塊濾波器處理。圖9係區塊交界之像素之一例的說明圖。在進行垂直邊緣之濾波處理時,如圖9(a)所示,令夾住垂直交界的左側之區塊為區塊P、右側之區塊為區塊Q。然後,將區塊P中所含之身為濾波對象的垂直交界的像素p,從區塊之交界起往左依序令作像素p0、p1、p2、p3,將區塊Q中所含之像素q,從區塊之交界起往右依序令作像素q0、q1、q2、q3。雖然僅圖示最上面的1線,但跨越垂直交界、針對垂直方向之各線,會在水平方向上進行濾波。另一方面,在進行水平邊緣之濾波處理時,如圖9(b)所示,令夾住水平交界的上側之區塊為區塊P、下側之區塊為區塊Q。然後,將區塊P中所含之身為濾波對象的垂直交界的像素p,從區塊之交界起往上依序令作像素p0、p1、p2、p3,將區塊Q中所含之像素q,從區塊之交界起往下依序令作像素q0、q1、q2、q3。雖然僅圖示最左方的1線,但跨越水平交界、針對水平方向之各線,會在垂直方向上進行濾波。 Next, the encoding/decoding of the deblocking filter of the first aspect of the embodiment will be described in detail. In the present embodiment, the deblocking filter processing is performed on the boundary of the transition block and the prediction block located at the boundary when the image is cut into 8×8 pixel blocks in the luminance signal. Fig. 9 is an explanatory diagram showing an example of a pixel at the boundary of a block. When the vertical edge filtering process is performed, as shown in FIG. 9(a), the block on the left side sandwiching the vertical boundary is the block P, and the block on the right side is the block Q. Then, the pixel p which is the vertical boundary of the filtering object included in the block P is sequentially ordered from the boundary of the block to the left pixel as p0, p1, p2, and p3, and is included in the block Q. The pixel q is sequentially ordered as a pixel q0, q1, q2, q3 from the boundary of the block. Although only the uppermost one line is illustrated, the vertical crossing and the vertical direction are filtered in the horizontal direction. On the other hand, when the horizontal edge filtering process is performed, as shown in FIG. 9(b), the block on the upper side sandwiching the horizontal boundary is the block P, and the block on the lower side is the block Q. Then, the pixel p which is the vertical boundary of the filtering object included in the block P is sequentially ordered as the pixel p0, p1, p2, and p3 from the boundary of the block, and is included in the block Q. The pixel q is sequentially ordered as a pixel q0, q1, q2, q3 from the boundary of the block. Although only the leftmost one line is illustrated, the horizontal crossing and the horizontal direction are filtered in the vertical direction.

說明第1實施例。圖10、圖11、圖14、圖15及圖18係影像編碼裝置的去區塊濾波器部111及影像 解碼裝置的去區塊濾波器部211的第1實施例之處理程序的說明用流程圖。在影像編碼裝置中,係編碼對象之圖像的所有解碼影像訊號都被儲存在第1解碼影像記憶體113中之後,以去區塊濾波器部111進行去區塊濾波器處理,儲存至第2解碼影像記憶體114。在影像解碼裝置中,係解碼對象之圖像的所有解碼影像訊號都被儲存在第1解碼影像記憶體213中之後,以去區塊濾波器部211進行去區塊濾波器處理,儲存至第2解碼影像記憶體214。 The first embodiment will be described. 10, FIG. 11, FIG. 14, FIG. 15, and FIG. 18 are deblocking filter sections 111 and images of the video encoding apparatus. A flowchart of the processing procedure of the first embodiment of the deblocking filter unit 211 of the decoding device will be described. In the video encoding apparatus, all the decoded video signals of the image to be encoded are stored in the first decoded video memory 113, and then subjected to deblocking filter processing by the deblocking filter unit 111, and stored in the first block. 2 Decode the image memory 114. In the video decoding device, all the decoded video signals of the image to be decoded are stored in the first decoded video memory 213, and then subjected to deblocking filter processing by the deblocking filter unit 211, and stored in the first block. 2 Decode the image memory 214.

首先說明圖10的去區塊濾波器處理程序。對影像編碼裝置的第1解碼影像記憶體113或影像解碼裝置的第1解碼影像記憶體213中所儲存的圖像內之每一編碼區塊,重複步驟S2102與S2103之處理(步驟S2101~S2104)。進行垂直邊緣之水平方向的濾波處理(步驟S2102),將輸出影像p’、q’儲存至影像記憶體(步驟S2103)。此時,是被儲存至中間資料暫時保存用的影像記憶體。接著,對已被去區塊濾波器處理之圖像內的每一編碼區塊,重複步驟S2106與S2107之處理(步驟S2105~S2108)。進行水平邊緣之垂直方向的濾波處理(步驟S2106),將輸出影像p’、q’儲存至影像記憶體(步驟S2107)。此時,會被儲存至影像編碼裝置的第2解碼影像記憶體114或影像解碼裝置的第2解碼影像記憶體214。步驟S2102的垂直邊緣之水平方向之濾波處理和步驟S2106的水平邊緣之垂直方向之濾波處理,係僅處理方向不同,處理程序係為共通,使用圖11、圖14、圖15及圖 18來詳細說明。 First, the deblocking filter processing procedure of Fig. 10 will be explained. The processing of steps S2102 and S2103 is repeated for each coding block in the image stored in the first decoded video memory 113 of the video encoding device or the first decoded video memory 213 of the video decoding device (steps S2101 to S2104). ). The horizontal edge filtering processing is performed (step S2102), and the output images p' and q' are stored in the image memory (step S2103). At this time, it is stored in the image memory for temporary storage of intermediate data. Next, the processing of steps S2106 and S2107 is repeated for each code block in the image processed by the deblocking filter (steps S2105 to S2108). The filtering process in the vertical direction of the horizontal edge is performed (step S2106), and the output images p' and q' are stored in the image memory (step S2107). At this time, it is stored in the second decoded video memory 114 of the video encoding device or the second decoded video memory 214 of the video decoding device. The filtering process in the horizontal direction of the vertical edge of step S2102 and the filtering process in the vertical direction of the horizontal edge of step S2106 are different only in the processing direction, and the processing procedures are common, and FIG. 11, FIG. 14, FIG. 15 and FIG. 18 to elaborate.

說明圖11的每一編碼區塊的去區塊濾波器處理程序。首先,使用編碼資訊儲存記憶體112或編碼資訊儲存記憶體212中所儲存的編碼資訊,來導出編碼區塊內的轉換區塊之交界(步驟S2201)。圖12係編碼區塊內的轉換區塊的垂直交界與水平交界之一例的說明圖。在進行垂直邊緣之濾波處理時,將編碼區塊之內部及左側之邊上的圖12(a)之粗線所示的,導出編碼區塊內的轉換區塊的垂直方向之交界3101,予以導出。另一方面,在進行水平邊緣之濾波處理時,將編碼區塊之內部及上側之邊上的圖12(b)之粗線所示的,導出編碼區塊內的轉換區塊的水平方向之交界3102,予以導出。 A deblocking filter processing procedure for each coding block of Fig. 11 will be described. First, the coded information stored in the coded information storage memory 112 or the coded information storage memory 212 is used to derive the boundary of the conversion block in the coded block (step S2201). Figure 12 is an explanatory diagram showing an example of a vertical boundary and a horizontal boundary of a conversion block in a coding block. When the vertical edge filtering process is performed, the boundary between the vertical direction of the conversion block in the coding block is derived from the thick line of FIG. 12(a) on the inner side and the left side of the coding block, and is given to the boundary 3101 of the vertical direction of the conversion block in the coding block. Export. On the other hand, when the horizontal edge filtering process is performed, the horizontal direction of the conversion block in the coding block is derived from the thick line of FIG. 12(b) on the inner side and the upper side of the coding block. Junction 3102 is derived.

接著,導出預測區塊交界(步驟S2202)。圖13係編碼區塊內的預測區塊的垂直交界與水平交界之一例的說明圖。在進行垂直邊緣之濾波處理時,將編碼區塊之內部及左側之邊上的圖13(a)之粗線所示的,導出編碼區塊內的預測區塊的垂直方向之交界3201,予以導出。另一方面,在進行水平邊緣之濾波處理時,將編碼區塊之內部及上側之邊上的圖13(b)之粗線所示的,導出編碼區塊內的預測區塊的水平方向之交界3202,予以導出。 Next, the prediction block boundary is derived (step S2202). Figure 13 is an explanatory diagram showing an example of a vertical boundary and a horizontal boundary of a prediction block in a coding block. When the vertical edge filtering process is performed, the boundary between the vertical direction of the prediction block in the coding block is deduced from the inner and left sides of the coding block as indicated by the thick line of FIG. 13(a). Export. On the other hand, when the horizontal edge filtering process is performed, the horizontal direction of the prediction block in the coding block is derived from the thick line of FIG. 13(b) on the inner side and the upper side of the coding block. Junction 3202 is derived.

接著,導出轉換區塊及預測區塊的各個區塊交界之強度(步驟S2203)。針對各區塊交界,並非進行一樣相同強度的去區塊濾波器處理,而是應該要根據各個區塊交界之條件來決定要進行哪種程度之強度的去區塊濾波 器處理。 Next, the strength of the boundary of each block of the conversion block and the prediction block is derived (step S2203). For each block boundary, not the same intensity deblocking filter processing is performed, but the extent of the strength of the deblocking filter should be determined according to the conditions of the boundary of each block. Processing.

當像素p0或q0是被以畫面內預測模式而被編碼之編碼區塊所包含時,將表示區塊交界之強度的變數bS的值,設定成2。2係表示最強強度的值。 When the pixel p0 or q0 is included in the coding block coded by the intra prediction mode, the value of the variable bS indicating the strength of the block boundary is set to 2. The 2 system indicates the value of the strongest intensity.

當像素p0或q0未被以畫面內預測模式而被編碼之編碼區塊所包含時,當像素p0或q0是被含非0轉換係數之轉換區塊所包含時,將表示區塊交界之強度的變數bS的值,設定成1。1係表示中程度之強度的值。 When the pixel p0 or q0 is not included in the coding block coded in the intra-picture prediction mode, when the pixel p0 or q0 is included in the conversion block containing the non-zero conversion coefficient, the strength of the block boundary will be indicated. The value of the variable bS is set to 1. The 1 indicates the value of the medium intensity.

當像素p0或q0未被以畫面內預測模式而被編碼之編碼區塊所包含,像素p0或q0未被含非0轉換係數之轉換區塊所包含時,含有像素p0之預測區塊,是與含有像素q0之預測區塊為不同之參照圖像、或不同之預測區塊的運動向量數時,則將表示區塊交界之強度的變數bS的值,設定成1。 When the pixel p0 or q0 is not included in the coding block that is encoded in the intra-picture prediction mode, and the pixel p0 or q0 is not included in the conversion block including the non-zero conversion coefficient, the prediction block containing the pixel p0 is When the number of motion vectors differs from the prediction block including the pixel q0 or the prediction vector of the different prediction block, the value of the variable bS indicating the strength of the block boundary is set to 1.

當像素p0或q0未被以畫面內預測模式而被編碼之編碼區塊所包含,像素p0或q0未被含非0轉換係數之轉換區塊所包含,含有像素p0之預測區塊,是與含有像素q0之預測區塊為相同之參照圖像且相同之預測區塊的運動向量數時,含有像素p0之預測區塊的運動向量之值、與含有像素q0之預測區塊的運動向量的運動向量之值是有所定值以上之差異時,將表示區塊交界之強度的變數bS的值,設定成1。 When the pixel p0 or q0 is not included in the coding block that is encoded in the intra-picture prediction mode, the pixel p0 or q0 is not included in the conversion block containing the non-zero conversion coefficient, and the prediction block containing the pixel p0 is When the prediction block containing the pixel q0 is the same reference image and the number of motion vectors of the same prediction block, the value of the motion vector of the prediction block containing the pixel p0 and the motion vector of the prediction block containing the pixel q0 When the value of the motion vector is a difference equal to or greater than the fixed value, the value of the variable bS indicating the strength of the block boundary is set to 1.

當像素p0或q0未被以畫面內預測模式而被編碼之編碼區塊所包含,像素p0或q0未被含非0轉換係 數之轉換區塊所包含,含有像素p0之預測區塊係與含有像素q0之預測區塊是相同參照圖像且相同預測區塊之運動向量數且含有像素p0之預測區塊的運動向量之值、與含有像素q0之預測區塊的運動向量的運動向量之值是沒有所定值以上之差異時,將表示區塊交界之強度的變數bS的值,設定成0。0係表示最弱強度的值。 When the pixel p0 or q0 is not included in the coding block that is encoded in the intra-picture prediction mode, the pixel p0 or q0 is not included in the non-zero conversion system. The number of conversion blocks includes that the prediction block containing the pixel p0 and the prediction block containing the pixel q0 are the same reference image and the motion vector number of the same prediction block and the motion vector of the prediction block containing the pixel p0 When the value of the motion vector of the motion vector containing the prediction block of the pixel q0 is not greater than the predetermined value, the value of the variable bS indicating the strength of the block boundary is set to 0. The 0 system indicates the weakest intensity. Value.

接著,進行亮度訊號的濾波(步驟S2204)。針對步驟S2204之亮度訊號的濾波處理程序,使用圖14來詳細說明。接著,進行色差訊號的濾波(步驟S2205),結束本去區塊濾波器處理程序。至於色差訊號之濾波也是和亮度訊號之濾波大致相同的手法,因此省略詳細說明。 Next, filtering of the luminance signal is performed (step S2204). The filter processing procedure for the luminance signal of step S2204 will be described in detail using FIG. Next, filtering of the color difference signals is performed (step S2205), and the present deblocking filter processing program is ended. As for the filtering of the color difference signal, it is also the same as the filtering of the luminance signal, and thus detailed description is omitted.

圖14係步驟S2204之訊號的濾波處理程序的流程圖。對編碼區塊內的每8×8區塊(步驟S2301~S2303),進行亮度區塊邊緣的濾波(步驟S2302)。 Fig. 14 is a flow chart showing the filtering processing procedure of the signal of step S2204. For each 8×8 block in the coding block (steps S2301 to S2303), filtering of the luminance block edge is performed (step S2302).

圖15係第1實施例的步驟S2302的區塊邊緣的濾波處理程序的流程圖。首先,取得含有像素p(像素p0、p1、p2、p3)的區塊P的量化參數QPP(步驟S3101)。取得含有像素q(像素q0、q1、q2、q3)的區塊Q的量化參數QPQ(步驟S3102)。當含有像素p之區塊P是畫面內PCM區塊時(步驟S3103的YES),則不進行量化,沒有編碼劣化,因此對量化參數QPP設定0(步驟S3104)。同樣地,當含有像素q之區塊Q是畫面內PCM區塊時(步驟S3105的YES),則不進行量化,沒有編碼劣化,因此對量化參數QPQ設定0(步驟S3106)。此外,當含有區塊P 或區塊Q的編碼區塊是畫面內PCM區塊時,於步驟S3104及步驟S3106中,雖然是對畫面內PCM區塊的量化參數QPP、QPQ設定了0,但尤其是,當後述的語法要素beta_offset_div2及tc_offset_div2之值所採取的範圍較廣時,對畫面內PCM區塊的量化參數QPP、QPQ不設成0而改為設成量化參數QY的最小值亦即-QpBdOffsetY,藉此可使後述的變數β及變數tc之值變小。此時,藉由將無畫質劣化之畫面內PCM區塊所涉及之濾波器強度減弱,就可較適切地設定去區塊濾波器的濾波強度。接著藉由下式,導出量化參數QPP與量化參數QPQ的平均值,當作QPA(步驟S3107)。QPA=(QPP+QPQ+1)>>1 Fig. 15 is a flowchart showing a filter processing procedure of the block edge in step S2302 of the first embodiment. First, the quantization parameter QPP of the block P including the pixel p (pixels p0, p1, p2, p3) is obtained (step S3101). The quantization parameter QPQ of the block Q including the pixel q (pixels q0, q1, q2, q3) is obtained (step S3102). When the block P including the pixel p is the intra-picture PCM block (YES in step S3103), no quantization is performed and no coding is deteriorated, so the quantization parameter QPP is set to 0 (step S3104). Similarly, when the block Q including the pixel q is the intra-picture PCM block (YES in step S3105), no quantization is performed and no coding is deteriorated, so the quantization parameter QPQ is set to 0 (step S3106). In addition, when there is a block P When the coding block of the block Q is an intra-picture PCM block, in steps S3104 and S3106, although the quantization parameters QPP and QPQ of the PCM block in the picture are set to 0, in particular, the syntax will be described later. When the values of the elements beta_offset_div2 and tc_offset_div2 are relatively wide, the quantization parameters QPP and QPQ of the PCM block in the picture are not set to 0, and are instead set to the minimum value of the quantization parameter QY, that is, -QpBdOffsetY. The values of the variable β and the variable tc to be described later become small. At this time, by reducing the filter strength involved in the PCM block in the picture without deterioration of the picture quality, the filter strength of the deblocking filter can be set more appropriately. Then, the average value of the quantization parameter QPP and the quantization parameter QPQ is derived as the QPA by the following equation (step S3107). QPA=(QPP+QPQ+1)>>1

接著,導出變數β(步驟S3108)。變數β係為去區塊濾波器強度決定之際所使用的變數。量化參數之平均值QPA越大,則變數β之值會變得越大。在變數β之導出中,係以下式導出索引indexB,若索引indexB小於0為設成0,若大於51為限幅成51,藉由參照圖16的表,導出變數β。indexB=QPA+(beta_offset_div2<<1)其中,beta_offset_div2係為以序列單位而被編碼的語法 要素,帶有-13至13的值。當含有區塊P或區塊Q的編碼區塊是畫面內PCM區塊時,藉由將畫面內PCM區塊的量化參數QPP或QPQ設定成-QpBdOffsetY或0,量化參數的平均值QPA之值會變小,β之值會變小。若β之值較小,則如後述,容易變成不施加濾波器,會容易選擇弱濾波器。 Next, the variable β is derived (step S3108). The variable β is the variable used when the strength of the deblocking filter is determined. The larger the average QPA of the quantization parameters, the larger the value of the variable β becomes. In the derivation of the variable β, the index indexB is derived by the following equation. If the index indexB is less than 0, it is set to 0. If it is greater than 51, the limit is 51. By referring to the table of Fig. 16, the variable β is derived. indexB=QPA+(beta_offset_div2<<1) where beta_offset_div2 is the syntax encoded in sequence units Element with a value from -13 to 13. When the coding block containing the block P or the block Q is an intra-picture PCM block, the value of the average value QPA of the quantization parameter is set by setting the quantization parameter QPP or QPQ of the PCM block in the picture to -QpBdOffsetY or 0. Will become smaller, the value of β will become smaller. When the value of β is small, as will be described later, it is easy to change the filter, and it is easy to select a weak filter.

接著,導出變數tc(步驟S3109)。變數tc之值係為去區塊濾波器強度決定之際所使用的變數,量化參數之平均值QPA或表示交界強度之變數bS之值越大,則變數tc之值就越大。在變數tc之導出中,係以下式導出索引indexTc,若索引indexTc小於0為設成0,若大於53為限幅成53,藉由參照圖17的表,導出變數tc。indexTc=QPA+2 * (bS-1)+(tc_offset_div2<<1)其中,tc_offset_div2係為以序列單位而被編碼的語法,帶有-13至13的值。 Next, the variable tc is derived (step S3109). The value of the variable tc is a variable used when the strength of the deblocking filter is determined. The larger the value QPA of the quantization parameter or the value of the variable bS indicating the boundary strength, the larger the value of the variable tc. In the derivation of the variable tc, the index indexTc is derived by the following equation. If the index indexTc is less than 0, it is set to 0. If it is greater than 53, the limit is 53. The variable tc is derived by referring to the table of FIG. indexTc=QPA+2 * (bS-1)+(tc_offset_div2<<1) where tc_offset_div2 is a syntax encoded in sequence units with a value of -13 to 13.

接著,根據交界附近的像素值之關係,導出評價值d(步驟S3110)。若評價值d是變數β以上(步驟S3111的NO),則將輸入像素直接當成輸出像素(步驟S3116),結束本亮度訊號之濾波處理。若變數β之值較小,則容易變成不施加濾波器。 Next, the evaluation value d is derived based on the relationship of the pixel values in the vicinity of the boundary (step S3110). When the evaluation value d is equal to or greater than the variable β (NO in step S3111), the input pixel is directly regarded as an output pixel (step S3116), and the filtering processing of the luminance signal is ended. If the value of the variable β is small, it is easy to become a filter.

若評價值d是小於變數β(步驟S3111的YES),則根據交界附近之像素值與變數β之關係,來決定去區 塊濾波器之種類(步驟S3112)。在本實施形態中係將強濾波器與弱濾波器這2種類的濾波器,做切換使用。若變數β之值較大,則容易選擇強濾波器,若變數β之值較小,則容易選擇弱濾波器。 If the evaluation value d is smaller than the variable β (YES in step S3111), the de-arrangement is determined based on the relationship between the pixel value in the vicinity of the boundary and the variable β. The type of the block filter (step S3112). In the present embodiment, two types of filters, a strong filter and a weak filter, are used for switching. If the value of the variable β is large, it is easy to select a strong filter, and if the value of the variable β is small, it is easy to select a weak filter.

接著,對濾波區塊的每一線,將訊號進行濾波(步驟S3113~S3115)。進行每線訊號的夾住區塊交界的像素p(像素p0、p1、p2、p3)、像素q(像素q0、q1、q2、q3)之濾波(步驟S3114)。 Next, the signal is filtered for each line of the filtering block (steps S3113 to S3115). The filtering of the pixels p (pixels p0, p1, p2, p3) and the pixels q (pixels q0, q1, q2, q3) at the boundary of the block of each line signal is performed (step S3114).

圖18係第1實施例的步驟S3114的每線訊號之濾波處理程序的流程圖。若為施加強濾波器時(步驟S3201的YES),則施加強濾波器(步驟S3202)。若非如此(步驟S3201的NO),則施加弱濾波器(步驟S3203)。將施加過濾波器的像素p’(像素p0’、p1’、p2’、p3’)、像素q’(像素q0’、q1’、q2’、q3’),當作輸出像素,結束本濾波處理程序。 Fig. 18 is a flow chart showing the filtering processing procedure for each line signal of step S3114 of the first embodiment. If a strong filter is applied (YES in step S3201), a strong filter is applied (step S3202). If not (NO in step S3201), a weak filter is applied (step S3203). The pixel p' (pixels p0', p1', p2', p3') and pixel q' (pixels q0', q1', q2', q3') to which the filter is applied are regarded as output pixels, and the filtering is ended. Processing program.

接著,說明第2實施例。圖10、圖11、圖14、圖19、圖20係影像編碼裝置的去區塊濾波器部111及影像解碼裝置的去區塊濾波器部211的第2實施例之處理程序的說明用流程圖。與第1實施例係為,圖10、圖11、圖14係相同,圖15改成圖19,圖18改成圖20。對相同處理(步驟)係標示相同編號。第2實施例的圖19係為,第1實施例的圖15之步驟S3103~S3106的判定含區塊P及區塊Q之編碼區塊是否為畫面內PCM區塊、若為畫面內PCM時則將量化參數QPP或QPQ設定成0之處理被 省略掉,這點有所不同。第2實施例的圖20係對第1實施例的圖18,追加了步驟S3205~S3208之處理這點,有所不同。 Next, a second embodiment will be described. 10, FIG. 11, FIG. 14, FIG. 19, and FIG. 20 are flowcharts for explaining the processing procedure of the second embodiment of the deblocking filter unit 111 of the video encoding apparatus and the deblocking filter unit 211 of the video decoding apparatus. Figure. In the first embodiment, FIG. 10, FIG. 11, and FIG. 14 are the same, FIG. 15 is changed to FIG. 19, and FIG. 18 is changed to FIG. The same number is assigned to the same process (step). FIG. 19 of the second embodiment is the determination of whether the block blocks of the block P and the block Q in the steps S3103 to S3106 of FIG. 15 of the first embodiment are intra-picture PCM blocks, and if it is intra-screen PCM. Then the process of setting the quantization parameter QPP or QPQ to 0 is Omitted, this is different. Fig. 20 of the second embodiment differs from Fig. 18 of the first embodiment in that the processing of steps S3205 to S3208 is added.

圖19係第2實施例的步驟S2302的區塊邊緣的濾波處理程序的流程圖。首先,取得含有像素p的區塊P的量化參數QPP(步驟S3101)。取得含有像素q的區塊Q的量化參數QPQ(步驟S3102)。圖19的步驟S3107以後的處理,係和第1實施例的圖15相同,因此省略說明。 Fig. 19 is a flowchart showing a filter processing procedure of the block edge in step S2302 of the second embodiment. First, the quantization parameter QPP of the block P including the pixel p is obtained (step S3101). The quantization parameter QPQ of the block Q including the pixel q is obtained (step S3102). The processing in and after step S3107 in Fig. 19 is the same as that in Fig. 15 of the first embodiment, and thus the description thereof is omitted.

圖20係第2實施例的步驟S3114的每線的亮度訊號之濾波處理程序的流程圖。若為施加強濾波器時(步驟S3201的YES),則施加強濾波器(步驟S3202)。若非如此(步驟S3201的NO),則施加弱濾波器(步驟S3203)。將被施加過濾波器的像素p’、q’當作輸出像素。 Fig. 20 is a flowchart showing a filtering processing procedure of the luminance signal for each line of step S3114 of the second embodiment. If a strong filter is applied (YES in step S3201), a strong filter is applied (step S3202). If not (NO in step S3201), a weak filter is applied (step S3203). The pixels p', q' to which the filter has been applied are treated as output pixels.

當含有像素p之區塊P是畫面內PCM區塊時(步驟S3205的YES),則將輸入影像p之像素值,設定至輸出像素p’(步驟S3206)。亦即,在未對畫面內PCM區塊之像素p施加濾波器的狀態下,直接當作輸出像素而予以輸出。當含有像素p之區塊不是畫面內PCM區塊時(步驟S3205的YES),則將被施加過濾波器的像素p’直接當作輸出像素而前進至步驟S3207。 When the block P including the pixel p is the intra-picture PCM block (YES in step S3205), the pixel value of the input image p is set to the output pixel p' (step S3206). That is, in a state where a filter is not applied to the pixel p of the PCM block in the picture, it is directly output as an output pixel. When the block containing the pixel p is not the intra-picture PCM block (YES in step S3205), the pixel p' to which the filter has been applied is directly regarded as the output pixel, and the process proceeds to step S3207.

當含有像素q之區塊是畫面內PCM區塊時(步驟S3207的YES),則將輸入影像q之像素值,設定至輸出像素q’(步驟S3208)。亦即,在未對畫面內PCM區塊之像素q施加濾波器的狀態下,直接當作輸出像素而予 以輸出。當含有像素q之區塊不是畫面內PCM區塊時(步驟S3207的YES),則將被施加過濾波器的像素q’直接當作輸出像素,結束本濾波處理程序。 When the block containing the pixel q is the PCM block in the picture (YES in step S3207), the pixel value of the input image q is set to the output pixel q' (step S3208). That is, in a state where a filter is not applied to the pixel q of the PCM block in the picture, it is directly regarded as an output pixel. To output. When the block containing the pixel q is not the intra-picture PCM block (YES in step S3207), the pixel q' to which the filter has been applied is directly regarded as the output pixel, and the filtering processing routine is ended.

在第1實施例中,若區塊P或區塊Q之任一方是畫面內PCM,則將畫面內PCM區塊的量化參數設成0或量化參數的最小值而算出變數β之值,因此在非畫面內PCM的另一方之區塊上也是,變數β之值會變小、變成不會施加濾波器,變成容易選擇弱濾波器,而無法適切地施加去區塊濾波器,存在如此課題。例如,於圖9(a)或(b)中,亮度訊號的位元深度是8位元,且區塊P是畫面內PCM編碼且量化參數QPP之值為30,區塊Q是畫面內預測模式且編碼參數QPQ之值為30,語法要素beta_offset_div2之值為0時,則量化參數QPP之值會被設定成0,編碼參數QPA之值會變成15,變數β之值會變成0。此時,不只是區塊P而就連區塊Q也不會施加濾波器,無法去除區塊失真。 In the first embodiment, if either of the block P or the block Q is the intra-picture PCM, the quantization parameter of the PCM block in the picture is set to 0 or the minimum value of the quantization parameter to calculate the value of the variable β. In the other block of the PCM in the non-screen, the value of the variable β is also small, and the filter is not applied, so that it is easy to select the weak filter, and the deblocking filter cannot be applied appropriately. . For example, in FIG. 9(a) or (b), the bit depth of the luminance signal is 8 bits, and the block P is intra-picture PCM coding and the quantization parameter QPP has a value of 30, and the block Q is intra-picture prediction. The mode and the encoding parameter QPQ have a value of 30. When the value of the syntax element beta_offset_div2 is 0, the value of the quantization parameter QPP is set to 0, the value of the encoding parameter QPA becomes 15, and the value of the variable β becomes 0. At this time, not only the block P but also the block Q does not apply a filter, and block distortion cannot be removed.

另一方面,在第2實施例中,則是不區別是否為畫面內PCM,而是利用量化參數,因此可施加適切強度的濾波器。例如,於圖9(a)或(b)中,亮度訊號的位元深度是8位元,且區塊P是畫面內PCM編碼且編碼參數QPP之值為30,區塊Q是畫面內預測模式且編碼參數QPQ之值為30,語法要素beta_offset_div2之值為0時,則編碼參數QPA之值會變成30,變數β之值會變成22。此時,對區塊Q會施加適切的濾波器,去除區塊失真。又 ,關於沒有編碼劣化之畫面內PCM區塊,則總是不施加濾波器,因此關於畫面內PCM區塊也不會發生編碼劣化。 On the other hand, in the second embodiment, it is not necessary to distinguish whether or not the intra-picture PCM is used, but the quantization parameter is used, so that a filter having a suitable intensity can be applied. For example, in FIG. 9(a) or (b), the bit depth of the luminance signal is 8 bits, and the block P is intra-picture PCM coding and the coding parameter QPP has a value of 30, and the block Q is intra-picture prediction. When the mode and encoding parameter QPQ has a value of 30 and the syntax element beta_offset_div2 has a value of 0, the value of the encoding parameter QPA becomes 30, and the value of the variable β becomes 22. At this time, a suitable filter is applied to the block Q to remove block distortion. also Regarding the intra-picture PCM block without coding degradation, no filter is always applied, so that encoding degradation does not occur with respect to the intra-picture PCM block.

接著,說明第3實施例。圖10、圖11、圖14、圖19、圖21係影像編碼裝置的去區塊濾波器部111及影像解碼裝置的去區塊濾波器部211的第3實施例之處理程序的說明用流程圖。與第2實施例係為,圖10、圖11、圖14、圖19係相同,圖20改成圖21。對相同處理(步驟)係標示相同編號。第2實施例的圖21係對第2實施例的圖20,追加了步驟S3204之處理這點,有所不同。圖10、圖11、圖14、圖19之處理係和第2實施例相同,因此省略說明。 Next, a third embodiment will be described. 10, FIG. 11, FIG. 14, FIG. 19, and FIG. 21 are flowcharts for explaining the processing procedure of the third embodiment of the deblocking filter unit 111 of the video encoding apparatus and the deblocking filter unit 211 of the video decoding apparatus. Figure. In the second embodiment, FIG. 10, FIG. 11, FIG. 14, and FIG. 19 are the same, and FIG. 20 is changed to FIG. The same number is assigned to the same process (step). Fig. 21 of the second embodiment differs from Fig. 20 of the second embodiment in that the processing of step S3204 is added. The processing of Figs. 10, 11, 14, and 19 is the same as that of the second embodiment, and thus the description thereof is omitted.

圖21係第3實施例的步驟S3114的每線的亮度訊號之濾波處理程序的流程圖。若為施加強濾波器時(步驟S3201的YES),則施加強濾波器(步驟S3202)。若非如此(步驟S3201的NO),則施加弱濾波器(步驟S3203)。 Fig. 21 is a flowchart showing a filtering processing procedure of the luminance signal for each line of step S3114 of the third embodiment. If a strong filter is applied (YES in step S3201), a strong filter is applied (step S3202). If not (NO in step S3201), a weak filter is applied (step S3203).

接著,判定旗標pcm_loop_filter_disable_flag之值(步驟S3204)。pcm_loop_filter_disable_flag係為用來表示是否對以畫面內PCM而被編碼之像素施加去區塊濾波器或其他迴圈濾波器用的旗標,是以序列、圖像、或切片單位而被設定、編碼。若pcm_loop_filter_disable_flag為1(步驟S3204的YES),則前進至步驟S3205,若pcm_loop_filter_disable_flag為0(步驟S3204的NO),則將被施加過濾波器的像素p’、q’當作輸出像素,結束 本濾波處理程序。 Next, the value of the flag pcm_loop_filter_disable_flag is determined (step S3204). The pcm_loop_filter_disable_flag is a flag for indicating whether or not to apply a deblocking filter or other loop filter to pixels encoded in the intra-picture PCM, and is set and encoded in a sequence, an image, or a slice unit. If pcm_loop_filter_disable_flag is 1 (YES in step S3204), the process proceeds to step S3205, and if pcm_loop_filter_disable_flag is 0 (NO in step S3204), pixels p' and q' to which the filter has been applied are regarded as output pixels, and the process ends. This filter processing program.

當含有像素p之區塊是畫面內PCM區塊時(步驟S3205的YES),則將輸入影像p之像素值,設定至輸出像素p’(步驟S3206)。亦即,在未對畫面內PCM區塊之像素p施加濾波器的狀態下,直接當作輸出像素而予以輸出。當含有像素p之區塊不是畫面內PCM區塊時(步驟S3205的YES),則將被施加過濾波器的像素p’直接當作輸出像素而前進至步驟S3207。 When the block containing the pixel p is the PCM block in the picture (YES in step S3205), the pixel value of the input image p is set to the output pixel p' (step S3206). That is, in a state where a filter is not applied to the pixel p of the PCM block in the picture, it is directly output as an output pixel. When the block containing the pixel p is not the intra-picture PCM block (YES in step S3205), the pixel p' to which the filter has been applied is directly regarded as the output pixel, and the process proceeds to step S3207.

當含有像素q之區塊是畫面內PCM區塊時(步驟S3207的YES),則將輸入影像q之像素值,設定至輸出像素q’(步驟S3208)。亦即,在未對畫面內PCM區塊之像素q施加濾波器的狀態下,直接當作輸出像素而予以輸出。當含有像素q之區塊不是畫面內PCM區塊時(步驟S3207的YES),則將被施加過濾波器的像素q’直接當作輸出像素,結束本濾波處理程序。 When the block containing the pixel q is the PCM block in the picture (YES in step S3207), the pixel value of the input image q is set to the output pixel q' (step S3208). That is, in a state where a filter is not applied to the pixel q of the PCM block in the picture, it is directly output as an output pixel. When the block containing the pixel q is not the intra-picture PCM block (YES in step S3207), the pixel q' to which the filter has been applied is directly regarded as the output pixel, and the filtering processing routine is ended.

在第3實施例中,由於可根據旗標pcm_loop_filter_disable_flag來切換是否對以畫面內PCM而被編碼之像素施加去區塊濾波器,因此尤其在高位元速率之際,藉由對旗標pcm_loop_filter_disable_flag設定0,就可省略區塊是否為畫面內PCM之判定,可削減演算量。 In the third embodiment, since the deblocking filter can be applied to the pixels encoded with the intra-picture PCM according to the flag pcm_loop_filter_disable_flag, the flag pcm_loop_filter_disable_flag is set to 0, especially at a high bit rate. Then, it is possible to omit whether or not the block is a PCM in the picture, and the amount of calculation can be reduced.

此外,在第1實施例中,亦可不實施圖18之每線訊號的濾波處理程序,改成實施第3實施例所說明之圖21的每線訊號之濾波處理程序。由於可根據旗標 pcm_loop_filter_disable_flag來切換是否對以畫面內PCM而被編碼之像素施加去區塊濾波器,因此尤其在低位元速率之際,對旗標pcm_loop_filter_disable_flag設定1,對畫面內PCM區塊不施加去區塊濾波器,藉此就可抑制畫質劣化。 Further, in the first embodiment, the filtering processing program for each line signal of Fig. 18 may be omitted, and the filtering processing program for each line signal of Fig. 21 described in the third embodiment may be modified. Due to the flag Pcm_loop_filter_disable_flag to switch whether to apply a deblocking filter to pixels encoded in the intra-picture PCM, so especially when the bit rate is low, the flag pcm_loop_filter_disable_flag is set to 1, and no deblocking filter is applied to the intra-picture PCM block. Thereby, deterioration of image quality can be suppressed.

以上所述的實施形態的影像編碼裝置所輸出的影像的編碼位元列,係為了可隨著實施形態中所使用之編碼方法來進行解碼,而具有特定的資料格式,對應於影像編碼裝置的影像解碼裝置係可將此特定資料格式的編碼位元列加以解碼。 The coded bitstream of the video output by the video encoding apparatus according to the above embodiment has a specific data format for decoding in accordance with the encoding method used in the embodiment, and corresponds to the video encoding apparatus. The video decoding device can decode the encoded bit sequence of this particular data format.

影像編碼裝置與影像解碼裝置之間為了收授編碼位元列,而使用有線或無線網路的情況下,可將編碼位元列轉換成適合於通訊路之傳輸形態的資料形式來進行傳輸。此情況下,會設置有:將影像編碼裝置所輸出之編碼位元列轉換成適合於通訊路之傳輸形態之資料形式的已被封包化之編碼串流然後發送至網路的影像送訊裝置、和從網路接收已被封包化之編碼串流並復原成編碼位元列而供給至影像解碼裝置的影像收訊裝置。 In the case where a video or wireless network is used between the video encoding device and the video decoding device to receive the encoded bit sequence, the encoded bit sequence can be converted into a data format suitable for the transmission mode of the communication path for transmission. In this case, there is provided an image transmitting device that converts the encoded bit sequence output by the image encoding device into a packetized encoded stream suitable for the data format of the communication path and then transmits the encoded encoded stream to the network. And a video receiving device that receives the encoded encoded stream from the network and restores the encoded bit sequence to the video decoding device.

影像送訊裝置,係含有:將影像編碼裝置所輸出之編碼位元列予以緩衝的記憶體、將編碼位元列予以封包化的封包處理部、將已被封包化的編碼串流透過網路而進行發送的送訊部。影像收訊裝置,係含有:將已被封包化的編碼串流透過網路而進行接收的收訊部、將已被接收之編碼資料予以緩衝的記憶體、將編碼資料進行封包處 理而生成編碼串流並提供給影像解碼裝置的封包處理部。 The image transmitting device includes: a memory for buffering a coded bit column output by the video encoding device, a packet processing unit for packetizing the encoded bit column, and a packetized encoded stream through the network The transmitting unit that performs the transmission. The video receiving device includes a receiving unit that receives the encoded encoded stream through the network, and a memory that buffers the received encoded data, and encapsulates the encoded data. The packet processing unit that generates the encoded stream and supplies it to the video decoding device is generated.

以上的關於編碼及解碼之處理,係可用硬體而以傳輸、積存、收訊裝置的方式來加以實現,當然,也可藉由記憶在ROM(唯讀記憶體)或快閃記憶體等中的韌體、或電腦等之軟體來加以實現。亦可將該韌體程式、軟體程式記錄至電腦等可讀取之記錄媒體來加以提供,或可透過有線或無線網路從伺服器來提供,也可用地表波或衛星數位播送的資料播送方式來提供之。 The above processing for encoding and decoding can be implemented by means of hardware, transmission, accumulation, and receiving device. Of course, it can also be stored in ROM (read only memory) or flash memory. The firmware, or software such as a computer, is implemented. The firmware program and software program can also be recorded on a readable recording medium such as a computer, or can be provided from a server through a wired or wireless network, or can be broadcast by means of a surface wave or satellite digital broadcast. Come and provide it.

以上係依據實施形態來說明了本發明。實施形態係為例示,這些各構成要素或各處理程序之組合中還有各種可能的變形例,而這些變形例也都屬於本發明之範圍,而能被當業者所理解。 The present invention has been described above based on the embodiments. The embodiments are exemplified, and there are various possible modifications in the combinations of these constituent elements or processing programs, and these modifications are also within the scope of the invention and can be understood by the practitioner.

[產業上利用之可能性] [Possibility of industrial use]

本發明係可利用於,利用到濾波的影像編碼及解碼技術。 The invention can be utilized to utilize filtered image encoding and decoding techniques.

101‧‧‧影像記憶體 101‧‧‧Image memory

102‧‧‧量化參數決定部 102‧‧‧Quantity Parameter Determination Department

103‧‧‧畫面內預測部 103‧‧‧Intra-frame prediction department

104‧‧‧PCM編碼部 104‧‧‧PCM coding department

105‧‧‧畫面間預測部 105‧‧‧Inter-picture prediction department

106‧‧‧編碼方法決定部 106‧‧‧Code Method Determination Department

107‧‧‧殘差訊號生成部 107‧‧‧Residual Signal Generation Department

108‧‧‧正交轉換‧量化部 108‧‧‧Orthogonal Conversion ‧Quantity Department

109‧‧‧逆量化‧逆正交轉換部 109‧‧‧ inverse quantization ‧ inverse orthogonal transformation

110‧‧‧解碼影像訊號重疊部 110‧‧‧Decoded image signal overlap

111‧‧‧去區塊濾波器部 111‧‧‧Deblocking Filter Section

112‧‧‧編碼資訊儲存記憶體 112‧‧‧ Coded information storage memory

113‧‧‧第1解碼影像記憶體 113‧‧‧1st decoded image memory

114‧‧‧第2解碼影像記憶體 114‧‧‧2nd decoded image memory

115‧‧‧第1編碼位元列生成部 115‧‧‧1st coded bit column generation unit

116‧‧‧第2編碼位元列生成部 116‧‧‧2nd coded bit column generation unit

117‧‧‧第3編碼位元列生成部 117‧‧‧3rd coded bit column generation unit

118‧‧‧編碼位元列多工化部 118‧‧‧Coded bit column

119‧‧‧開關 119‧‧‧ switch

Claims (30)

一種影像編碼裝置,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼裝置,其特徵為,含有:量化參數決定部,係將區塊的量化參數,予以設定;和第1編碼部,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼部,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波器部,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波器部,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image encoding device is a video encoding device for encoding a video signal including a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter determining unit is configured to set a quantization parameter of the block; And the first coding unit quantizes, compresses, and encodes the video signal of the block based on the pre-quantified quantization parameter; and the second coding unit performs uncompressed coding on the video signal of the block; and deblocking filtering The device uses the quantization parameter values set by the blocks on both sides of the block boundary to derive the filter strength, and performs filtering processing on the blocks on both sides of the boundary of the preceding block; In the block that is previously uncompressed, the input signal before the pre-filtering process is directly used as the output signal. 如申請專利範圍第1項所記載之影像編碼裝置,其中,前記去區塊濾波器部係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前之前的輸入訊號,直接當成輸出訊號。 The video encoding apparatus according to claim 1, wherein the pre-deblocking filter unit is based on a flag for indicating whether or not the block to be uncompressed by the pre-recording is invalidated by the filter processing. When the flag indicates that it is not set to be invalid, the input signal after the implementation of the pre-filtering process is output, and when the current flag indicates that it is to be invalid, the pre-recording filter is implemented on the block which is previously uncompressed. The input signal before processing is directly used as the output signal. 如申請專利範圍第1項或第2項所記載之影像編碼裝置,其中,前記去區塊濾波器部係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值來導出前記濾波強度。 The image coding apparatus according to claim 1 or 2, wherein the pre-deblocking filter unit uses the average of the quantized parameter values before the blocks on both sides of the boundary of the preceding block are set. The value is used to derive the pre-filter strength. 一種影像編碼裝置,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼裝置,其特徵為,含有:量化參數決定部,係將區塊的量化參數,予以設定;和第1編碼部,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼部,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波器部,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波器部係若前記區塊是進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 An image encoding device is a video encoding device for encoding a video signal including a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter determining unit is configured to set a quantization parameter of the block; And the first coding unit quantizes, compresses, and encodes the video signal of the block based on the pre-quantified quantization parameter; and the second coding unit performs uncompressed coding on the video signal of the block; and deblocking filtering The device uses the quantization parameter values set by the blocks on both sides of the block boundary to determine the filter strength, and performs filtering processing on the blocks on both sides of the boundary of the preceding block; If the pre-record block is a block that is not compression-coded, the input signal before filtering is directly used as an output signal. 一種影像編碼方法,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法,其特徵為,含有:量化參數決定步驟,係將區塊的量化參數,予以設 定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image encoding method belongs to an image encoding method for encoding an image signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter determining step is performed, and the quantization parameter of the block is set. And the first encoding step, the image signal of the block is quantized, compressed and encoded based on the pre-quantified quantization parameter; and the second encoding step is to uncompress the image signal of the block; The block filtering step is to use the quantization parameter values set by the blocks on both sides of the block boundary to derive the filter strength, and perform filtering processing on the blocks on both sides of the boundary of the preceding block; In the block that is previously uncompressed, the input signal before the pre-filtering process is directly used as the output signal. 如申請專利範圍第5項所記載之影像編碼方法,其中,前記去區塊濾波步驟係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係在前記被非壓縮編碼之區塊上,將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係將實施前記濾波處理前之前的輸入訊號,直接當成輸出訊號。 The image encoding method according to claim 5, wherein the pre-deblocking filtering step is based on a flag used to indicate whether the block to which the pre-recorded non-compressed code is set to invalidate the filter processing, current record When the flag indicates that it is not invalid, the input signal after the pre-filtering process is output on the block which is pre-compressed by the pre-recording. When the current flag indicates that it is set to be invalid, the pre-filtering process is implemented. The previous input signal is directly used as the output signal. 如申請專利範圍第5項或第6項所記載之影像編碼方法,其中,前記去區塊濾波步驟係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值來導出前記濾波強度。 The image encoding method according to Item 5 or Item 6 of the patent application, wherein the pre-deblocking filtering step uses an average value of the quantized parameter values before the blocks on both sides of the boundary of the preceding block are set. To derive the pre-filter strength. 一種影像編碼方法,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法, 其特徵為,含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟係若前記區塊是進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 An image encoding method belongs to an image encoding method for encoding an image signal containing a luminance signal and a color difference signal in a block unit. The method includes: a quantization parameter determining step of setting a quantization parameter of the block; and a first encoding step of quantizing, compressing, and encoding the image signal of the block based on the pre-quantified parameter; 2 encoding step, the image signal of the block is uncompressed and encoded; and the deblocking filtering step is to determine the filtering strength by using the quantized parameter values set by the blocks on both sides of the block boundary. The blocks on both sides of the boundary of the preceding block are subjected to filtering processing; the pre-blocking filtering step is to directly convert the input signal before filtering into an output signal if the preceding block is a block that performs non-compression coding. 一種影像編碼程式,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼程式,其特徵為,令電腦執行:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各 自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image encoding program is an image encoding program for encoding a video signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that the computer performs: a quantization parameter determining step, and the quantization parameter of the block is given And the first encoding step, the image signal of the block is quantized, compressed and encoded based on the pre-quantified quantization parameter; and the second encoding step is to uncompress the image signal of the block; Block filtering step, using blocks on both sides of the block boundary The filter strength is derived from the set quantization parameter values, and the filtering processing is performed on the blocks on both sides of the boundary of the preceding block; the pre-blocking filtering step is performed on the block which is previously uncompressed and encoded, and the pre-record is implemented. The input signal before the filtering process is directly used as the output signal. 如申請專利範圍第9項所記載之影像編碼程式,其中,前記去區塊濾波步驟係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係在前記被非壓縮編碼之區塊上,將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係將實施前記濾波處理前之前的輸入訊號,直接當成輸出訊號。 The image coding program according to claim 9 , wherein the pre-deblocking filtering step is based on a flag used to indicate whether the block to be uncompressed by the pre-recording is invalidated, and the current record is When the flag indicates that it is not invalid, the input signal after the pre-filtering process is output on the block which is pre-compressed by the pre-recording. When the current flag indicates that it is set to be invalid, the pre-filtering process is implemented. The previous input signal is directly used as the output signal. 如申請專利範圍第9項或第10項所記載之影像編碼程式,其中,前記去區塊濾波步驟係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值來導出前記濾波強度。 For example, the image coding program described in claim 9 or 10, wherein the pre-blocking filtering step uses the average value of the quantized parameter values before the blocks on both sides of the boundary of the preceding block are set. To derive the pre-filter strength. 一種影像編碼程式,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼程式,其特徵為,令電腦執行:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和 第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟係若前記區塊是進行非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 An image encoding program is an image encoding program for encoding a video signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that the computer performs: a quantization parameter determining step, and the quantization parameter of the block is given And the first encoding step of quantizing, compressing, and encoding the image signal of the block based on the pre-quantitative parameter; The second encoding step is to perform uncompressed encoding on the image signal of the block; and the deblocking filtering step is to determine the filtering strength by using the quantization parameter values respectively set by the blocks on both sides of the block boundary. The filtering process is performed on the blocks on both sides of the boundary of the pre-record block; the pre-blocking filtering step is that if the pre-record block is a block that performs non-compression coding, the input signal before filtering is directly regarded as an output signal. 一種送訊裝置,其特徵為,具備:封包處理部,係將編碼位元列進行封包化而獲得編碼串流,該編碼位元列係藉由以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法而被編碼而成;和送訊部,係將已被封包化之前記編碼串流,予以發送;前記影像編碼方法係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交 界之兩側的區塊實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 A transmitting device, comprising: a packet processing unit that encapsulates a coded bitstream to obtain a coded stream, the coded bitstream comprising a luminance signal and a color difference signal by a block unit The video signal encoding method for encoding the video signal is encoded; and the transmitting unit transmits the encoded stream before being packetized; the pre-recording image encoding method includes: a quantization parameter determining step, which is to block The quantization parameter is set; and the first encoding step quantizes, compresses, and encodes the image signal of the block based on the pre-quantified quantization parameter; and the second encoding step performs uncompressing the image signal of the block The coding and deblocking filtering steps are performed by using the quantized parameter values respectively set by the blocks on both sides of the block boundary to derive the filtering strength, and the pre-recorded block is handed over. The blocks on both sides of the boundary are subjected to filtering processing; the pre-blocking filtering step is performed on the block which is previously uncompressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal. 一種送訊方法,其特徵為,具備:封包處理步驟,係將編碼位元列進行封包化而獲得編碼串流,該編碼位元列係藉由以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法而被編碼而成;和送訊步驟,係將已被封包化之前記編碼串流,予以發送;前記影像編碼方法係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊 號。 A method for transmitting a packet, comprising: a packet processing step of packetizing a coded bitstream to obtain a coded stream stream, wherein the coded bitstream column comprises a luminance signal and a color difference signal by using a block unit The image signal encoding method is encoded by the image encoding method; and the sending step is to encode the stream before being encapsulated and sent; the pre-recording image encoding method includes: a quantization parameter determining step, which is to block The quantization parameter is set; and the first encoding step quantizes, compresses, and encodes the image signal of the block based on the pre-quantified quantization parameter; and the second encoding step performs uncompressing the image signal of the block The coding and deblocking filtering steps are performed by using the quantization parameter values respectively set by the blocks on both sides of the block boundary to derive the filtering strength, and performing filtering processing on the blocks on both sides of the boundary of the preceding block; The deblocking filtering step is performed on the block which is previously uncompressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal. number. 一種送訊程式,其特徵為,令電腦執行:封包處理步驟,係將編碼位元列進行封包化而獲得編碼串流,該編碼位元列係藉由以區塊單位將含有亮度訊號與色差訊號的影像訊號進行編碼的影像編碼方法而被編碼而成;和送訊步驟,係將已被封包化之前記編碼串流,予以發送;前記影像編碼方法係含有:量化參數決定步驟,係將區塊的量化參數,予以設定;和第1編碼步驟,係將區塊的影像訊號,基於前記量化參數而進行量化、壓縮並編碼;和第2編碼步驟,係將區塊的影像訊號,進行非壓縮編碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 A transmitting program, characterized in that the computer performs: a packet processing step of packetizing a coded bit column to obtain a coded stream, the coded bit string comprising luminance signals and color differences by using a block unit The image signal of the signal is encoded by the image encoding method; and the sending step is to encode the stream before being encapsulated and sent; the pre-image encoding method includes: a quantization parameter determining step, The quantization parameter of the block is set; and the first coding step is to quantize, compress and encode the image signal of the block based on the pre-quantization parameter; and the second coding step is to perform the image signal of the block. The non-compressed coding; and the deblocking filtering step are performed by using the quantization parameter values respectively set by the blocks on both sides of the block boundary to derive the filtering strength, and performing filtering processing on the blocks on both sides of the boundary of the preceding block. The pre-blocking filtering step is performed on the block which is previously uncompressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal. 一種影像解碼裝置,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼裝置, 其特徵為,含有:量化參數導出部,係將區塊的量化參數,予以導出;和第1解碼部,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波器部,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波器部,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image decoding device belongs to a video decoding device for decoding an image signal containing a luminance signal and a color difference signal in a block unit, The method further includes: a quantization parameter deriving unit that derives a quantization parameter of the block; and a first decoding unit that inversely quantizes the video signal of the block that has been compression-coded based on the pre-determined quantization parameter. Decoding; and the second decoding unit decodes the video signal of the block that has been uncompressed, and the deblocking filter unit uses the quantization of each of the blocks on both sides of the block boundary The parameter value is used to derive the filtering strength, and the decoded image signal of the block on both sides of the boundary of the preceding block is subjected to filtering processing; the pre-blocking filter unit is decoded before the pre-recorded block of the non-compressed coded block On the image signal, the input signal before the pre-filtering process is implemented as an output signal. 如申請專利範圍第16項所記載之影像解碼裝置,其中,前記去區塊濾波器部係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 The video decoding device according to claim 16, wherein the pre-deblocking filter unit is based on a flag for indicating whether or not the block to which the pre-recorded non-compressed coding is to invalidate the filter processing. When the flag indicates that it is not set to be invalid, the input signal after the pre-filtering process is executed is output, and when the current flag indicates that it is to be invalid, the pre-recorded decoded video signal of the block that is not compressed and encoded is pre-recorded. In the above, the input signal before the pre-filtering process is directly used as the output signal. 如申請專利範圍第16項或第17項所記載之影像解碼裝置,其中,前記去區塊濾波器部係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值 來導出前記濾波強度。 The image decoding device according to claim 16 or 17, wherein the pre-deblocking filter unit uses an average of the quantized parameter values before the blocks on both sides of the boundary of the preceding block are set. value To derive the pre-filter strength. 一種影像解碼裝置,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼裝置,其特徵為,含有:量化參數導出部,係將區塊的量化參數,予以導出;和第1解碼部,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波器部,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波器部係若前記區塊是已被非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 A video decoding device is a video decoding device for decoding an image signal including a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter deriving unit is configured to derive a quantization parameter of the block; And the first decoding unit performs inverse quantization and decoding on the video signal of the block that has been compression-coded based on the pre-quantization parameter; and the second decoding unit is an image signal of the block that has been non-compressed. Decoding; and the deblocking filter unit uses the quantization parameter values set by the blocks on both sides of the block boundary to determine the filtering strength, and decodes the blocks on both sides of the boundary of the preamble block. The image signal is subjected to filtering processing; if the pre-blocking block is a block that has been non-compressed, the input signal before filtering is directly regarded as an output signal. 一種影像解碼方法,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼方法,其特徵為,含有:量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和 第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image decoding method belongs to a video decoding method for decoding an image signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter deriving step is performed, and the quantization parameter of the block is derived; And the first decoding step of performing inverse quantization and decoding on the image signal of the block that has been compression-coded based on the pre-recorded quantization parameter; and The second decoding step is to decode the video signal of the block that has been uncompressed, and the deblocking filtering step is to use the quantization parameter values set by the blocks on both sides of the block boundary. Deriving the filtering strength, performing filtering processing on the decoded image signals of the blocks on both sides of the boundary of the preceding block; the pre-blocking filtering step is performed on the pre-recorded decoded video signal of the block which is previously uncompressed. The input signal before the pre-filtering process is implemented directly as an output signal. 如申請專利範圍第20項所記載之影像解碼方法,其中,前記去區塊濾波步驟係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 The image decoding method according to claim 20, wherein the pre-deblocking filtering step is based on a flag used to indicate whether or not the block that is pre-compressed is uncompressed is set to be invalid. When the flag indicates that it is not set to be invalid, the input signal after the pre-filtering process is implemented is output, and when the current flag indicates that it is to be invalid, it is preceded by the pre-recorded decoded video signal of the block that is not compressed and encoded. The input signal before the pre-filtering process is implemented as an output signal. 如申請專利範圍第20項或第21項所記載之影像解碼方法,其中,前記去區塊濾波步驟係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值來導出前記濾波強度。 The image decoding method according to claim 20 or claim 21, wherein the pre-deblocking filtering step uses an average value of the quantized parameter values before the blocks on both sides of the boundary of the preceding block are set. To derive the pre-filter strength. 一種影像解碼方法,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼方法,其特徵為,含有:量化參數導出步驟,係將區塊的量化參數,予以導 出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟係若前記區塊是已被非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 An image decoding method belongs to a video decoding method for decoding an image signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that: a quantization parameter deriving step is performed, and the quantization parameter of the block is guided. And the first decoding step of inversely quantizing and decoding the video signal of the block that has been compression-coded based on the pre-quantized quantization parameter; and the second decoding step, the image of the block that has been non-compressed encoded The signal is decoded; and the deblocking filtering step is to determine the filtering strength by using the quantized parameter values set by the blocks on both sides of the block boundary, and the blocks on both sides of the boundary of the preceding block are determined. The decoding image signal is subjected to filtering processing; the pre-blocking filtering step is performed by directly converting the input signal before filtering into an output signal if the pre-recording block is a block that has been non-compressed. 一種影像解碼程式,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼程式,其特徵為,令電腦執行:量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊 的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 An image decoding program belongs to a video decoding program for decoding a video signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that the computer performs: a quantization parameter deriving step, and the quantization parameter of the block is given Deriving; and the first decoding step of inversely quantizing and decoding the video signal of the block that has been compression-coded based on the pre-quantized quantization parameter; and the second decoding step of the image of the block that has been non-compressed encoded The signal is decoded; and the deblocking filtering step is to use the quantization parameter values set by the blocks on both sides of the block boundary to derive the filtering strength, and the blocks on both sides of the boundary of the preceding block are already The decoded image signal is subjected to filtering processing; the pre-deblocking filtering step is performed on the block which is previously uncompressed and encoded. The pre-recorded image signal is decoded, and the input signal before the pre-filtering process is directly used as the output signal. 如申請專利範圍第24項所記載之影像解碼程式,其中,前記去區塊濾波步驟係基於用來表示對前記被非壓縮編碼之區塊是否將濾波器處理設成無效的旗標,當前記旗標表示不設成無效時,係將前記濾波處理實施後的輸入訊號予以輸出,當前記旗標表示要設成無效時,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 The image decoding program according to claim 24, wherein the pre-deblocking filtering step is based on a flag used to indicate whether the block to which the pre-recorded non-compressed code is set to invalidate the filter processing, current record When the flag indicates that it is not set to be invalid, the input signal after the pre-filtering process is implemented is output, and when the current flag indicates that it is to be invalid, it is preceded by the pre-recorded decoded video signal of the block that is not compressed and encoded. The input signal before the pre-filtering process is implemented as an output signal. 如申請專利範圍第24項或第25項所記載之影像解碼程式,其中,前記去區塊濾波步驟係使用前記區塊交界之兩側的區塊所各自被設定之前記量化參數值的平均值來導出前記濾波強度。 For example, in the image decoding program described in claim 24 or 25, wherein the pre-deblocking filtering step uses the average value of the quantized parameter values before the blocks on both sides of the pre-block boundary are set. To derive the pre-filter strength. 一種影像解碼程式,係屬於以區塊單位將含有亮度訊號與色差訊號的影像訊號進行解碼的影像解碼程式,其特徵為,令電腦執行:量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係將已被非壓縮編碼之區塊的影像訊號,予以解碼;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各 自被設定之量化參數值,來決定濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟係若前記區塊是已被非壓縮編碼的區塊,則將濾波前之輸入訊號直接當成輸出訊號。 An image decoding program belongs to a video decoding program for decoding a video signal containing a luminance signal and a color difference signal in a block unit, and is characterized in that the computer performs: a quantization parameter deriving step, and the quantization parameter of the block is given Deriving; and the first decoding step of inversely quantizing and decoding the video signal of the block that has been compression-coded based on the pre-quantized quantization parameter; and the second decoding step of the image of the block that has been non-compressed encoded Signal, to be decoded; and deblocking filtering step, using blocks on both sides of the block boundary Determining the filter strength from the set quantization parameter values, and performing filtering processing on the decoded image signals of the blocks on both sides of the pre-block boundary; the pre-blocking filtering step is if the pre-block is non-compressed coding For the block, the input signal before filtering is directly used as the output signal. 一種收訊裝置,係屬於將影像所被編碼而成之編碼位元列予以接收並解碼的收訊裝置,其特徵為,含有:受信部,係將編碼串流予以接收,該編碼串流係為,含有亮度訊號與色差訊號的影像訊號是以區塊單位被編碼而成之編碼位元列所被封包化而成;和復原部,係將已被接收到的前記編碼串流進行封包處理,以復原出原本的編碼位元列;和量化參數導出部,係將區塊的量化參數,予以導出;和第1解碼部,係從已被復原之前記原本的編碼位元列,將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼部,係從已被復原之前記原本的編碼位元列,解碼出已被非壓縮編碼之區塊的影像訊號;和去區塊濾波器部,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波器部,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入 訊號,直接當成輸出訊號。 A receiving device belongs to a receiving device that receives and decodes a coded bit sequence encoded by an image, and is characterized in that it comprises: a receiving unit that receives a coded stream, and the coded stream is received The image signal containing the luminance signal and the color difference signal is encapsulated by the coded bit column encoded by the block unit; and the restoring unit performs the packet processing on the received pre-coded stream. To restore the original coded bit sequence; and the quantization parameter deriving unit to derive the quantization parameter of the block; and the first decoding unit to record the original encoded bit sequence from the restored The video signal of the compressed coded block is inverse quantized and decoded based on the pre-recorded quantization parameter; and the second decoding unit decodes the original uncoded area from the original encoded bit sequence before being restored. The image signal of the block; and the deblocking filter unit, which uses the quantization parameter values set by the blocks on both sides of the block boundary to derive the filter strength, and the blocks on both sides of the boundary of the preamble block Has Code filter processing image signals; referred to before deblocking filter unit, referred to before the front line is referred to non-compressed encoded blocks on the decoded image signal, the input before the former embodiment referred filtering The signal is directly used as an output signal. 一種收訊方法,係屬於將影像所被編碼而成之編碼位元列予以接收並解碼的收訊方法,其特徵為,含有:受信步驟,係將編碼串流予以接收,該編碼串流係為,含有亮度訊號與色差訊號的影像訊號是以區塊單位被編碼而成之編碼位元列所被封包化而成;和復原步驟,係將已被接收到的前記編碼串流進行封包處理,以復原出原本的編碼位元列;和量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係從已被復原之前記原本的編碼位元列,將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係從已被復原之前記原本的編碼位元列,解碼出已被非壓縮編碼之區塊的影像訊號;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 A receiving method belongs to a receiving method for receiving and decoding a coded bit sequence encoded by an image, characterized in that it comprises: a receiving step of receiving a coded stream, the encoded stream system The image signal containing the luminance signal and the color difference signal is encapsulated by the coded bit column encoded by the block unit; and the restoration step is to packetize the received pre-coded stream. To restore the original coded bit column; and the quantization parameter deriving step, which is to derive the quantization parameter of the block; and the first decoding step, which is the original coded bit column before being restored, The image signal of the compressed coded block is inverse quantized and decoded based on the pre-recorded quantization parameter; and the second decoding step is to decode the original uncoded region from the original encoded bit sequence before being restored. The block image signal; and the deblocking filtering step are performed by using the quantized parameter values set by the blocks on both sides of the block boundary to derive the filter strength, and the two sides of the boundary of the pre-record block The decoded image signal of the block is subjected to filtering processing; the pre-blocking filtering step is performed on the pre-recorded decoded video signal of the block which is not compressed and encoded, and the input signal before the pre-filtering process is directly used as the output signal. . 一種收訊程式,係屬於將影像所被編碼而成之編碼位元列予以接收並解碼的收訊程式,其特徵為, 令電腦執行:受信步驟,係將編碼串流予以接收,該編碼串流係為,含有亮度訊號與色差訊號的影像訊號是以區塊單位被編碼而成之編碼位元列所被封包化而成;和復原步驟,係將已被接收到的前記編碼串流進行封包處理,以復原出原本的編碼位元列;和量化參數導出步驟,係將區塊的量化參數,予以導出;和第1解碼步驟,係從已被復原之前記原本的編碼位元列,將已被壓縮編碼之區塊的影像訊號,基於前記量化參數而進行逆量化並解碼;和第2解碼步驟,係從已被復原之前記原本的編碼位元列,解碼出已被非壓縮編碼之區塊的影像訊號;和去區塊濾波步驟,係使用區塊交界之兩側的區塊所各自被設定之量化參數值,來導出濾波強度,對前記區塊交界之兩側的區塊的已解碼影像訊號實施濾波處理;前記去區塊濾波步驟,係在前記被非壓縮編碼之區塊的前記已解碼影像訊號上,將實施前記濾波處理前的輸入訊號,直接當成輸出訊號。 A receiving program is a receiving program that receives and decodes a coded bit sequence encoded by an image, and is characterized in that The computer executes: the trusted step is to receive the encoded stream, wherein the encoded signal containing the luminance signal and the color difference signal is encapsulated by the encoded bit column encoded by the block unit. And the restoring step is to perform packet processing on the received pre-coded stream to recover the original encoded bit sequence; and the quantization parameter deriving step is to derive the quantization parameter of the block; 1 decoding step, which is to inversely quantize and decode the video signal of the block that has been compression-coded based on the original quantized parameter from the original coded bit column before being restored; and the second decoding step is Before being restored, the original coded bit column is decoded to decode the image signal of the block that has been uncompressed, and the deblocking filtering step is to use the quantization parameter set by each block on both sides of the block boundary. Value, to derive the filter strength, perform filtering processing on the decoded image signals of the blocks on both sides of the pre-block boundary; the pre-blocking filtering step is in the area of the uncompressed coding. Remember the previous decoded video signal, the input signal prior to the previous embodiments in mind the filtering process, as a direct output signal.
TW102111561A 2012-03-30 2013-03-29 Image encoder, image coding method, image coding program, transmitter, transmission method, and transmission program, and image decoder, image decoding method, image decoding program, receiver, reception method, and reception program TW201345269A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2012082564 2012-03-30
JP2012082563 2012-03-30
JP2013070432A JP2013229866A (en) 2012-03-30 2013-03-28 Image decoder, image decoding method, image decoding program, receiver, reception method, and reception program
JP2013070431A JP2013229865A (en) 2012-03-30 2013-03-28 Image encoder, image encoding method, image encoding program, transmitter, transmission method, and transmission program

Publications (2)

Publication Number Publication Date
TW201345269A true TW201345269A (en) 2013-11-01
TWI563833B TWI563833B (en) 2016-12-21

Family

ID=49990403

Family Applications (3)

Application Number Title Priority Date Filing Date
TW106123981A TWI612802B (en) 2012-03-30 2013-03-29 Image decoding device, image decoding method
TW105136463A TWI596934B (en) 2012-03-30 2013-03-29 Video encoding device, video encoding method and recording medium
TW102111561A TW201345269A (en) 2012-03-30 2013-03-29 Image encoder, image coding method, image coding program, transmitter, transmission method, and transmission program, and image decoder, image decoding method, image decoding program, receiver, reception method, and reception program

Family Applications Before (2)

Application Number Title Priority Date Filing Date
TW106123981A TWI612802B (en) 2012-03-30 2013-03-29 Image decoding device, image decoding method
TW105136463A TWI596934B (en) 2012-03-30 2013-03-29 Video encoding device, video encoding method and recording medium

Country Status (1)

Country Link
TW (3) TWI612802B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100843196B1 (en) * 2004-12-17 2008-07-02 삼성전자주식회사 Deblocking filter of H.264/AVC video decoder
JP4501676B2 (en) * 2004-12-22 2010-07-14 日本電気株式会社 Video compression encoding method, video compression encoding apparatus, and program
TWI295140B (en) * 2005-05-20 2008-03-21 Univ Nat Chiao Tung A dual-mode high throughput de-blocking filter
TWI444047B (en) * 2006-06-16 2014-07-01 Via Tech Inc Deblockings filter for video decoding , video decoders and graphic processing units
US20080123750A1 (en) * 2006-11-29 2008-05-29 Michael Bronstein Parallel deblocking filter for H.264 video codec
TW201123899A (en) * 2009-12-22 2011-07-01 Univ Feng Chia Block artifact filtering method for video encoding and filter device thereof.

Also Published As

Publication number Publication date
TWI563833B (en) 2016-12-21
TWI612802B (en) 2018-01-21
TW201739248A (en) 2017-11-01
TWI596934B (en) 2017-08-21
TW201717634A (en) 2017-05-16

Similar Documents

Publication Publication Date Title
KR102155362B1 (en) Method and apparatus for image encoding/decoding using prediction of filter information
US10264275B2 (en) Inter-prediction candidate index coding independent of inter-prediction candidate list construction in video coding
JP6497423B2 (en) Video decoding apparatus, video decoding method, and program
TW201804797A (en) Methods and apparatuses of video data processing and associated non-transitory computer readable medium
KR20160072181A (en) Features of intra block copy prediction mode for video and image coding and decoding
KR20140019221A (en) In-loop filtering method and apparatus using the smae
KR102660599B1 (en) Video encoder, video decoder and corresponding methods
WO2019069602A1 (en) Video coding device, video decoding device, video coding method, video decoding method, program and video system
KR20210095949A (en) Video coding method and device
USRE49308E1 (en) Method and apparatus for video-encoding/decoding using filter information prediction
WO2013145773A1 (en) Image encoder, image coding method, image coding program, transmitter, transmission method, and transmission program, and image decoder, image decoding method, image decoding program, receiver, reception method, and reception program
CN110650337B (en) Image encoding method, decoding method, encoder, decoder and storage medium
JP2013229865A (en) Image encoder, image encoding method, image encoding program, transmitter, transmission method, and transmission program
JP2017055464A (en) Image decoder, image decoding method, image decoding program, receiver, reception method, and reception program
TWI596934B (en) Video encoding device, video encoding method and recording medium
JP2013223096A (en) Image encoding device, image encoding method, and image encoding program
KR20200081207A (en) Method for representing motion information and apparatus using the same
CN115442608A (en) Image encoding/decoding method and method for transmitting data
Nam et al. Lossless video coding based on pixel-wise prediction
JP2013223097A (en) Image decoding device, image decoding method, and image decoding program
CN114830650A (en) Image encoding method and image decoding method
JP2022538687A (en) Encoders, decoders, methods and computer programs for improved lossless compression
CN114830643A (en) Image encoding method and image decoding method
CN114830641A (en) Image encoding method and image decoding method