TWI644563B - Method of generating quantized block - Google Patents

Method of generating quantized block Download PDF

Info

Publication number
TWI644563B
TWI644563B TW106136728A TW106136728A TWI644563B TW I644563 B TWI644563 B TW I644563B TW 106136728 A TW106136728 A TW 106136728A TW 106136728 A TW106136728 A TW 106136728A TW I644563 B TWI644563 B TW I644563B
Authority
TW
Taiwan
Prior art keywords
mode
frame prediction
unit
frame
scanning
Prior art date
Application number
TW106136728A
Other languages
Chinese (zh)
Other versions
TW201804795A (en
Inventor
吳秀美
梁文玉
Original Assignee
英孚布瑞智有限私人貿易公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 英孚布瑞智有限私人貿易公司 filed Critical 英孚布瑞智有限私人貿易公司
Publication of TW201804795A publication Critical patent/TW201804795A/en
Application granted granted Critical
Publication of TWI644563B publication Critical patent/TWI644563B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H04N19/197Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters including determination of the initial value of an encoding parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H04N19/198Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters including smoothing of a sequence of encoding parameters, e.g. by averaging, by choice of the maximum, minimum or median value
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/63Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using sub-band based transform, e.g. wavelets

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

一種方法,利用最可能的模式組導出當前預測單元的圖框內預測模式,MPM組包含當前預測單元之左圖框內預測模式與上圖框內預測模式所確定的三種圖框內預測模式。根據所選的逆掃描模式逆掃描顯著標記、係數符號以及係數級別以產生量化塊。當左圖框內預測模式與上圖框內預測模式彼此相同且左圖框內預測模式為兩種非方向性圖框內預測模式之一時,MPM組包含兩種非方向性圖框內預測模式與垂直模式。當左圖框內預測模式與上圖框內預測模式僅其一可用且為多種方向性圖框內預測模式之一時,MPM組包含兩種非方向性圖框內預測模式與可用的圖框內預測模式。One method is to use the most probable mode group to derive the in-frame prediction mode of the current prediction unit. The MPM group includes three in-frame prediction modes determined by the left-in-frame prediction mode of the current prediction unit and the in-frame prediction mode in the upper image. Significant markers, coefficient symbols, and coefficient levels are inversely scanned according to the selected inverse scan mode to produce a quantized block. When the in-frame prediction mode on the left and the in-frame prediction mode on the top are the same as each other and the in-frame prediction mode on the left is one of two non-directional in-frame prediction modes, the MPM group includes two non-directional in-frame prediction modes. With vertical mode. When only one of the in-frame prediction modes on the left and the in-frame prediction modes on the top are available and one of the multiple directional in-frame prediction modes, the MPM group includes two non-directional in-frame prediction modes and the available in-frame prediction modes. Forecasting mode.

Description

產生量化塊的方法Method for generating quantized blocks

本發明係關於一種對圖像解碼的方法和設備,更具體而言,本發明關於一種基於圖框內預測模式與變換單元的大小自適應地確定逆掃描模式而產生量化塊的方法和設備。The present invention relates to a method and a device for decoding an image, and more specifically, the present invention relates to a method and a device for generating a quantized block by adaptively determining an inverse scanning mode based on an intra-frame prediction mode and a size of a transform unit.

在H.264/MPEG-4 AVC中,一幅畫面被分成多個巨集塊以對圖像編碼,利用圖框間預測或圖框內預測產生預測塊,從而對相應巨集塊編碼。變換初始塊與預測塊之間的差異以產生變換塊,利用量化參數與多個預定量化矩陣之一對變換塊進行量化。透過預定掃描類型掃描量化塊的量化係數並隨後進行熵編碼。針對每個宏塊調節量化參數,並且利用先前的量化參數對其進行編碼。In H.264 / MPEG-4 AVC, a picture is divided into multiple macroblocks to encode an image, and inter-frame prediction or intra-frame prediction is used to generate a prediction block to encode the corresponding macroblock. The difference between the initial block and the prediction block is transformed to generate a transformed block, and the transformed block is quantized using a quantization parameter and one of a plurality of predetermined quantization matrices. The quantization coefficients of the quantized block are scanned through a predetermined scan type and then entropy-coded. The quantization parameter is adjusted for each macroblock, and it is encoded using the previous quantization parameter.

同時,引入了利用編碼單元與變換單元各種大小的技術以提高編碼效率。還引入了增加圖框內預測模式數量的技術以產生更類似於初始塊的預測塊。At the same time, technologies using various sizes of coding units and transformation units are introduced to improve coding efficiency. Techniques to increase the number of prediction modes within the frame were also introduced to produce prediction blocks that are more similar to the initial block.

但是,在掃描大的變換塊時,編碼單元與變換單元的各種尺寸導致殘餘塊的編碼比特增加。而且,增加圖框內預測模式的數量需要更有效的掃描方法來減少殘餘塊的編碼比特。However, when scanning a large transform block, various sizes of the coding unit and the transform unit cause the coding bits of the residual block to increase. Moreover, increasing the number of prediction modes within the frame requires a more efficient scanning method to reduce the coding bits of the residual block.

本發明涉及如下一種方法:導出預測單元的圖框內預測模式;基於圖框內預測模式與變換單元的大小選擇當前變換單元的逆掃描模式;以及透過根據所選逆掃描模式逆掃描顯著標記、係數符號以及係數級別以產生量化塊。The present invention relates to a method of deriving an intra-frame prediction mode of a prediction unit; selecting an inverse scan mode of a current transform unit based on the in-frame prediction mode and the size of a transform unit; and inversely scanning a marked mark according to the selected inverse scan mode, Coefficient signs and coefficient levels to produce quantized blocks.

本發明的一個方面提供了一種產生量化塊的方法,包含:利用一最可能的模式組,導出一當前預測單元的一圖框內預測模式,該MPM組包含依照當前預測單元之左圖框內預測模式與上圖框內預測模式所確定的三種圖框內預測模式;基於圖框內預測模式與一變換單元的大小選擇一逆掃描模式;以及根據所選的逆掃描模式逆掃描顯著標記、係數符號以及係數級別以產生量化塊,其中逆掃描模式為對角線掃描、垂直掃描與水平掃描其中之一。當左圖框內預測模式與上圖框內預測模式彼此相同且左圖框內預測模式為兩種非方向性圖框內預測模式其中之一時,MPM組包含兩種非方向性圖框內預測模式與一垂直模式。當左圖框內預測模式與上圖框內預測模式僅僅其中之一可用且係為多種方向性圖框內預測模式其中之一時,MPM組包含兩種非方向性圖框內預測模式與一可用的圖框內預測模式。 An aspect of the present invention provides a method for generating a quantized block, which includes: using a most probable mode group to derive an in-frame prediction mode of a current prediction unit, the MPM group including the left-hand frame according to the current prediction unit The three in-frame prediction modes determined by the prediction mode and the in-frame prediction mode in the figure above; selecting an inverse scanning mode based on the in-frame prediction mode and the size of a transform unit; and inverse-scanning the marked mark based on the selected inverse scanning mode, Coefficient signs and coefficient levels to generate quantized blocks, where the inverse scan mode is one of diagonal scan, vertical scan, and horizontal scan. When the in-frame prediction mode on the left is the same as the in-frame prediction mode on the top and the in-frame prediction mode on the left is one of the two non-directional in-frame prediction modes, the MPM group includes two types of non-directional in-frame prediction. Mode and a vertical mode. When only one of the in-frame prediction modes on the left and the in-frame prediction modes on the above are available and are one of the multiple directional in-frame prediction modes, the MPM group contains two non-directional in-frame prediction modes and one available. In-frame prediction mode.

根據本發明的方法導出預測單元的圖框內預測模式;基於圖框內預測模式與變換單元的大小在對角線掃描、垂直掃描以及水平掃描之間選擇當前變換單元的逆掃描模式;以及透過根據所選逆掃描模式逆掃描顯著標記、係數符號以及係數級別以產生量化塊。如果變換單元大於預定大小,產生多個子集並進行逆掃描。因此,透過基於變換單元大小與圖框內預測模式確定掃描模式並且透過向每個子集應用掃描模式減少殘餘塊的編碼比特量。 The in-frame prediction mode of the prediction unit is derived according to the method of the present invention; the inverse scanning mode of the current transformation unit is selected between diagonal scanning, vertical scanning, and horizontal scanning based on the in-frame prediction mode and the size of the transformation unit; and through Significant markers, coefficient signs, and coefficient levels are inversely scanned according to the selected inverse scan mode to produce a quantized block. If the transform unit is larger than a predetermined size, multiple subsets are generated and inversely scanned. Therefore, the scan mode is determined by determining the scan unit based on the transform unit size and the intra-frame prediction mode, and the amount of coding bits of the residual block is reduced by applying the scan mode to each subset.

在下文中,將參考附圖詳細描述本發明的不同實施例。然而,本發明不限於下文公開的示範性實施例,而是可以透過各種方式實施。因此,本發明很多其他修改和變化都是可能的,可以理解的是,在所公開的概念範圍之內,可透過與具體所述不同的方式實踐本發明。Hereinafter, different embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the present invention is not limited to the exemplary embodiments disclosed below, but may be implemented in various ways. Therefore, many other modifications and variations of the present invention are possible, and it is understood that within the scope of the disclosed concept, the present invention can be practiced in a manner different from that specifically described.

「圖1」係為本發明的一圖像編碼設備100之方塊圖。FIG. 1 is a block diagram of an image encoding device 100 according to the present invention.

請參閱「圖1」,根據本發明的圖像編碼設備100包含一畫面分割單元101、一變換單元103、一量化單元104、一掃描單元105、一熵編碼單元106、一逆量化單元107、一逆變換單元108、一後期處理單元110、一畫面儲存單元111、一圖框內預測單元112、一圖框間預測單元113、一減法器102以及一加法器109。Please refer to FIG. 1. The image encoding device 100 according to the present invention includes a picture division unit 101, a transformation unit 103, a quantization unit 104, a scanning unit 105, an entropy encoding unit 106, an inverse quantization unit 107, An inverse transform unit 108, a post-processing unit 110, a picture storage unit 111, an intra-frame prediction unit 112, an inter-frame prediction unit 113, a subtracter 102, and an adder 109.

畫面分割單元101將畫面或切片劃分成多個最大編碼單元(LCU),並且將每一LCU劃分成一個或多個編碼單元。畫面分割單元101確定每一編碼單元的預測模式和預測單元大小與變換單元大小。The picture division unit 101 divides a picture or slice into a plurality of maximum coding units (LCUs), and divides each LCU into one or more coding units. The picture division unit 101 determines a prediction mode and a prediction unit size and a transformation unit size of each coding unit.

LCU包含一個或多個編碼單元。LCU具有遞迴的四叉樹結構,用以指定LCU的分割結構。指定編碼單元的最大大小及最小大小的資訊包含於序列參數集中。由一個或多個分裂編碼單元標誌(split_cu_flags)指定分割結構。編碼單元的大小為2N×2N。The LCU contains one or more coding units. The LCU has a recursive quad-tree structure to specify the partition structure of the LCU. Information specifying the maximum size and minimum size of the coding unit is included in the sequence parameter set. The split structure is specified by one or more split coding unit flags (split_cu_flags). The size of the coding unit is 2N × 2N.

編碼單元包含一個或多個預測單元。在圖框內預測中,預測單元的大小為2N×2N或N×N。在圖框間預測中,預測單元的大小為2N×2N、2N×N、N×2N以及N×N。當預測單元在圖框間預測中為不對稱分割時,預測單元的大小也可為hN×2N、(2-h)N×2N、2N×hN以及2N×(2-h)N之一。H的值為1/2。A coding unit contains one or more prediction units. In the in-frame prediction, the size of the prediction unit is 2N × 2N or N × N. In inter-frame prediction, the sizes of prediction units are 2N × 2N, 2N × N, N × 2N, and N × N. When the prediction unit is asymmetrically partitioned in the inter-frame prediction, the size of the prediction unit may also be one of hN × 2N, (2-h) N × 2N, 2N × hN, and 2N × (2-h) N. The value of H is 1/2.

編碼單元包含一個或多個變換單元。變換單元具有遞迴的四叉樹結構,用以指定分割結構。由一個或多個分裂變換單元標記(split_tu_flags)指定分割結構。指定變換單元的最大大小及最小大小的資訊包含於序列參數集之中。A coding unit contains one or more transformation units. The transformation unit has a recursive quad-tree structure to specify the segmentation structure. The split structure is specified by one or more split transform unit flags (split_tu_flags). Information specifying the maximum and minimum size of the transformation unit is included in the sequence parameter set.

圖框內預測單元112確定當前預測單元的圖框內預測模式並利用圖框內預測模式產生一個或多個預測塊。預測塊具有與變換單元同樣的大小。The in-frame prediction unit 112 determines the in-frame prediction mode of the current prediction unit and uses the in-frame prediction mode to generate one or more prediction blocks. The prediction block has the same size as the transform unit.

「圖2」係為根據本發明的圖框內預測模式之示意圖。如「圖2」所示,圖框內預測模式的數量為35。DC模式與平面模式為非方向性圖框內預測模式,其他為方向性圖框內預測模式。FIG. 2 is a schematic diagram of an in-frame prediction mode according to the present invention. As shown in FIG. 2, the number of prediction modes in the frame is 35. The DC mode and the plane mode are non-directional in-frame prediction modes, and the other are directional in-frame prediction modes.

圖框間預測單元113利用畫面儲存單元111中儲存的一個或多個參考畫面確定當前預測單元的運動資訊並產生預測單元的預測塊。運動資訊包含一個或多個參考畫面索引與一個或多個運動向量。The inter-frame prediction unit 113 uses one or more reference pictures stored in the picture storage unit 111 to determine motion information of the current prediction unit and generates a prediction block of the prediction unit. The motion information includes one or more reference picture indexes and one or more motion vectors.

變換單元103利用初始塊與預測塊變換殘餘訊號以產生變換塊。由變換單元變換殘餘訊號。變換類型由預測模式與變換單元的大小確定。變換類型為基於DCT的整數變換或基於DST的整數變換。The transform unit 103 transforms the residual signal using the initial block and the prediction block to generate a transform block. The residual signal is transformed by a transform unit. The transform type is determined by the prediction mode and the size of the transform unit. The transform type is a DCT-based integer transform or a DST-based integer transform.

量化單元104確定用於量化變換塊的量化參數。量化參數為量化步長。針對每個量化單元確定量化參數。量化單元的大小是編碼單元可允許大小之一。如果編碼單元的大小等於或大於量化單元的最小大小,將編碼單元設置為量化單元。量化單元中可以包含多個編碼單元。針對每個畫面確定量化單元的最小大小,使用一個參數指定量化單元的最小大小。在畫面參數集中包含參數。The quantization unit 104 determines a quantization parameter for quantizing the transform block. The quantization parameter is the quantization step size. A quantization parameter is determined for each quantization unit. The size of the quantization unit is one of the allowable sizes of the coding unit. If the size of the coding unit is equal to or larger than the minimum size of the quantization unit, the coding unit is set as a quantization unit. The quantization unit may include multiple coding units. The minimum size of the quantization unit is determined for each picture, and a parameter is used to specify the minimum size of the quantization unit. Include parameters in the picture parameter set.

量化單元104產生量化參數預測器並透過從量化參數減去量化參數預測器以產生差分量化參數。對差分量化參數進行編碼並發送至解碼器。如果編碼單元之內沒有要發送的殘餘訊號,可以不發送編碼單元的差分量化參數。The quantization unit 104 generates a quantization parameter predictor and generates a differential quantization parameter by subtracting the quantization parameter predictor from the quantization parameter. The differential quantization parameters are encoded and sent to a decoder. If there is no residual signal to be transmitted within the coding unit, the differential quantization parameter of the coding unit may not be transmitted.

如下利用相鄰編碼單元的量化參數與先前編碼單元的量化參數產生量化參數預測器。A quantization parameter predictor is generated using the quantization parameters of neighboring coding units and the quantization parameters of a previous coding unit as follows.

按照下述次序順序檢索左量化參數、上量化參數以及前量化參數。在具有兩個或更多量化參數時,將按照該次序檢索的前兩個可用量化參數的平均值設置為量化參數預測器,在僅具有一個量化參數時,將可用的量化參數設置為量化參數預測器。亦即,如果具有左與上量化參數,則將左與上量化參數的平均值設置為量化參數預測器。如果僅具有左與上量化參數之一,則將可用量化參數與前一量化參數的平均值設置為量化參數預測器。如果左與上量化參數都不可用,則將前一量化參數設置為量化參數預測器。對平均值進行四捨五入。 The left quantization parameter, the upper quantization parameter, and the pre-quantization parameter are sequentially searched in the following order. When there are two or more quantization parameters, the average of the first two available quantization parameters retrieved in that order is set as the quantization parameter predictor, and when there is only one quantization parameter, the available quantization parameters are set as the quantization parameters Predictor. That is, if there are left and up quantization parameters, the average of the left and up quantization parameters is set as a quantization parameter predictor. If there is only one of the left and upper quantization parameters, the average of the available quantization parameter and the previous quantization parameter is set as the quantization parameter predictor. If neither the left nor upper quantization parameters are available, the previous quantization parameter is set as the quantization parameter predictor. Round the average.

將差分量化參數轉換成差分量化參數的絕對值與表示差分量化參數符號的符號標記。將差分量化參數的絕對值二進位化為截斷一元碼。然後,對絕對值與符號標記進行算術編碼。如果絕對值為零,則不存在符號標記。 The differential quantization parameter is converted into an absolute value of the differential quantization parameter and a symbol mark representing a symbol of the differential quantization parameter. Binary the absolute value of the differential quantization parameter to a truncated unary code. Then, the absolute value and the sign label are arithmetically coded. If the absolute value is zero, there is no symbol tag.

量化單元104利用量化矩陣與量化參數對變換塊進行量化。向逆量化單元107與掃描單元105提供量化塊。 The quantization unit 104 quantizes the transform block by using a quantization matrix and a quantization parameter. The inverse quantization unit 107 and the scanning unit 105 are provided with a quantization block.

掃描單元105確定掃描模式並向量化塊應用掃描模式。 The scanning unit 105 determines a scanning mode and applies a scanning mode to the vectorized block.

在圖框內預測中,量化變換係數的分佈根據圖框內預測模式與變換單元的大小而變化。於是,由圖框內預測模式與變換單元的大小確定掃描模式。變換單元的大小、變換塊的大小以及量化塊的大小是相同的。 In the in-frame prediction, the distribution of the quantized transform coefficients changes according to the in-frame prediction mode and the size of the transform unit. Then, the scanning mode is determined by the intra prediction mode and the size of the transform unit. The size of the transform unit, the size of the transform block, and the size of the quantization block are the same.

「圖3」係為根據本發明的掃描模式之示意圖。「圖4」係為根據本發明的對角線掃描之示意圖。如「圖3」所示,第一掃描模式為鋸齒形掃描,第二掃描模式為水平掃描,第三掃描模式為垂直掃描。 FIG. 3 is a schematic diagram of a scanning mode according to the present invention. FIG. 4 is a schematic diagram of a diagonal scan according to the present invention. As shown in FIG. 3, the first scanning mode is a zigzag scanning, the second scanning mode is a horizontal scanning, and the third scanning mode is a vertical scanning.

在將CAVLC(語境自適應可變長度編碼)用於熵編碼時,在鋸齒形掃描、水平掃描以及垂直掃描之間選擇一種掃描模式。但是在將CABAC(語境自適應二進位算術編碼)用於熵編碼時,在對角線掃描、水平掃描以及垂直掃描之間選擇一種掃描模式,並且將選擇的掃描模式分別應用於量化塊的顯著標記、係數符號以及係數級別。顯著標誌表示對應的量化變換係數是否為零。係數符號表示非零量化變換係數的符號,係數級別表示非零量化變換係數的絕對值。 When CAVLC (Context Adaptive Variable Length Coding) is used for entropy coding, a scanning mode is selected between zigzag scanning, horizontal scanning, and vertical scanning. However, when using CABAC (Context Adaptive Binary Arithmetic Coding) for entropy coding, a scanning mode is selected between diagonal scanning, horizontal scanning and vertical scanning, and the selected scanning mode is applied to the Notable marks, coefficient symbols, and coefficient levels. The significant flag indicates whether the corresponding quantized transform coefficient is zero. The coefficient symbol indicates the sign of the non-zero quantized transform coefficient, and the coefficient level indicates the absolute value of the non-zero quantized transform coefficient.

「圖5」係為根據本發明由圖框內預測模式與變換單元大小確定 的示範性掃描模式。在將CABAC用於熵編碼時,如下確定掃描模式。 "Figure 5" is determined by the in-frame prediction mode and transform unit size according to the present invention. Exemplary scan mode. When CABAC is used for entropy coding, the scanning mode is determined as follows.

在變換單元的大小為4×4時,為垂直模式(模式1)與垂直模式第一數量的相鄰圖框內預測模式應用水平掃描,為水準模式(模式2)與水準模式的第一數量的相鄰圖框內預測模式應用垂直模式,為所有其他圖框內預測模式應用對角線掃描。亦即,如果假設用於4×4的可允許圖框內預測模式是模式0到17,則為模式5、模式6以及模式5與模式6之間允許的模式應用水平掃描,為模式8、模式9以及模式8與9之間允許的模式應用垂直掃描。如果用於4×4的允許圖框內預測模式是模式0到34,應用的掃描模式與以下8×8變換單元相同。 When the size of the transform unit is 4 × 4, horizontal scanning is applied to the prediction mode of the adjacent frame in the vertical mode (mode 1) and the first number of vertical modes, and the first number of the horizontal mode (mode 2) and the horizontal mode. The vertical prediction mode is applied to the adjacent in-frame prediction modes of, and a diagonal scan is applied to all other in-frame prediction modes. That is, if it is assumed that the allowable intra-frame prediction mode for 4 × 4 is modes 0 to 17, horizontal scanning is applied for modes 5, 6 and modes allowed between modes 5 and 6, and for modes 8, Mode 9 and modes allowed between modes 8 and 9 apply vertical scanning. If the allowed intra-frame prediction mode for 4 × 4 is modes 0 to 34, the scanning mode applied is the same as the following 8 × 8 transform unit.

在變換單元的大小為8×8時,為垂直模式(模式1)與垂直模式第二數量的相鄰圖框內預測模式應用水平掃描,為水準模式(模式2)與水準模式的第二數量的相鄰圖框內預測模式應用垂直模式,為所有其他圖框內預測模式應用對角線掃描。亦即,為模式5、模式6以及模式5與模式6之間允許的模式應用水平掃描,為模式8、模式9以及模式8和9之間允許的模式應用垂直掃描,為所有其他圖框內預測模式應用對角線掃描。模式5與模式6之間允許的模式是模式21、12、22、1、23、13以及24。模式8與模式9之間允許的模式為模式29、16、30、2、31、17、32以及9。 When the size of the transform unit is 8 × 8, horizontal scanning is applied to the in-frame prediction mode of the second number of adjacent modes of the vertical mode (mode 1) and the vertical mode, and the second number of the horizontal mode (mode 2) and the horizontal mode. The vertical prediction mode is applied to the adjacent in-frame prediction modes of, and a diagonal scan is applied to all other in-frame prediction modes. That is, horizontal scanning is applied for modes 5, 6 and modes allowed between modes 5 and 6, and vertical scanning is allowed for modes 8, 9 and modes allowed between modes 8 and 9, for all other frames The prediction mode applies a diagonal scan. The modes allowed between Mode 5 and Mode 6 are Modes 21, 12, 22, 1, 23, 13, and 24. The modes allowed between Mode 8 and Mode 9 are Modes 29, 16, 30, 2, 31, 17, 32, and 9.

在圖框間預測中,不論變換單元的大小如何,均使用預定掃描模式。在將CABAC用於熵編碼時,預定掃描模式為對角線掃描。 In the inter-frame prediction, a predetermined scanning mode is used regardless of the size of the transform unit. When CABAC is used for entropy coding, the predetermined scanning mode is diagonal scanning.

在變換單元的大小大於第二大小時,將量化塊分成主要子集與多個剩餘子集,將確定的掃描模式應用於每個子集。根據確定的掃描模式分別掃描每個子集的顯著標記、係數符號以及係數級別。將量化的變換係數分成顯著標記、係數符號以及係數級別。 When the size of the transform unit is larger than the second size, the quantization block is divided into a main subset and a plurality of remaining subsets, and the determined scanning mode is applied to each subset. According to the determined scanning mode, the salient mark, coefficient symbol and coefficient level of each subset are scanned separately. Divide the quantized transform coefficients into salient marks, coefficient signs, and coefficient levels.

主要子集包含DC係數,剩餘子集覆蓋了除主要子集覆蓋的區域之外的區域。第二大小為4×4。子集的大小可為4×4塊或由掃描模式確定非正方形塊。非正方形塊包含16個變換係數。例如,子集的大小對於水平掃描是8×2, 對於垂直掃描為2×8,對於對角線掃描為4×4。 The main subset contains DC coefficients, and the remaining subset covers areas other than the area covered by the main subset. The second size is 4 × 4. The size of the subset can be 4 × 4 blocks or non-square blocks determined by the scan mode. Non-square blocks contain 16 transform coefficients. For example, the size of the subset is 8 × 2 for horizontal scanning, 2 × 8 for vertical scanning and 4 × 4 for diagonal scanning.

用於掃描子集的掃描模式與用於掃描每個子集的量化變換係數的掃描模式相同。沿相反方向掃描每個子集的量化變換係數。也沿反向掃描子集。 The scan mode used to scan the subsets is the same as the scan mode used to scan the quantized transform coefficients of each subset. The quantized transform coefficients of each subset are scanned in opposite directions. The subset is also scanned in the reverse direction.

對最後非零係數位置編碼並發送到解碼器。最後非零係數位置指定最後非零量化變換係數在變換單元中的位置。使用最後非零係數位置確定在解碼器中發送的子集數量。針對除主要子集與最後子集之外的每個子集設置非零子集標誌。最後子集覆蓋最後的非零係數。非零子集標誌表示子集是否包含非零係數。 The last non-zero coefficient position is encoded and sent to the decoder. The last non-zero coefficient position specifies the position of the last non-zero quantized transform coefficient in the transform unit. The last non-zero coefficient position is used to determine the number of subsets sent in the decoder. A non-zero subset flag is set for each subset except the main subset and the last subset. The last subset covers the last non-zero coefficient. The non-zero subset flag indicates whether the subset contains non-zero coefficients.

逆量子化單元107對量化塊量化的變換係數進行逆量化。 The inverse quantization unit 107 performs inverse quantization on the transform coefficients quantized by the quantization block.

逆變換單元108對逆量化塊進行逆變換以產生空間域的殘餘訊號。 The inverse transform unit 108 inversely transforms the inverse quantized block to generate a residual signal in the spatial domain.

加法器109通過將殘餘塊與預測塊相加以產生重構塊。 The adder 109 generates a reconstructed block by adding the residual block and the prediction block.

後期處理單元110執行解塊過濾過程,用以清除重建畫面中產生的分塊人為雜訊。 The post-processing unit 110 executes a deblocking filtering process to remove block artifacts generated in the reconstructed picture.

畫面儲存單元111從後期處理單元110接收經後期處理的圖像並在畫面單元中儲存圖像。畫面可為圖框或場。 The picture storage unit 111 receives a post-processed image from the post-processing unit 110 and stores the image in the picture unit. The picture can be a frame or a field.

熵編碼單元106對從掃描單元105接收的一維繫數資訊、從圖框內預測單元112接收的圖框內預測資訊、從圖框間預測單元113接收的運動資訊等進行熵編碼。 The entropy encoding unit 106 performs entropy encoding on the one-dimensional coefficient information received from the scanning unit 105, the in-frame prediction information received from the in-frame prediction unit 112, the motion information received from the inter-frame prediction unit 113, and the like.

「圖6」係為根據本發明的一圖像解碼設備200之方塊圖。 FIG. 6 is a block diagram of an image decoding device 200 according to the present invention.

根據本發明的圖像解碼設備200包含一熵解碼單元201、一逆掃描單元202、一逆量化單元203、一逆變換單元204、一加法器205、一後期處理單元206、一畫面儲存單元207、一圖框內預測單元208以及一圖框間預測單元209。 The image decoding device 200 according to the present invention includes an entropy decoding unit 201, an inverse scanning unit 202, an inverse quantization unit 203, an inverse transform unit 204, an adder 205, a post-processing unit 206, and a picture storage unit 207 An intra-frame prediction unit 208 and an inter-frame prediction unit 209.

熵解碼單元201從接收的位元流提取圖框內預測資訊、圖框間 預測資訊以及一維繫數資訊。熵解碼單元201向圖框間預測單元209發送圖框間預測資訊,向圖框內預測單元208發送圖框內預測資訊,向逆掃描單元202發送係數資訊。 Entropy decoding unit 201 extracts in-frame prediction information and inter-frame prediction information from the received bit stream Forecast information and one-dimensional coefficient information. The entropy decoding unit 201 sends inter-frame prediction information to the inter-frame prediction unit 209, sends the intra-frame prediction information to the intra-frame prediction unit 208, and sends coefficient information to the inverse scanning unit 202.

逆掃描單元202使用逆掃描模式產生量化塊。在將CABAC用於熵編碼時,如下確定掃描模式。 The inverse scanning unit 202 generates a quantized block using an inverse scanning mode. When CABAC is used for entropy coding, the scanning mode is determined as follows.

在對角線掃描、垂直掃描以及水平掃描間選擇逆掃描模式。 Select the inverse scan mode between diagonal scan, vertical scan, and horizontal scan.

在圖框內預測中,由圖框內預測模式與變換單元的大小確定逆掃描模式。在對角線掃描、垂直掃描以及水平掃描間選擇逆掃描模式。將選擇的逆掃描模式分別應用於顯著標記、係數符號以及係數級別以產生量化塊。 In the in-frame prediction, the inverse scanning mode is determined by the in-frame prediction mode and the size of the transform unit. Select the inverse scan mode between diagonal scan, vertical scan, and horizontal scan. The selected inverse scanning mode is applied to the salient mark, the coefficient sign, and the coefficient level to generate a quantized block.

在變換單元的大小等於或小於第一大小時,為垂直模式與垂直模式預定數量的相鄰圖框內預測模式選擇水平掃描,為水準模式與水準模式預定數量的相鄰圖框內預測模式選擇垂直掃描,為其他圖框內預測模式選擇對角線掃描。在變換單元的大小大於第一大小時,使用對角線掃描。在變換單元的大小大於第一大小時,為所有圖框內預測模式選擇對角線掃描。第一大小為8×8。 When the size of the transformation unit is equal to or smaller than the first size, a horizontal scan is selected for a predetermined number of adjacent in-frame prediction modes of the vertical mode and a vertical mode, and a predetermined number of adjacent in-frame prediction modes are selected for the horizontal mode and the horizontal mode Vertical scan, select diagonal scan for other in-frame prediction modes. When the size of the transform unit is larger than the first size, a diagonal scan is used. When the size of the transform unit is larger than the first size, a diagonal scan is selected for all in-frame prediction modes. The first size is 8 × 8.

在變換單元的大小為4×4時,為垂直模式(模式1)與到垂直模式具有最近方向的第一數量的相鄰圖框內預測模式應用水平掃描,為水準模式(模式2)與到水準模式具有最近方向的第一數量的相鄰圖框內預測模式應用垂直模式,為所有其他圖框內預測模式應用對角線掃描。亦即,如果假設用於4×4的可允許圖框內預測模式是模式0到17,則為模式5、模式6以及模式5與模式6之間允許的模式應用水平掃描,為模式8、模式9以及模式8與9之間允許的模式應用垂直掃描。如果用於4×4的允許圖框內預測模式是模式0到34,應用的掃描模式與以下8×8變換單元相同。 When the size of the transformation unit is 4 × 4, horizontal scanning is applied for the vertical mode (mode 1) and the first number of adjacent in-frame prediction modes with the closest direction to the vertical mode, and the horizontal mode (mode 2) and the The horizontal mode applies the vertical mode to the first number of adjacent intra-frame prediction modes with the nearest direction, and applies diagonal scanning to all other intra-frame prediction modes. That is, if it is assumed that the allowable intra-frame prediction mode for 4 × 4 is modes 0 to 17, horizontal scanning is applied for modes 5, 6 and modes allowed between modes 5 and 6, and for modes 8, Mode 9 and modes allowed between modes 8 and 9 apply vertical scanning. If the allowed intra-frame prediction mode for 4 × 4 is modes 0 to 34, the scanning mode applied is the same as the following 8 × 8 transform unit.

在變換單元的大小為8×8時,為垂直模式(模式1)與到垂直模式具有最近方向的第二數量的相鄰圖框內預測模式應用水平掃描,為水準模式(模式2)與到水準模式具有最近方向的第二數量的相鄰圖框內預測模式應用垂直模式,為所有其他圖框內預測模式應用對角線掃描。亦即,為模式5、模式6 以及模式5與模式6之間允許的模式應用水平掃描,為模式8、模式9以及模式8與9之間允許的模式應用垂直掃描,為所有其他圖框內預測模式應用對角線掃描。模式5與模式6之間允許的模式是模式21、12、22、1、23、13以及24。模式8與模式9之間允許的模式是模式29、16、30、2、31、17、32以及9。 When the size of the transform unit is 8 × 8, horizontal scanning is applied to the vertical mode (mode 1) and the second number of adjacent in-frame prediction modes with the closest direction to the vertical mode, and the horizontal mode (mode 2) and to Horizontal mode applies the vertical mode to the second number of adjacent intra-frame prediction modes with the nearest direction, and applies diagonal scanning to all other intra-frame prediction modes. That is, mode 5 and mode 6 And horizontal scanning is allowed between modes 5 and 6, horizontal scanning is allowed for modes 8, 9 and 8 and 9, and diagonal scanning is applied for all other in-frame prediction modes. The modes allowed between Mode 5 and Mode 6 are Modes 21, 12, 22, 1, 23, 13, and 24. The modes allowed between mode 8 and mode 9 are modes 29, 16, 30, 2, 31, 17, 32, and 9.

在圖框間預測中,使用對角線掃描。 In interframe prediction, diagonal scanning is used.

在變換單元的大小大於第二大小時,利用確定的逆掃描模式在子集的單元中逆掃描顯著標記、係數符號以及係數級別以產生子集,逆掃描子集以產生量化塊。第二大小為4×4。子集的大小可以為4×4塊或由掃描模式確定非正方形塊。非正方形塊包含16個變換係數。例如,子集的大小對於水平掃描為8×2,對於垂直掃描為2×8,對於對角線掃描為4×4。 When the size of the transformation unit is larger than the second size, the determined inverse scanning mode is used to inversely scan the significant tags, coefficient symbols, and coefficient levels in the units of the subset to generate a subset, and inversely scan the subset to generate a quantized block. The second size is 4 × 4. The size of the subset can be 4 × 4 blocks or non-square blocks determined by the scan mode. Non-square blocks contain 16 transform coefficients. For example, the size of the subset is 8 × 2 for horizontal scanning, 2 × 8 for vertical scanning, and 4 × 4 for diagonal scanning.

用於產生每個子集的逆掃描模式與用於產生量化塊的逆掃描模式相同。沿相反方向逆掃描顯著標記、係數符號以及係數級別。也沿反向逆掃描子集。 The inverse scan mode used to generate each subset is the same as the inverse scan mode used to generate quantized blocks. Scan the salient markers, coefficient signs, and coefficient levels in the opposite direction. The subset is also inversely scanned in the reverse direction.

從解碼器接收最後非零係數位置以及非零子集標誌。根據最後非零係數位置與逆掃描模式確定編碼子集的數量。使用非零子集標記選擇要產生的子集。利用逆掃描模式產生主要子集與最後子集。 The last non-zero coefficient position and a non-zero subset flag are received from the decoder. The number of coding subsets is determined according to the last non-zero coefficient position and the inverse scanning mode. Use a non-zero subset flag to select the subset to be generated. The inverse scan mode is used to generate the main and final subsets.

逆量化單元203從熵解碼單元201接收差分量化參數並產生量化參數預測器。透過「圖1」的量化單元104的相同作業產生量化參數預測器。然後,逆量化單元203將差分量化參數與量化參數預測器相加以產生當前編碼單元的量化參數。如果當前編碼單元的大小等於或大於量化單元的最小大小且未從編碼器接收用於當前編碼單元的差分量化參數,則將差分量化參數設置為0。 The inverse quantization unit 203 receives the differential quantization parameter from the entropy decoding unit 201 and generates a quantization parameter predictor. A quantization parameter predictor is generated by the same operation of the quantization unit 104 of FIG. 1. Then, the inverse quantization unit 203 adds the differential quantization parameter and the quantization parameter predictor to generate a quantization parameter of the current coding unit. If the size of the current coding unit is equal to or larger than the minimum size of the quantization unit and the differential quantization parameter for the current coding unit is not received from the encoder, the differential quantization parameter is set to 0.

針對每個量化單元產生量化參數。如果編碼單元的大小等於或大於量化單元的最小大小,為編碼單元產生量化參數。如果量化單元中包含多個編碼單元,為包含解碼次序中一個或多個非零係數的第一編碼單元產生量化參數。量化單元之內第一編碼單元之後的編碼單元與第一編碼單元具有相同的量化參數。A quantization parameter is generated for each quantization unit. If the size of the coding unit is equal to or greater than the minimum size of the quantization unit, a quantization parameter is generated for the coding unit. If the quantization unit includes multiple coding units, a quantization parameter is generated for a first coding unit that includes one or more non-zero coefficients in a decoding order. The coding unit after the first coding unit within the quantization unit has the same quantization parameter as the first coding unit.

僅使用畫面參數集中包含的一個參數與最大編碼單元的大小來針對每個畫面導出量化單元的最小大小。Use only one parameter included in the picture parameter set and the size of the maximum coding unit to derive the minimum size of the quantization unit for each picture.

針對每個量化單元恢復差分量化參數。對編碼的差分量化參數進行算術解碼以產生差分量化參數的絕對值與表示差分量化參數符號的符號標記。差分量化參數的絕對值為截斷一元碼的二進位串。然後,利用絕對值與符號標記恢復差分量化參數。如果絕對值為零,則不存在符號標記。The differential quantization parameters are restored for each quantization unit. Arithmetically decode the encoded differential quantization parameter to generate an absolute value of the differential quantization parameter and a symbol label representing a symbol of the differential quantization parameter. The absolute value of the differential quantization parameter is a truncated binary string of a unary code. Then, the differential quantization parameters are restored by using the absolute value and the sign mark. If the absolute value is zero, there is no symbol tag.

逆量化單元203對量化塊進行逆量化。The inverse quantization unit 203 performs inverse quantization on the quantized block.

逆變換單元204對逆量化塊進行逆變換以恢復殘餘塊。根據預測模式與變換單元的大小自適應地確定逆變換類型。逆變換類型為基於DCT的整數變換或基於DST的整數變換。The inverse transform unit 204 inversely transforms the inversely quantized block to restore the residual block. The inverse transform type is adaptively determined according to the prediction mode and the size of the transform unit. The inverse transform type is a DCT-based integer transform or a DST-based integer transform.

圖框內預測單元208利用接收的圖框內預測資訊恢復當前預測單元的圖框內預測模式,並且根據恢復的圖框內預測模式產生預測塊。The in-frame prediction unit 208 restores the in-frame prediction mode of the current prediction unit by using the received in-frame prediction information, and generates a prediction block according to the restored in-frame prediction mode.

圖框間預測單元209利用接收的圖框間預測資訊恢復當前預測單元的運動資訊,並且利用運動資訊產生預測塊。The inter-frame prediction unit 209 uses the received inter-frame prediction information to recover the motion information of the current prediction unit, and uses the motion information to generate a prediction block.

後期處理單元206與「圖1」的後期處理單元110同樣工作。The post-processing unit 206 operates similarly to the post-processing unit 110 of FIG. 1.

畫面儲存單元207從後期處理單元206接收經後期處理的圖像並在畫面單元中儲存圖像。畫面可為圖框或場。The picture storage unit 207 receives the post-processed image from the post-processing unit 206 and stores the image in the picture unit. The picture can be a frame or a field.

加法器205將恢復的殘餘塊與預測塊相加以產生重構塊。The adder 205 adds the restored residual block to the prediction block to generate a reconstructed block.

「圖7」係為根據本發明產生預測塊的方法之流程圖。FIG. 7 is a flowchart of a method for generating a prediction block according to the present invention.

對當前預測單元的圖框內預測資訊進行熵解碼(S110)。Entropy decoding is performed on the prediction information in the frame of the current prediction unit (S110).

圖框內預測資訊包含模式組指示符與預測模式索引。模式組指示符為表示當前預測單元的圖框內預測模式是否屬於最可能的模式組(MPM組)的標誌。如果標誌為1,則當前預測單元的圖框內預測單元屬於MPM組。如果標誌為0,則當前預測單元的圖框內預測單元屬於殘餘模式組。殘餘模式組包含除屬於MPM組的圖框內預測模式之外的所有圖框內預測模式。預測模式索引指定由模式組指示符指定的組之內當前預測單元的圖框內預測模式。The prediction information in the frame includes a mode group indicator and a prediction mode index. The mode group indicator is a flag indicating whether the prediction mode in the frame of the current prediction unit belongs to the most likely mode group (MPM group). If the flag is 1, the in-frame prediction unit of the current prediction unit belongs to the MPM group. If the flag is 0, the prediction unit in the frame of the current prediction unit belongs to the residual mode group. The residual mode group includes all intra-frame prediction modes except the intra-frame prediction modes belonging to the MPM group. The prediction mode index specifies the intra-frame prediction mode of the current prediction unit within the group specified by the mode group indicator.

利用相鄰預測單元的圖框內預測模式構造MPM組(S120)。The MPM group is constructed using the intra-frame prediction mode of the neighboring prediction unit (S120).

由左圖框內預測模式與上圖框內預測模式自適應地確定MPM組的圖框內預測模式。左圖框內預測模式為左相鄰預測單元的圖框內預測模式,上圖框內預測模式為上相鄰預測單元的圖框內預測模式。MPM組由三個圖框內預測模式構成。The intra-frame prediction mode of the MPM group is adaptively determined from the intra-frame prediction mode on the left and the intra-frame prediction mode on the upper image. The in-frame prediction mode on the left is the in-frame prediction mode of the left adjacent prediction unit, and the in-frame prediction mode on the upper is the in-frame prediction mode of the upper adjacent prediction unit. The MPM group consists of three intra-frame prediction modes.

如果不存在左或上相鄰預測單元,則將左或上相鄰單元的圖框內預測模式設置為不可用。例如,如果當前預測單元位於畫面的左或上邊界,則不存在左或上相鄰預測單元。如果左或上相鄰單元位於其他切片或其他片塊之內,則將左或上相鄰單元的圖框內預測模式設置為不可用。如果左或上相鄰單元為相互編碼的,則將左或上相鄰單元的圖框內預測模式設置為不可用。如果上相鄰單元位於其他LCU之內,則將左或上相鄰單元的圖框內預測模式設置為不可用。If there is no left or upper neighboring prediction unit, the in-frame prediction mode of the left or upper neighboring unit is set to unavailable. For example, if the current prediction unit is located at the left or upper boundary of the picture, there are no left or upper neighboring prediction units. If the left or upper neighboring unit is located in another slice or other tile, then the in-frame prediction mode of the left or upper neighboring unit is set to unavailable. If the left or upper neighboring units are mutually coded, the intra-frame prediction mode of the left or upper neighboring units is set to unavailable. If the upper neighboring unit is located within another LCU, set the intra-frame prediction mode of the left or upper neighboring unit to unavailable.

在左圖框內預測模式與上圖框內預測模式都可用且彼此不同時,將左圖框內預測模式與上圖框內預測模式包含在MPM組中,將一個額外的圖框內預測模式加到MPM組。將索引0分配給模式編號小的一個圖框內預測模式,將索引1分配給另一個。或將索引0分配給左圖框內預測模式,將索引1分配給上圖框內預測模式。如下由左和上圖框內預測模式確定增加的圖框內預測模式。When both the left and right in-frame prediction modes are available and different from each other, include the left and right in-frame prediction modes in the MPM group and add an extra in-frame prediction mode Add to MPM group. The index 0 is assigned to one intra-frame prediction mode with a small mode number, and the index 1 is assigned to another. Or, the index 0 is assigned to the in-frame prediction mode in the left figure, and the index 1 is assigned to the in-frame prediction mode in the upper figure. The increased in-frame prediction mode is determined from the left and upper in-frame prediction modes as follows.

如果左和上圖框內預測模式之一為非方向性模式,另一個為方向性模式,則將另一個非方向性模式加給MPM組。例如,如果左與上圖框內預測模式之一為DC模式,則將平面模式加到MPM組。如果左與上圖框內預測模式之一為平面模式,則將DC模式加到MPM組。如果左與上圖框內預測模式均為非方向性模式,則將垂直模式加到MPM組。如果左與上圖框內預測模式均為方向性模式,則將DC模式或平面模式加到MPM組。If one of the prediction modes in the frame on the left and the top is a non-directional mode and the other is a directional mode, the other non-directional mode is added to the MPM group. For example, if one of the in-frame prediction modes on the left and above is a DC mode, a planar mode is added to the MPM group. If one of the prediction modes in the frame on the left and the above is a flat mode, the DC mode is added to the MPM group. If both the left and top frame prediction modes are non-directional, add the vertical mode to the MPM group. If the in-frame prediction modes on the left and above are both directional modes, add DC mode or planar mode to the MPM group.

在僅有左圖框內預測模式與上圖框內預測模式之一時,將可用的圖框內預測模式包含在MPM組中,將另外兩個圖框內預測模式加到MPM組。如下透過可用的圖框內預測模式確定增加的兩個圖框內預測模式。When there is only one of the in-frame prediction mode on the left and the in-frame prediction mode on the above, the available in-frame prediction modes are included in the MPM group, and the other two in-frame prediction modes are added to the MPM group. The two added intra-frame prediction modes are determined through the available intra-frame prediction modes as follows.

如果可用的圖框內預測模式為非方向性模式,則將其他非方向性模式與垂直模式增加到MPM組。例如,如果可用的圖框內預測模式為DC模式,則將平面模式與垂直模式增加到MPM組。如果可用的圖框內預測模式為平面模式,則將DC模式與垂直模式增加到MPM組。如果可用的圖框內預測模式是方向性模式,則將兩個非方向性模式(DC模式與平面模式)增加到MPM組。If the available intra-frame prediction mode is a non-directional mode, other non-directional modes and vertical modes are added to the MPM group. For example, if the available intra-frame prediction mode is the DC mode, the planar mode and the vertical mode are added to the MPM group. If the available intra-frame prediction mode is a flat mode, then the DC mode and the vertical mode are added to the MPM group. If the available intra-frame prediction mode is a directional mode, two non-directional modes (DC mode and planar mode) are added to the MPM group.

在左圖框內預測模式與上圖框內預測模式都可用且彼此相同時,將可用圖框內預測模式包含在MPM組中,將兩個額外的圖框內預測模式增加到MPM組。如下透過可用的圖框內預測模式確定增加的兩個圖框內預測模式。When both the in-frame prediction mode on the left and the in-frame prediction mode on the above are available and are the same as each other, the available in-frame prediction modes are included in the MPM group and two additional in-frame prediction modes are added to the MPM group. The two added intra-frame prediction modes are determined through the available intra-frame prediction modes as follows.

如果可用的圖框內預測模式為方向性模式,則將兩個相鄰方向性模式增加到MPM組。例如,如果可用的圖框內預測模式為模式23,則將左相鄰模式(模式1)與右相鄰模式(模式13)增加到MPM組。如果可用的圖框內預測模式為模式30,將兩個相鄰模式(模式2與模式16)增加到MPM組。如果可用的圖框內預測模式為非方向性模式,則將其他非方向性模式與垂直模式增加到MPM組。例如,如果可用的圖框內預測模式為DC模式,則將平面模式與垂直模式增加到MPM組。If the available intra-frame prediction mode is a directional mode, two adjacent directional modes are added to the MPM group. For example, if the available intra-frame prediction mode is mode 23, the left adjacent mode (mode 1) and the right adjacent mode (mode 13) are added to the MPM group. If the available intra-frame prediction mode is mode 30, add two adjacent modes (mode 2 and mode 16) to the MPM group. If the available intra-frame prediction mode is a non-directional mode, other non-directional modes and vertical modes are added to the MPM group. For example, if the available intra-frame prediction mode is the DC mode, the planar mode and the vertical mode are added to the MPM group.

在左圖框內預測模式與上圖框內預測模式均不可用時,將三個額外的圖框內預測模式增加到MPM組。三個圖框內預測模式為DC模式、平面模式以及垂直模式。按照DC模式、平面模式以及垂直模式的次序或平面模式、DC模式以及垂直模式的次序將索引0、1和2分配給三個圖框內預測模式。When neither the in-frame prediction mode in the left picture nor the in-frame prediction mode in the upper picture is available, three additional in-frame prediction modes are added to the MPM group. The three intra-frame prediction modes are DC mode, planar mode, and vertical mode. The indices 0, 1, and 2 are assigned to the three intra-frame prediction modes in the order of the DC mode, the planar mode, and the vertical mode or the order of the planar mode, the DC mode, and the vertical mode.

判斷模式組指示符是否表示MPM組(S130)。It is determined whether the mode group indicator indicates an MPM group (S130).

如果模式組指示符指示MPM組,將預測模式索引指定的MPM組的圖框內預測設置為當前預測單元的圖框內預測模式(S140)。If the mode group indicator indicates the MPM group, the in-frame prediction of the MPM group specified by the prediction mode index is set as the in-frame prediction mode of the current prediction unit (S140).

如果模式組不指示符指示MPM組,如以下有序步驟那樣通過比較MPM組的預測模式索引和圖框內預測模式以導出圖框內預測(S150)。If the mode group indicator does not indicate the MPM group, the intra-frame prediction is derived by comparing the prediction mode index of the MPM group and the intra-frame prediction mode as in the following ordered steps (S150).

1) 在MPM組的三個圖框內預測模式中,將模式編號最低的圖框內預測模式設置為第一候選,將模式編號中間的圖框內預測模式設置為第二候選,將模式編號最高的圖框內預測模式設置為第三候選。1) Among the three in-frame prediction modes of the MPM group, the in-frame prediction mode with the lowest mode number is set as the first candidate, the in-frame prediction mode in the middle of the mode number is set as the second candidate, and the mode number is The highest intra-frame prediction mode is set as the third candidate.

2) 將預測模式索引與第一候選比較。如果預測模式索引等於或大於MPM組的第一候選,則將預測模式索引的值增加一。否則,維持預測模式索引的值。2) Compare the prediction mode index with the first candidate. If the prediction mode index is equal to or greater than the first candidate of the MPM group, the value of the prediction mode index is increased by one. Otherwise, the value of the prediction mode index is maintained.

3) 將預測模式索引與第二候選比較。如果預測模式索引等於或大於MPM組的第二候選,則將預測模式索引的值增加一。否則,維持預測模式索引的值。3) Compare the prediction mode index with the second candidate. If the prediction mode index is equal to or greater than the second candidate of the MPM group, the value of the prediction mode index is increased by one. Otherwise, the value of the prediction mode index is maintained.

4) 將預測模式索引與第三候選比較。如果預測模式索引等於或大於MPM組的第三候選,則將預測模式索引的值增加一。否則,維持預測模式索引的值。4) Compare the prediction mode index with the third candidate. If the prediction mode index is equal to or greater than the third candidate of the MPM group, the value of the prediction mode index is increased by one. Otherwise, the value of the prediction mode index is maintained.

5) 將最後預測模式索引的值設置為當前預測單元的圖框內預測模式的模式編號。5) Set the value of the last prediction mode index to the mode number of the prediction mode within the frame of the current prediction unit.

基於指定變換單元大小的變換大小指示符確定預測塊的大小(S160)。變換大小指示符可為指定變換單元大小的split_transform_flag。The size of the prediction block is determined based on the transform size indicator of the designated transform unit size (S160). The transform size indicator can be a split_transform_flag that specifies the size of the transform unit.

如果變換單元的大小等於當前預測單元的大小,透過以下步驟S170~S190產生預測塊。If the size of the transformation unit is equal to the size of the current prediction unit, a prediction block is generated through the following steps S170 to S190.

如果變換單元的大小小於當前預測單元的大小,透過步驟S170到S190產生當前預測單元第一子塊的預測塊,透過將預測塊與殘餘塊相加產生第一當前子塊的殘餘塊與第一子塊的重構塊。然後,產生解碼次序中下一子塊的重構塊。為所有子塊使用同一圖框內預測模式。子塊具有變換單元的大小。If the size of the transform unit is smaller than the size of the current prediction unit, the prediction block of the first sub-block of the current prediction unit is generated through steps S170 to S190, and the residual block and the first of the first current sub-block are generated by adding the prediction block and the residual block. The reconstructed block of the child block. Then, a reconstructed block of the next sub-block in the decoding order is generated. Use the same in-frame prediction mode for all sub-blocks. A sub-block has the size of a transformation unit.

判斷是否當前塊的所有參考畫素都可用,如果一個或多個參考畫素不可用,產生參考畫素(S170)。當前塊是當前預測單元或當前子塊。當前塊的大小為變換單元的大小。It is determined whether all reference pixels of the current block are available, and if one or more reference pixels are not available, a reference pixel is generated (S170). The current block is the current prediction unit or the current sub-block. The size of the current block is the size of the transformation unit.

基於圖框內預測模式與當前塊的大小自適應地對參考畫素進行過濾(S180)。當前塊的大小是變換單元的大小。The reference pixels are adaptively filtered based on the intra-frame prediction mode and the size of the current block (S180). The size of the current block is the size of the transformation unit.

在DC模式、垂直模式以及水準模式中,不對參考畫素進行過濾在除了垂直與水準模式的方向性模式中,根據當前塊的大小調整參考畫素。In DC mode, vertical mode, and level mode, the reference pixels are not filtered. In directional modes other than vertical and horizontal modes, the reference pixels are adjusted according to the size of the current block.

如果當前的大小為4×4,在所有圖框內預測模式中都不對參考畫素過濾。對於8×8、16×16以及32×32的大小,隨著當前塊的大小變大,對參考畫素進行過濾的圖框內預測模式數量增大。例如,在垂直模式與垂直模式預定數量的相鄰圖框內預測模式中不對參考畫素進行過濾。在水準模式與水準模式預定數量的相鄰圖框內預測模式中也不對參考畫素進行過濾。預定數量隨著當前塊大小增大而增大。If the current size is 4 × 4, the reference pixels are not filtered in all in-frame prediction modes. For the sizes of 8 × 8, 16 × 16, and 32 × 32, as the current block size becomes larger, the number of in-frame prediction modes for filtering reference pixels increases. For example, the reference pixels are not filtered in the vertical mode and a predetermined number of adjacent intra-frame prediction modes in the vertical mode. Reference pixels are also not filtered in the horizontal mode and the predetermined number of adjacent intra-frame prediction modes of the horizontal mode. The predetermined number increases as the current block size increases.

利用當前預測單元的參考畫素與圖框內預測模式產生當前塊的預測塊(S190)。The reference pixels of the current prediction unit and the intra-frame prediction mode are used to generate a prediction block of the current block (S190).

在垂直模式中,透過拷貝垂直參考畫素的值以產生預測畫素。利用角參考畫素與左相鄰參考畫素對與左參考畫素相鄰的預測畫素進行過濾。In the vertical mode, the value of a vertical reference pixel is copied to generate a predicted pixel. The corner reference pixels and the left adjacent reference pixels are used to filter the predicted pixels adjacent to the left reference pixel.

在水平模式中,透過拷貝水準參考畫素的值以產生預測畫素。利用角參考畫素與上相鄰參考畫素對與上參考畫素相鄰的預測畫素進行過濾。In the horizontal mode, the value of a horizontal reference pixel is copied to generate a predicted pixel. The corner reference pixels and the upper adjacent reference pixels are used to filter the predicted pixels adjacent to the upper reference pixels.

儘管已經參考其某些示範性實施例示出並描述了本發明,但本領域的技術人員將理解,可以在其中做出各種形式和細節的改變而不脫離專利申請範圍界定的本發明精神和範圍。Although the invention has been shown and described with reference to certain exemplary embodiments thereof, those skilled in the art will understand that changes can be made in various forms and details without departing from the spirit and scope of the invention as defined by the scope of the patent application .

100‧‧‧圖像編碼設備 100‧‧‧Image coding equipment

101‧‧‧畫面分割單元 101‧‧‧Screen Segmentation Unit

102‧‧‧減法器 102‧‧‧Subtractor

103‧‧‧變換單元 103‧‧‧ Transformation unit

104‧‧‧量化單元 104‧‧‧Quantization unit

105‧‧‧掃描單元 105‧‧‧scanning unit

106‧‧‧熵編碼單元 106‧‧‧ Entropy coding unit

107‧‧‧逆量化單元 107‧‧‧ Inverse quantization unit

108‧‧‧逆變換單元 108‧‧‧ inverse transform unit

109‧‧‧加法器 109‧‧‧ Adder

110‧‧‧後期處理單元 110‧‧‧ post-processing unit

111‧‧‧畫面儲存單元 111‧‧‧Screen storage unit

112‧‧‧圖框內預測單元 112‧‧‧ In-frame prediction unit

113‧‧‧圖框間預測單元 113‧‧‧ Inter-frame prediction unit

200‧‧‧圖像解碼設備 200‧‧‧Image decoding equipment

201‧‧‧熵編碼單元 201‧‧‧ Entropy coding unit

202‧‧‧逆掃描單元 202‧‧‧Inverse Scanning Unit

203‧‧‧逆量化單元 203‧‧‧ Inverse quantization unit

204‧‧‧逆變換單元 204‧‧‧ inverse transformation unit

205‧‧‧加法器 205‧‧‧ Adder

206‧‧‧後期處理單元 206‧‧‧ post-processing unit

207‧‧‧畫面儲存單元 207‧‧‧Screen storage unit

208‧‧‧圖框內預測單元 208‧‧‧ prediction unit in the frame

209‧‧‧圖框間預測單元 209‧‧‧ Inter-frame prediction unit

圖1係為根據本發明的圖像編碼設備之方塊圖;圖2係為根據本發明的圖框內預測模式之示意圖;圖3係為根據本發明掃描模式之示意圖;圖4係為根據本發明的對角線掃描之示意圖;圖5係為根據本發明通過圖框內預測模式與變換單元大小確定的掃描模式之示意圖;圖6係為根據本發明的圖像解碼設備200之方塊圖;以及圖7係為根據本發明產生預測塊的方法之流程圖。 FIG. 1 is a block diagram of an image encoding device according to the present invention; FIG. 2 is a schematic diagram of an in-frame prediction mode according to the present invention; FIG. 3 is a schematic diagram of a scanning mode according to the present invention; and FIG. 4 is a diagram according to the present invention. A schematic diagram of the diagonal scanning of the invention; FIG. 5 is a schematic diagram of the scanning mode determined by the in-frame prediction mode and the size of the transform unit according to the invention; FIG. 6 is a block diagram of the image decoding device 200 according to the invention; And FIG. 7 is a flowchart of a method for generating a prediction block according to the present invention.

Claims (10)

一種產生量化塊的方法,包含:利用一最可能的模式(most probable mode;MPM)組,導出一當前預測單元的一圖框內預測模式,該MPM組包含依照該當前預測單元之左圖框內預測模式與上圖框內預測模式所確定的三種圖框內預測模式;基於該圖框內預測模式與一變換單元的大小選擇一逆掃描模式;以及根據所選的該逆掃描模式逆掃描顯著標記、係數符號以及係數級別以產生該量化塊,其中,該逆掃描模式為對角線掃描、垂直掃描與水平掃描其中之一,其中,當該左圖框內預測模式與該上圖框內預測模式彼此相同且該左圖框內預測模式為兩種非方向性圖框內預測模式其中之一時,該MPM組包含該兩種非方向性圖框內預測模式與一垂直模式,以及其中,當該左圖框內預測模式與該上圖框內預測模式僅僅其中之一可用且係為多種方向性圖框內預測模式其中之一時,該MPM組包含該兩種非方向性圖框內預測模式與一可用的圖框內預測模式。A method for generating a quantized block includes: using a most probable mode (MPM) group to derive an intra-frame prediction mode of a current prediction unit, the MPM group including a left frame according to the current prediction unit The three intra-frame prediction modes determined by the intra prediction mode and the intra-frame prediction mode in the figure above; selecting an inverse scanning mode based on the in-frame prediction mode and the size of a transform unit; and inverse scanning according to the selected inverse scanning mode Significantly mark, coefficient symbols and coefficient levels to generate the quantized block, wherein the inverse scanning mode is one of diagonal scanning, vertical scanning and horizontal scanning, wherein when the prediction mode in the left frame and the upper frame are When the intra-prediction modes are the same as each other and the left-frame in-frame prediction mode is one of two non-directional in-frame prediction modes, the MPM group includes the two non-directional in-frame prediction modes and a vertical mode, and where , When only one of the in-frame prediction mode in the left image and the in-frame prediction mode in the upper image is available and it is one of a plurality of directional in-frame prediction modes, MPM group that contains the two non-directional picture frame prediction mode and a frame prediction mode available FIG. 如請求項1所述之產生量化塊的方法,其中如果該變換單元的大小等於或小於8×8,透過該圖框內預測模式確定該逆掃描模式。The method for generating a quantized block as described in claim 1, wherein if the size of the transform unit is equal to or smaller than 8 × 8, the inverse scanning mode is determined through the in-frame prediction mode. 如請求項2所述之產生量化塊的方法,其中對該垂直模式與相鄰於該垂直模式的一預定數量的圖框內預測模式應用水平掃描,對一水準模式與相鄰於該水準模式的該預定數量的圖框內預測模式應用垂直掃描,以及為所有其他圖框內預測模式應用對角線掃描。The method for generating a quantized block as described in claim 2, wherein horizontal scanning is applied to the vertical mode and a predetermined number of in-frame prediction modes adjacent to the vertical mode, and a horizontal mode and a mode adjacent to the horizontal mode are applied. A vertical scan is applied to the predetermined number of in-frame prediction modes, and a diagonal scan is applied to all other in-frame prediction modes. 如請求項3所述之產生量化塊的方法,其中如果該變換單元的大小為8×8,該預定數量為8。The method for generating a quantization block as described in claim 3, wherein if the size of the transform unit is 8 × 8, the predetermined number is 8. 如請求項1所述之產生量化塊的方法,其中如果該變換單元的大小大於8×8,為所有圖框內預測模式應用對角線掃描。The method for generating a quantized block as described in claim 1, wherein if the size of the transform unit is larger than 8 × 8, a diagonal scan is applied to all in-frame prediction modes. 如請求項1所述之產生量化塊的方法,其中如果該變換單元的大小為8×8,以子集為單位逆掃描顯著標記、係數符號與係數級別,用以產生複數個子集,以及依照該圖框內預測模式所確定的逆掃描模式透過逆掃描該等子集產生量化塊。The method for generating a quantized block as described in claim 1, wherein if the size of the transformation unit is 8 × 8, the significant mark, the coefficient symbol and the coefficient level are inversely scanned in units of a subset to generate a plurality of subsets, and A quantization block is generated by inversely scanning the subsets according to the inverse scanning mode determined by the in-frame prediction mode in the figure. 如請求項6所述之產生量化塊的方法,其中利用最後非零係數的位置與所選的該逆掃描模式確定編碼的子集的數量。The method of generating a quantized block as described in claim 6, wherein the number of the encoded subsets is determined using the position of the last non-zero coefficient and the selected inverse scanning mode. 如請求項6所述之產生量化塊的方法,其中利用複數個非零子集標記確定要產生的該等子集,以及透過向顯著標記、係數符號以及係數級別應用逆掃描模式以產生該等子集。The method of generating a quantized block as described in claim 6, wherein a plurality of non-zero subset labels are used to determine the subsets to be generated, and the inverse scan mode is applied to the significant labels, coefficient symbols, and coefficient levels to generate the Subset. 如請求項1所述之產生量化塊的方法,其中當該左圖框內預測模式為一DC模式且該上圖框內預測模式為該DC模式時,該MPM組包含該DC模式、一平面模式與該垂直模式。The method for generating a quantized block as described in claim 1, wherein when the prediction mode in the left frame is a DC mode and the prediction mode in the frame above is the DC mode, the MPM group includes the DC mode and a plane. Mode with this vertical mode. 如請求項1所述之產生量化塊的方法,其中當該左圖框內預測模式為一平面模式且該上圖框內預測模式為該平面模式時,該MPM組包含一DC模式、該平面模式與該垂直模式。The method for generating a quantized block according to claim 1, wherein when the prediction mode in the left frame is a plane mode and the prediction mode in the frame above is the plane mode, the MPM group includes a DC mode, the plane Mode with this vertical mode.
TW106136728A 2011-11-04 2012-11-02 Method of generating quantized block TWI644563B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020110114608A KR20130049524A (en) 2011-11-04 2011-11-04 Method for generating intra prediction block
??10-2011-0114608 2011-11-04

Publications (2)

Publication Number Publication Date
TW201804795A TW201804795A (en) 2018-02-01
TWI644563B true TWI644563B (en) 2018-12-11

Family

ID=48191359

Family Applications (7)

Application Number Title Priority Date Filing Date
TW109116250A TWI742665B (en) 2011-11-04 2012-11-02 Apparatus for decoding an image in intra prediction, apparatus for encoding an image in intra prediction and computer-readable storage medium storing encoded video information
TW105123718A TWI608727B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW106136728A TWI644563B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW107137926A TWI697230B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW112122233A TW202339499A (en) 2011-11-04 2012-11-02 Apparatus of encoding an image
TW101140898A TWI555385B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW110133205A TWI808481B (en) 2011-11-04 2012-11-02 Apparatus for decoding an image and apparatus for encoding an image

Family Applications Before (2)

Application Number Title Priority Date Filing Date
TW109116250A TWI742665B (en) 2011-11-04 2012-11-02 Apparatus for decoding an image in intra prediction, apparatus for encoding an image in intra prediction and computer-readable storage medium storing encoded video information
TW105123718A TWI608727B (en) 2011-11-04 2012-11-02 Method of generating quantized block

Family Applications After (4)

Application Number Title Priority Date Filing Date
TW107137926A TWI697230B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW112122233A TW202339499A (en) 2011-11-04 2012-11-02 Apparatus of encoding an image
TW101140898A TWI555385B (en) 2011-11-04 2012-11-02 Method of generating quantized block
TW110133205A TWI808481B (en) 2011-11-04 2012-11-02 Apparatus for decoding an image and apparatus for encoding an image

Country Status (19)

Country Link
US (6) US8989258B2 (en)
EP (6) EP3343915B1 (en)
JP (5) JP5792396B2 (en)
KR (6) KR20130049524A (en)
CN (13) CN106254880B (en)
CY (1) CY1120151T1 (en)
DK (1) DK2752004T3 (en)
ES (5) ES2670014T3 (en)
HK (2) HK1214700A1 (en)
HR (1) HRP20180864T1 (en)
HU (5) HUE054166T2 (en)
LT (1) LT2752004T (en)
NO (1) NO2752004T3 (en)
PL (5) PL3579556T3 (en)
PT (1) PT2752004T (en)
RS (1) RS57159B1 (en)
SI (1) SI2752004T1 (en)
TW (7) TWI742665B (en)
WO (1) WO2013064098A1 (en)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11284072B2 (en) 2010-08-17 2022-03-22 M&K Holdings Inc. Apparatus for decoding an image
CN107071426B (en) * 2010-08-17 2019-07-12 M&K控股株式会社 Method for encoding intra prediction mode
CN108632608B (en) 2011-09-29 2022-07-29 夏普株式会社 Image decoding device, image decoding method, image encoding device, and image encoding method
JP5972888B2 (en) 2011-09-29 2016-08-17 シャープ株式会社 Image decoding apparatus, image decoding method, and image encoding apparatus
KR20130049525A (en) 2011-11-04 2013-05-14 오수미 Method for inverse transform for reconstructing residual block
KR20130049524A (en) * 2011-11-04 2013-05-14 오수미 Method for generating intra prediction block
KR20130049522A (en) * 2011-11-04 2013-05-14 오수미 Method for generating intra prediction block
KR20130050407A (en) 2011-11-07 2013-05-16 오수미 Method for generating motion information in inter prediction mode
AU2012200319B2 (en) * 2012-01-19 2015-11-26 Canon Kabushiki Kaisha Method, apparatus and system for encoding and decoding the significance map for residual coefficients of a transform unit
AU2012200345B2 (en) 2012-01-20 2014-05-01 Canon Kabushiki Kaisha Method, apparatus and system for encoding and decoding the significance map residual coefficients of a transform unit
CN108632611A (en) 2012-06-29 2018-10-09 韩国电子通信研究院 Video encoding/decoding method, method for video coding and computer-readable medium
FR3012714A1 (en) * 2013-10-25 2015-05-01 Orange IMAGE ENCODING AND DECODING METHOD, IMAGE ENCODING AND DECODING DEVICE AND CORRESPONDING COMPUTER PROGRAMS
FR3014278A1 (en) * 2013-11-29 2015-06-05 Orange IMAGE ENCODING AND DECODING METHOD, IMAGE ENCODING AND DECODING DEVICE AND CORRESPONDING COMPUTER PROGRAMS
CN105611301B (en) * 2015-12-23 2019-01-18 四川大学 Distributed video decoding method based on wavelet field residual error
CN114615493A (en) 2016-03-24 2022-06-10 英迪股份有限公司 Video decoding method, video encoding method, and readable recording medium
CN113810702A (en) * 2016-04-29 2021-12-17 世宗大学校产学协力团 Method and apparatus for encoding and decoding image signal
KR102378803B1 (en) * 2016-06-17 2022-03-25 세종대학교산학협력단 A method of decoding a video signal and an apparatus having the same
KR102523384B1 (en) * 2016-06-17 2023-04-20 세종대학교 산학협력단 A method of decoding a video signal and an apparatus having the same
EP3264763A1 (en) 2016-06-29 2018-01-03 Thomson Licensing Method and apparatus for improved significance flag coding using simple local predictor
WO2018061550A1 (en) * 2016-09-28 2018-04-05 シャープ株式会社 Image decoding device and image coding device
US10880564B2 (en) * 2016-10-01 2020-12-29 Qualcomm Incorporated Transform selection for video coding
JP2019528621A (en) * 2016-10-13 2019-10-10 富士通株式会社 Image coding / decoding method, apparatus and image processing apparatus
CN110024399B (en) * 2016-11-28 2024-05-17 韩国电子通信研究院 Method and apparatus for encoding/decoding image and recording medium storing bit stream
CN106851274B (en) * 2017-03-31 2019-08-06 北京奇艺世纪科技有限公司 Differential quantization determination method for parameter determines system and video encoder
US10506196B2 (en) * 2017-04-01 2019-12-10 Intel Corporation 360 neighbor-based quality selector, range adjuster, viewport manager, and motion estimator for graphics
KR102558015B1 (en) * 2017-04-13 2023-07-21 엘지전자 주식회사 Image encoding/decoding method and device therefor
WO2019023200A1 (en) * 2017-07-24 2019-01-31 Arris Enterprises Llc Intra mode jvet coding
US11140415B2 (en) 2017-11-30 2021-10-05 Lg Electronics Inc. Method and device for processing video signal
CN115278239A (en) * 2017-12-28 2022-11-01 松下电器(美国)知识产权公司 Encoding device, decoding device, and storage medium
KR102030384B1 (en) 2018-06-19 2019-11-08 광운대학교 산학협력단 A method and an apparatus for encoding/decoding residual coefficient
CN112262576A (en) 2018-06-11 2021-01-22 光云大学校产学协力团 Residual coefficient encoding/decoding method and apparatus
CN118055231A (en) * 2018-09-06 2024-05-17 Lg 电子株式会社 Image encoding method based on intra prediction using MPM list and apparatus therefor
WO2020057589A1 (en) * 2018-09-19 2020-03-26 Huawei Technologies Co., Ltd. Method and apparatus for predicting most probable intra-modes
CN117939122A (en) 2018-10-07 2024-04-26 三星电子株式会社 Video signal processing method and apparatus for encoding or decoding video signal
CN116962720A (en) 2018-10-12 2023-10-27 三星电子株式会社 Method and apparatus for processing video signal by using cross-component linear model
CN111225206B (en) * 2018-11-23 2021-10-26 华为技术有限公司 Video decoding method and video decoder
CN116527892A (en) * 2019-01-08 2023-08-01 Lg电子株式会社 Decoding device, encoding device, and data transmitting device
CN113242430B (en) * 2021-05-31 2024-05-31 杭州当虹科技股份有限公司 Video coding method

Family Cites Families (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100361536C (en) * 1996-05-28 2008-01-09 松下电器产业株式会社 Device and method for predicting and encoding image and recording medium
KR100341063B1 (en) * 2000-06-28 2002-06-20 송문섭 Rate control apparatus and method for real-time video communication
US6859815B2 (en) * 2000-12-19 2005-02-22 Koninklijke Philips Electronics N.V. Approximate inverse discrete cosine transform for scalable computation complexity video and still image decoding
AU2003285850A1 (en) * 2002-04-23 2004-04-30 Nokia Corporation Method and device for indicating quantizer parameters in a video coding system
US7289674B2 (en) * 2002-06-11 2007-10-30 Nokia Corporation Spatial prediction based intra coding
KR100946790B1 (en) * 2005-01-07 2010-03-11 니폰덴신뎅와 가부시키가이샤 Video encoding method and apparatus, video decoding method and apparatus, and storage media for storing the programs
CN100348051C (en) * 2005-03-31 2007-11-07 华中科技大学 An enhanced in-frame predictive mode coding method
EP1727371A1 (en) * 2005-05-27 2006-11-29 Thomson Licensing Method for controlling the encoder output bit rate in a block-based video encoder, and corresponding video encoder apparatus
US7961783B2 (en) * 2005-07-07 2011-06-14 Mediatek Incorporation Methods and systems for rate control in video encoder
KR100678911B1 (en) * 2005-07-21 2007-02-05 삼성전자주식회사 Method and apparatus for video signal encoding and decoding with extending directional intra prediction
JP4546356B2 (en) * 2005-08-31 2010-09-15 キヤノン株式会社 Image forming apparatus, control method therefor, program, and image forming system
US7782955B2 (en) * 2005-09-28 2010-08-24 Avisonic Technology Corporation Transcoder and transcoding method operating in a transform domain for video coding schemes possessing different transform kernels
WO2007066709A1 (en) * 2005-12-07 2007-06-14 Sony Corporation Encoding device, encoding method, encoding program, decoding device, decoding method, and decoding program
KR100904442B1 (en) * 2006-01-09 2009-06-24 엘지전자 주식회사 Inter-layer prediction method for video signal
WO2008020672A1 (en) * 2006-08-17 2008-02-21 Electronics And Telecommunications Research Institute Apparatus for encoding and decoding image using adaptive dct coefficient scanning based on pixel similarity and method therefor
KR100927733B1 (en) * 2006-09-20 2009-11-18 한국전자통신연구원 An apparatus and method for encoding / decoding selectively using a transformer according to correlation of residual coefficients
RU2434361C2 (en) * 2006-10-30 2011-11-20 Ниппон Телеграф Энд Телефон Корпорейшн Predicted reference information generation method, video encoding and decoding method, apparatus and programmes for realising said methods and storage medium containing said programmes
EP2145482A1 (en) 2007-04-19 2010-01-20 Thomson Licensing Adaptive reference picture data generation for intra prediction
US8571104B2 (en) * 2007-06-15 2013-10-29 Qualcomm, Incorporated Adaptive coefficient scanning in video coding
JP2009033427A (en) * 2007-07-26 2009-02-12 Ricoh Co Ltd Image processor and image processing method
TW200910971A (en) * 2007-08-22 2009-03-01 Univ Nat Cheng Kung Direction detection algorithms for H.264 intra prediction
US8160141B2 (en) 2008-03-17 2012-04-17 Sony Corporation Advanced video coded pictures—reduced cost computation of an intra mode decision in the frequency domain
JP2009302776A (en) * 2008-06-11 2009-12-24 Canon Inc Image encoding device, control method thereof, and computer program
CN101668202A (en) * 2008-09-01 2010-03-10 中兴通讯股份有限公司 Method and device for selecting intra-frame prediction mode
KR101306834B1 (en) * 2008-09-22 2013-09-10 에스케이텔레콤 주식회사 Video Encoding/Decoding Apparatus and Method by Using Prediction Possibility of Intra Prediction Mode
CN101394565B (en) * 2008-10-20 2011-08-17 成都九洲电子信息系统有限责任公司 Intra-frame prediction method
CN101489129A (en) * 2009-01-19 2009-07-22 山东大学 Integrated circuit and method for implementing high speed two-dimension discrete cosine transform
JPWO2010146772A1 (en) * 2009-06-19 2012-11-29 三菱電機株式会社 Image encoding device, image decoding device, image encoding method, and image decoding method
KR101507344B1 (en) * 2009-08-21 2015-03-31 에스케이 텔레콤주식회사 Apparatus and Method for intra prediction mode coding using variable length code, and Recording Medium therefor
WO2011121715A1 (en) 2010-03-30 2011-10-06 株式会社 東芝 Image decoding method
US8929440B2 (en) * 2010-04-09 2015-01-06 Sony Corporation QP adaptive coefficients scanning and application
CN101841711B (en) * 2010-04-17 2012-01-04 上海交通大学 Inverse quantization device for video decoding and implementation method thereof
US8902978B2 (en) * 2010-05-30 2014-12-02 Lg Electronics Inc. Enhanced intra prediction mode signaling
KR101373814B1 (en) * 2010-07-31 2014-03-18 엠앤케이홀딩스 주식회사 Apparatus of generating prediction block
CN107071426B (en) * 2010-08-17 2019-07-12 M&K控股株式会社 Method for encoding intra prediction mode
US9025661B2 (en) * 2010-10-01 2015-05-05 Qualcomm Incorporated Indicating intra-prediction mode selection for video coding
US20120082235A1 (en) * 2010-10-05 2012-04-05 General Instrument Corporation Coding and decoding utilizing context model selection with adaptive scan pattern
CN102006481B (en) * 2010-12-17 2012-10-10 武汉大学 Fast intra prediction mode selection method based on block features
US9049444B2 (en) * 2010-12-22 2015-06-02 Qualcomm Incorporated Mode dependent scanning of coefficients of a block of video data
US10992958B2 (en) * 2010-12-29 2021-04-27 Qualcomm Incorporated Video coding using mapped transforms and scanning modes
US9667987B2 (en) 2011-03-10 2017-05-30 Futurewei Technologies, Inc. Using multiple prediction sets to encode extended unified directional intra mode numbers for robustness
US9654785B2 (en) * 2011-06-09 2017-05-16 Qualcomm Incorporated Enhanced intra-prediction mode signaling for video coding using neighboring mode
GB2494468B (en) 2011-09-12 2014-01-15 Canon Kk Method and device for encoding or decoding information representing prediction modes
WO2013039676A1 (en) 2011-09-13 2013-03-21 Mediatek Singapore Pte. Ltd. Method and apparatus for intra mode coding in hevc
CN107197310B (en) 2011-10-07 2020-02-21 英迪股份有限公司 Method for decoding video signal
KR20130049524A (en) * 2011-11-04 2013-05-14 오수미 Method for generating intra prediction block
KR20130050404A (en) * 2011-11-07 2013-05-16 오수미 Method for generating reconstructed block in inter prediction mode
KR20130050407A (en) * 2011-11-07 2013-05-16 오수미 Method for generating motion information in inter prediction mode
KR20130050405A (en) * 2011-11-07 2013-05-16 오수미 Method for determining temporal candidate in inter prediction mode
KR20130058524A (en) * 2011-11-25 2013-06-04 오수미 Method for generating chroma intra prediction block
AR092786A1 (en) * 2012-01-09 2015-05-06 Jang Min METHODS TO ELIMINATE BLOCK ARTIFACTS
SG11201400670XA (en) * 2012-01-17 2014-04-28 Genip Pte Ltd Method of applying edge offset

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
< Geert Van der Auwera et al.>,<Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11>,< JCTVC-F556>,<2011/07/22>
< Toru Kumakura et al.>,<Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11>,< JCTVC-F340>,<2011/07/22>
< Toru Kumakura et al.>,<Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11>,< JCTVC-F340>,<2011/07/22> < Geert Van der Auwera et al.>,<Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11>,< JCTVC-F556>,<2011/07/22> *

Also Published As

Publication number Publication date
CN106254882B (en) 2019-10-15
EP2752004A4 (en) 2015-06-03
TWI555385B (en) 2016-10-21
CN106231316A (en) 2016-12-14
CN106060543B (en) 2019-04-09
PT2752004T (en) 2018-05-16
EP3579555A1 (en) 2019-12-11
CN106060542A (en) 2016-10-26
TW201639361A (en) 2016-11-01
CN105007485A (en) 2015-10-28
CN106254881B (en) 2020-01-03
TW202339499A (en) 2023-10-01
ES2870799T3 (en) 2021-10-27
US20170180731A1 (en) 2017-06-22
CN106060542B (en) 2020-09-15
EP3579554A1 (en) 2019-12-11
CN106254880A (en) 2016-12-21
HUE054166T2 (en) 2021-08-30
CN103096068A (en) 2013-05-08
US9357216B2 (en) 2016-05-31
PL3579555T3 (en) 2021-08-02
HK1214700A1 (en) 2016-07-29
TWI608727B (en) 2017-12-11
HUE037573T2 (en) 2018-09-28
JP2016001901A (en) 2016-01-07
SI2752004T1 (en) 2018-05-31
US20150163487A1 (en) 2015-06-11
ES2670014T3 (en) 2018-05-29
ES2870374T3 (en) 2021-10-26
US8989258B2 (en) 2015-03-24
EP2752004B1 (en) 2018-03-21
CN106060541B (en) 2020-02-04
CN104954790A (en) 2015-09-30
KR20140074347A (en) 2014-06-17
CN103096068B (en) 2016-07-06
CN104954790B (en) 2018-06-15
US9325994B2 (en) 2016-04-26
KR20140071430A (en) 2014-06-11
EP3800887A1 (en) 2021-04-07
JP6101752B2 (en) 2017-03-22
KR101472971B1 (en) 2014-12-19
KR20140071428A (en) 2014-06-11
US20150156492A1 (en) 2015-06-04
EP3343915A1 (en) 2018-07-04
CN106067972B (en) 2020-02-07
NO2752004T3 (en) 2018-08-18
TWI808481B (en) 2023-07-11
TW202147838A (en) 2021-12-16
CY1120151T1 (en) 2018-12-12
CN106067972A (en) 2016-11-02
CN106254880B (en) 2019-12-20
ES2748233T3 (en) 2020-03-16
HRP20180864T1 (en) 2018-07-13
JP6101755B2 (en) 2017-03-22
CN106060551B (en) 2019-06-14
JP2016007016A (en) 2016-01-14
JP2016007017A (en) 2016-01-14
DK2752004T3 (en) 2018-05-28
CN106060543A (en) 2016-10-26
EP3579556B1 (en) 2021-02-17
PL3343915T3 (en) 2020-04-30
KR20130049524A (en) 2013-05-14
TW201320763A (en) 2013-05-16
HUE054134T2 (en) 2021-08-30
JP5792396B2 (en) 2015-10-14
JP6101753B2 (en) 2017-03-22
US20140269908A1 (en) 2014-09-18
PL2752004T3 (en) 2018-08-31
PL3579554T3 (en) 2021-08-02
CN106254881A (en) 2016-12-21
US10205947B2 (en) 2019-02-12
JP6101754B2 (en) 2017-03-22
EP3579555B1 (en) 2021-02-17
EP3343915B1 (en) 2019-07-31
EP3579554B1 (en) 2021-02-17
CN106231316B (en) 2020-01-17
CN106060552B (en) 2019-07-26
TWI697230B (en) 2020-06-21
TWI742665B (en) 2021-10-11
CN105007485B (en) 2018-06-15
JP2014534750A (en) 2014-12-18
WO2013064098A1 (en) 2013-05-10
ES2870375T3 (en) 2021-10-26
HUE054168T2 (en) 2021-08-30
CN106060551A (en) 2016-10-26
CN106060552A (en) 2016-10-26
RS57159B1 (en) 2018-07-31
EP2752004A1 (en) 2014-07-09
KR20140071429A (en) 2014-06-11
TW202032980A (en) 2020-09-01
CN106060541A (en) 2016-10-26
KR20140074346A (en) 2014-06-17
US20150156488A1 (en) 2015-06-04
US20150156491A1 (en) 2015-06-04
EP3579556A1 (en) 2019-12-11
HUE045885T2 (en) 2020-01-28
TW201904289A (en) 2019-01-16
PL3579556T3 (en) 2021-08-23
HK1214702A1 (en) 2016-07-29
JP2016001902A (en) 2016-01-07
CN106254882A (en) 2016-12-21
US9332263B2 (en) 2016-05-03
LT2752004T (en) 2018-05-25
TW201804795A (en) 2018-02-01
US9621893B2 (en) 2017-04-11

Similar Documents

Publication Publication Date Title
TWI644563B (en) Method of generating quantized block
TWI650001B (en) A method of generating a reconstructed block
TWI661715B (en) Method of decoding video data
TWI615016B (en) Method of deriving quantization parameter
TWI519132B (en) Method and apparatus of deriving intra predicion mode