WO2013048033A1 - 인트라 예측 모드 부호화/복호화 방법 및 장치 - Google Patents

인트라 예측 모드 부호화/복호화 방법 및 장치 Download PDF

Info

Publication number
WO2013048033A1
WO2013048033A1 PCT/KR2012/007255 KR2012007255W WO2013048033A1 WO 2013048033 A1 WO2013048033 A1 WO 2013048033A1 KR 2012007255 W KR2012007255 W KR 2012007255W WO 2013048033 A1 WO2013048033 A1 WO 2013048033A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
prediction mode
mpm
mpm candidate
block
Prior art date
Application number
PCT/KR2012/007255
Other languages
English (en)
French (fr)
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
Priority claimed from KR1020110114882A external-priority patent/KR101611409B1/ko
Application filed by 한국전자통신연구원 filed Critical 한국전자통신연구원
Priority to US14/346,756 priority Critical patent/US9432675B2/en
Publication of WO2013048033A1 publication Critical patent/WO2013048033A1/ko
Priority to US15/201,811 priority patent/US10091503B2/en
Priority to US16/105,222 priority patent/US10652533B2/en
Priority to US16/840,547 priority patent/US11252407B2/en
Priority to US17/567,632 priority patent/US11729380B2/en
Priority to US18/345,301 priority patent/US20230353731A1/en
Priority to US18/345,350 priority patent/US20230344994A1/en

Links

Images

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/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • 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
    • 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/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/184Methods 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 bits, e.g. of the compressed video stream
    • 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/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • 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/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
    • 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/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Definitions

  • the present invention relates to image processing, and more particularly, to an intra prediction mode encoding / decoding method and apparatus.
  • an inter prediction technique for predicting a pixel value included in a current picture from a previous and / or subsequent picture in time, and for predicting a pixel value included in a current picture using pixel information in the current picture.
  • An intra prediction technique an entropy encoding technique of allocating a short code to a symbol with a high frequency of appearance and a long code to a symbol with a low frequency of appearance may be used.
  • An object of the present invention is to provide an image encoding method and apparatus for improving image compression efficiency.
  • Another object of the present invention is to provide an image decoding method and apparatus capable of improving image compression efficiency.
  • Another technical problem of the present invention is to provide an intra prediction mode encoding method and apparatus capable of improving image compression efficiency.
  • Another object of the present invention is to provide an intra prediction mode decoding method and apparatus for improving image compression efficiency.
  • One embodiment of the present invention is a video decoding method.
  • the method may include deriving an MPM candidate mode from a neighboring block adjacent to a decoding target block, generating an MPM list using the MPM candidate mode derived from the neighboring block, and using the generated MPM list. Deriving an intra prediction mode of M 2, wherein the number of MPM candidate modes included in the MPM list is a predetermined fixed number.
  • deriving the MPM candidate mode from the neighboring block adjacent to the decoding target block may finally predict the prediction mode of the neighboring block.
  • Changing to a mode and selecting the final prediction mode as the MPM candidate mode, and the final prediction mode may be one of prediction modes that the decoding target block may have.
  • the final prediction mode may be a non-directional mode.
  • the final prediction mode may be a prediction mode in which the mode value is zero.
  • the final prediction mode may be a prediction mode derived by a predetermined fixed calculation method.
  • the mode value of the prediction mode derived by the predetermined fixed calculation method may be a remaining value obtained by dividing the mode value of the prediction mode for the neighboring block by the number of prediction modes that the decoding target block may have.
  • the final prediction mode may be a prediction mode having the highest occurrence frequency among prediction modes that the decoding target block may have, and the occurrence frequency may be proportional to the number of occurrences of the prediction mode accumulated in the current decoding process.
  • Generating an MPM list using the MPM candidate mode derived from the neighboring block may include obtaining an additional MPM candidate mode using an intra prediction mode except for the MPM candidate mode derived from the neighboring block and the obtained additional.
  • the method may include assigning an MPM candidate mode to the MPM list.
  • the additional MPM candidate mode may be a non-directional mode.
  • the additional MPM candidate mode may be a directional prediction mode having a prediction direction most similar to the prediction direction of the MPM candidate mode derived from the neighboring block.
  • the additional MPM candidate mode may be a prediction mode having the highest occurrence frequency among intra prediction modes except for the MPM candidate mode derived from the neighboring block, and the occurrence frequency is proportional to the number of occurrences of the intra prediction mode accumulated in the current decoding process. can do.
  • the apparatus derives an MPM candidate mode from an entropy decoder that entropy decodes an MPM flag transmitted from an encoder and a neighboring block adjacent to a decoding target block, generates an MPM list using the MPM candidate mode derived from the neighboring block,
  • An intra prediction unit configured to derive an intra prediction mode of the decoding object block by using the entropy decoded MPM flag and the generated MPM list, and to perform intra prediction on the decoding object block by using the derived intra prediction mode.
  • the number of MPM candidate modes included in the MPM list is a predetermined fixed number.
  • Another embodiment of the present invention is an intra prediction mode decoding method.
  • the method may include deriving an MPM candidate mode from a neighboring block adjacent to a decoding target block, generating an MPM list using the MPM candidate mode derived from the neighboring block, and using the generated MPM list. Deriving an intra prediction mode of M 2, wherein the number of MPM candidate modes included in the MPM list is a predetermined fixed number.
  • deriving the MPM candidate mode from the neighboring block adjacent to the decoding target block may finally predict the prediction mode of the neighboring block.
  • Changing to a mode and selecting the final prediction mode as the MPM candidate mode, and the final prediction mode may be one of prediction modes that the decoding target block may have.
  • Generating an MPM list using the MPM candidate mode derived from the neighboring block may include obtaining an additional MPM candidate mode using an intra prediction mode except for the MPM candidate mode derived from the neighboring block and the obtained additional.
  • the method may include assigning an MPM candidate mode to the MPM list.
  • image compression efficiency can be improved.
  • the image compression efficiency can be improved.
  • image compression efficiency may be improved.
  • image compression efficiency may be improved.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
  • FIG. 2 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
  • FIG. 3 is a conceptual diagram schematically illustrating an embodiment of a neighboring block used to derive an MPM candidate mode.
  • FIG. 4 is a flowchart schematically illustrating an intra prediction mode encoding method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart schematically illustrating an embodiment of a method of deriving an MPM candidate mode using a prediction mode of a neighboring block for an encoding target block.
  • FIG. 6 is a conceptual diagram schematically illustrating an embodiment in which a prediction mode of a neighboring block is not included in a prediction mode that a block to be encoded may have.
  • FIG. 7 is a flowchart schematically illustrating an intra prediction mode decoding method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart schematically illustrating an embodiment of a method of deriving an MPM candidate mode using a prediction mode of a neighboring block for a decoding target block.
  • first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
  • the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component.
  • each component shown in the embodiments of the present invention are shown independently to represent different characteristic functions, and do not mean that each component is made of separate hardware or one software component unit.
  • each component is included in each component for convenience of description, and at least two of the components may be combined into one component, or one component may be divided into a plurality of components to perform a function.
  • Integrated and separate embodiments of the components are also included within the scope of the present invention without departing from the spirit of the invention.
  • the components may not be essential components for performing essential functions in the present invention, but may be optional components for improving performance.
  • the present invention can be implemented including only the components essential for implementing the essentials of the present invention except for the components used for improving performance, and the structure including only the essential components except for the optional components used for improving performance. Also included in the scope of the present invention.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
  • the image encoding apparatus 100 may include a motion predictor 111, a motion compensator 112, an intra predictor 120, a switch 115, a subtractor 125, and a converter 130. And a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, an inverse transform unit 170, an adder 175, a filter unit 180, and a reference picture buffer 190.
  • the image encoding apparatus 100 may encode an input image in an intra mode or an inter mode and output a bitstream.
  • Intra prediction means intra prediction and inter prediction means inter prediction.
  • the switch 115 may be switched to intra, and in the inter mode, the switch 115 may be switched to inter.
  • the image encoding apparatus 100 may generate a prediction block for an input block of an input image and then encode a residual between the input block and the prediction block.
  • the intra predictor 120 may generate a prediction block by performing spatial prediction using pixel values of blocks that are already encoded around the current block.
  • the motion predictor 111 may obtain a motion vector by searching for a region that best matches an input block in the reference image stored in the reference picture buffer 190 during the motion prediction process.
  • the motion compensator 112 may generate a prediction block by performing motion compensation using the motion vector.
  • the subtractor 125 may generate a residual block by the difference between the input block and the generated prediction block.
  • the transform unit 130 may output a transform coefficient by performing a transform on the residual block.
  • the quantization unit 140 may output the quantized coefficient by quantizing the input transform coefficient according to the quantization parameter.
  • the entropy encoder 150 may output a bit stream by performing entropy encoding based on values calculated by the quantizer 140 or encoding parameter values calculated in the encoding process.
  • the entropy encoder 150 may use an encoding method such as exponential golomb, context-adaptive variable length coding (CAVLC), or context-adaptive binary arithmetic coding (CABAC) for entropy encoding.
  • CAVLC context-adaptive variable length coding
  • CABAC context-adaptive binary arithmetic coding
  • the image encoding apparatus Since the image encoding apparatus according to the embodiment of FIG. 1 performs inter prediction encoding, that is, inter prediction encoding, the currently encoded image needs to be decoded and stored to be used as a reference image. Accordingly, the quantized coefficients are inversely quantized by the inverse quantizer 160 and inversely transformed by the inverse transformer 170. The inverse quantized and inverse transformed coefficients are added to the prediction block by the adder 175 and a reconstruction block is generated.
  • the reconstruction block passes through the filter unit 180, and the filter unit 180 applies at least one or more of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the reconstruction block or the reconstruction picture. can do.
  • the filter unit 180 may be referred to as an adaptive in-loop filter.
  • the deblocking filter can remove block distortion generated at the boundary between blocks.
  • SAO can add an appropriate offset to the pixel value to compensate for coding errors.
  • the ALF may perform filtering based on a value obtained by comparing the reconstructed image with the original image, and may be performed only when high efficiency is applied.
  • the reconstructed block that has passed through the filter unit 180 may be stored in the reference picture buffer 190.
  • FIG. 2 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
  • the image decoding apparatus 200 may include an entropy decoder 210, an inverse quantizer 220, an inverse transformer 230, an intra predictor 240, a motion compensator 250, and an adder ( 255, a filter unit 260, and a reference picture buffer 270.
  • the image decoding apparatus 200 may receive a bitstream output from the encoder and perform decoding in an intra mode or an inter mode, and output a reconstructed image, that is, a reconstructed image.
  • the switch In the intra mode, the switch may be switched to intra, and in the inter mode, the switch may be switched to inter.
  • the image decoding apparatus 200 may obtain a residual block from the input bitstream, generate a prediction block, and then add the residual block and the prediction block to generate a reconstructed block, that is, a reconstruction block.
  • the entropy decoder 210 may entropy decode the input bitstream according to a probability distribution to generate symbols including symbols in the form of quantized coefficients.
  • the entropy decoding method is similar to the entropy coding method described above.
  • the entropy decoding method When the entropy decoding method is applied, a small number of bits are allocated to a symbol having a high probability of occurrence and a large number of bits are allocated to a symbol having a low probability of occurrence, whereby the size of the bit string for each symbol is increased. Can be reduced. Therefore, the compression performance of image decoding can be improved through an entropy decoding method.
  • the quantized coefficient is inversely quantized by the inverse quantizer 220 and inversely transformed by the inverse transformer 230, and as a result of the inverse quantization / inverse transformation of the quantized coefficient, a residual block may be generated.
  • the intra predictor 240 may generate a prediction block by performing spatial prediction using pixel values of blocks that are already encoded around the current block.
  • the motion compensator 250 may generate a predictive block by performing motion compensation using the reference image stored in the motion vector and the reference picture buffer 270.
  • the residual block and the prediction block may be added through the adder 255, and the added block may pass through the filter unit 260.
  • the filter unit 260 may apply at least one or more of the deblocking filter, SAO, and ALF to the reconstructed block or the reconstructed picture.
  • the filter unit 260 may output a reconstructed image, that is, a reconstructed image.
  • the reconstructed picture may be stored in the reference picture buffer 270 and used for inter prediction.
  • a block means a unit of image encoding and decoding.
  • an encoding or decoding unit refers to a divided unit when an image is divided and encoded or decoded, and thus, a coding unit (CU), a prediction unit (PU), and a transformation unit (TU). It may be called a Transform Unit, a transform block, or the like.
  • One block may be further divided into smaller sub-blocks.
  • Intra prediction may be performed according to an intra prediction mode of an encoding / decoding target block.
  • the number of intra prediction modes that an encoding / decoding target block may have may be a fixed value, and the fixed value may be 4, 18, 35, and the like.
  • Table 1 below shows an example of the number of intra prediction modes that an encoding / decoding object block can have according to the size of the encoding / decoding object block.
  • the encoder may encode and transmit an intra prediction mode to the decoder.
  • the encoder may use a method of predicting the intra prediction mode in order to reduce the amount of transmitted bits and to increase encoding efficiency.
  • the encoder may encode the prediction mode of the encoding target block by using the prediction mode of the neighboring blocks adjacent to the encoding target block.
  • prediction modes used as prediction values for the intra prediction mode of the encoding target block are referred to as Most Probable Modes (MPMs).
  • MPMs Most Probable Modes
  • the neighboring block means a block adjacent to the current block.
  • FIG. 3 is a conceptual diagram schematically illustrating an embodiment of a neighboring block used to derive an MPM candidate mode.
  • an encoder and / or a decoder may use at least one of prediction modes of A, B, D, and E blocks to derive an MPM candidate mode used for intra prediction mode encoding of a block to be encoded.
  • the encoder and / or decoder uses the prediction mode of the left neighboring block A and the prediction mode of the upper neighboring block B to derive the MPM candidate mode.
  • the encoder and / or decoder may select the prediction mode of block A and the prediction mode of block B as MPM candidate modes to encode the intra prediction mode of the encoding target block.
  • FIG. 4 is a flowchart schematically illustrating an intra prediction mode encoding method according to an embodiment of the present invention.
  • the encoder may derive the MPM candidate mode from neighboring blocks adjacent to the encoding target block (S410).
  • the encoder may select the prediction mode of the neighboring block as the MPM candidate mode as it is, or may change the prediction mode of the neighboring block and then select the changed final prediction mode as the MPM candidate mode.
  • a specific embodiment of the MPM candidate mode derivation method using the prediction mode of the neighboring block will be described later with reference to FIG.
  • the encoder may generate an MPM list using the derived MPM candidate mode (S420). In this case, the encoder may allocate MPM candidate modes derived from neighboring blocks to the MPM list.
  • the number of MPM candidate modes included in the MPM list may be one or two.
  • the number of MPM candidate modes included in the MPM list may be one, and the prediction mode of the left neighboring block is different from that of the upper neighboring block.
  • the number of MPM candidate modes included in the MPM list may be two.
  • the encoder may always use a fixed number of MPM candidate modes to encode the intra prediction mode.
  • the number of MPM candidate modes included in the MPM list may be equal to the predetermined fixed number.
  • the predetermined fixed number may be one or more, for example, may be 2, 3 or 4, and the like.
  • the number of MPM candidate modes included in the MPM list may be fixed to two.
  • two MPM candidate modes may be assigned to list [0] and list [1], respectively.
  • a mode having a small mode value among MPM candidate modes may be allocated to list [0]
  • a mode having a large mode value among MPM candidate modes may be allocated to list [1].
  • list may indicate an MPM list
  • list [0] may indicate a first entry in the MPM list
  • list [1] may indicate a second entry in the MPM list.
  • the number of MPM candidates derived from neighboring blocks may be smaller than the predetermined fixed number. In this case, an additional MPM candidate mode included in the MPM list may be required.
  • the encoder derives the MPM candidate mode using the prediction mode of the upper neighboring block and the prediction mode of the left neighboring block.
  • the number of MPM candidate modes derived from the neighboring blocks may be one. Since the number of MPM candidate modes is fixed at 2, an additional MPM candidate mode may be needed to obtain the remaining entries included in the MPM list.
  • the additional MPM candidate mode may be selected from intra prediction modes except for the MPM candidate mode derived from the neighboring blocks.
  • the encoder may select a predetermined fixed specific prediction mode as the additional MPM candidate mode. For example, if the number of MPM candidate modes in the MPM list is fixed at 2 and two MPM candidate modes derived from neighboring blocks are the same, the encoder selects the non-directional mode DC mode or planner mode as the additional MPM candidate mode. Can be assigned to the MPM list.
  • the encoder may select the directional prediction mode having the prediction direction most similar to the prediction direction of the MPM candidate mode derived from the neighboring block as the additional MPM candidate mode.
  • the encoder when the MPM candidate mode derived from the neighboring block is a vertical mode, the encoder is a vertical-1 mode which is a directional prediction mode having a prediction direction most similar to the prediction direction of the mode, and Alternatively, the vertical + 1 mode may be selected as an additional MPM candidate mode and assigned to the MPM list.
  • the mode value of the vertical mode may be 1, the mode value of the vertical-1 mode is 22, and the mode value of the vertical + 1 mode is 23.
  • the encoder may select the most frequent prediction mode as the additional MPM candidate mode.
  • the encoder may accumulate the number of occurrences of each prediction mode that the current encoding target block may have.
  • the accumulated number of occurrences may indicate a frequency of occurrence, and the encoder may select a prediction mode having the highest frequency of occurrence as an additional MPM candidate mode and assign it to the MPM list.
  • the encoder may accumulate the number of occurrences of the prediction mode in slice units and / or entropy slice units, respectively. In this case, the degree of accumulation may vary for each slice unit and / or entropy slice unit, and the encoder may adaptively select a prediction mode having a high frequency as an additional MPM candidate mode.
  • the encoder since the encoder can select the additional MPM candidate mode without using a separate table, a separate storage space is not required and the computational complexity can be reduced.
  • the encoder since the encoder may adaptively select an additional MPM candidate mode according to the frequency of occurrence of the intra prediction mode, image compression efficiency may be improved.
  • the encoder may encode the intra prediction mode using the generated MPM list (S430).
  • the encoder may determine whether the same MPM candidate mode as the prediction mode of the encoding target block exists in the MPM list.
  • the encoder may transmit a flag indicating whether the same MPM candidate mode as the prediction mode of the encoding target block exists in the MPM list to the decoder.
  • the flag is referred to as an MPM flag.
  • the MPM flag transmitted to the decoder may be represented as prev_intra_luma_pred_flag. For example, when the same MPM candidate mode as the prediction mode of the encoding target block exists in the MPM list, 1 may be allocated to the MPM flag, and 0 may be allocated otherwise.
  • the encoder sets an index indicating which MPM candidate mode among the MPM candidate modes in the MPM list is the same. Can be sent to the decoder.
  • the index is referred to as an MPM index.
  • the MPM index may be represented as mpm_idx.
  • the encoder may derive a remaining mode using the prediction mode of the current encoding target block and the MPM list.
  • the encoder may encode the generated remaining mode and transmit it to the decoder.
  • the remaining mode may be represented by rem_intra_luma_pred_mode.
  • FIG. 5 is a flowchart schematically illustrating an embodiment of a method of deriving an MPM candidate mode using a prediction mode of a neighboring block for an encoding target block.
  • the encoder may determine whether a prediction mode of a neighboring block is included in a prediction mode that an encoding target block may have (S510).
  • the number of intra prediction modes that the current encoding target block may have may be a predetermined fixed value.
  • the prediction mode of the neighboring block may not be included in the prediction mode that the encoding target block may have.
  • FIG. 6 is a conceptual diagram schematically illustrating an embodiment in which a prediction mode of a neighboring block is not included in a prediction mode that a block to be encoded may have.
  • FIG. 6 it is assumed that the size of the encoding target block C is 4x4, the size of the upper neighboring block B is 8x8, the prediction mode of the encoding target block is 15, and the prediction mode of the upper neighboring block is 23. .
  • the encoding target block may have one of 18 prediction modes (0 to 17). Since the prediction mode value of the upper neighboring block B is 23 and the maximum mode value of the current encoding target block is 17, the prediction mode of the neighboring block may not be included in the prediction mode that the current encoding target block may have. .
  • the encoder may select the prediction mode of the neighboring block as the MPM candidate mode (S520).
  • the encoder may change the prediction mode of the neighboring block to derive the MPM candidate mode (S530). In this case, the encoder may change the prediction mode of the neighboring block to one of the intra prediction modes that the current block may have.
  • the prediction mode that the encoding target block C may have may be 0 to 17. Accordingly, the encoder may change the prediction mode 23 of the upper neighboring block B to one of 0 to 17 to derive the MPM candidate mode.
  • the encoder may change the prediction mode of the neighboring block to the non-directional mode.
  • the non-directional prediction mode may include a DC mode or a planar mode.
  • a process of changing the prediction mode of the neighboring block to the planner mode may be represented as follows.
  • intraPredModeN is greater than or equal to intraPredModeNum
  • intraPredModeN is less than intraPredModeNum
  • intraPredModeN may represent an intra prediction mode of a neighboring block.
  • intraPredModeN when N is A, intraPredModeN may indicate a prediction mode of the left neighboring block, and when N is B, intraPredModeN may indicate a prediction mode of the upper neighboring block.
  • intraPredModeNum may indicate the number of intra prediction modes that an encoding target block may have. For example, the number of intra prediction modes may be set as in the above-described embodiment of Table 1 according to the size of an encoding target block.
  • candIntraPredModeN may indicate the final prediction mode of the changed neighboring block.
  • the encoder may change the prediction mode of the neighboring block to a prediction mode having a mode value of zero. Since the order of the intra prediction modes is usually determined based on the frequency of occurrence, there is a high probability that the frequency of occurrence of the prediction mode having the mode value 0 is higher than that of other prediction modes. Therefore, since the prediction mode of the current encoding target block is also likely to be a prediction mode with a mode value of 0, the encoder can improve encoding efficiency by changing the prediction mode of the neighboring block to a prediction mode with a mode value of 0.
  • the encoder may change the prediction mode of the neighboring block to the prediction mode calculated by a predetermined calculation method when the prediction mode of the neighboring block is not included in the prediction mode that the block to be encoded may have. Can be.
  • the predetermined calculation method may be performed by dividing a prediction mode value of a neighboring block by the number of intra prediction modes that an encoding target block may have and / or a maximum prediction mode value that the encoding target block may have, and then resting the rest It may be a method of obtaining a value. That is, the final prediction mode value of the changed neighboring block is a remaining value obtained by dividing the prediction mode value of the neighboring block by the number of intra prediction modes that the encoding target block can have and / or the maximum prediction mode value that the encoding target block can have. Can be.
  • the process of changing the prediction mode of the neighboring block by using the predetermined calculation method may be represented as follows in an embodiment.
  • intraPredModeN is greater than or equal to intraPredModeNum
  • intraPredModeN is less than intraPredModeNum
  • mod (X, Y) may represent the remainder of X divided by Y.
  • the encoder when the prediction mode of the neighboring block is not included in the prediction mode that the encoding target block can have, the encoder has the highest occurrence frequency among the prediction modes that the encoding target block can have. You can change to the prediction mode.
  • the encoder may accumulate the number of occurrences of each prediction mode that the current encoding target block may have.
  • the accumulated number of occurrences may indicate a frequency of occurrence, and in one embodiment, the frequency of occurrence may be proportional to the accumulated number of occurrences.
  • the encoder may change the prediction mode of the neighboring block to the prediction mode with the highest frequency of occurrence.
  • the encoder may accumulate the number of occurrences of the prediction mode in slice units and / or entropy slice units, respectively. In this case, the degree of accumulation may vary for each slice unit and / or entropy slice unit, and the encoder may adaptively change a prediction mode of a neighboring block to a prediction mode having a high frequency of occurrence.
  • the encoder may select the changed final prediction mode as the MPM candidate mode (S540).
  • the encoder since the encoder can derive the MPM candidate mode without using a separate table, a separate storage space is not required and the computational complexity can be reduced.
  • the encoder since the encoder may adaptively derive the MPM candidate mode according to the frequency of occurrence of the intra prediction mode, the image compression efficiency may be improved.
  • FIG. 7 is a flowchart schematically illustrating an intra prediction mode decoding method according to an embodiment of the present invention.
  • the decoder may parse an MPM flag (S710).
  • the MPM flag is a flag indicating whether or not the same MPM candidate mode as the prediction mode of the decoding target block exists in the MPM list.
  • the MPM flag may be represented as prev_intra_luma_pred_flag. For example, when the same MPM candidate mode as the prediction mode of the decoding target block exists in the MPM list, 1 may be allocated to the MPM flag, and 0 may be allocated otherwise.
  • the decoder may derive the MPM candidate mode from neighboring blocks adjacent to the decoding target block (S720).
  • the decoder may select the prediction mode of the neighboring block as the MPM candidate mode as it is, or may change the prediction mode of the neighboring block and then select the changed final prediction mode as the MPM candidate mode.
  • a specific embodiment of the MPM candidate mode derivation method using the prediction mode of the neighboring block will be described later with reference to FIG.
  • the decoder may generate the MPM list using the derived MPM candidate mode (S730). In this case, the decoder may assign MPM candidate modes derived from neighboring blocks to the MPM list.
  • the number of MPM candidate modes included in the MPM list may be one or two.
  • the number of MPM candidate modes included in the MPM list may be one, and the prediction mode of the left neighboring block is different from that of the upper neighboring block.
  • the number of MPM candidate modes included in the MPM list may be two.
  • the decoder may always use a fixed number of MPM candidate modes to decode the intra prediction mode.
  • the number of MPM candidate modes included in the MPM list may be equal to the predetermined fixed number.
  • the predetermined fixed number may be one or more, for example, may be 2, 3 or 4, and the like.
  • the number of MPM candidate modes included in the MPM list may be fixed to two.
  • two MPM candidate modes may be assigned to list [0] and list [1], respectively.
  • a mode having a small mode value among MPM candidate modes may be allocated to list [0]
  • a mode having a large mode value among MPM candidate modes may be allocated to list [1].
  • list may indicate an MPM list
  • list [0] may indicate a first entry in the MPM list
  • list [1] may indicate a second entry in the MPM list.
  • the number of MPM candidates derived from neighboring blocks may be smaller than the predetermined fixed number. In this case, an additional MPM candidate mode included in the MPM list may be required.
  • the decoder derives the MPM candidate mode using the prediction mode of the upper neighboring block and the prediction mode of the left neighboring block.
  • the number of MPM candidate modes derived from the neighboring blocks may be one. Since the number of MPM candidate modes is fixed at 2, an additional MPM candidate mode may be needed to obtain the remaining entries included in the MPM list.
  • the additional MPM candidate mode may be selected from intra prediction modes except for the MPM candidate mode derived from the neighboring blocks.
  • the decoder may select a predetermined fixed specific prediction mode as the additional MPM candidate mode. For example, if the number of MPM candidate modes in the MPM list is fixed to 2 and two MPM candidate modes derived from neighboring blocks are the same, the decoder selects the non-directional mode DC mode or planner mode as the additional MPM candidate mode. Can be assigned to the MPM list.
  • the decoder may select a directional prediction mode having a prediction direction most similar to that of the MPM candidate mode derived from the neighboring block as the additional MPM candidate mode.
  • the decoder when the MPM candidate mode derived from the neighboring block is a vertical mode, the decoder is a vertical-1 mode, which is a directional prediction mode having a prediction direction most similar to the prediction direction of the mode, and Alternatively, the vertical + 1 mode may be selected as an additional MPM candidate mode and assigned to the MPM list.
  • the mode value of the vertical mode may be 1, the mode value of the vertical-1 mode is 22, and the mode value of the vertical + 1 mode is 23.
  • the decoder may select the most frequent prediction mode as the additional MPM candidate mode.
  • the decoder may accumulate the number of occurrences of each prediction mode that the current decoding target block may have.
  • the accumulated number of occurrences may indicate a frequency of occurrence, and the decoder may select the prediction mode with the highest frequency of occurrence as an additional MPM candidate mode and assign it to the MPM list.
  • the decoder may accumulate the number of occurrences of the prediction mode in slice units and / or entropy slice units, respectively. In this case, the degree of accumulation may vary for each slice unit and / or entropy slice unit, and the decoder may adaptively select a prediction mode having a high frequency as an additional MPM candidate mode.
  • the decoder can select an additional MPM candidate mode without using a separate table, a separate storage space is not required and the computational complexity can be reduced. Also, since the decoder can adaptively select an additional MPM candidate mode according to the frequency of occurrence of the intra prediction mode, image compression efficiency can be improved.
  • the decoder may derive an intra prediction mode (S740).
  • the decoder may determine whether the same MPM candidate mode as the prediction mode of the decoding target block exists in the MPM list through the parsed MPM flag.
  • the MPM flag may be represented as prev_intra_luma_pred_flag.
  • the decoder may parse the remaining mode from the bit stream received from the encoder.
  • the remaining mode may be represented by rem_intra_luma_pred_mode.
  • the decoder may derive the intra prediction mode of the current decoding object block by using the remaining mode and the MPM list.
  • the decoder may parse the MPM index from the bit stream received from the encoder.
  • the MPM index is an index indicating whether the prediction mode of the decoding object block is the same as any of the MPM candidate modes in the MPM candidate mode.
  • the MPM index may be represented as mpm_idx.
  • the decoder may derive the intra prediction mode of the current decoding object block by using the MPM index and the MPM list.
  • the MPM index indicates whether the prediction mode of the decoding target block matches the MPM candidate mode of list [0] or the MPM candidate mode of list [1]. It can indicate whether or not.
  • the decoder may determine the MPM candidate mode indicated by the MPM index as the intra prediction mode of the current decoding object block.
  • FIG. 8 is a flowchart schematically illustrating an embodiment of a method of deriving an MPM candidate mode using a prediction mode of a neighboring block for a decoding target block.
  • the decoder may determine whether a prediction mode of a neighboring block is included in a prediction mode that a decoding target block may have (S810).
  • the number of intra prediction modes that the current decoding target block may have may be a predetermined fixed value.
  • the prediction mode of the neighboring block may not be included in the prediction mode that the decoding target block may have. Since the embodiment when the prediction mode of the neighboring block is not included in the prediction mode that the decoding target block may have is similar to that of the embodiment of FIG. 6 described above, it will be omitted.
  • the decoder may select the prediction mode of the neighboring block as the MPM candidate mode as it is (S820).
  • the decoder may change the prediction mode of the neighboring block to derive the MPM candidate mode (S830). In this case, the decoder may change the prediction mode of the neighboring block to one of the intra prediction modes that the current block may have.
  • the prediction modes that the decoding target block may have may be 0 to 17.
  • the decoder may change the prediction mode of the upper neighboring block to one of 0 to 17 prediction modes.
  • the decoder may change the prediction mode of the neighboring block to the non-directional mode.
  • the non-directional prediction mode may include a DC mode or a planar mode.
  • a process of changing the prediction mode of the neighboring block to the planner mode may be represented as follows.
  • intraPredModeN is greater than or equal to intraPredModeNum
  • intraPredModeN is less than intraPredModeNum
  • intraPredModeN may represent an intra prediction mode of a neighboring block.
  • intraPredModeN when N is A, intraPredModeN may indicate a prediction mode of the left neighboring block, and when N is B, intraPredModeN may indicate a prediction mode of the upper neighboring block.
  • intraPredModeNum may indicate the number of intra prediction modes that a decoding target block may have. For example, the number of intra prediction modes may be set as in the above-described embodiment of Table 1 according to the size of the decoding target block.
  • candIntraPredModeN may indicate the final prediction mode of the changed neighboring block.
  • the decoder may change the prediction mode of the neighboring block to a prediction mode having a mode value of zero. Since the order of the intra prediction modes is usually determined based on the frequency of occurrence, there is a high probability that the frequency of occurrence of the prediction mode having the mode value 0 is higher than that of other prediction modes. Therefore, since the prediction mode of the current decoding target block is also likely to be a prediction mode with a mode value of 0, the decoder can improve coding efficiency by changing the prediction mode of the neighboring block to a prediction mode with a mode value of 0.
  • the decoder when the prediction mode of the neighboring block is not included in the prediction mode that the decoding target block may have, the decoder changes the prediction mode of the neighboring block to the prediction mode calculated by a predetermined calculation method. Can be.
  • the predetermined calculation method may be performed by dividing the prediction mode value of the neighboring block by the number of intra prediction modes that the decoding target block may have, and / or the maximum prediction mode value that the decoding target block may have, and then resting the rest. It may be a method of obtaining a value. That is, the final prediction mode value of the changed neighboring block is the remaining value obtained by dividing the prediction mode value of the neighboring block by the number of intra prediction modes that the decoding target block can have and / or the maximum prediction mode value that the decoding target block can have. Can be.
  • the process of changing the prediction mode of the neighboring block by using the predetermined calculation method may be represented as follows in an embodiment.
  • intraPredModeN is greater than or equal to intraPredModeNum
  • intraPredModeN is less than intraPredModeNum
  • mod (X, Y) may represent the remainder of X divided by Y.
  • the decoder when the prediction mode of the neighboring block is not included in the prediction mode that the decoding target block can have, the decoder has the highest occurrence frequency among the prediction modes that the decoding target block can have. You can change to the prediction mode.
  • the decoder may accumulate the number of occurrences of each prediction mode that the current decoding target block may have.
  • the accumulated number of occurrences may indicate a frequency of occurrence, and in one embodiment, the frequency of occurrence may be proportional to the accumulated number of occurrences.
  • the decoder may change the prediction mode of the neighboring block to the prediction mode with the highest frequency of occurrence.
  • the decoder may accumulate the number of occurrences of the prediction mode in slice units and / or entropy slice units, respectively. In this case, the degree of accumulation may vary for each slice unit and / or entropy slice unit, and the decoder may adaptively change a prediction mode of a neighboring block to a prediction mode having a high frequency of occurrence.
  • the decoder may select the changed final prediction mode as the MPM candidate mode (S840).
  • the decoder can derive the MPM candidate mode without using a separate table, a separate storage space is not required and the computational complexity can be reduced. Also, since the decoder can adaptively derive the MPM candidate mode according to the frequency of occurrence of the intra prediction mode, image compression efficiency can be improved.
  • the methods are described based on a flowchart as a series of steps or blocks, but the present invention is not limited to the order of steps, and any steps may occur in a different order than or simultaneously with other steps as described above. Can be. Also, one of ordinary skill in the art would appreciate that the steps shown in the flowcharts are not exclusive, that other steps may be included, or that one or more steps in the flowcharts may be deleted without affecting the scope of the present invention. I can understand.

Abstract

본 발명에 따른 영상 복호화 방법은 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계, 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계 및 생성된 MPM 리스트를 이용하여 복호화 대상 블록의 인트라 예측 모드를 도출하는 단계를 포함한다. 본 발명에 의하면, 영상 압축 효율이 향상될 수 있다.

Description

인트라 예측 모드 부호화/복호화 방법 및 장치
본 발명은 영상 처리에 관한 것으로서, 보다 상세하게는 인트라 예측 모드 부호화/복호화 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 해상도를 가지는 방송 서비스가 국내뿐만 아니라 세계적으로 확대되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있으며 이에 따라 많은 기관들이 차세대 영상기기에 대한 개발에 박차를 가하고 있다. 또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상에 대한 압축기술이 요구되고 있다.
영상 압축을 위해, 시간적으로 이전 및/또는 이후의 픽쳐로부터 현재 픽쳐에 포함된 픽셀값을 예측하는 인터(inter) 예측 기술, 현재 픽쳐 내의 픽셀 정보를 이용하여 현재 픽쳐에 포함된 픽셀값을 예측하는 인트라(intra) 예측 기술, 출현 빈도가 높은 심볼(symbol)에 짧은 부호를 할당하고 출현 빈도가 낮은 심볼에 긴 부호를 할당하는 엔트로피 부호화 기술 등이 사용될 수 있다.
본 발명의 기술적 과제는 영상 압축 효율을 향상시킬 수 있는 영상 부호화 방법 및 장치를 제공함에 있다.
본 발명의 다른 기술적 과제는 영상 압축 효율을 향상시킬 수 있는 영상 복호화 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 영상 압축 효율을 향상시킬 수 있는 인트라 예측 모드 부호화 방법 및 장치를 제공함에 있다.
본 발명의 또 다른 기술적 과제는 영상 압축 효율을 향상시킬 수 있는 인트라 예측 모드 복호화 방법 및 장치를 제공함에 있다.
본 발명의 일 실시 형태는 영상 복호화 방법이다. 상기 방법은 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계 및 상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하는 단계를 포함하고, 상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수이다.
상기 주변 블록의 예측 모드가 상기 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 상기 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계는, 상기 주변 블록의 예측 모드를 최종 예측 모드로 변경하는 단계 및 상기 최종 예측 모드를 상기 MPM 후보 모드로 선택하는 단계를 포함할 수 있고, 상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 하나일 수 있다.
상기 최종 예측 모드는 비방향성 모드일 수 있다.
상기 최종 예측 모드는 모드값이 0인 예측 모드일 수 있다.
상기 최종 예측 모드는 소정의 고정된 계산 방법에 의해 도출되는 예측 모드일 수 있다.
상기 소정의 고정된 계산 방법에 의해 도출되는 예측 모드의 모드값은 상기 주변 블록에 대한 예측 모드의 모드값을 상기 복호화 대상 블록이 가질 수 있는 예측 모드의 개수로 나눈 나머지 값일 수 있다.
상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 발생 빈도가 가장 높은 예측 모드일 수 있고, 상기 발생 빈도는 현재 복호화 과정에서 누적된 예측 모드의 발생 횟수에 비례할 수 있다.
상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계는, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드를 이용하여 추가 MPM 후보 모드를 획득하는 단계 및 상기 획득한 추가 MPM 후보 모드를 상기 MPM 리스트에 할당하는 단계를 포함할 수 있다.
상기 추가 MPM 후보 모드는 비방향성 모드일 수 있다.
상기 추가 MPM 후보 모드는 상기 주변 블록으로부터 도출된 MPM 후보 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드일 수 있다.
상기 추가 MPM 후보 모드는 상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드 중 발생 빈도가 가장 높은 예측 모드일 수 있고, 상기 발생 빈도는 현재 복호화 과정에서 누적된 인트라 예측 모드의 발생 횟수에 비례할 수 있다.
본 발명의 다른 실시 형태는 영상 복호화 장치이다. 상기 장치는 부호화기로부터 전송된 MPM 플래그를 엔트로피 복호화하는 엔트로피 복호화부 및 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하고, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하고, 상기 엔트로피 복호화된 MPM 플래그 및 상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하고, 상기 도출된 인트라 예측 모드를 이용하여 상기 복호화 대상 블록에 대한 인트라 예측을 수행하는 인트라 예측부를 포함하고, 상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수이다.
본 발명의 또 다른 실시 형태는 인트라 예측 모드 복호화 방법이다. 상기 방법은 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계 및 상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하는 단계를 포함하고, 상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수이다.
상기 주변 블록의 예측 모드가 상기 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 상기 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계는, 상기 주변 블록의 예측 모드를 최종 예측 모드로 변경하는 단계 및 상기 최종 예측 모드를 상기 MPM 후보 모드로 선택하는 단계를 포함할 수 있고, 상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 하나일 수 있다.
상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계는, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드를 이용하여 추가 MPM 후보 모드를 획득하는 단계 및 상기 획득한 추가 MPM 후보 모드를 상기 MPM 리스트에 할당하는 단계를 포함할 수 있다.
본 발명에 따른 영상 부호화 방법에 의하면, 영상 압축 효율이 향상될 수 있다.
본 발명에 따른 영상 복호화 방법에 의하면, 영상 압축 효율이 향상될 수 있다.
본 발명에 따른 인트라 예측 모드 부호화 방법에 의하면, 영상 압축 효율이 향상될 수 있다.
본 발명에 따른 인트라 예측 모드 복호화 방법에 의하면, 영상 압축 효율이 향상될 수 있다.
도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 MPM 후보 모드를 도출하기 위해 사용되는 주변 블록의 일 실시예를 개략적으로 나타내는 개념도이다.
도 4는 본 발명의 일 실시예에 따른 인트라 예측 모드 부호화 방법을 개략적으로 나타내는 흐름도이다.
도 5는 부호화 대상 블록에 대한 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 6은 주변 블록의 예측 모드가, 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우의 실시예를 개략적으로 나타내는 개념도이다.
도 7은 본 발명의 일 실시예에 따른 인트라 예측 모드 복호화 방법을 개략적으로 나타내는 흐름도이다.
도 8은 복호화 대상 블록에 대한 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.
어떤 구성 요소가 다른 구성 요소에 “연결되어” 있다거나 “접속되어” 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 아울러, 본 발명에서 특정 구성을 “포함”한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.
또한 본 발명의 실시예에 나타나는 구성부들은 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시되는 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수 개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.
도 1은 본 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 1을 참조하면, 상기 영상 부호화 장치(100)는 움직임 예측부(111), 움직임 보상부(112), 인트라 예측부(120), 스위치(115), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조 픽쳐 버퍼(190)를 포함한다.
영상 부호화 장치(100)는 입력 영상에 대해 인트라(intra) 모드 또는 인터(inter) 모드로 부호화를 수행하고 비트스트림을 출력할 수 있다. 인트라 예측은 화면 내 예측, 인터 예측은 화면 간 예측을 의미한다. 인트라 모드인 경우 스위치(115)가 인트라로 전환되고, 인터 모드인 경우 스위치(115)가 인터로 전환될 수 있다. 영상 부호화 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성한 후, 입력 블록과 예측 블록의 차분(residual)을 부호화할 수 있다.
인트라 모드인 경우, 인트라 예측부(120)는 현재 블록 주변의 이미 부호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다.
인터 모드인 경우, 움직임 예측부(111)는, 움직임 예측 과정에서 참조 픽쳐 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부(112)는 움직임 벡터를 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다.
감산기(125)는 입력 블록과 생성된 예측 블록의 차분에 의해 잔차 블록(residual block)을 생성할 수 있다. 변환부(130)는 잔차 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력할 수 있다. 그리고 양자화부(140)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력할 수 있다.
엔트로피 부호화부(150)는, 양자화부(140)에서 산출된 값들 또는 부호화 과정에서 산출된 부호화 파라미터 값 등을 기초로 엔트로피 부호화를 수행하여 비트스트림(bit stream)을 출력할 수 있다.
엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼(symbol)에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. 엔트로피 부호화부(150)는 엔트로피 부호화를 위해 지수 골룸(exponential golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 부호화 방법을 사용할 수 있다.
도 1의 실시예에 따른 영상 부호화 장치는 인터 예측 부호화, 즉 화면 간 예측 부호화를 수행하므로, 현재 부호화된 영상은 참조 영상으로 사용되기 위해 복호화되어 저장될 필요가 있다. 따라서 양자화된 계수는 역양자화부(160)에서 역양자화되고 역변환부(170)에서 역변환된다. 역양자화, 역변환된 계수는 가산기(175)를 통해 예측 블록과 더해지고 복원 블록이 생성된다.
복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)는 적응적 인루프(in-loop) 필터로 불릴 수도 있다. 디블록킹 필터는 블록 간의 경계에 생긴 블록 왜곡을 제거할 수 있다. SAO는 코딩 에러를 보상하기 위해 픽셀값에 적정 오프셋(offset) 값을 더해줄 수 있다. ALF는 복원된 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있으며, 고효율이 적용되는 경우에만 수행될 수도 있다. 필터부(180)를 거친 복원 블록은 참조 픽쳐 버퍼(190)에 저장될 수 있다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2를 참조하면, 상기 영상 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 인트라 예측부(240), 움직임 보상부(250), 가산기(255), 필터부(260) 및 참조 픽쳐 버퍼(270)를 포함한다.
영상 복호화 장치(200)는 부호화기에서 출력된 비트스트림을 입력 받아 인트라 모드 또는 인터 모드로 복호화를 수행하고 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 인트라 모드인 경우 스위치가 인트라로 전환되고, 인터 모드인 경우 스위치가 인터로 전환될 수 있다. 영상 복호화 장치(200)는 입력 받은 비트스트림으로부터 잔차 블록(residual block)을 얻고 예측 블록을 생성한 후 잔차 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성할 수 있다.
엔트로피 복호화부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여, 양자화된 계수(quantized coefficient) 형태의 심볼을 포함한 심볼들을 생성할 수 있다. 엔트로피 복호화 방법은 상술한 엔트로피 부호화 방법과 유사하다.
엔트로피 복호화 방법이 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 각 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 복호화 방법을 통해서 영상 복호화의 압축 성능이 높아질 수 있다.
양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 잔차 블록(residual block)이 생성될 수 있다.
인트라 모드인 경우, 인트라 예측부(240)는 현재 블록 주변의 이미 부호화된 블록의 픽셀값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다. 인터 모드인 경우, 움직임 보상부(250)는 움직임 벡터 및 참조 픽쳐 버퍼(270)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다.
잔차 블록과 예측 블록은 가산기(255)를 통해 더해지고, 더해진 블록은 필터부(260)를 거칠 수 있다. 필터부(260)는 디블록킹 필터, SAO, ALF 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(260)는 재구성된 영상, 즉 복원 영상을 출력할 수 있다. 복원 영상은 참조 픽쳐 버퍼(270)에 저장되어 인터 예측에 사용될 수 있다.
이하, 블록은 영상 부호화 및 복호화의 단위를 의미한다. 영상 부호화 및 복호화 시 부호화 혹은 복호화 단위는, 영상을 분할하여 부호화 혹은 복호화 할 때 그 분할된 단위를 의미하므로, 부호화 유닛 (CU: Coding Unit), 예측 유닛 (PU: Prediction Unit), 변환 유닛(TU: Transform Unit), 변환 블록(transform block) 등으로 불릴 수 있다. 하나의 블록은 크기가 더 작은 하위 블록으로 더 분할될 수 있다.

인트라 예측은 부호화/복호화 대상 블록의 인트라 예측 모드에 따라 수행될 수 있다. 부호화/복호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수는 고정된 값일 수 있으며, 상기 고정된 값은 예를 들어 4개, 18개, 35개 등일 수 있다. 다음 표 1은 부호화/복호화 대상 블록의 크기에 따라 부호화/복호화 대상 블록이 가질 수 있는 인트라 예측 모드 개수의 실시예를 나타낸다.
[표 1]
Figure PCTKR2012007255-appb-I000001

부호화기는 인트라 예측 모드를 부호화하여 복호화기로 전송할 수 있다. 부호화기는 부호화 대상 블록에 대한 인트라 예측 모드를 부호화하여 전송할 때, 전송되는 비트량을 감소시키고 부호화 효율을 높이기 위해, 인트라 예측 모드를 예측하는 방법을 사용할 수 있다.
부호화 대상 블록의 예측 모드는 인접한 주변(neighboring) 블록의 예측 모드와 동일할 확률이 높으므로, 부호화기는 부호화 대상 블록에 인접한 주변 블록들의 예측 모드를 이용하여 부호화 대상 블록의 예측 모드를 부호화할 수 있다. 이하, 부호화 대상 블록의 인트라 예측 모드에 대한 예측값으로 사용되는 예측 모드들은 MPM(Most Probable Mode)이라 한다. 이하 주변 블록은 현재 블록에 인접한 블록을 의미한다.

도 3은 MPM 후보 모드를 도출하기 위해 사용되는 주변 블록의 일 실시예를 개략적으로 나타내는 개념도이다.
도 3을 참조하면, 부호화기 및/또는 복호화기는 부호화 대상 블록 C의 인트라 예측 모드 부호화에 사용되는 MPM 후보 모드를 도출하기 위해, A, B, D, E 블록의 예측 모드들 중 적어도 하나 이상을 이용할 수 있다. 이하, 서술되는 실시예들에서 부호화기 및/또는 복호화기는 MPM 후보 모드를 도출하기 위해 좌측 주변 블록(A)의 예측 모드 및 상단 주변 블록(B)의 예측 모드를 사용하는 것으로 가정한다. 예를 들어, 부호화기 및/또는 복호화기는 부호화 대상 블록의 인트라 예측 모드를 부호화하기 위해 블록 A의 예측 모드 및 블록 B의 예측 모드를 MPM 후보 모드로 선택할 수 있다.

도 4는 본 발명의 일 실시예에 따른 인트라 예측 모드 부호화 방법을 개략적으로 나타내는 흐름도이다.
도 4를 참조하면, 부호화기는 부호화 대상 블록에 인접한 주변 블록들로부터 MPM 후보 모드를 도출할 수 있다(S410). 부호화기는 주변 블록의 예측 모드를 그대로 MPM 후보 모드로 선택할 수 있고, 주변 블록의 예측 모드를 변경한 후 변경된 최종 예측 모드를 MPM 후보 모드로 선택할 수도 있다. 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 구체적인 실시예는 도 5에서 후술한다.
부호화기는 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성할 수 있다(S420). 이 때, 부호화기는 주변 블록들로부터 도출된 MPM 후보 모드들을 MPM 리스트에 할당할 수 있다.
예를 들어, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 그대로 MPM 후보 모드로 선택되는 경우, MPM 리스트에 포함되는 MPM 후보 모드의 개수는 1개 또는 2개일 수 있다. 이 때, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 동일한 경우 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 1개일 수 있고, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 다른 경우 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 2개일 수 있다.
부호화기는 인트라 예측 모드를 부호화하기 위해 항상 소정의 고정된 개수의 MPM 후보 모드들을 이용할 수도 있다. 이 때, MPM 리스트에 포함되는 MPM 후보 모드들의 개수는 상기 소정의 고정된 개수와 동일할 수 있다. 상기 소정의 고정된 개수는 1 이상일 수 있고, 예를 들어 2, 3 또는 4 등일 수 있다.
일 실시예로, 좌측 주변 블록의 예측 모드 및 상단 주변 블록의 예측 모드를 이용하여 MPM 후보 모드가 도출되는 경우, MPM 리스트에 포함되는 MPM 후보 모드의 개수는 2로 고정될 수 있다. 예를 들어, 두 개의 MPM 후보 모드들은 각각 list[0] 및 list[1]에 할당될 수 있다. 이 때, 하나의 예로서 MPM 후보 모드들 중 모드값이 작은 모드는 list[0]에 할당되고, MPM 후보 모드들 중 모드값이 큰 모드는 list[1]에 할당될 수 있다. 여기서, list는 MPM 리스트를 나타내고, list[0]는 MPM 리스트 내의 첫 번째 엔트리(entry), list[1]은 MPM 리스트 내의 두 번째 엔트리를 나타낼 수 있다.
소정의 고정된 개수의 MPM 후보 모드가 인트라 예측에 사용되는 경우, 주변 블록들로부터 도출된 MPM 후보의 개수가 상기 소정의 고정된 개수보다 작을 수 있다. 이 때에는 MPM 리스트에 포함되는 추가 MPM 후보 모드가 필요할 수 있다.
예를 들어, MPM 리스트 내 MPM 후보 모드의 개수는 2로 고정되고, 부호화기는 상단 주변 블록의 예측 모드와 좌측 주변 블록의 예측 모드를 이용하여 MPM 후보 모드를 도출한다고 가정한다. 좌측 주변 블록의 예측 모드로부터 도출되는 MPM 후보 모드와 상단 주변 블록의 예측 모드로부터 도출되는 MPM 후보 모드가 동일한 경우에는, 상기 주변 블록들로부터 도출되는 MPM 후보 모드의 개수가 1개일 수 있다. MPM 후보 모드의 개수는 2로 고정되므로, MPM 리스트 내에 포함되는 나머지 엔트리를 구하기 위해, 추가 MPM 후보 모드가 필요할 수 있다.
추가 MPM 후보 모드는 주변 블록들로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드들 중에서 선택될 수 있다.
추가 MPM 후보 모드 도출 방법의 일 실시예로, 부호화기는 소정의 고정된 특정 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다. 예를 들어, MPM 리스트 내 MPM 후보 모드의 개수가 2로 고정되고 주변 블록들로부터 도출된 두 개의 MPM 후보 모드가 동일한 경우, 부호화기는 비방향성 모드인 DC 모드 또는 플래너 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다.
추가 MPM 후보 모드 도출 방법의 다른 실시예로, 부호화기는 상기 주변 블록으로부터 도출된 MPM 후보 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
예를 들어, 상기 주변 블록으로부터 도출된 MPM 후보 모드가 수직(vertical) 모드인 경우, 부호화기는 상기 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드인 수직-1(vertical-1) 모드 및/또는 수직+1(vertical+1) 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다. 이 때, 일 실시예로 수직 모드의 모드값은 1, 수직-1 모드의 모드값은 22, 수직+1 모드의 모드값은 23일 수 있다.
추가 MPM 후보 모드 도출 방법의 또 다른 실시예로, 부호화기는 가장 발생 빈도가 높은 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
예를 들어, 부호화 과정에서 부호화기는 현재 부호화 대상 블록이 가질 수 있는 예측 모드들 각각의 발생 횟수를 누적할 수 있다. 누적된 발생 횟수는 발생 빈도를 나타낼 수 있으며, 부호화기는 상기 발생 빈도가 가장 높은 예측 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다.
부호화기는 슬라이스 단위 및/또는 엔트로피 슬라이스 단위로 각각 예측 모드의 발생 횟수를 누적할 수도 있다. 이 때, 슬라이스 단위 및/또는 엔트로피 슬라이스 단위마다 누적된 정도가 달라질 수 있으며, 부호화기는 적응적으로 발생 빈도가 높은 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
상술된 방법에 의하면, 부호화기는 별도의 테이블을 이용하지 않고 추가 MPM 후보 모드를 선택할 수 있으므로, 별도의 저장 공간이 요구되지 않고 연산 복잡도가 감소될 수 있다. 또한 부호화기는 인트라 예측 모드의 발생 빈도에 따라 적응적으로 추가 MPM 후보 모드를 선택할 수 있으므로, 영상 압축 효율이 향상될 수 있다.
다시 도 4를 참조하면, 부호화기는 생성된 MPM 리스트를 이용하여 인트라 예측 모드를 부호화할 수 있다(S430).
부호화기는 MPM 리스트 내에 부호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는지 여부를 판단할 수 있다. 부호화기는 MPM 리스트 내에 부호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는지 여부를 지시하는 플래그를 복호화기로 전송할 수 있다. 이하, 상기 플래그는 MPM 플래그라 한다.
일 실시예로, 복호화기로 전송되는 MPM 플래그는 prev_intra_luma_pred_flag로 나타내어질 수 있다. 예를 들어, MPM 리스트 내에 부호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는 경우 MPM 플래그에 1이 할당될 수 있고, 그렇지 않은 경우 0이 할당될 수 있다.
MPM 리스트 내에 부호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는 경우, 부호화기는 부호화 대상 블록의 예측 모드가 MPM 리스트 내의 MPM 후보 모드들 중 어떤 MPM 후보 모드와 동일한지를 지시하는 인덱스(index)를 복호화기로 전송할 수 있다. 이하, 상기 인덱스는 MPM 인덱스라 한다. 일 실시예로, MPM 인덱스는 mpm_idx로 나타내어질 수 있다.
MPM 리스트 내에 부호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하지 않는 경우, 부호화기는 현재 부호화 대상 블록의 예측 모드 및 MPM 리스트를 이용하여 리메이닝 모드(remaining mode)를 도출할 수 있다. 부호화기는 생성된 리메이닝 모드를 부호화하여 복호화기로 전송할 수 있다. 일 실시예로 상기 리메이닝 모드는 rem_intra_luma_pred_mode로 나타내어질 수 있다.

도 5는 부호화 대상 블록에 대한 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 5를 참조하면, 부호화기는 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되는지 여부를 판단할 수 있다(S510).
표 1의 실시예에서 상술한 바와 같이 현재 부호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수는 소정의 고정된 값일 수 있다. 이 때, 주변 블록의 예측 모드는 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않을 수 있다.
도 6은 주변 블록의 예측 모드가, 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우의 실시예를 개략적으로 나타내는 개념도이다. 도 6의 실시예에서, 부호화 대상 블록(C)의 크기는 4x4, 상단 주변 블록(B)의 크기는 8x8이고, 부호화 대상 블록의 예측 모드는 15, 상단 주변 블록의 예측 모드는 23이라 가정한다.
부호화 대상 블록의 크기는 4x4이므로, 표 1의 실시예를 참조하면 부호화 대상 블록은 18개의 예측 모드(0 내지 17) 중 하나를 가질 수 있다. 상단 주변 블록(B)의 예측 모드값은 23이고 현재 부호화 대상 블록이 가질 수 있는 최대 모드값은 17이므로, 주변 블록의 예측 모드는 현재 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않을 수 있다.

다시 도 5를 참조하면, 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되는 경우, 부호화기는 주변 블록의 예측 모드를 그대로 MPM 후보 모드로 선택할 수 있다(S520).

주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 부호화기는 MPM 후보 모드 도출을 위해 주변 블록의 예측 모드를 변경할 수 있다(S530). 이 때, 부호화기는 주변 블록의 예측 모드를 현재 블록이 가질 수 있는 인트라 예측 모드들 중 하나의 예측 모드로 변경할 수 있다.
예를 들어, 상술한 도 6의 실시예에서, 부호화 대상 블록(C)이 가질 수 있는 예측 모드는 0 내지 17일 수 있다. 따라서 부호화기는, MPM 후보 모드 도출을 위해, 상단 주변 블록(B)의 예측 모드(23)를 0 내지 17 중 하나의 예측 모드로 변경할 수 있다.
주변 블록의 예측 모드를 변경하는 방법에는 다양한 방법들이 있을 수 있다. 이하, 주변 블록에 대한 예측 모드의 변경 방법의 실시예들이 서술된다.

일 실시예로 부호화기는, 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 비방향성 모드로 변경할 수 있다. 비방향성 예측 모드에는 DC 모드 또는 플래너(planar) 모드 등이 있을 수 있다. 예를 들어, 주변 블록의 예측 모드가 플래너 모드로 변경되는 과정은 다음과 같이 나타내어질 수 있다.
intraPredModeN이 intraPredModeNum보다 크거나 같으면,
candIntraPredModeN = Intra_Planar
intraPredModeN이 intraPredModeNum보다 작으면,
candIntraPredModeN = intraPredModeN

여기서, intraPredModeN은 주변 블록의 인트라 예측 모드를 나타낼 수 있다. 예를 들어 상술한 도 3의 실시예를 참조하면, N이 A일 때 intraPredModeN은 좌측 주변 블록의 예측 모드를 나타낼 수 있고, N이 B일 때 intraPredModeN은 상단 주변 블록의 예측 모드를 나타낼 수 있다. intraPredModeNum은 부호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수를 나타낼 수 있다. 예를 들어 인트라 예측 모드의 개수는, 부호화 대상 블록의 크기에 따라, 상술한 표 1의 실시예에서와 같이 설정될 수 있다. candIntraPredModeN은 변경된 주변 블록의 최종 예측 모드를 나타낼 수 있다.

다른 실시예로 부호화기는, 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 모드값이 0인 예측 모드로 변경할 수 있다. 인트라 예측 모드의 순서는 통상적으로 발생 빈도에 기초하여 정해지므로, 모드값 0을 갖는 예측 모드의 발생 빈도가 다른 예측 모드의 발생 빈도에 비해 높을 확률이 크다. 따라서, 현재 부호화 대상 블록의 예측 모드도 모드값이 0인 예측 모드일 확률이 높으므로, 부호화기는 주변 블록의 예측 모드를 모드값이 0인 예측 모드로 변경함으로써 부호화 효율을 향상시킬 수 있다.

또 다른 실시예로 부호화기는, 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 소정의(predetermined) 계산 방법에 의해 계산된 예측 모드로 변경할 수 있다.
예를 들어, 상기 소정의 계산 방법은, 주변 블록의 예측 모드값을 부호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수 및/또는 부호화 대상 블록이 가질 수 있는 최대 예측 모드값으로 나눈 후, 그 나머지 값을 구하는 방법일 수 있다. 즉, 변경된 주변 블록의 최종 예측 모드값은, 주변 블록의 예측 모드값이 부호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수 및/또는 부호화 대상 블록이 가질 수 있는 최대 예측 모드값으로 나누어진 나머지 값일 수 있다. 상기 소정의 계산 방법을 이용하여 주변 블록의 예측 모드를 변경하는 과정은 일 실시예로 다음과 같이 나타내어질 수 있다.
intraPredModeN이 intraPredModeNum보다 크거나 같으면,
>> intraPredModeNum이 4이면,
candIntraPredModeN = mod(intraPredModeN, 4)
>> intraPredModeNum이 4가 아니면,
candIntraPredModeN = mod(intraPredModeN, 18)

intraPredModeN이 intraPredModeNum보다 작으면,
candIntraPredModeN = intraPredModeN

여기서, mod(X,Y)는 X를 Y로 나눈 나머지를 나타낼 수 있다.

또 다른 실시예로 부호화기는, 주변 블록의 예측 모드가 부호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 부호화 대상 블록이 가질 수 있는 예측 모드 중 가장 발생 빈도가 높은 예측 모드로 변경할 수 있다.
예를 들어, 부호화 과정에서 부호화기는 현재 부호화 대상 블록이 가질 수 있는 예측 모드들 각각의 발생 횟수를 누적할 수 있다. 누적된 발생 횟수는 발생 빈도를 나타낼 수 있으며, 일 실시예로 발생 빈도는 누적된 발생 횟수에 비례할 수 있다. 부호화기는 주변 블록의 예측 모드를 상기 발생 빈도가 가장 높은 예측 모드로 변경할 수 있다.
부호화기는 슬라이스 단위 및/또는 엔트로피 슬라이스 단위로 각각 예측 모드의 발생 횟수를 누적할 수도 있다. 이 때, 슬라이스 단위 및/또는 엔트로피 슬라이스 단위마다 누적된 정도가 달라질 수 있으며, 부호화기는 적응적으로 주변 블록의 예측 모드를 발생 빈도가 높은 예측 모드로 변경할 수 있다.

다시 도 5를 참조하면, 부호화기는 변경된 최종 예측 모드를 MPM 후보 모드로 선택할 수 있다(S540).

상술된 MPM 후보 모드 도출 방법에 의하면, 부호화기는 별도의 테이블을 이용하지 않고 MPM 후보 모드를 도출할 수 있으므로, 별도의 저장 공간이 요구되지 않고 연산 복잡도가 감소될 수 있다. 또한 부호화기는 인트라 예측 모드의 발생 빈도에 따라 적응적으로 MPM 후보 모드를 도출할 수 있으므로, 영상 압축 효율이 향상될 수 있다.

도 7은 본 발명의 일 실시예에 따른 인트라 예측 모드 복호화 방법을 개략적으로 나타내는 흐름도이다.
도 7을 참조하면, 복호화기는 MPM 플래그를 파싱(parsing)할 수 있다(S710). 상술한 바와 같이, MPM 플래그는 MPM 리스트 내에 복호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는지 여부를 지시하는 플래그이다.
일 실시예로, MPM 플래그는 prev_intra_luma_pred_flag로 나타내어질 수 있다. 예를 들어, MPM 리스트 내에 복호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는 경우 MPM 플래그에 1이 할당될 수 있고, 그렇지 않은 경우 0이 할당될 수 있다.
복호화기는 복호화 대상 블록에 인접한 주변 블록들로부터 MPM 후보 모드를 도출할 수 있다(S720). 복호화기는 주변 블록의 예측 모드를 그대로 MPM 후보 모드로 선택할 수 있고, 주변 블록의 예측 모드를 변경한 후 변경된 최종 예측 모드를 MPM 후보 모드로 선택할 수도 있다. 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 구체적인 실시예는 도 8에서 후술한다.
복호화기는 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성할 수 있다(S730). 이 때, 복호화기는 주변 블록들로부터 도출된 MPM 후보 모드들을 MPM 리스트에 할당할 수 있다.
예를 들어, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 그대로 MPM 후보 모드로 선택되는 경우, MPM 리스트에 포함되는 MPM 후보 모드의 개수는 1개 또는 2개일 수 있다. 이 때, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 동일한 경우 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 1개일 수 있고, 좌측 주변 블록의 예측 모드와 상단 주변 블록의 예측 모드가 다른 경우 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 2개일 수 있다.
복호화기는 인트라 예측 모드를 복호화하기 위해 항상 소정의 고정된 개수의 MPM 후보 모드들을 이용할 수도 있다. 이 때, MPM 리스트에 포함되는 MPM 후보 모드들의 개수는 상기 소정의 고정된 개수와 동일할 수 있다. 상기 소정의 고정된 개수는 1 이상일 수 있고, 예를 들어 2, 3 또는 4 등일 수 있다.
일 실시예로, 좌측 주변 블록의 예측 모드 및 상단 주변 블록의 예측 모드를 이용하여 MPM 후보 모드가 도출되는 경우, MPM 리스트에 포함되는 MPM 후보 모드의 개수는 2로 고정될 수 있다. 예를 들어, 두 개의 MPM 후보 모드들은 각각 list[0] 및 list[1]에 할당될 수 있다. 이 때, 하나의 예로서 MPM 후보 모드들 중 모드값이 작은 모드는 list[0]에 할당되고, MPM 후보 모드들 중 모드값이 큰 모드는 list[1]에 할당될 수 있다. 여기서, list는 MPM 리스트를 나타내고, list[0]은 MPM 리스트 내의 첫 번째 엔트리(entry), list[1]은 MPM 리스트 내의 두 번째 엔트리를 나타낼 수 있다.
소정의 고정된 개수의 MPM 후보 모드가 인트라 예측에 사용되는 경우, 주변 블록들로부터 도출된 MPM 후보의 개수가 상기 소정의 고정된 개수보다 작을 수 있다. 이 때에는 MPM 리스트에 포함되는 추가 MPM 후보 모드가 필요할 수 있다.
예를 들어, MPM 리스트 내 MPM 후보 모드의 개수는 2로 고정되고, 복호화기는 상단 주변 블록의 예측 모드와 좌측 주변 블록의 예측 모드를 이용하여 MPM 후보 모드를 도출한다고 가정한다. 좌측 주변 블록의 예측 모드로부터 도출되는 MPM 후보 모드와 상단 주변 블록의 예측 모드로부터 도출되는 MPM 후보 모드가 동일한 경우에는, 상기 주변 블록들로부터 도출되는 MPM 후보 모드의 개수가 1개일 수 있다. MPM 후보 모드의 개수는 2로 고정되므로, MPM 리스트 내에 포함되는 나머지 엔트리를 구하기 위해, 추가 MPM 후보 모드가 필요할 수 있다.
추가 MPM 후보 모드는 주변 블록들로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드들 중에서 선택될 수 있다.
추가 MPM 후보 모드 도출 방법의 일 실시예로, 복호화기는 소정의 고정된 특정 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다. 예를 들어, MPM 리스트 내 MPM 후보 모드의 개수가 2로 고정되고 주변 블록들로부터 도출된 두 개의 MPM 후보 모드가 동일한 경우, 복호화기는 비방향성 모드인 DC 모드 또는 플래너 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다.
추가 MPM 후보 모드 도출 방법의 다른 실시예로, 복호화기는 상기 주변 블록으로부터 도출된 MPM 후보 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
예를 들어, 상기 주변 블록으로부터 도출된 MPM 후보 모드가 수직(vertical) 모드인 경우, 복호화기는 상기 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드인 수직-1(vertical-1) 모드 및/또는 수직+1(vertical+1) 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다. 이 때, 일 실시예로 수직 모드의 모드값은 1, 수직-1 모드의 모드값은 22, 수직+1 모드의 모드값은 23일 수 있다.
추가 MPM 후보 모드 도출 방법의 또 다른 실시예로, 복호화기는 가장 발생 빈도가 높은 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
예를 들어, 복호화 과정에서 복호화기는 현재 복호화 대상 블록이 가질 수 있는 예측 모드들 각각의 발생 횟수를 누적할 수 있다. 누적된 발생 횟수는 발생 빈도를 나타낼 수 있으며, 복호화기는 상기 발생 빈도가 가장 높은 예측 모드를 추가 MPM 후보 모드로 선택하여 MPM 리스트에 할당할 수 있다.
복호화기는 슬라이스 단위 및/또는 엔트로피 슬라이스 단위로 각각 예측 모드의 발생 횟수를 누적할 수도 있다. 이 때, 슬라이스 단위 및/또는 엔트로피 슬라이스 단위마다 누적된 정도가 달라질 수 있으며, 복호화기는 적응적으로 발생 빈도가 높은 예측 모드를 추가 MPM 후보 모드로 선택할 수 있다.
상술된 방법에 의하면, 복호화기는 별도의 테이블을 이용하지 않고 추가 MPM 후보 모드를 선택할 수 있으므로, 별도의 저장 공간이 요구되지 않고 연산 복잡도가 감소될 수 있다. 또한 복호화기는 인트라 예측 모드의 발생 빈도에 따라 적응적으로 추가 MPM 후보 모드를 선택할 수 있으므로, 영상 압축 효율이 향상될 수 있다.
다시 도 7을 참조하면, 복호화기는 인트라 예측 모드를 도출할 수 있다(S740).
복호화기는, 파싱된 MPM 플래그를 통해, MPM 리스트 내에 복호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는지 여부를 판단할 수 있다. 상술한 바와 같이 일 실시예로 MPM 플래그는 prev_intra_luma_pred_flag로 나타내어질 수 있다.
MPM 플래그가 0인 경우, 즉 MPM 리스트 내에 복호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하지 않는 경우, 복호화기는 부호화기로부터 수신된 비트 스트림으로부터 리메이닝 모드를 파싱할 수 있다. 일 실시예로 상기 리메이닝 모드는 rem_intra_luma_pred_mode로 나타내어질 수 있다. 복호화기는 리메이닝 모드 및 MPM 리스트를 이용하여 현재 복호화 대상 블록의 인트라 예측 모드를 도출할 수 있다.
MPM 플래그가 1인 경우, 즉 MPM 리스트 내에 복호화 대상 블록의 예측 모드와 동일한 MPM 후보 모드가 존재하는 경우, 복호화기는 부호화기로부터 수신된 비트 스트림으로부터 MPM 인덱스를 파싱할 수 있다. MPM 인덱스는 복호화 대상 블록의 예측 모드가 MPM 리스트 내의 MPM 후보 모드들 중 어떤 MPM 후보 모드와 동일한지를 지시하는 인덱스이다. 일 실시예로, MPM 인덱스는 mpm_idx로 나타내어질 수 있다. 복호화기는 MPM 인덱스 및 MPM 리스트를 이용하여 현재 복호화 대상 블록의 인트라 예측 모드를 도출할 수 있다.
예를 들어, MPM 리스트에 두 개의 MPM 후보 모드가 존재하는 경우, MPM 인덱스는 복호화 대상 블록의 예측 모드가 list[0]의 MPM 후보 모드와 일치하는지 또는 list[1]의 MPM 후보 모드와 일치하는지 여부를 지시할 수 있다. 이 때, 복호화기는 MPM 인덱스가 지시하는 MPM 후보 모드를 현재 복호화 대상 블록의 인트라 예측 모드로 결정할 수 있다.

도 8은 복호화 대상 블록에 대한 주변 블록의 예측 모드를 이용한 MPM 후보 모드 도출 방법의 일 실시예를 개략적으로 나타내는 흐름도이다.
도 8을 참조하면, 복호화기는 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되는지 여부를 판단할 수 있다(S810).
표 1의 실시예에서 상술한 바와 같이 현재 복호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수는 소정의 고정된 값일 수 있다. 이 때, 주변 블록의 예측 모드는 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않을 수 있다. 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우의 실시예는 상술한 도 6의 실시예에서와 유사하므로, 생략하기로 한다.

다시 도 8을 참조하면, 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되는 경우, 복호화기는 주변 블록의 예측 모드를 그대로 MPM 후보 모드로 선택할 수 있다(S820).

주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 복호화기는 MPM 후보 모드 도출을 위해 주변 블록의 예측 모드를 변경할 수 있다(S830). 이 때, 복호화기는 주변 블록의 예측 모드를 현재 블록이 가질 수 있는 인트라 예측 모드들 중 하나의 예측 모드로 변경할 수 있다.
예를 들어, 복호화 대상 블록이 가질 수 있는 예측 모드의 개수가 18개일 때, 복호화 대상 블록이 가질 수 있는 예측 모드는 0 내지 17일 수 있다. 이 때, 상단 주변 블록의 예측 모드가 23이라 가정하면, 복호화기는 상단 주변 블록의 예측 모드를 0 내지 17 중 하나의 예측 모드로 변경할 수 있다.
주변 블록의 예측 모드를 변경하는 방법에는 다양한 방법들이 있을 수 있다. 이하, 주변 블록에 대한 예측 모드의 변경 방법의 실시예들이 서술된다.

일 실시예로 복호화기는, 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 비방향성 모드로 변경할 수 있다. 비방향성 예측 모드에는 DC 모드 또는 플래너(planar) 모드 등이 있을 수 있다. 예를 들어, 주변 블록의 예측 모드가 플래너 모드로 변경되는 과정은 다음과 같이 나타내어질 수 있다.
intraPredModeN이 intraPredModeNum보다 크거나 같으면,
candIntraPredModeN = Intra_Planar
intraPredModeN이 intraPredModeNum보다 작으면,
candIntraPredModeN = intraPredModeN

여기서, intraPredModeN은 주변 블록의 인트라 예측 모드를 나타낼 수 있다. 예를 들어 상술한 도 3의 실시예를 참조하면, N이 A일 때 intraPredModeN은 좌측 주변 블록의 예측 모드를 나타낼 수 있고, N이 B일 때 intraPredModeN은 상단 주변 블록의 예측 모드를 나타낼 수 있다. intraPredModeNum은 복호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수를 나타낼 수 있다. 예를 들어 인트라 예측 모드의 개수는, 복호화 대상 블록의 크기에 따라, 상술한 표 1의 실시예에서와 같이 설정될 수 있다. candIntraPredModeN은 변경된 주변 블록의 최종 예측 모드를 나타낼 수 있다.

다른 실시예로 복호화기는, 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 모드값이 0인 예측 모드로 변경할 수 있다. 인트라 예측 모드의 순서는 통상적으로 발생 빈도에 기초하여 정해지므로, 모드값 0을 갖는 예측 모드의 발생 빈도가 다른 예측 모드의 발생 빈도에 비해 높을 확률이 크다. 따라서, 현재 복호화 대상 블록의 예측 모드도 모드값이 0인 예측 모드일 확률이 높으므로, 복호화기는 주변 블록의 예측 모드를 모드값이 0인 예측 모드로 변경함으로써 부호화 효율을 향상시킬 수 있다.

또 다른 실시예로 복호화기는, 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 소정의(predetermined) 계산 방법에 의해 계산된 예측 모드로 변경할 수 있다.
예를 들어, 상기 소정의 계산 방법은, 주변 블록의 예측 모드값을 복호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수 및/또는 복호화 대상 블록이 가질 수 있는 최대 예측 모드값으로 나눈 후, 그 나머지 값을 구하는 방법일 수 있다. 즉, 변경된 주변 블록의 최종 예측 모드값은, 주변 블록의 예측 모드값이 복호화 대상 블록이 가질 수 있는 인트라 예측 모드의 개수 및/또는 복호화 대상 블록이 가질 수 있는 최대 예측 모드값으로 나누어진 나머지 값일 수 있다. 상기 소정의 계산 방법을 이용하여 주변 블록의 예측 모드를 변경하는 과정은 일 실시예로 다음과 같이 나타내어질 수 있다.
intraPredModeN이 intraPredModeNum보다 크거나 같으면,
>> intraPredModeNum이 4이면,
candIntraPredModeN = mod(intraPredModeN, 4)
>> intraPredModeNum이 4가 아니면,
candIntraPredModeN = mod(intraPredModeN, 18)

intraPredModeN이 intraPredModeNum보다 작으면,
candIntraPredModeN = intraPredModeN

여기서, mod(X,Y)는 X를 Y로 나눈 나머지를 나타낼 수 있다.

또 다른 실시예로 복호화기는, 주변 블록의 예측 모드가 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우, 주변 블록의 예측 모드를 복호화 대상 블록이 가질 수 있는 예측 모드 중 가장 발생 빈도가 높은 예측 모드로 변경할 수 있다.
예를 들어, 복호화 과정에서 복호화기는 현재 복호화 대상 블록이 가질 수 있는 예측 모드들 각각의 발생 횟수를 누적할 수 있다. 누적된 발생 횟수는 발생 빈도를 나타낼 수 있으며, 일 실시예로 발생 빈도는 누적된 발생 횟수에 비례할 수 있다. 복호화기는 주변 블록의 예측 모드를 상기 발생 빈도가 가장 높은 예측 모드로 변경할 수 있다.
복호화기는 슬라이스 단위 및/또는 엔트로피 슬라이스 단위로 각각 예측 모드의 발생 횟수를 누적할 수도 있다. 이 때, 슬라이스 단위 및/또는 엔트로피 슬라이스 단위마다 누적된 정도가 달라질 수 있으며, 복호화기는 적응적으로 주변 블록의 예측 모드를 발생 빈도가 높은 예측 모드로 변경할 수 있다.

다시 도 8을 참조하면, 복호화기는 변경된 최종 예측 모드를 MPM 후보 모드로 선택할 수 있다(S840).

상술된 MPM 후보 모드 도출 방법에 의하면, 복호화기는 별도의 테이블을 이용하지 않고 MPM 후보 모드를 도출할 수 있으므로, 별도의 저장 공간이 요구되지 않고 연산 복잡도가 감소될 수 있다. 또한 복호화기는 인트라 예측 모드의 발생 빈도에 따라 적응적으로 MPM 후보 모드를 도출할 수 있으므로, 영상 압축 효율이 향상될 수 있다.

상술한 실시예들에서, 방법들은 일련의 단계 또는 블록으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 실시예는 다양한 양태의 예시들을 포함한다. 다양한 양태들을 나타내기 위한 모든 가능한 조합을 기술할 수는 없지만, 해당 기술 분야의 통상의 지식을 가진 자는 다른 조합이 가능함을 인식할 수 있을 것이다. 따라서, 본 발명은 이하의 특허청구범위 내에 속하는 모든 다른 교체, 수정 및 변경을 포함한다고 할 것이다.

Claims (15)

  1. 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계;
    상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계; 및
    상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하는 단계를 포함하고,
    상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수인 영상 복호화 방법.
  2. 청구항 1에 있어서, 상기 주변 블록의 예측 모드가 상기 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우,
    상기 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계는,
    상기 주변 블록의 예측 모드를 최종 예측 모드로 변경하는 단계; 및
    상기 최종 예측 모드를 상기 MPM 후보 모드로 선택하는 단계를 포함하고,
    상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 하나인 영상 복호화 방법.
  3. 청구항 2에 있어서, 상기 최종 예측 모드는 비방향성 모드인 영상 복호화 방법.
  4. 청구항 2에 있어서, 상기 최종 예측 모드는 모드값이 0인 예측 모드인 영상 복호화 방법.
  5. 청구항 2에 있어서, 상기 최종 예측 모드는 소정의 고정된 계산 방법에 의해 도출되는 예측 모드인 영상 복호화 방법.
  6. 청구항 5에 있어서, 상기 소정의 고정된 계산 방법에 의해 도출되는 예측 모드의 모드값은 상기 주변 블록에 대한 예측 모드의 모드값을 상기 복호화 대상 블록이 가질 수 있는 예측 모드의 개수로 나눈 나머지 값인 영상 복호화 방법.
  7. 청구항 2에 있어서, 상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 발생 빈도가 가장 높은 예측 모드이고, 상기 발생 빈도는 현재 복호화 과정에서 누적된 예측 모드의 발생 횟수에 비례하는 영상 복호화 방법.
  8. 청구항 1에 있어서, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계는,
    상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드를 이용하여 추가 MPM 후보 모드를 획득하는 단계; 및
    상기 획득한 추가 MPM 후보 모드를 상기 MPM 리스트에 할당하는 단계를 포함하는 영상 복호화 방법.
  9. 청구항 8에 있어서, 상기 추가 MPM 후보 모드는 비방향성 모드인 영상 복호화 방법.
  10. 청구항 8에 있어서, 상기 추가 MPM 후보 모드는 상기 주변 블록으로부터 도출된 MPM 후보 모드의 예측 방향과 가장 유사한 예측 방향을 갖는 방향성 예측 모드인 영상 복호화 방법.
  11. 청구항 8에 있어서, 상기 추가 MPM 후보 모드는 상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드 중 발생 빈도가 가장 높은 예측 모드이고, 상기 발생 빈도는 현재 복호화 과정에서 누적된 인트라 예측 모드의 발생 횟수에 비례하는 영상 복호화 방법.
  12. 부호화기로부터 전송된 MPM 플래그를 엔트로피 복호화하는 엔트로피 복호화부; 및
    복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하고, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하고, 상기 엔트로피 복호화된 MPM 플래그 및 상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하고, 상기 도출된 인트라 예측 모드를 이용하여 상기 복호화 대상 블록에 대한 인트라 예측을 수행하는 인트라 예측부를 포함하고,
    상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수인 영상 복호화 장치.
  13. 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계;
    상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계; 및
    상기 생성된 MPM 리스트를 이용하여 상기 복호화 대상 블록의 인트라 예측 모드를 도출하는 단계를 포함하고,
    상기 MPM 리스트에 포함되는 MPM 후보 모드의 개수는 소정의 고정된 개수인 인트라 예측 모드 복호화 방법.
  14. 청구항 13에 있어서, 상기 주변 블록의 예측 모드가 상기 복호화 대상 블록이 가질 수 있는 예측 모드에 포함되지 않는 경우,
    상기 복호화 대상 블록에 인접한 주변 블록으로부터 MPM 후보 모드를 도출하는 단계는,
    상기 주변 블록의 예측 모드를 최종 예측 모드로 변경하는 단계; 및
    상기 최종 예측 모드를 상기 MPM 후보 모드로 선택하는 단계를 포함하고,
    상기 최종 예측 모드는 상기 복호화 대상 블록이 가질 수 있는 예측 모드 중 하나인 인트라 예측 모드 복호화 방법.
  15. 청구항 13에 있어서, 상기 주변 블록으로부터 도출된 MPM 후보 모드를 이용하여 MPM 리스트를 생성하는 단계는,
    상기 주변 블록으로부터 도출된 MPM 후보 모드를 제외한 인트라 예측 모드를 이용하여 추가 MPM 후보 모드를 획득하는 단계; 및
    상기 획득한 추가 MPM 후보 모드를 상기 MPM 리스트에 할당하는 단계를 포함하는 인트라 예측 모드 복호화 방법.
PCT/KR2012/007255 2011-09-28 2012-09-10 인트라 예측 모드 부호화/복호화 방법 및 장치 WO2013048033A1 (ko)

Priority Applications (7)

Application Number Priority Date Filing Date Title
US14/346,756 US9432675B2 (en) 2011-09-28 2012-09-10 Method and apparatus for encoding/decoding intra prediction mode
US15/201,811 US10091503B2 (en) 2011-09-28 2016-07-05 Method and apparatus for encoding/decoding intra prediction mode
US16/105,222 US10652533B2 (en) 2011-09-28 2018-08-20 Method and apparatus for encoding/decoding intra prediction mode
US16/840,547 US11252407B2 (en) 2011-09-28 2020-04-06 Method and apparatus for encoding/decoding intra prediction mode
US17/567,632 US11729380B2 (en) 2011-09-28 2022-01-03 Method and apparatus for encoding/decoding intra prediction mode
US18/345,301 US20230353731A1 (en) 2011-09-28 2023-06-30 Method and apparatus for encoding/decoding intra prediction mode
US18/345,350 US20230344994A1 (en) 2011-09-28 2023-06-30 Method and apparatus for encoding/decoding intra prediction mode

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2011-0098602 2011-09-28
KR20110098602 2011-09-28
KR10-2011-0114882 2011-11-07
KR1020110114882A KR101611409B1 (ko) 2011-09-28 2011-11-07 인트라 예측 모드 부호화/복호화 방법 및 장치

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US14/346,756 A-371-Of-International US9432675B2 (en) 2011-09-28 2012-09-10 Method and apparatus for encoding/decoding intra prediction mode
US15/201,811 Continuation US10091503B2 (en) 2011-09-28 2016-07-05 Method and apparatus for encoding/decoding intra prediction mode

Publications (1)

Publication Number Publication Date
WO2013048033A1 true WO2013048033A1 (ko) 2013-04-04

Family

ID=47995996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2012/007255 WO2013048033A1 (ko) 2011-09-28 2012-09-10 인트라 예측 모드 부호화/복호화 방법 및 장치

Country Status (2)

Country Link
US (4) US11252407B2 (ko)
WO (1) WO2013048033A1 (ko)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018106047A1 (ko) * 2016-12-07 2018-06-14 주식회사 케이티 비디오 신호 처리 방법 및 장치
CN110166777A (zh) * 2018-07-04 2019-08-23 腾讯科技(深圳)有限公司 编码方法、装置和视频数据编码设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112106360A (zh) 2018-05-10 2020-12-18 三星电子株式会社 视频编码方法和设备以及视频解码方法和设备
KR102479494B1 (ko) 2018-06-11 2022-12-20 삼성전자주식회사 부호화 방법 및 그 장치, 복호화 방법 및 그 장치
CN114650418B (zh) * 2021-06-30 2023-01-24 杭州海康威视数字技术股份有限公司 解码方法、编码方法、装置及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005529527A (ja) * 2002-06-11 2005-09-29 ノキア コーポレイション イントラ符号化に基づく空間予測
JP2006005438A (ja) * 2004-06-15 2006-01-05 Sony Corp 画像処理装置およびその方法
KR20070005848A (ko) * 2005-07-06 2007-01-10 삼성전자주식회사 인트라 예측 모드 결정 방법 및 장치

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289674B2 (en) 2002-06-11 2007-10-30 Nokia Corporation Spatial prediction based intra coding
CN103281542B (zh) 2007-06-29 2017-07-14 夏普株式会社 图像编码装置、图像编码方法、图像译码装置、图像译码方法
EP2388999B1 (en) 2010-05-17 2021-02-24 Lg Electronics Inc. New intra prediction modes
US9955169B2 (en) * 2012-01-30 2018-04-24 Electronics And Telecommunications Research Institute Intra prediction mode encoding/decoding method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005529527A (ja) * 2002-06-11 2005-09-29 ノキア コーポレイション イントラ符号化に基づく空間予測
JP2006005438A (ja) * 2004-06-15 2006-01-05 Sony Corp 画像処理装置およびその方法
KR20070005848A (ko) * 2005-07-06 2007-01-10 삼성전자주식회사 인트라 예측 모드 결정 방법 및 장치

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018106047A1 (ko) * 2016-12-07 2018-06-14 주식회사 케이티 비디오 신호 처리 방법 및 장치
US11140387B2 (en) 2016-12-07 2021-10-05 Kt Corporation Method and apparatus for processing video signal
US11716467B2 (en) 2016-12-07 2023-08-01 Kt Corporation Method and apparatus for processing video signal
US11736686B2 (en) 2016-12-07 2023-08-22 Kt Corporation Method and apparatus for processing video signal
CN110166777A (zh) * 2018-07-04 2019-08-23 腾讯科技(深圳)有限公司 编码方法、装置和视频数据编码设备
CN110166777B (zh) * 2018-07-04 2023-11-17 腾讯科技(深圳)有限公司 编码方法、装置和视频数据编码设备

Also Published As

Publication number Publication date
US20200236352A1 (en) 2020-07-23
US20230344994A1 (en) 2023-10-26
US11252407B2 (en) 2022-02-15
US20220124323A1 (en) 2022-04-21
US20230353731A1 (en) 2023-11-02
US11729380B2 (en) 2023-08-15

Similar Documents

Publication Publication Date Title
KR101962183B1 (ko) 인트라 예측 모드 부호화/복호화 방법 및 장치
JP7387841B2 (ja) 映像復号化方法
JP6874032B2 (ja) ピクチャの符号化/復号化方法及びこれを利用する装置
US20180176555A1 (en) Method for encoding video information and method for decoding video information, and apparatus using same
KR102070719B1 (ko) 인터 예측 방법 및 그 장치
US11102494B2 (en) Method for scanning transform coefficient and device therefor
KR101924088B1 (ko) 적응적 예측 블록 필터링을 이용한 영상 부호화/복호화 장치 및 방법
WO2013005967A2 (ko) 영상 정보 부호화 방법 및 복호화 방법
WO2013048033A1 (ko) 인트라 예측 모드 부호화/복호화 방법 및 장치
WO2012081949A2 (ko) 인터 예측 방법 및 그 장치
KR102419589B1 (ko) 디블록킹 필터링의 경계 필터링 강도 결정 방법 및 장치
KR102356481B1 (ko) 비디오 부호화 방법 및 비디오 복호화 방법과 이를 이용하는 장치
KR20120028262A (ko) 엔트로피 부호화/복호화 방법 및 장치
WO2012044118A2 (ko) 오차 보상을 이용한 영상 부호화/복호화 방법 및 장치
US20130322535A1 (en) Method for encoding and decoding images using plurality of reference images and device using method
WO2012044116A2 (ko) 적응적 예측 블록 필터링을 이용한 영상 부호화/복호화 장치 및 방법
WO2013005966A2 (ko) 비디오 부호화 방법 및 복호화 방법과 이를 이용한 장치
WO2012036436A2 (ko) 엔트로피 부호화/복호화 방법 및 장치
KR20120100839A (ko) 엔트로피 부호화/복호화 방법
KR20120095794A (ko) 고속 영상 부호화 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12835073

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14346756

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12835073

Country of ref document: EP

Kind code of ref document: A1