WO2020050697A1 - Intra-prediction mode-based image processing method and device therefor - Google Patents

Intra-prediction mode-based image processing method and device therefor Download PDF

Info

Publication number
WO2020050697A1
WO2020050697A1 PCT/KR2019/011588 KR2019011588W WO2020050697A1 WO 2020050697 A1 WO2020050697 A1 WO 2020050697A1 KR 2019011588 W KR2019011588 W KR 2019011588W WO 2020050697 A1 WO2020050697 A1 WO 2020050697A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
mode
intra prediction
mpm
unit
Prior art date
Application number
PCT/KR2019/011588
Other languages
French (fr)
Korean (ko)
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 WO2020050697A1 publication Critical patent/WO2020050697A1/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/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/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

Definitions

  • the present invention relates to a method for processing a still image or a video, and more particularly, to a method for encoding / decoding a still image or a video based on an intra prediction mode and an apparatus supporting the same.
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium.
  • Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
  • Next-generation video content will have the characteristics of high spatial resolution, high frame rate and high dimensionality of scene representation. In order to process such content, a huge increase in terms of memory storage, memory access rate and processing power will be produced.
  • an object of the present invention is to propose a method for generating an MPM list that can improve such problems and increase diversity of MPM candidates.
  • an MPM flag indicating whether a Most Probable Mode (MPM) is applied to a current block, wherein the MPM is Indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block;
  • MPM is applied to the current block, constructing an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block;
  • the upper neighboring block may be set as a block including pixels adjacent in a vertical direction of a right uppermost sample in the current block.
  • the constructing the MPM list may include: checking whether intra prediction modes of the left and upper neighboring blocks are the same; Checking whether the intra prediction mode of the upper neighboring block is less than 2 when the intra prediction mode of the left and upper neighboring blocks are the same; If the intra prediction mode of the upper neighboring block is less than 2, generating a first MPM list; And when the intra prediction mode of the upper neighboring block is not less than 2, generating a second MPM list.
  • the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode and a vertical diagonal mode
  • the second MPM list includes a planar mode, a DC mode, and the upper neighbor
  • the intra prediction mode of the block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block may be included.
  • the step of constructing the MPM list is that the left or upper neighboring block is not available, is not a block coded in intra prediction mode, or is not located in a current coding tree unit (CTU). If not, the method may further include setting the intra prediction mode of the left or upper neighboring block to a planar mode.
  • CTU current coding tree unit
  • the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00, index 1 is binarized to 01, and index 2 is It can be binarized to 100, index 3 is binarized to 101, index 4 is binarized to 110, and index 5 can be binarized to 111.
  • an MPM flag acquiring unit that acquires an MPM flag indicating whether a Most Probable Mode (MPM) is applied to a current block
  • the MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block
  • An MPM list construction unit configured to configure an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block when MPM is applied to the current block
  • a prediction block generator configured to generate a prediction block of the current block using an intra prediction mode specified by the MPM index, wherein the left neighboring block includes pixels adjacent in the horizontal direction of the lower left sample in the current block.
  • the upper neighboring block may be set as a block including pixels adjacent in the vertical direction of the upper right sample in the current block.
  • the intra prediction mode of the left and upper neighboring blocks at different positions from the conventional image compression technique by using the intra prediction mode of the left and upper neighboring blocks at different positions from the conventional image compression technique, more various MPM lists can be constructed.
  • FIG. 1 is an embodiment to which the present invention is applied, and shows a schematic block diagram of an encoding device in which encoding of a video / image signal is performed.
  • FIG. 2 is an embodiment to which the present invention is applied, and shows a schematic block diagram of a decoding apparatus in which decoding of a video / image signal is performed.
  • 3 is an embodiment to which the present invention can be applied, and is a view showing an example of a multi-type tree structure.
  • FIG. 4 is an embodiment to which the present invention can be applied, and is a diagram illustrating a signaling mechanism of partition partitioning information of a quadtree with nested multi-type tree structure.
  • FIG. 5 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method of dividing a CTU into multiple CUs based on a quadtree and nested multi-type tree structure.
  • FIG. 6 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method for limiting ternary-tree partitioning.
  • FIG. 7 is an embodiment to which the present invention can be applied, and is a diagram illustrating redundant splitting patterns that may occur in binary tree splitting and ternary tree splitting.
  • FIGS. 8 and 9 are diagrams illustrating an intra prediction-based video / video encoding method according to an embodiment of the present invention and an intra prediction unit in an encoding device according to an embodiment of the present invention.
  • FIGS. 10 and 11 are diagrams illustrating an intra prediction-based video / image decoding method according to an embodiment of the present invention and an intra prediction unit in a decoding apparatus according to an embodiment of the present invention.
  • FIGS. 12 and 13 are views illustrating a prediction direction of an intra prediction mode according to an embodiment to which the present invention can be applied.
  • FIG 14 shows an example of a neighboring block used as an MPM candidate according to an embodiment to which the present invention can be applied.
  • 15 is a diagram illustrating an example of a component that generates an MPM list according to an embodiment of the present invention.
  • 16 is a flowchart illustrating a method of generating an intra prediction block according to an embodiment to which the present invention is applied.
  • 17 is a diagram illustrating an intra prediction apparatus according to an embodiment to which the present invention is applied.
  • FIG. 18 shows a video coding system to which the present invention is applied.
  • 19 is an embodiment to which the present invention is applied, and shows a structure diagram of a content streaming system.
  • the term 'processing unit' in the present specification means a unit in which encoding / decoding processing processes such as prediction, transformation, and / or quantization are performed.
  • the processing unit may be referred to as a 'processing block' or a 'block'.
  • the processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component.
  • the processing unit may correspond to a coding tree unit (CTU), a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
  • CTU coding tree unit
  • CU coding unit
  • PU prediction unit
  • TU transform unit
  • the processing unit may be interpreted as a unit for a luma component or a unit for a chroma component.
  • the processing unit may include a coding tree block (CTB) for a luminance component, a coding block (CB), a prediction block (PU), or a transform block (TB). ).
  • CB coding tree block
  • PU prediction block
  • TB transform block
  • the processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component.
  • processing unit is not necessarily limited to square blocks, and may be configured in a polygonal shape having three or more vertices.
  • a pixel or a pixel is referred to as a sample in this specification.
  • using a sample may mean using a pixel value or a pixel value.
  • FIG. 1 is an embodiment to which the present invention is applied, and shows a schematic block diagram of an encoding device in which encoding of a video / image signal is performed.
  • the encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may be configured to include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190.
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit.
  • the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115.
  • the filtering unit 160, the inter prediction unit 180, the intra prediction unit 185, and the entropy encoding unit 190 may be configured by one hardware component (for example, an encoder or processor).
  • the memory 170 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
  • DPB decoded picture buffer
  • the image splitter 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a coding tree unit (CTU) or a largest coding unit (LCU).
  • QTBT quad-tree binary-tree
  • CTU coding tree unit
  • LCU largest coding unit
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure.
  • a quad tree structure may be applied first, and a binary tree structure may be applied later.
  • a binary tree structure may be applied first.
  • the coding procedure according to the present invention can be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be directly used as a final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal if necessary.
  • the coding unit of the size of can be used as the final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later.
  • the processing unit may further include a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may be partitioned or partitioned from the above-described final coding unit, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transformation unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
  • the unit may be used interchangeably with terms such as a block or area depending on the case.
  • the MxN block may represent samples of M columns and N rows or a set of transform coefficients.
  • the sample may generally represent a pixel or a pixel value, and may indicate only a pixel / pixel value of a luma component or only a pixel / pixel value of a saturation component.
  • the sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
  • the encoding apparatus 100 subtracts a prediction signal (a predicted block, a prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input image signal (original block, original sample array)
  • a signal residual signal, residual block, residual sample array
  • a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input image signal (original block, original sample array) in the encoder 100 may be referred to as a subtraction unit 115.
  • the prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block), and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied in units of a current block or CU. As described later in the description of each prediction mode, the prediction unit may generate various information regarding prediction, such as prediction mode information, and transmit it to the entropy encoding unit 190.
  • the prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra prediction unit 185 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 185 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be referred to by a name such as a collocated reference block or a colCU, and a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Can be created. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block.
  • the residual signal may not be transmitted.
  • a motion vector of a current block is obtained by using a motion vector of a neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
  • the prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • the transformation technique may include at least one of a DCT (Discrete Cosine Transform), a DST (Discrete Sine Transform), a KLT (Karhunen-Loeve Transform), a GBT (Graph-Based Transform), or a CNT (Conditionally Non-linear Transform).
  • GBT refers to a transformation obtained from this graph when it is said that the relationship information between pixels is graphically represented.
  • CNT means a transform obtained by generating a predictive signal using all previously reconstructed pixels and based on it.
  • the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
  • the quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes a quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about the quantized transform coefficients may be called residual information.
  • the quantization unit 130 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the one-dimensional vector form. Information regarding transform coefficients may be generated.
  • the entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode information necessary for video / image reconstruction (eg, values of syntax elements, etc.) together with the quantized transform coefficients together or separately.
  • the encoded information (ex. Encoded video / video information) may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream.
  • NAL network abstraction layer
  • the network may include a broadcasting network and / or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the signal output from the entropy encoding unit 190 may be configured as an internal / external element of the encoding apparatus 100 by a transmitting unit (not shown) and / or a storing unit (not shown) for storing, or the transmitting unit It may be a component of the entropy encoding unit 190.
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal.
  • the residual signal may be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150 in the loop.
  • the adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 180 or the intra predictor 185, so that the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) Can be created. If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the adding unit 155 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, or may be used for inter prediction of the next picture through filtering as described below.
  • the filtering unit 160 may apply subjective filtering to the reconstructed signal to improve subjective / objective image quality.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be a DPB of the memory 170, specifically, the memory 170 Can be stored in.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the filtering unit 160 may generate various information regarding filtering as described later in the description of each filtering method and transmit it to the entropy encoding unit 190.
  • the filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180.
  • the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 100 and the decoding apparatus can be avoided, and encoding efficiency can be improved.
  • the memory 170 DPB may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180.
  • the memory 170 may store motion information of a block from which motion information in a current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 180 for use as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 170 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185.
  • FIG. 2 is an embodiment to which the present invention is applied, and shows a schematic block diagram of a decoding apparatus in which decoding of a video / image signal is performed.
  • the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively called a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230.
  • the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the addition unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 described above are embodiments. It may be configured by one hardware component (for example, a decoder or processor). Also, the memory 170 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
  • DPB decoded picture buffer
  • the decoding apparatus 200 may restore an image in response to a process in which the video / image information is processed in the encoding apparatus of FIG. 1.
  • the decoding apparatus 200 may perform decoding using a processing unit applied in the encoding apparatus.
  • the processing unit of decoding may be, for example, a coding unit, and the coding unit may be divided along a quad tree structure and / or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproduction apparatus.
  • the decoding apparatus 200 may receive the signal output from the encoding apparatus of FIG. 1 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210.
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video / image information) necessary for image reconstruction (or picture reconstruction).
  • the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element required for image reconstruction and a transform coefficient for residual.
  • the CABAC entropy decoding method receives bins corresponding to each syntax element in the bitstream, and decodes the syntax element information to be decoded and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in the previous step.
  • the context model is determined by using, and the probability of occurrence of the bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model using the decoded symbol / bin information for the next symbol / bin context model after determining the context model.
  • the entropy decoding unit 210 performs entropy decoding.
  • the dual value that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220.
  • information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
  • a receiving unit (not shown) receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 200, or the receiving unit may be a component of the entropy decoding unit 210.
  • the inverse quantization unit 220 may inverse quantize the quantized transform coefficients to output transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding device.
  • the inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients by using a quantization parameter (for example, quantization step size information), and obtain transform coefficients.
  • a quantization parameter for example, quantization step size information
  • the inverse transform unit 230 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction is applied or inter prediction is applied to the current block based on information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode.
  • the intra prediction unit 265 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 260 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and / or reference picture index of the current block based on the received candidate selection information.
  • Inter prediction may be performed based on various prediction modes, and information on the prediction may include information indicating a mode of inter prediction for the current block.
  • the adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring signals (restored pictures, reconstructed blocks). , A reconstructed sample array). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the adding unit 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, or may be used for inter prediction of the next picture through filtering as described below.
  • the filtering unit 240 may improve subjective / objective image quality by applying filtering to the reconstructed signal.
  • the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be a DPB of the memory 250, specifically, the memory 250 Can be transferred to.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the (corrected) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260.
  • the memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and / or motion information of blocks in a picture that has already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 170 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 265.
  • the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding apparatus 100 are respectively the filtering unit 240 and the inter prediction of the decoding apparatus 200. The same may be applied to the unit 260 and the intra prediction unit 265.
  • the video / image coding method according to this document may be performed based on various detailed technologies, and the detailed description of each detailed technology is as follows.
  • the techniques described below include prediction in the video / image encoding / decoding procedure described above and / or described below, residual processing ((inverse) transform, (inverse) quantization, etc.), syntax element coding, filtering, partitioning / partitioning, etc. It will be apparent to those skilled in the art that it may be involved in the relevant procedures.
  • the block partitioning procedure according to the present document is performed by the image segmentation unit 110 of the above-described encoding device, so that the partitioning-related information is (encoded) processed by the entropy encoding unit 190 and transmitted to the decoding device in the form of a bitstream.
  • the entropy decoding unit 210 of the decoding apparatus derives a block partitioning structure of the current picture based on the partitioning-related information obtained from the bitstream, and based on this, a series of procedures for decoding the image (ex. Prediction, residual Processing, block reconstruction, in-loop filtering, etc.).
  • the CTU may correspond to a coding tree block (CTB).
  • CTB coding tree block
  • the CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples.
  • the CTU may include two corresponding blocks of chroma samples and an NxN block of luma samples.
  • the maximum allowable size of the CTU for coding and prediction may be different from the maximum allowable size of the CTU for transformation.
  • the maximum allowable size of the luma block in the CTU may be 128x128.
  • the CTU may be divided into CUs based on a quad-tree (QT) structure.
  • the quadtree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics.
  • the CTU can be divided based on multi-type tree structure division including a binary tree (BT) and a ternary tree (TT) as well as a quad tree.
  • the QTBT structure may include a quadtree and binary tree based partitioning structure
  • the QTBTTT may include a quadtree, binary tree and ternary tree based partitioning structure.
  • the QTBT structure may include a quadtree, binary tree, and ternary tree based splitting structure.
  • the CU can have a square or rectangular shape.
  • the CTU can be first divided into a quadtree structure. Thereafter, leaf nodes having a quadtree structure may be additionally divided by a multi-type tree structure.
  • 3 is an embodiment to which the present invention can be applied, and is a view showing an example of a multi-type tree structure.
  • the multitype tree structure may include four split types as shown in FIG. 3.
  • the four division types are vertical binary splitting (SPLIT_BT_VER), horizontal binary splitting (SPLIT_BT_HOR), vertical ternary splitting (SPLIT_TT_VER), horizontal ternary splitting (horizontal ternary splitting, SPLIT_TT_HOR) ).
  • Leaf nodes of the multi-type tree structure may be referred to as CUs. These CUs can be used for prediction and transformation procedures.
  • CU, PU, and TU may have the same block size. However, when the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
  • FIG. 4 is an embodiment to which the present invention can be applied, and is a diagram illustrating a signaling mechanism of partition partitioning information of a quadtree with nested multi-type tree structure.
  • the CTU is treated as the root of the quadtree, and is first partitioned into a quadtree structure.
  • Each quadtree leaf node can then be further partitioned into a multitype tree structure.
  • a first flag (ex. Mtt_split_cu_flag) is signaled to indicate whether the corresponding node is additionally partitioned. If the corresponding node is additionally partitioned, a second flag (a second flag, ex. Mtt_split_cu_verticla_flag) may be signaled to indicate a splitting direction. Then, a third flag (a third flag, ex.
  • Mtt_split_cu_binary_flag may be signaled to indicate whether the partition type is binary partition or ternary partition. For example, based on the mtt_split_cu_vertical_flag and the mtt_split_cu_binary_flag, a multi-type tree splitting mode (MttSplitMode) of a CU may be derived as shown in Table 1 below.
  • FIG. 5 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method of dividing a CTU into multiple CUs based on a quadtree and nested multi-type tree structure.
  • a quadtree partition with a multitype tree can provide a content-adapted coding tree structure.
  • the CU may correspond to a coding block (CB).
  • the CU may include a coding block of luma samples and two coding blocks of corresponding chroma samples.
  • the size of a CU may be as large as a CTU, or may be cut by 4x4 in luma sample units. For example, in the case of a 4: 2: 0 color format (or chroma format), the maximum chroma CB size may be 64x64 and the minimum chroma CB size may be 2x2.
  • the maximum allowed luma TB size may be 64x64 and the maximum allowed chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum conversion width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size limitations are satisfied.
  • the following parameters may be defined and identified as SPS syntax elements.
  • -CTU size the root node size of a quaternary tree
  • the CTU size may be set to 64x64 blocks of 128x128 luma samples and two corresponding chroma samples (in 4: 2: 0 chroma format).
  • MinOTSize is set to 16x16
  • MaxBtSize is set to 128x1208
  • MaxTtSzie is set to 64x64
  • MinBtSize and MinTtSize (for both width and height) can be set to 4x4
  • MaxMttDepth can be set to 4.
  • Quarttree partitioning can be applied to CTU to generate quadtree leaf nodes.
  • the quadtree leaf node may be referred to as a leaf QT node.
  • Quadtree leaf nodes may have a size of 128x128 (i.e. the CTU size) from a size of 16x16 (i.e. the MinOTSize). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree / ternary tree. This is because, even in this case, it exceeds MaxBtsize and MaxTtszie (i.e. 64x64). In other cases, the leaf QT node may be further divided into a multi-type tree. Therefore, the leaf QT node is a root node for the multitype tree, and the leaf QT node may have a multitype tree depth (mttDepth) 0 value.
  • mttDepth multitype tree depth
  • MaxMttdepth (ex. 4)
  • further partitioning may not be considered. If the width of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal splitting may no longer be considered. If the height of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical splitting may not be considered any more.
  • FIG. 6 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method for limiting ternary-tree partitioning.
  • TT partitioning may be limited in certain cases to allow for a 64x64 luma block and 32x32 chroma pipeline design in a hardware decoder. For example, if the width or height of the luma coding block is greater than a predetermined specific value (eg, 32, 64), as illustrated in FIG. 6, TT segmentation may be limited.
  • a predetermined specific value eg, 32, 64
  • the coding tree scheme may support luma and chroma blocks having a separate block tree structure.
  • luma and chroma CTBs in one CTU can be restricted to have the same coding tree structure.
  • luma and chroma blocks may have a separate block tree structure from each other. If the individual block tree mode is applied, the luma CTB may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on another coding tree structure. This may mean that a CU in an I slice is composed of a coding block of luma components or coding blocks of two chroma components, and a CU of a P or B slice can be composed of blocks of three color components.
  • a quadtree coding tree structure with a multi-type tree has been described, but the structure in which the CU is divided is not limited to this.
  • the BT structure and the TT structure may be interpreted as a concept included in a multiple partitioning tree (MPT) structure, and a CU may be divided through a QT structure and an MPT structure.
  • MPT multiple partitioning tree
  • a syntax element for example, MPT_split_type
  • MPT_split_mode a syntax element including information about which direction is divided between and horizontal.
  • the CU may be divided in a different way from the QT structure, BT structure or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 the size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 the size of the CU of the upper depth according to the BT structure, or according to the TT structure Unlike the CU of the lower depth, which is divided into 1/4 or 1/2 the size of the CU of the upper depth, the CU of the lower depth may be 1/5, 1/3, 3/8, 3 of the CU of the upper depth depending on the case. It may be divided into / 5, 2/3, or 5/8 size, and the method in which the CU is divided is not limited thereto.
  • the tree node block ensures that all samples of all coded CUs are located within the picture boundaries. Can be limited. In this case, for example, the following division rule may be applied.
  • the block is forced to be split with QT split mode.
  • the block is forced to be split with SPLIT_BT_HOR mode
  • the block is forced to be split with QT split mode.
  • the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_HOR mode.
  • the block is forced to be split with SPLIT_BT_HOR mode.
  • the block is forced to be split with QT split mode.
  • the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_VER mode.
  • the block is forced to be split with SPLIT_BT_VER mode.
  • the above-described quadtree coding block structure accompanying the multi-type tree can provide a very flexible block partitioning structure. Due to the division types supported in the multitype tree, different division patterns can potentially result in the same coding block structure in some cases. By limiting the occurrence of such redundant partition patterns, the data amount of partitioning information can be reduced. It will be described with reference to the drawings below.
  • FIG. 7 is an embodiment to which the present invention can be applied, and is a diagram illustrating redundant splitting patterns that may occur in binary tree splitting and ternary tree splitting.
  • two levels of consecutive binary splits in one direction have the same coding block structure as binary partitions for the center partition after ternary splitting.
  • the binary tree partition for the center partition of the ternary tree partition may be limited. This limitation can be applied to CUs of all pictures. When such a specific partition is limited, signaling of corresponding syntax elements can be modified to reflect this limited case, thereby reducing the number of bits signaled for partitioning. For example, as in the example shown in FIG.
  • the mtt_split_cu_binary_flag syntax element indicating whether the partition is a binary partition or a ternary partition is not signaled, and its value is It can be inferred by the decoder to zero.
  • a decoded portion of the current picture or other pictures including the current processing unit may be used.
  • Predict a picture (slice) that uses only the current picture for reconstruction i.e., a picture (slice) that performs only intra-picture prediction, an intra picture or an I picture (slice), and up to one motion vector and a reference index to predict each unit
  • a picture (slice) using a predictive picture or a P picture (slice), up to two motion vectors and a reference index may be referred to as a bi-predictive picture or a B picture (slice).
  • Inter-prediction refers to a prediction method that derives a current processing block based on a data element (eg, a sample value or a motion vector) of a picture other than the current picture. That is, it means a method of predicting a pixel value of a current processing block by referring to reconstructed regions in another reconstructed picture other than the current picture.
  • a data element eg, a sample value or a motion vector
  • intra prediction (or intra prediction) will be described in more detail.
  • Intra prediction or intra prediction
  • Intra prediction refers to a prediction method that derives a current processing block from data elements (eg, sample values, etc.) of the same decoded picture (or slice). That is, it means a method of predicting the pixel value of the current processing block by referring to the reconstructed regions in the current picture.
  • data elements eg, sample values, etc.
  • the intra prediction may represent prediction for generating a prediction sample for the current block based on a reference sample outside the current block in a picture to which the current block belongs (hereinafter, the current picture).
  • the present invention describes the detailed technique of the intra prediction method described above with reference to FIGS. 1 and 2, and may be represented by the intra prediction based video / image decoding method of FIG. 10 and the intra prediction unit of the decoding apparatus of FIG. 11, which will be described later. .
  • the encoder may be represented by the intra prediction-based video / video encoding method of FIG. 8 described later and the intra prediction unit in the encoding apparatus of FIG. 9.
  • the data encoded by FIGS. 8 and 9 can be stored in the form of a bitstream.
  • peripheral reference samples to be used for intra prediction of the current block may be derived.
  • the neighboring reference samples of the current block are samples adjacent to the left boundary of the current block of nWxnH size and total 2xnH samples adjacent to the bottom-left, samples adjacent to the top boundary of the current block. And a total of 2xnW samples neighboring the top-right and one sample neighboring the top-left of the current block.
  • the peripheral reference samples of the current block may include multiple columns of upper peripheral samples and multiple rows of left peripheral samples.
  • the neighboring reference samples of the current block have a total nH samples adjacent to the right boundary of the current block of size nWxnH, a total nW samples adjacent to the bottom boundary of the current block, and the lower right side of the current block. (bottom-right) may include one neighboring sample.
  • the decoder may construct surrounding reference samples to be used for prediction by substituting unavailable samples with available samples.
  • peripheral reference samples to be used for prediction may be configured through interpolation of available samples.
  • a prediction sample may be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) prediction among neighboring reference samples of the current block
  • the prediction sample may be derived based on a reference sample present in a specific (predictive) direction with respect to the sample. In the case of (i), it may be called a non-directional mode or a non-angle mode, and in the case of (ii), a directional mode or an angular mode.
  • the interpolation between the second neighboring sample and the first neighboring sample located in a direction opposite to the prediction direction of the intra prediction mode of the current block based on the predicted sample of the current block among the neighboring reference samples Predictive samples may be generated.
  • LIP linear interpolation intra prediction
  • a temporary prediction sample of the current block is derived based on filtered peripheral reference samples, and at least one of the existing peripheral reference samples, ie, unfiltered peripheral reference samples, derived according to the intra prediction mode
  • a prediction sample of the current block may be derived by weighting a sum of a reference sample and the temporary prediction sample.
  • PDPC Part dependent intra prediction
  • post-process filtering may be performed on the predicted samples derived as necessary.
  • the intra prediction procedure may include an intra prediction mode determination step, a peripheral reference sample derivation step, and an intra prediction mode based prediction sample derivation step. Also, a post-filtering step may be performed on the predicted sample derived as necessary.
  • the video / video encoding procedure based on intra prediction and the intra prediction unit in the encoding device may schematically include, for example, the following.
  • FIGS. 8 and 9 are diagrams illustrating an intra prediction-based video / video encoding method according to an embodiment of the present invention and an intra prediction unit in an encoding device according to an embodiment of the present invention.
  • S801 may be performed by the intra prediction unit 185 of the encoding device, and S802 may be performed by the residual processing unit of the encoding device. Specifically, S802 may be performed by the subtraction unit 115 of the encoding device.
  • the prediction information is derived by the intra prediction unit 185 and may be encoded by the entropy encoding unit 190.
  • the residual information is derived by the residual processing unit and may be encoded by the entropy encoding unit 190.
  • the residual information is information about the residual samples.
  • the residual information may include information about quantized transform coefficients for the residual samples.
  • the residual samples may be derived as transform coefficients through the transform unit 120 of the encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through the quantization unit 130.
  • Information about the quantized transform coefficients may be encoded in the entropy encoding unit 190 through a residual coding procedure.
  • the encoding device performs intra prediction on the current block (S801).
  • the encoding apparatus may derive an intra prediction mode for the current block, derive neighbor reference samples of the current block, and generate prediction samples in the current block based on the intra prediction mode and the neighbor reference samples.
  • the intra prediction mode determination, neighboring reference samples may be performed simultaneously, or one procedure may be performed before another procedure.
  • the intra prediction unit of the encoding apparatus may include a prediction mode determination unit 186, a reference sample derivation unit 187, a prediction sample derivation unit 188, and the prediction mode determination unit 186 determines an intra prediction mode for the current block
  • the reference sample derivation unit 187 may derive neighboring reference samples of the current block, and the prediction sample derivation unit 188 may deduce motion samples of the current block.
  • the intra prediction unit 185 may further include a prediction sample filter unit (not shown)
  • the encoding device may include the current block among a plurality of intra prediction modes. The encoding apparatus may compare the RD cost for the intra prediction modes and determine an optimal intra prediction mode for the current block.
  • the encoding device may perform a prediction sample filtering procedure.
  • Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
  • the encoding apparatus generates residual samples for the current block based on the (filtered) prediction sample (S802).
  • the encoding apparatus may encode image information including prediction mode information indicating the intra prediction mode and residual information about the residual samples (S803).
  • the encoded image information may be output in the form of a bit stream.
  • the output bitstream may be delivered to a decoding device through a storage medium or network.
  • the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is for deriving the same prediction result as that performed in the decoding device in the encoding device, because it is possible to increase coding efficiency.
  • the above-described in-loop filtering procedure may be further applied to the reconstructed picture.
  • FIGS. 10 and 11 are diagrams illustrating an intra prediction-based video / image decoding method according to an embodiment of the present invention and an intra prediction unit in a decoding apparatus according to an embodiment of the present invention.
  • the decoding apparatus may perform an operation corresponding to an operation performed in the encoding apparatus.
  • the decoding apparatus may perform prediction on the current block based on the received prediction information and derive prediction samples.
  • the decoding apparatus may derive an intra prediction mode for the current block based on the received prediction mode information (S1001).
  • the decoding apparatus may derive neighboring reference samples of the current block (S1002).
  • the decoding apparatus generates prediction samples in the current block based on the intra prediction mode and the surrounding reference samples (S1003).
  • the decoding apparatus may perform a prediction sample filtering procedure. Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
  • the decoding apparatus generates residual samples for the current block based on the received residual information (S1004).
  • the decoding apparatus may generate reconstructed samples for the current block based on the (filtered) predicted samples and the residual samples, and generate a reconstructed picture based on the reconstructed pictures (S1005).
  • the intra prediction unit 265 of the decoding apparatus may include a prediction mode determination unit 266, a reference sample derivation unit 267, and a prediction sample derivation unit 268, and the prediction mode determination unit 266 is encoded.
  • the intra prediction mode for the current block is determined based on the prediction mode information received from the prediction mode determination unit 186 of the device, and the reference sample derivation unit 266 derives neighboring reference samples of the current block and predicts it.
  • the sample derivation unit 267 may derive prediction samples of the current block.
  • the intra prediction unit 265 may further include a prediction sample filter unit (not shown).
  • the prediction mode information may include flag information (ex. Prev_intra_luma_pred_flag) indicating whether most probable mode (MPM) is applied to the current block or remaining mode, and the MPM is the current When applied to a block, the prediction mode information may further include index information (ex. Mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates).
  • the intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list.
  • the prediction mode information further includes remodeling mode information (eg, rem_inra_luma_pred_mode) indicating one of the remaining intra prediction modes except the intra prediction mode candidates (MPM candidates). It can contain.
  • the decoding apparatus may determine an intra prediction mode of the current block based on the prediction mode information.
  • the prediction mode information may be encoded / decoded through a coding method described below.
  • the prediction mode information may be encoded / decoded through encoding coding (eg, CABAC, CAVLC) based on truncated (rice) binary code.
  • an intra prediction mode applied to a current block may be determined using an intra prediction mode of neighboring blocks.
  • the decoding apparatus may select one of the most probable mode (mpm) candidates derived based on the intra prediction mode of the left block of the current block and the intra prediction mode of the upper block based on the received mpm index, or One of the remaining intra prediction modes that are not included in the mpm candidates may be selected based on the remodeling intra prediction mode information.
  • the mpm index may be signaled in the form of an mpm_idx syntax element
  • the remodeling intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode syntax element.
  • the re-maining intra-prediction mode information may indicate one of the intra-prediction modes by indexing the remaining intra-prediction modes not included in the mpm candidates in order of prediction mode number.
  • FIGS. 12 and 13 are views illustrating a prediction direction of an intra prediction mode according to an embodiment to which the present invention can be applied.
  • the intra prediction mode may include two non-directional intra prediction modes and 33 directional intra prediction modes.
  • the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include intra prediction modes 2 to 34.
  • the planner intra prediction mode may be called a planner mode, and the DC intra prediction mode may be called a DC mode.
  • the directional intra prediction mode may be extended from the existing 33 to 65, as shown in FIG. 13 to be described later.
  • the intra prediction mode may include two non-directional intra prediction modes and 65 directional intra prediction modes.
  • the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include intra prediction modes 2 to 66.
  • the extended directional intra prediction can be applied to blocks of all sizes, and can be applied to both luma and chroma components.
  • the intra prediction mode may include 67 modes.
  • the prediction direction according to each prediction mode index (or mode number) is as illustrated in FIG. 13.
  • Prediction mode indexes 0 and 1 indicate planner mode and DC mode, respectively.
  • the prediction mode indexes 2 to 66 indicate a prediction direction of an angle divided from an arrow in the lower left direction to an arrow in the upper right direction. Of the 65 angles, prediction modes 2, 18, 50, and 66 indicate horizontal diagonal directions, horizontal directions, vertical directions, and vertical diagonal directions, respectively.
  • the intra prediction mode may include two non-directional intra prediction modes and 129 directional intra prediction modes.
  • the non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 130 intra prediction modes.
  • the prediction unit of the encoding device / decoding device may derive a reference sample according to the intra prediction mode of the current block among neighboring reference samples of the current block, and generate a prediction sample of the current block based on the reference sample. .
  • a prediction sample may be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) specific to a prediction sample among neighboring reference samples of the current block.
  • the prediction sample may be derived based on a reference sample present in the (prediction) direction. In the case of (i), it may be called a non-directional mode or a non-angle mode, and in the case of (ii), a directional mode or an angular mode.
  • multi-reference sample lines using one or more reference sample lines for intra prediction may be used for more accurate prediction.
  • the most probale mode is configured to effectively reduce the overhead signaling the intra prediction mode. Suggest how to do it.
  • coding efficiency can be improved in terms of reducing signaling overhead by efficiently coding the intra prediction mode. By reducing the signaling overhead, better coding efficiency can be obtained in terms of BD-rate / BD-PSNR.
  • the best intra prediction mode is determined as an optimized prediction mode by jointly considering bit-rate and distortion. Then, the optimal (selected) predictive intra mode is coded through the bit stream, and the decoder performs intra prediction using the optimal intra prediction mode parsed from the bit stream.
  • the increased number of intra prediction modes require efficient intra mode coding to minimize signaling overhead.
  • the MPM list (or MPM candidate list) may be constructed using intra prediction modes of neighboring intra coded blocks at both the encoder and decoder.
  • the optimal prediction mode selected by the encoder is one of prediction modes included in the MPM list, overhead may be minimized through MPM index signaling.
  • FIG 14 shows an example of a neighboring block used as an MPM candidate according to an embodiment to which the present invention can be applied.
  • a conventional image compression technique for example, HEVC
  • three MPM lists are generated based on two neighbor intra prediction modes of positions F and G shown in FIG. 14.
  • F or G may be set to DC mode, respectively.
  • -F or G is not an intra coded block
  • intra prediction modes of the A to G position blocks illustrated in FIG. 14 may be represented by A to G, respectively. That is, the F or G represents the intra prediction mode of the F or G position block, respectively. If F and G are determined, the three MPM lists may be constructed based on the pseudo codes of Table 2 below.
  • a first MPM list is generated (or derived), and F is 2 If not smaller, a second MPM list may be generated.
  • the number of MPM candidates included in the MPM list may be set differently according to the number of intra prediction modes. In general, as the number of intra prediction modes increases, the number of MPM candidates may increase. However, the present invention is not limited thereto, and for example, 35 and 67 intra modes may have various numbers of MPM candidates such as 3, 4, and 5 depending on design.
  • this intra prediction mode may be used to construct the MPM list.
  • Various intra modes need to be included in the MPM list to improve the intra mode coding efficiency and make the MPM mode more frequent.
  • the more various modes of intra-consideration are considered from various neighboring locations the better coding efficiency can be achieved.
  • the probability of having various MPM lists may increase.
  • HEVC HEVC
  • a method of constructing an MPM list using more neighboring blocks has been discussed.
  • searching for a block of a large number of locations a problem of significantly increasing complexity may occur.
  • an object of the present invention is to propose a method for generating an MPM list that can improve such problems and increase diversity of MPM candidates.
  • the geometrical distance between the G block and the F block is shorter than that of the B block and the D block. Since the distance between the B block and the D block is relatively larger than the distance between the G block and the F block, the probability is different between the G and the F (i.e., the difference between the B and D intra prediction modes). , Difference between intra prediction modes of G and F) may be small. At the same time, since the distance between the B block and the D block is relatively larger than the distance between the G block and the F block, the probability of B and D being equal may be lower than the probability of G and F being equal.
  • the C block or the E block has a position in a diagonal direction based on the current block to be predicted, and the probability of being outside the current CTU or the current pipe lining unit is greater than the B block and the D block.
  • the intra preliminary mode of the corresponding position may be regarded as a planner mode or a DC mode as in the embodiments described below. Therefore, in this case, the C block or the E block can bring about a low diversity in MPM candidate configuration compared to the B block and the D block.
  • the encoder / decoder proposes a method of constructing an MPM list using an intra prediction mode of neighboring blocks of B and D positions. That is, in the present embodiment, the encoder / decoder proposes a method of constructing an MPM list using a limited number of neighboring locations B and D in order to increase diversity of MPM candidates.
  • the locations of B and D can be used to construct MPM lists instead of G and F, respectively.
  • W and H represent the width and height of the current block.
  • 15 is a diagram illustrating an example of a component that generates an MPM list according to an embodiment of the present invention.
  • the component of FIG. 15 may be implemented with a configuration included in a decoder (or a decoding apparatus, 200 of FIG. 2 above).
  • the decoder is mainly described, but the MPM list generation method according to the present embodiment can be applied to the encoder substantially the same, and the component of FIG. 15 is similarly applied to the encoder (or encoding device, 100 of FIG. 1 above). It can be implemented in an included configuration.
  • a component for generating an MPM list may include a first component 1501, a second component 1502, and a third component 1503.
  • the first component 1501 may check whether the left and upper peripheral blocks are available. At this time, the left and upper peripheral blocks may be the peripheral blocks of positions B and D of FIG. 14 described above.
  • the second component 1502 may acquire intra prediction modes of the left and upper neighboring blocks.
  • the third component 1503 may generate the MPM list based on a predefined condition (or branch). An embodiment of the MPM list generation method will be described later.
  • the length of the MPM list (ie, the number of MPM candidates) may be extended to increase the diversity of MPMs.
  • the neighboring blocks at positions B and D can be used for generation of the extended MPM list.
  • the length of the extended MPM list may vary depending on the number of intra prediction modes, and may be defined (or determined, set) by a number greater than 3, such as 4, 5, 6, and the like.
  • the encoder / decoder can confirm whether B and D (that is, intra prediction mode of B and intra prediction mode of D) are the same.
  • the encoder / decoder can check whether B is smaller than 2 (that is, the prediction mode 2 of FIG. 13 described above). If B is less than 2, the encoder / decoder may generate (or derive) a first MPM list, and if B is not less than 2, it may generate a second MPM list.
  • the encoder / decoder can check whether B or D is not in the planner mode. If B or D is not in the planner mode, the encoder / decoder may generate a third MPM list, and if (B + D) is less than 2, a fourth list. And, in other cases, the encoder / decoder may generate the fifth MPM list.
  • an example of the MPM list generated according to the MPM list construction method of this embodiment is shown in Table 4 below.
  • the first to fifth MPM lists may include MPM candidates as shown in Table 4.
  • the length of the extended MPM list may be 4, and in this case, the encoder / decoder may construct 4 MPM lists by adding 1 MPM candidate to 3 existing MPM lists.
  • the encoder / decoder may instead use a prediction mode that occurs statistically. At this time, considering that the probability of occurrence of the planner mode is higher than that of the DC mode, the encoder / decoder sets the planner mode to the prediction mode of B or D when the intra prediction mode of the neighboring blocks of the B and D positions cannot be used ( Or use). Specifically, when at least one of the following conditions is satisfied, the encoder / decoder may set the planner mode as the prediction mode of B or D.
  • a method for binarizing an extended MPM list is proposed to efficiently code MPM.
  • 6 MPM when 6 MPM is used, as an optimal mode, a specific MPM index is spread to all indexes rather than being inclined to an index having a low probability of being hit. Therefore, hereinafter, a method of performing binarization using only 2 or 3 bins for indexes for 6 MPM candidates is proposed. Examples of the binarization proposed in this embodiment are shown in Table 5 below.
  • both the conventional 6 MPM and the proposed extended 6 MPM are binarized.
  • the proposed binarization has more advantages in MPM coding than the conventional 6 MPM, since the probability of choosing the optimal mode is not biased to a particular index.
  • the maximum number of bins required for the proposed binarization is three, whereas according to the conventional binarization, the maximum number of bins required for binarization is five.
  • the remaining modes can be coded with 5 bits.
  • 16 is a flowchart illustrating a method of generating an intra prediction block according to an embodiment to which the present invention is applied.
  • a decoder is mainly described, but the present invention is not limited thereto, and an intra prediction block generation method according to an embodiment of the present invention may be performed in the same manner in an encoder and a decoder.
  • the decoder acquires an MPM flag indicating whether a Most Probable Mode (MPM) is applied to the current block (S1601).
  • MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block.
  • the decoder configures an MPM list based on intra prediction modes of the left and upper neighboring blocks of the current block (S1602).
  • the decoder acquires an MPM index indicating a specific intra prediction mode in the MPM list (S1603).
  • the decoder generates a prediction block of the current block using the intra prediction mode specified by the MPM index (S1604).
  • the left neighboring block is set as a block including pixels adjacent in the horizontal direction of the lower left sample in the current block, and the upper neighboring block includes pixels adjacent in the vertical direction of the upper right sample in the current block. It can be set as a block.
  • the step S1602 includes: checking whether intra prediction modes of the left and upper neighboring blocks are the same; Checking whether the intra prediction mode of the upper neighboring block is less than 2 when the intra prediction mode of the left and upper neighboring blocks are the same; If the intra prediction mode of the upper neighboring block is less than 2, generating a first MPM list; And when the intra prediction mode of the upper neighboring block is not less than 2, generating a second MPM list.
  • the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode
  • the second MPM list is a planner mode, a DC mode , The intra prediction mode of the upper neighboring block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
  • the left or upper neighboring block is not available, is not a block coded in an intra prediction mode, or is not located in a current coding tree unit (CTU). If not, the method may further include setting the intra prediction mode of the left or upper neighboring block to a planar mode.
  • CTU current coding tree unit
  • the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00 and index 1 is binarized to 01, Index 2 can be binarized to 100, index 3 can be binarized to 101, index 4 can be binarized to 110, and index 5 can be binarized to 111.
  • 17 is a diagram illustrating an intra prediction apparatus according to an embodiment to which the present invention is applied.
  • the intra prediction unit is illustrated as one block, but the intra prediction unit may be implemented in a configuration included in the encoder and / or decoder.
  • the intra prediction unit implements the functions, processes, and / or methods previously proposed in FIGS. 8 to 16.
  • the intra prediction unit may include an MPM flag acquisition unit 1701, an MPM list construction unit 1702, an MPM index acquisition unit 1703, and a prediction block generation unit 1704.
  • the MPM flag acquiring unit 1701 acquires an MPM flag indicating whether Most Probable Mode (MPM) is applied to the current block.
  • MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block.
  • the MPM list construction unit 1702 configures the MPM list based on the intra prediction mode of the left and upper neighboring blocks of the current block.
  • the MPM index obtaining unit 1703 acquires an MPM index indicating a specific intra prediction mode in the MPM list.
  • the prediction block generator 1704 generates a prediction block of the current block using an intra prediction mode specified by the MPM index.
  • the left neighboring block is set as a block including pixels adjacent in the horizontal direction of the lower left sample in the current block, and the upper neighboring block includes pixels adjacent in the vertical direction of the upper right sample in the current block. It can be set as a block.
  • the MPM list construction unit 1702 checks whether the intra prediction modes of the left and upper neighboring blocks are the same, and when the intra prediction modes of the left and upper neighboring blocks are the same, the It is checked whether the intra prediction mode of the upper neighboring block is less than 2, and if the intra prediction mode of the upper neighboring block is less than 2, a first MPM list is generated, and the intra prediction mode of the upper neighboring block is If not less than 2, a second MPM list may be generated.
  • the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode
  • the second MPM list is a planner mode, a DC mode , The intra prediction mode of the upper neighboring block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
  • the MPM list construction unit 1702 is not available in the left or upper neighboring block, is not a block coded in intra prediction mode, or is currently a coding tree unit (CTU). ),
  • the intra prediction mode of the left or upper neighboring block may be set as a planar mode.
  • the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00 and index 1 is binarized to 01, Index 2 can be binarized to 100, index 3 can be binarized to 101, index 4 can be binarized to 110, and index 5 can be binarized to 111.
  • FIG. 18 shows a video coding system to which the present invention is applied.
  • the video coding system may include a source device and a receiving device.
  • the source device may deliver the encoded video / video information or data to a receiving device through a digital storage medium or network in the form of a file or streaming.
  • the source device may include a video source, an encoding apparatus, and a transmitter.
  • the receiving device may include a receiver, a decoding apparatus, and a renderer.
  • the encoding device may be called a video / video encoding device, and the decoding device may be called a video / video decoding device.
  • the transmitter can be included in the encoding device.
  • the receiver may be included in the decoding device.
  • the renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source may acquire a video / image through a capture, synthesis, or generation process of the video / image.
  • the video source may include a video / image capture device and / or a video / image generation device.
  • the video / image capture device may include, for example, one or more cameras, a video / image archive including previously captured video / images, and the like.
  • the video / image generating device may include, for example, a computer, a tablet and a smart phone, and the like (electronically) to generate the video / image.
  • a virtual video / image may be generated through a computer or the like, and in this case, the video / image capture process may be replaced by a process in which related data is generated.
  • the encoding device can encode the input video / video.
  • the encoding apparatus may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video / video information) may be output in the form of a bitstream.
  • the transmitting unit may transmit the encoded video / video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format.
  • the digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the transmission unit may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast / communication network.
  • the receiver may extract the bitstream and transmit it to the decoding device.
  • the decoding apparatus may decode a video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus.
  • the renderer can render the decoded video / image.
  • the rendered video / image may be displayed through the display unit.
  • 19 is an embodiment to which the present invention is applied, and shows a structure diagram of a content streaming system.
  • a content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server serves to compress a content input from multimedia input devices such as a smartphone, a camera, and a camcorder into digital data to generate a bitstream and transmit it to the streaming server.
  • multimedia input devices such as a smartphone, a camera, and a camcorder directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server serves as an intermediary to inform the user of the service.
  • the web server delivers it to the streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server, in which case the control server serves to control commands / responses between devices in the content streaming system.
  • the streaming server may receive content from a media storage and / or encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PC, ultrabook, wearable device (e.g., smartwatch, smart glass, head mounted display (HMD)), digital TV, desktop Computers, digital signage, and the like.
  • PDA personal digital assistants
  • PMP portable multimedia player
  • slate PC slate PC
  • Tablet PC tablet
  • ultrabook ultrabook
  • wearable device e.g., smartwatch, smart glass, head mounted display (HMD)
  • digital TV desktop Computers, digital signage, and the like.
  • Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
  • the embodiments described in the present invention may be implemented and implemented on a processor, microprocessor, controller, or chip.
  • the functional units illustrated in each drawing may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
  • the decoder and encoder to which the present invention is applied are a multimedia broadcast transmission / reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video communication device, a real-time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. And can be used to process video signals or data signals.
  • the OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
  • the processing method to which the present invention is applied can be produced in the form of a computer-implemented program, and can be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device.
  • the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • an embodiment of the present invention may be implemented as a computer program product by program code, and the program code may be executed on a computer by an embodiment of the present invention.
  • the program code can be stored on a computer readable carrier.
  • Embodiments according to the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof.
  • one embodiment of the invention includes one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, and the like.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGAs field programmable gate arrays
  • processors controllers, microcontrollers, microprocessors, and the like.
  • an embodiment of the present invention may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above.
  • the software code can be stored in memory and driven by a processor.
  • the memory is located inside or outside the processor, and can exchange data with the processor by various known means.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Disclosed according to the present invention are a method of decoding a video signal and a device therefor. Specifically, a method of decoding an image on the basis of an intra-prediction mode may comprise the steps of: acquiring a most probable mode (MPM) flag indicating whether the MPM is applied to the current block, wherein the MPM represents a mode in which an intra-prediction mode for the current block is derived from an intra-predicted block around the current block; when the MPM is applied to the current block, forming an MPM list on the basis of intra-prediction modes for neighboring blocks lying to the left of and above the current block; acquiring an MPM index indicating a particular intra-prediction mode in the MPM list; and generating a prediction block for the current block by using an intra-prediction mode specified by the MPM index.

Description

인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치Intra prediction mode based image processing method and apparatus therefor
본 발명은 정지 영상 또는 동영상 처리 방법에 관한 것으로서, 보다 상세하게 인트라 예측 모드(intra prediction mode) 기반으로 정지 영상 또는 동영상을 인코딩/디코딩하는 방법 및 이를 지원하는 장치에 관한 것이다.The present invention relates to a method for processing a still image or a video, and more particularly, to a method for encoding / decoding a still image or a video based on an intra prediction mode and an apparatus supporting the same.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다. Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium. Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고프레임율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다.Next-generation video content will have the characteristics of high spatial resolution, high frame rate and high dimensionality of scene representation. In order to process such content, a huge increase in terms of memory storage, memory access rate and processing power will be produced.
따라서, 차세대 비디오 컨텐츠를 보다 효율적으로 처리하기 위한 코딩 툴을 디자인할 필요가 있다.Therefore, it is necessary to design a coding tool for processing next-generation video content more efficiently.
일반적으로, 다양한 이웃 위치로부터 다양한 인트라 모드를 고려할수록, 더 나은 코딩 효율이 달성될 수 있다. 이로 인해, 최근에는 HEVC 대비 더 많은 수의 MPM 후보를 고려함에 따라, 보다 많은 위치의 주변 블록을 이용하여 MPM 리스트를 구성하는 방법이 논의되고 있다. 그러나, 이처럼 많은 위치의 주변 블록을 탐색하는 경우 복잡도를 현저히 증가시키는 문제가 발생한다.In general, the more various modes of intra-consideration are considered from various neighboring locations, the better coding efficiency can be achieved. For this reason, recently, as more MPM candidates are considered than HEVC, a method of constructing an MPM list using more neighboring blocks has been discussed. However, in the case of searching for a block around a large number of locations, there is a problem that the complexity is significantly increased.
따라서, 본 발명의 목적은, 이러한 문제점을 개선함과 동시에 MPM 후보의 다양성을 높일 수 있는 MPM 리스트 생성 방법을 제안한다.Accordingly, an object of the present invention is to propose a method for generating an MPM list that can improve such problems and increase diversity of MPM candidates.
본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present invention are not limited to the technical problems mentioned above, and other technical problems that are not mentioned will be clearly understood by those skilled in the art from the following description. Will be able to.
본 발명의 일 양상은, 인트라 예측 모드 기반으로 영상을 디코딩하는 방법에 있어서, 현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득하는 단계, 여기서 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타냄; 상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성하는 단계; 상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득하는 단계; 및 상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성하는 단계를 포함하되, 상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고, 상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정될 수 있다.According to an aspect of the present invention, in a method of decoding an image based on an intra prediction mode, obtaining an MPM flag indicating whether a Most Probable Mode (MPM) is applied to a current block, wherein the MPM is Indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block; When MPM is applied to the current block, constructing an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block; Obtaining an MPM index indicating a specific intra prediction mode in the MPM list; And generating a prediction block of the current block using an intra prediction mode specified by the MPM index, wherein the left neighboring block is a block including pixels adjacent in the horizontal direction of the lower left sample in the current block. Is set, and the upper neighboring block may be set as a block including pixels adjacent in a vertical direction of a right uppermost sample in the current block.
바람직하게, 상기 MPM 리스트를 구성하는 단계는, 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한지 여부를 확인하는 단계; 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한 경우, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은지 여부를 확인하는 단계; 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은 경우, 제1 MPM 리스트를 생성하는 단계; 및 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성하는 단계를 더 포함할 수 있다.Preferably, the constructing the MPM list may include: checking whether intra prediction modes of the left and upper neighboring blocks are the same; Checking whether the intra prediction mode of the upper neighboring block is less than 2 when the intra prediction mode of the left and upper neighboring blocks are the same; If the intra prediction mode of the upper neighboring block is less than 2, generating a first MPM list; And when the intra prediction mode of the upper neighboring block is not less than 2, generating a second MPM list.
바람직하게, 상기 제1 MPM 리스트는 플래너(planar) 모드, DC 모드, 수직 모드, 수평 모드, 수평 대각 모드 및 수직 대각 모드를 포함하고, 상기 제2 MPM 리스트는 플래너 모드, DC 모드, 상기 상측 이웃 블록의 인트라 예측 모드 및 상기 상측 이웃 블록의 인트라 예측 모드에 가장 인접한 2개의 인트라 예측 모드를 포함할 수 있다.Preferably, the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode and a vertical diagonal mode, and the second MPM list includes a planar mode, a DC mode, and the upper neighbor The intra prediction mode of the block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block may be included.
바람직하게, 상기 MPM 리스트를 구성하는 단계는, 상기 좌측 또는 상측 이웃 블록이 이용 가능하지 않거나, 인트라 예측 모드로 코딩된 블록이 아니거나, 또는 현재 코딩 트리 유닛(CTU: coding tree unit) 내에 위치하지 않는 경우, 상기 좌측 또는 상측 이웃 블록의 인트라 예측 모드를 플래너(planar) 모드로 설정하는 단계를 더 포함할 수 있다.Preferably, the step of constructing the MPM list is that the left or upper neighboring block is not available, is not a block coded in intra prediction mode, or is not located in a current coding tree unit (CTU). If not, the method may further include setting the intra prediction mode of the left or upper neighboring block to a planar mode.
바람직하게, 상기 MPM 리스트는 6개의 MPM 후보를 포함하고, 상기 6개의 MPM 후보를 각각 지시하는 인덱스들 중에서, 0번 인덱스는 00으로 이진화되고, 1번 인덱스는 01으로 이진화되고, 2번 인덱스는 100으로 이진화되고, 3번 인덱스는 101으로 이진화되고, 4번 인덱스는 110으로 이진화되고, 5번 인덱스는 111으로 이진화될 수 있다.Preferably, the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00, index 1 is binarized to 01, and index 2 is It can be binarized to 100, index 3 is binarized to 101, index 4 is binarized to 110, and index 5 can be binarized to 111.
본 발명의 다른 일 양상은, 인트라 예측 모드 기반으로 영상을 디코딩하는 장치에 있어서, 현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득하는 MPM 플래그 획득부, 여기서 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타냄; 상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성하는 MPM 리스트 구성부; 상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득하는 MPM 인덱스 획득부; 및 상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성하는 예측 블록 생성부를 포함하되, 상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고, 상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정될 수 있다.Another aspect of the present invention, in an apparatus for decoding an image based on an intra prediction mode, an MPM flag acquiring unit that acquires an MPM flag indicating whether a Most Probable Mode (MPM) is applied to a current block, Here, the MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block; An MPM list construction unit configured to configure an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block when MPM is applied to the current block; An MPM index obtaining unit for obtaining an MPM index indicating a specific intra prediction mode in the MPM list; And a prediction block generator configured to generate a prediction block of the current block using an intra prediction mode specified by the MPM index, wherein the left neighboring block includes pixels adjacent in the horizontal direction of the lower left sample in the current block. The upper neighboring block may be set as a block including pixels adjacent in the vertical direction of the upper right sample in the current block.
본 발명의 실시예에 따르면, 본 발명의 실시예에 따르면, 종래의 영상 압축 기술과 상이한 위치의 좌측 및 상측 이웃 블록의 인트라 예측 모드를 이용함으로써, 보다 다양한 MPM 리스트를 구성할 수 있다. According to an embodiment of the present invention, according to an embodiment of the present invention, by using the intra prediction mode of the left and upper neighboring blocks at different positions from the conventional image compression technique, more various MPM lists can be constructed.
본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtainable in the present invention are not limited to the above-mentioned effects, and other effects not mentioned will be clearly understood by those skilled in the art from the following description. .
본 발명에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 발명에 대한 실시예를 제공하고, 상세한 설명과 함께 본 발명의 기술적 특징을 설명한다.BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are included as part of the detailed description to aid understanding of the present invention, provide embodiments of the present invention and describe the technical features of the present invention together with the detailed description.
도 1은 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.1 is an embodiment to which the present invention is applied, and shows a schematic block diagram of an encoding device in which encoding of a video / image signal is performed.
도 2는 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.2 is an embodiment to which the present invention is applied, and shows a schematic block diagram of a decoding apparatus in which decoding of a video / image signal is performed.
도 3은 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리 구조의 일 예를 나타내는 도면이다.3 is an embodiment to which the present invention can be applied, and is a view showing an example of a multi-type tree structure.
도 4는 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘을 예시하는 도면이다.4 is an embodiment to which the present invention can be applied, and is a diagram illustrating a signaling mechanism of partition partitioning information of a quadtree with nested multi-type tree structure.
도 5는 본 발명이 적용될 수 있는 실시예로서, 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU를 다중 CU들로 분할하는 방법을 예시하는 도면이다.5 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method of dividing a CTU into multiple CUs based on a quadtree and nested multi-type tree structure.
도 6은 본 발명이 적용될 수 있는 실시예로서, 터너리 트리(ternary-tree) 분할을 제한하는 방법을 예시하는 도면이다.6 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method for limiting ternary-tree partitioning.
도 7은 본 발명이 적용될 수 있는 실시예로서, 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들을 예시하는 도면이다.7 is an embodiment to which the present invention can be applied, and is a diagram illustrating redundant splitting patterns that may occur in binary tree splitting and ternary tree splitting.
도 8 및 도 9는 본 발명의 실시예에 따른 인트라 예측 기반 비디오/영상 인코딩 방법 및 본 발명의 실시예에 따른 인코딩 장치 내 인트라 예측부를 예시하는 도면이다.8 and 9 are diagrams illustrating an intra prediction-based video / video encoding method according to an embodiment of the present invention and an intra prediction unit in an encoding device according to an embodiment of the present invention.
도 10 및 도 11은 본 발명의 실시예에 따른 인트라 예측 기반 비디오/영상 디코딩 방법 및 본 발명의 실시예에 따른 디코딩 장치 내 인트라 예측부를 예시하는 도면이다.10 and 11 are diagrams illustrating an intra prediction-based video / image decoding method according to an embodiment of the present invention and an intra prediction unit in a decoding apparatus according to an embodiment of the present invention.
도 12 및 도 13은 본 발명이 적용될 수 있는 일 실시예에 따른 인트라 예측 모드의 예측 방향을 나타내는 도면이다.12 and 13 are views illustrating a prediction direction of an intra prediction mode according to an embodiment to which the present invention can be applied.
도 14는 본 발명이 적용될 수 있는 실시예에 따른 MPM 후보로 이용되는 주변 블록의 일 예를 도시한다.14 shows an example of a neighboring block used as an MPM candidate according to an embodiment to which the present invention can be applied.
도 15는 본 발명의 실시예에 따른 MPM 리스트를 생성하는 컴포넌트의 일 예를 나타내는 도면이다.15 is a diagram illustrating an example of a component that generates an MPM list according to an embodiment of the present invention.
도 16는 본 발명이 적용되는 실시예에 따른 인트라 예측 블록을 생성하는 방법을 예시하는 흐름도이다.16 is a flowchart illustrating a method of generating an intra prediction block according to an embodiment to which the present invention is applied.
도 17은 본 발명이 적용되는 실시예에 따른 인트라 예측 장치를 예시하는 도면이다.17 is a diagram illustrating an intra prediction apparatus according to an embodiment to which the present invention is applied.
도 18은 본 발명이 적용되는 비디오 코딩 시스템을 나타낸다.18 shows a video coding system to which the present invention is applied.
도 19는 본 발명이 적용되는 실시예로서, 컨텐츠 스트리밍 시스템 구조도를 나타낸다.19 is an embodiment to which the present invention is applied, and shows a structure diagram of a content streaming system.
이하, 본 발명에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 발명의 예시적인 실시형태를 설명하고자 하는 것이며, 본 발명이 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 발명의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 발명이 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. DETAILED DESCRIPTION The detailed description set forth below, in conjunction with the accompanying drawings, is intended to describe exemplary embodiments of the invention, and is not intended to represent the only embodiments in which the invention may be practiced. The following detailed description includes specific details to provide a thorough understanding of the present invention. However, one skilled in the art knows that the present invention can be practiced without these specific details.
몇몇 경우, 본 발명의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다. In some cases, in order to avoid obscuring the concept of the present invention, well-known structures and devices may be omitted, or block diagrams centered on the core functions of each structure and device may be illustrated.
아울러, 본 발명에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 발명의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.In addition, the terminology used in the present invention has been selected as a general terminology that is currently widely used as much as possible, but in a specific case, the term will be described using the term arbitrarily selected by the applicant. In such a case, since the meaning is clearly described in the detailed description of the relevant part, it should not be interpreted simply by the name of the term used in the description of the present invention and the meaning of the term should be understood and interpreted. .
이하의 설명에서 사용되는 특정 용어들은 본 발명의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 발명의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽쳐, 프레임, 블록 등의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.Certain terms used in the following description are provided to help understanding of the present invention, and the use of these specific terms may be changed to other forms without departing from the technical spirit of the present invention. For example, in the case of signals, data, samples, pictures, frames, blocks, etc., each coding process may be appropriately replaced and interpreted.
이하 본 명세서에서 '처리 유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 처리 과정이 수행되는 단위를 의미한다. 이하, 설명의 편의를 위해 처리 유닛은 '처리 블록' 또는 '블록'으로 지칭될 수도 있다. Hereinafter, the term 'processing unit' in the present specification means a unit in which encoding / decoding processing processes such as prediction, transformation, and / or quantization are performed. Hereinafter, for convenience of description, the processing unit may be referred to as a 'processing block' or a 'block'.
처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수 있다. 예를 들어, 처리 유닛은 코딩 트리 유닛(CTU: Coding Tree Unit), 코딩 유닛(CU: Coding Unit), 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)에 해당될 수 있다. The processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component. For example, the processing unit may correspond to a coding tree unit (CTU), a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
또한, 처리 유닛은 휘도(luma) 성분에 대한 단위 또는 색차(chroma) 성분에 대한 단위로 해석될 수 있다. 예를 들어, 처리 유닛은 휘도(luma) 성분에 대한 코딩 트리 블록(CTB: Coding Tree Block), 코딩 블록(CB: Coding Block), 예측 블록(PU: Prediction Block) 또는 변환 블록(TB: Transform Block)에 해당될 수 있다. 또는, 색차(chroma) 성분에 대한 코딩 트리 블록(CTB), 코딩 블록(CB), 예측 블록(PU) 또는 변환 블록(TB)에 해당될 수 있다. 또한, 이에 한정되는 것은 아니며 처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수도 있다. Also, the processing unit may be interpreted as a unit for a luma component or a unit for a chroma component. For example, the processing unit may include a coding tree block (CTB) for a luminance component, a coding block (CB), a prediction block (PU), or a transform block (TB). ). Alternatively, it may correspond to a coding tree block (CTB), a coding block (CB), a prediction block (PU), or a transform block (TB) for a chroma component. In addition, the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component.
또한, 처리 유닛은 반드시 정사각형의 블록으로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태로 구성될 수도 있다. In addition, the processing unit is not necessarily limited to square blocks, and may be configured in a polygonal shape having three or more vertices.
또한, 이하 본 명세서에서 픽셀 또는 화소 등을 샘플로 통칭한다. 그리고, 샘플을 이용한다는 것은 픽셀 값 또는 화소 값 등을 이용한다는 것을 의미할 수 있다. In addition, hereinafter, a pixel or a pixel is referred to as a sample in this specification. And, using a sample may mean using a pixel value or a pixel value.
도 1은 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.1 is an embodiment to which the present invention is applied, and shows a schematic block diagram of an encoding device in which encoding of a video / image signal is performed.
도 1을 참조하면, 인코딩 장치(100)는 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 메모리(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함하여 구성될 수 있다. 인터 예측부(180) 및 인트라 예측부(185)는 예측부로 통칭될 수 있다. 다시 말해, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다. 일 실시예로서, 상술한 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)는 하나의 하드웨어 컴포넌트(예를 들어, 인코더 또는 프로세서)에 의하여 구성될 수 있다. 또한, 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. Referring to FIG. 1, the encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may be configured to include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. In other words, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115. As an embodiment, the above-described image segmentation unit 110, subtraction unit 115, conversion unit 120, quantization unit 130, inverse quantization unit 140, inverse conversion unit 150, addition unit 155 The filtering unit 160, the inter prediction unit 180, the intra prediction unit 185, and the entropy encoding unit 190 may be configured by one hardware component (for example, an encoder or processor). Further, the memory 170 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. 다른 예로, 상기 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)을 더 포함할 수 있다. 이 경우 상기 예측 유닛 및 상기 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image splitter 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units. For example, the processing unit may be called a coding unit (CU). In this case, the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a coding tree unit (CTU) or a largest coding unit (LCU). For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and / or a binary tree structure. In this case, for example, a quad tree structure may be applied first, and a binary tree structure may be applied later. Alternatively, a binary tree structure may be applied first. The coding procedure according to the present invention can be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be directly used as a final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal if necessary. The coding unit of the size of can be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be partitioned or partitioned from the above-described final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.The unit may be used interchangeably with terms such as a block or area depending on the case. In a general case, the MxN block may represent samples of M columns and N rows or a set of transform coefficients. The sample may generally represent a pixel or a pixel value, and may indicate only a pixel / pixel value of a luma component or only a pixel / pixel value of a saturation component. The sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코더(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보 등 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The encoding apparatus 100 subtracts a prediction signal (a predicted block, a prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input image signal (original block, original sample array) A signal (residual signal, residual block, residual sample array) may be generated, and the generated residual signal is transmitted to the converter 120. In this case, as illustrated, a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input image signal (original block, original sample array) in the encoder 100 may be referred to as a subtraction unit 115. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block), and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of a current block or CU. As described later in the description of each prediction mode, the prediction unit may generate various information regarding prediction, such as prediction mode information, and transmit it to the entropy encoding unit 190. The prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode (Planar mode). The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 인터 예측부(180)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.The inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be referred to by a name such as a collocated reference block or a colCU, and a reference picture including the temporal neighboring block may be called a collocated picture (colPic). It might be. For example, the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Can be created. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the case of a motion vector prediction (MVP) mode, a motion vector of a current block is obtained by using a motion vector of a neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
상기 인터 예측부(180) 또는 상기 인트라 예측부(185)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. The prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)를 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)를 이용하여 예측 신호를 생성하고 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transformation technique may include at least one of a DCT (Discrete Cosine Transform), a DST (Discrete Sine Transform), a KLT (Karhunen-Loeve Transform), a GBT (Graph-Based Transform), or a CNT (Conditionally Non-linear Transform). It can contain. Here, GBT refers to a transformation obtained from this graph when it is said that the relationship information between pixels is graphically represented. CNT means a transform obtained by generating a predictive signal using all previously reconstructed pixels and based on it. Further, the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
양자화부(130)는 변환 계수들을 양자화하여 엔트로피 인코딩부(190)로 전송되고, 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. 엔트로피 인코딩부(190)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(100)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소일 수도 있다.The quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes a quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about the quantized transform coefficients may be called residual information. The quantization unit 130 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the one-dimensional vector form. Information regarding transform coefficients may be generated. The entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 190 may encode information necessary for video / image reconstruction (eg, values of syntax elements, etc.) together with the quantized transform coefficients together or separately. The encoded information (ex. Encoded video / video information) may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream. The bitstream can be transmitted over a network or stored on a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD. The signal output from the entropy encoding unit 190 may be configured as an internal / external element of the encoding apparatus 100 by a transmitting unit (not shown) and / or a storing unit (not shown) for storing, or the transmitting unit It may be a component of the entropy encoding unit 190.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들은에 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호를 복원할 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal. For example, the residual signal may be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150 in the loop. The adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 180 or the intra predictor 185, so that the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) Can be created. If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block. The adding unit 155 may be called a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, or may be used for inter prediction of the next picture through filtering as described below.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)은 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(170), 구체적으로 메모리(170)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(160)은 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may apply subjective filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be a DPB of the memory 170, specifically, the memory 170 Can be stored in. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like. The filtering unit 160 may generate various information regarding filtering as described later in the description of each filtering method and transmit it to the entropy encoding unit 190. The filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
메모리(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 인코딩 장치는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(100)와 디코딩 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다. The modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180. When the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 100 and the decoding apparatus can be avoided, and encoding efficiency can be improved.
메모리(170) DPB는 수정된 복원 픽처를 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 저장할 수 있다. 메모리(170)는 현재 픽처 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(180)에 전달할 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(185)에 전달할 수 있다. The memory 170 DPB may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180. The memory 170 may store motion information of a block from which motion information in a current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been reconstructed. The stored motion information may be transmitted to the inter prediction unit 180 for use as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 170 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185.
도 2는 본 발명이 적용되는 실시예로서, 비디오/이미지 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.2 is an embodiment to which the present invention is applied, and shows a schematic block diagram of a decoding apparatus in which decoding of a video / image signal is performed.
도 2를 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)를 합쳐서 예측부라고 불릴 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220), 역변환부(230)를 합쳐서 레지듀얼 처리부라고 불릴 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220), 역변환부(230)을 포함할 수 있다. 상술한 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다.Referring to FIG. 2, the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265. The inter prediction unit 260 and the intra prediction unit 265 may be collectively called a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the addition unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 described above are embodiments. It may be configured by one hardware component (for example, a decoder or processor). Also, the memory 170 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
비디오/이미지 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 1의 인코딩 장치에서 비디오/이미지 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 인코딩 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.When a bitstream including video / image information is input, the decoding apparatus 200 may restore an image in response to a process in which the video / image information is processed in the encoding apparatus of FIG. 1. For example, the decoding apparatus 200 may perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit of decoding may be, for example, a coding unit, and the coding unit may be divided along a quad tree structure and / or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproduction apparatus.
디코딩 장치(200)는 도 1의 인코딩 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(ex. 비디오/영상 정보)를 도출할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(2110)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)으로 제공될 수 있다. 한편, 인코딩 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다. The decoding apparatus 200 may receive the signal output from the encoding apparatus of FIG. 1 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (eg, video / image information) necessary for image reconstruction (or picture reconstruction). For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element required for image reconstruction and a transform coefficient for residual. Can output In more detail, the CABAC entropy decoding method receives bins corresponding to each syntax element in the bitstream, and decodes the syntax element information to be decoded and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in the previous step. The context model is determined by using, and the probability of occurrence of the bin is predicted according to the determined context model, and arithmetic decoding of the bin is performed to generate a symbol corresponding to the value of each syntax element. have. At this time, the CABAC entropy decoding method may update the context model using the decoded symbol / bin information for the next symbol / bin context model after determining the context model. Among the information decoded by the entropy decoding unit 2110, information regarding prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the entropy decoding unit 210 performs entropy decoding. The dual value, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. Also, information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 200, or the receiving unit may be a component of the entropy decoding unit 210.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 인코딩 장치에서 수행된 계수 스캔 순서를 기반하여 재정렬을 수행할 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)를 획득할 수 있다. The inverse quantization unit 220 may inverse quantize the quantized transform coefficients to output transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding device. The inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients by using a quantization parameter (for example, quantization step size information), and obtain transform coefficients.
역변환부(230)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득하게 된다. The inverse transform unit 230 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
예측부는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다. The prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction is applied or inter prediction is applied to the current block based on information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 265 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다. The inter prediction unit 260 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and information on the prediction may include information indicating a mode of inter prediction for the current block.
가산부(235)는 획득된 레지듀얼 신호를 인터 예측부(260) 또는 인트라 예측부(265)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.The adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring signals (restored pictures, reconstructed blocks). , A reconstructed sample array). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The adding unit 235 may be called a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, or may be used for inter prediction of the next picture through filtering as described below.
필터링부(240)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(250), 구체적으로 메모리(250)의 DPB에 전송할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. The filtering unit 240 may improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be a DPB of the memory 250, specifically, the memory 250 Can be transferred to. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
메모리(250)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.The (corrected) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260. The memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and / or motion information of blocks in a picture that has already been reconstructed. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 170 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 265.
본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치(200)의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In the present specification, the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding apparatus 100 are respectively the filtering unit 240 and the inter prediction of the decoding apparatus 200. The same may be applied to the unit 260 and the intra prediction unit 265.
Block PartitioningBlock Partitioning
본 문서에 따른 비디오/영상 코딩 방법은 다양한 세부 기술들에 기반하여 수행될 수 있으며, 각각의 세부 기술들을 개략적으로 설명하면 다음과 같다. 이하 설명되는 기술들은 상술한 및/또는 후술되는 비디오/영상 인코딩/디코딩 절차에서의 예측, 레지듀얼 처리((역)변환, (역)양자화 등), 신텍스 요소 코딩, 필터링, 파티셔닝/분할 등의 관련 절차에 연관될 수 있음은 당업자에게 자명하다.The video / image coding method according to this document may be performed based on various detailed technologies, and the detailed description of each detailed technology is as follows. The techniques described below include prediction in the video / image encoding / decoding procedure described above and / or described below, residual processing ((inverse) transform, (inverse) quantization, etc.), syntax element coding, filtering, partitioning / partitioning, etc. It will be apparent to those skilled in the art that it may be involved in the relevant procedures.
본 문서에 따른 블록 파티셔닝 절차는 상술한 인코딩 장치의 영상 분할부(110)에서 수행되어, 파티셔닝 관련 정보가 엔트로피 인코딩부(190)에서 (인코딩) 처리되어 비트스트림 형태로 디코딩 장치로 전달될 수 있다. 디코딩 장치의 엔트로피 디코딩부(210)는 상기 비트스트림으로부터 획득한 상기 파티셔닝 관련 정보를 기반으로 현재 픽처의 블록 파티셔닝 구조를 도출하고, 이를 기반으로 영상 디코딩을 위한 일련의 절차(ex. 예측, 레지듀얼 처리, 블록 복원, 인루프 필터링 등)을 수행할 수 있다.The block partitioning procedure according to the present document is performed by the image segmentation unit 110 of the above-described encoding device, so that the partitioning-related information is (encoded) processed by the entropy encoding unit 190 and transmitted to the decoding device in the form of a bitstream. . The entropy decoding unit 210 of the decoding apparatus derives a block partitioning structure of the current picture based on the partitioning-related information obtained from the bitstream, and based on this, a series of procedures for decoding the image (ex. Prediction, residual Processing, block reconstruction, in-loop filtering, etc.).
Partitioning of picture into CTUsPartitioning of picture into CTUs
픽처들은 코딩 트리 유닛들 (CTUs)의 시퀀스로 분할될(divided into a sequence) 수 있다. CTU는 코딩 트리 블록(CTB)에 대응될 수 있다. 혹은 CTU는 루마 샘플들의 코딩 트리 블록과, 대응하는 크로마 샘플들의 두개의 코딩 트리 블록들을 포함할 수 있다. 다시 말하면, 세가지 샘플 어레이를 포함하는 픽처에 대하여, CTU는 루마 샘플들의 NxN 블록과 크로마 샘플들의 두개의 대응 블록들을 포함할 수 있다.Pictures can be divided into a sequence of coding tree units (CTUs). The CTU may correspond to a coding tree block (CTB). Alternatively, the CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. In other words, for a picture containing three sample arrays, the CTU may include two corresponding blocks of chroma samples and an NxN block of luma samples.
코딩 및 예측 등을 위한 CTU의 최대 허용 사이즈는 변환을 위한 CTU의 최대 허용 사이즈와 다를 수 있다. 예를 들어, CTU 내 루마 블록의 최대 허용 사이즈는 128x128일 수 있다.The maximum allowable size of the CTU for coding and prediction may be different from the maximum allowable size of the CTU for transformation. For example, the maximum allowable size of the luma block in the CTU may be 128x128.
Partitionig of the CTUs using a tree structurePartitionig of the CTUs using a tree structure
CTU는 쿼드트리(quad-tree, QT) 구조를 기반으로 CU들로 분할될 수 있다. 쿼드트리 구조는 쿼터너리(quaternary) 트리 구조라고 불릴 수 있다. 이는 다양한 국지적 특징(local characteristic)을 반영하기 위함이다. 한편, 본 문서에서는 CTU는 쿼드트리 뿐 아니라 바이너리 트리(binary-tree, BT) 및 터너리 트리(ternary-tree, TT)을 포함하는 멀티타입 트리 구조 분할을 기반하여 분할될 수 있다. 이하, QTBT 구조라 함은 쿼드트리 및 바이너리 트리 기반 분할 구조를 포함할 수 있고, QTBTTT라 함은 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 또는, QTBT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수도 있다. 코딩 트리 구조에서, CU는 정사각형 또는 직사각형 모양을 가질 수 있다. CTU는 먼저 쿼드트리 구조로 분할될 수 있다. 이후 쿼드트리 구조의 리프 노드들은 멀티타입 트리 구조에 의하여 추가적으로 분할될 수 있다. The CTU may be divided into CUs based on a quad-tree (QT) structure. The quadtree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics. Meanwhile, in this document, the CTU can be divided based on multi-type tree structure division including a binary tree (BT) and a ternary tree (TT) as well as a quad tree. Hereinafter, the QTBT structure may include a quadtree and binary tree based partitioning structure, and the QTBTTT may include a quadtree, binary tree and ternary tree based partitioning structure. Alternatively, the QTBT structure may include a quadtree, binary tree, and ternary tree based splitting structure. In the coding tree structure, the CU can have a square or rectangular shape. The CTU can be first divided into a quadtree structure. Thereafter, leaf nodes having a quadtree structure may be additionally divided by a multi-type tree structure.
도 3은 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리 구조의 일 예를 나타내는 도면이다.3 is an embodiment to which the present invention can be applied, and is a view showing an example of a multi-type tree structure.
본 발명의 일 실시예에서, 멀티타입 트리 구조는 도 3에 도시된 바와 같은 4개의 분할 타입을 포함할 수 있다. 상기 4개의 분할 타입은 수직 바이너리 분할(vertical binary splitting, SPLIT_BT_VER), 수평 바이너리 분할(horizontal binary splitting, SPLIT_BT_HOR), 수직 터너리 분할(vertical ternary splitting, SPLIT_TT_VER), 수평 터너리 분할(horizontal ternary splitting, SPLIT_TT_HOR)을 포함할 수 있다. 상기 멀티타입 트리 구조의 리프 노드들은 CU들이라고 불리 수 있다. 이러한 CU들은 예측 및 변환 절차를 위하여 사용될 수 있다. 본 문서에서 일반적으로 CU, PU, TU는 동일한 블록 사이즈를 가질 수 있다. 다만, 최대 허용 변환 길이(maximum supported transform length )가 CU의 컬러 성분(colour component)의 너비 도는 높이보다 작은 경우에는 CU와 TU가 서로 다른 블록 사이즈를 가질 수 있다.In an embodiment of the present invention, the multitype tree structure may include four split types as shown in FIG. 3. The four division types are vertical binary splitting (SPLIT_BT_VER), horizontal binary splitting (SPLIT_BT_HOR), vertical ternary splitting (SPLIT_TT_VER), horizontal ternary splitting (horizontal ternary splitting, SPLIT_TT_HOR) ). Leaf nodes of the multi-type tree structure may be referred to as CUs. These CUs can be used for prediction and transformation procedures. In this document, CU, PU, and TU may have the same block size. However, when the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
도 4는 본 발명이 적용될 수 있는 실시예로서, 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘을 예시하는 도면이다.4 is an embodiment to which the present invention can be applied, and is a diagram illustrating a signaling mechanism of partition partitioning information of a quadtree with nested multi-type tree structure.
여기서, CTU는 쿼드트리의 루트(root)로 취급되며, 쿼드트리 구조로 처음으로 파티셔닝된다. 각 쿼드트리 리프 노드는 이후 멀티타입 트리 구조로 더 파티셔닝될 수 있다. 멀티타입 트리 구조에서, 제1 플래그(a first flag, ex. mtt_split_cu_flag)가 해당 노드가 추가적으로 파티셔닝되는지를 지시하기 위하여 시그널링된다. 만약 해당 노드가 추가적으로 파티셔닝되는 경우, 제2 플래그(a second flag, ex. mtt_split_cu_verticla_flag)가 분할 방향(splitting direction)을 지시하기 위하여 시그널링될 수 있다. 그 후 제3 플래그(a third flag, ex. mtt_split_cu_binary_flag)가 분할 타입이 바이너리 분할인지 터너리 분할인지 여부를 지시하기 위하여 시그널링될 수 있다. 예를 들어, 상기 mtt_split_cu_vertical_flag 및 상기 mtt_split_cu_binary_flag를 기반으로, CU의 멀티타입 트리 분할 모드(multi-type tree splitting mode, MttSplitMode)가 다음 표 1과 같이 도출될 수 있다.Here, the CTU is treated as the root of the quadtree, and is first partitioned into a quadtree structure. Each quadtree leaf node can then be further partitioned into a multitype tree structure. In the multi-type tree structure, a first flag (ex. Mtt_split_cu_flag) is signaled to indicate whether the corresponding node is additionally partitioned. If the corresponding node is additionally partitioned, a second flag (a second flag, ex. Mtt_split_cu_verticla_flag) may be signaled to indicate a splitting direction. Then, a third flag (a third flag, ex. Mtt_split_cu_binary_flag) may be signaled to indicate whether the partition type is binary partition or ternary partition. For example, based on the mtt_split_cu_vertical_flag and the mtt_split_cu_binary_flag, a multi-type tree splitting mode (MttSplitMode) of a CU may be derived as shown in Table 1 below.
Figure PCTKR2019011588-appb-img-000001
Figure PCTKR2019011588-appb-img-000001
도 5는 본 발명이 적용될 수 있는 실시예로서, 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU를 다중 CU들로 분할하는 방법을 예시하는 도면이다.5 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method of dividing a CTU into multiple CUs based on a quadtree and nested multi-type tree structure.
여기서, 볼드 블록 엣지들(bold block edges)는 쿼드트리 파티셔닝을, 나머지 엣지들은 멀티타입 트리 파티셔닝을 나타낸다. 멀티타입 트리를 수반한 쿼드트리 파티션은 컨텐츠-어댑티드 코딩 트리 구조를 제공할 수 있다. CU는 코딩 블록(CB)에 대응될 수 있다. 혹은 CU는 루마 샘플들의 코딩 블록과, 대응하는 크로마 샘플들의 두개의 코딩 블록들을 포함할 수 있다. CU의 사이즈는 CTU만큼 클 수도 있고, 또는 루마 샘플 단위에서 4x4 만큼 잘을 수도 있다. 예를 들어, 4:2:0 컬러 포멧(or 크로마 포멧)인 경우, 최대 크로마 CB 사이즈는 64x64이고 최소 크로마 CB 사이즈는 2x2일 수 있다.Here, bold block edges represent quadtree partitioning, and the remaining edges represent multitype tree partitioning. A quadtree partition with a multitype tree can provide a content-adapted coding tree structure. The CU may correspond to a coding block (CB). Alternatively, the CU may include a coding block of luma samples and two coding blocks of corresponding chroma samples. The size of a CU may be as large as a CTU, or may be cut by 4x4 in luma sample units. For example, in the case of a 4: 2: 0 color format (or chroma format), the maximum chroma CB size may be 64x64 and the minimum chroma CB size may be 2x2.
본 문서에서 예를 들어, 최대 허용 루마 TB 사이즈는 64x64이고, 최대 허용 크로마 TB 사이즈는 32x32일 수 있다. 만약 상기 트리 구조에 따라 분할된 CB의 너비 또는 높이가 최대 변환 너비 또는 높이보다 큰 경우, 해당 CB는 자동적으로(또는 묵시적으로) 수평 및 수직 방향의 TB 사이즈 제한을 만족할 때까지 분할될 수 있다. In this document, for example, the maximum allowed luma TB size may be 64x64 and the maximum allowed chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum conversion width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size limitations are satisfied.
한편, 멀티타입 트리를 수반한 쿼드트리 코딩 트리 스킴을 위하여, 다음 파라미터들이 SPS 신텍스 요소로 정의 및 식별될 수 있다.Meanwhile, for a quadtree coding tree scheme involving a multitype tree, the following parameters may be defined and identified as SPS syntax elements.
- CTU size: the root node size of a quaternary tree-CTU size: the root node size of a quaternary tree
- MinQTSize: the minimum allowed quaternary tree leaf node size-MinQTSize: the minimum allowed quaternary tree leaf node size
- MaxBtSize: the maximum allowed binary tree root node size-MaxBtSize: the maximum allowed binary tree root node size
- MaxTtSize: the maximum allowed ternary tree root node size-MaxTtSize: the maximum allowed ternary tree root node size
- MaxMttDepth: the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf-MaxMttDepth: the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf
- MinBtSize: the minimum allowed binary tree leaf node size-MinBtSize: the minimum allowed binary tree leaf node size
- MinTtSize: the minimum allowed ternary tree leaf node size-MinTtSize: the minimum allowed ternary tree leaf node size
멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조의 일 예로, CTU 사이즈는 128x128 루마 샘플들 및 두개의 대응하는 크로마 샘플들의 64x64 블록들로 설정될 수 있다(4:2:0 크로마 포멧에서). 이 경우, MinOTSize는 16x16으로 설정되고, MaxBtSize는 128x128로 설정되고, MaxTtSzie는 64x64로 설정되고, MinBtSize 및 MinTtSize (for both width and height)는 4x4로, 그리고 MaxMttDepth는 4로 설정될 수 있다. 쿼트트리 파티셔닝은 CTU에 적용되어 쿼드트리 리프 노드들을 생성할 수 있다. 쿼드트리 리프 노드는 리프 QT 노드라고 불릴 수 있다. 쿼드트리 리프 노드들은 16x16 사이즈 (i.e. the MinOTSize)로부터 128x128 사이즈(i.e. the CTU size)를 가질 수 있다. 만약 리프 QT 노드가 128x128인 경우, 추가적으로 바이너리 트리/터너리 트리로 분할되지 않을 수 있다. 이는 이 경우 분할되더라도 MaxBtsize 및 MaxTtszie (i.e. 64x64)를 초과하기 때문이다. 이 외의 경우, 리프 QT 노드는 멀티타입 트리로 추가적으로 분할될 수 있다. 그러므로, 리프 QT 노드는 멀티타입 트리에 대한 루트 노드(root node)이고, 리프 QT 노드는 멀티타입 트리 뎁스(mttDepth) 0 값을 가질 수 있다. 만약, 멀티타입 트리 뎁스가 MaxMttdepth (ex. 4)에 도달한 경우, 더 이상 추가 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 너비가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수평 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 높이가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수직 분할은 고려되지 않을 수 있다.As an example of a quadtree coding tree structure with a multitype tree, the CTU size may be set to 64x64 blocks of 128x128 luma samples and two corresponding chroma samples (in 4: 2: 0 chroma format). In this case, MinOTSize is set to 16x16, MaxBtSize is set to 128x128, MaxTtSzie is set to 64x64, MinBtSize and MinTtSize (for both width and height) can be set to 4x4, and MaxMttDepth can be set to 4. Quarttree partitioning can be applied to CTU to generate quadtree leaf nodes. The quadtree leaf node may be referred to as a leaf QT node. Quadtree leaf nodes may have a size of 128x128 (i.e. the CTU size) from a size of 16x16 (i.e. the MinOTSize). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree / ternary tree. This is because, even in this case, it exceeds MaxBtsize and MaxTtszie (i.e. 64x64). In other cases, the leaf QT node may be further divided into a multi-type tree. Therefore, the leaf QT node is a root node for the multitype tree, and the leaf QT node may have a multitype tree depth (mttDepth) 0 value. If the multi-type tree depth reaches MaxMttdepth (ex. 4), further partitioning may not be considered. If the width of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal splitting may no longer be considered. If the height of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical splitting may not be considered any more.
도 6은 본 발명이 적용될 수 있는 실시예로서, 터너리 트리(ternary-tree) 분할을 제한하는 방법을 예시하는 도면이다.6 is an embodiment to which the present invention can be applied, and is a diagram illustrating a method for limiting ternary-tree partitioning.
도 6을 참조하면, 하드웨어 디코더에서의 64x64 루마 블록 및 32x32 크로마 파이프라인 디자인을 허용하기 위하여, TT 분할은 특정 경우 제한될 수 있다. 예를 들어, 루마 코딩 블록의 너비 또는 높이가 기 설정된 특정 값(예컨대, 32, 64)보다 큰 경우, 도 6에 도시된 바와 같이, TT 분할이 제한될 수 있다. Referring to FIG. 6, TT partitioning may be limited in certain cases to allow for a 64x64 luma block and 32x32 chroma pipeline design in a hardware decoder. For example, if the width or height of the luma coding block is greater than a predetermined specific value (eg, 32, 64), as illustrated in FIG. 6, TT segmentation may be limited.
본 문서에서, 코딩 트리 스킴은 루마 및 크로마 블록이 개별적(separate) 블록 트리 구조를 가지는 것을 지원할 수 있다. P 및 B 슬라이스들에 대하여, 하나의 CTU 내 루마 및 크로마 CTB들은 동일한 코딩 트리 구조를 갖도록 제한될 수 있다. 그러나, I 슬라이스들에 대하여, 루마 및 크로마 블록들은 서로 개별적 블록 트리 구조를 가질 수 있다. 만약 개별적 블록 트리 모드가 적용되는 경우, 루마 CTB는 특정 코딩 트리 구조를 기반으로 CU들로 분할되고, 크로마 CTB는 다른 코딩 트리 구조를 기반으로 크로마 CU들로 분할될 수 있다. 이는, I 슬라이스 내 CU는 루마 성분의 코딩 블록 또는 두 크로마 성분들의 코딩 블록들로 구성되고, P 또는 B 슬라이스의 CU는 세가지 컬러 성분의 블록들로 구성될 수 있음을 의미할 수 있다.In this document, the coding tree scheme may support luma and chroma blocks having a separate block tree structure. For P and B slices, luma and chroma CTBs in one CTU can be restricted to have the same coding tree structure. However, for I slices, luma and chroma blocks may have a separate block tree structure from each other. If the individual block tree mode is applied, the luma CTB may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on another coding tree structure. This may mean that a CU in an I slice is composed of a coding block of luma components or coding blocks of two chroma components, and a CU of a P or B slice can be composed of blocks of three color components.
상술한 “Partitionig of the CTUs using a tree structure”에서 멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조에 대하여 설명하였으나, CU가 분할되는 구조는 이에 한정되지 않는다. 예를 들어, BT 구조 및 TT 구조는 다수 분할 트리 (Multiple Partitioning Tree, MPT) 구조에 포함되는 개념으로 해석될 수 있고, CU는 QT 구조 및 MPT 구조를 통해 분할된다고 해석할 수 있다. QT 구조 및 MPT 구조를 통해 CU가 분할되는 일 예에서, QT 구조의 리프 노드가 몇 개의 블록으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_type) 및 QT 구조의 리프 노드가 수직과 수평 중 어느 방향으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_mode)가 시그널링 됨으로써 분할 구조가 결정될 수 있다.In the above-described “Partitionig of the CTUs using a tree structure”, a quadtree coding tree structure with a multi-type tree has been described, but the structure in which the CU is divided is not limited to this. For example, the BT structure and the TT structure may be interpreted as a concept included in a multiple partitioning tree (MPT) structure, and a CU may be divided through a QT structure and an MPT structure. In an example in which a CU is split through a QT structure and an MPT structure, a syntax element (for example, MPT_split_type) including information about how many blocks a leaf node of the QT structure is divided into, and a leaf node of the QT structure are vertical The splitting structure may be determined by signaling a syntax element (for example, MPT_split_mode) including information about which direction is divided between and horizontal.
또 다른 예에서, CU는 QT 구조, BT 구조 또는 TT 구조와 다른 방법으로 분할될 수 있다. 즉, QT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 크기로 분할되거나, BT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/2 크기로 분할되거나, TT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 또는 1/2 크기로 분할되는 것과 달리, 하위 뎁스의 CU는 경우에 따라 상위 뎁스의 CU의 1/5, 1/3, 3/8, 3/5, 2/3 또는 5/8 크기로 분할될 수 있으며, CU가 분할되는 방법은 이에 한정되지 않는다.In another example, the CU may be divided in a different way from the QT structure, BT structure or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 the size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 the size of the CU of the upper depth according to the BT structure, or according to the TT structure Unlike the CU of the lower depth, which is divided into 1/4 or 1/2 the size of the CU of the upper depth, the CU of the lower depth may be 1/5, 1/3, 3/8, 3 of the CU of the upper depth depending on the case. It may be divided into / 5, 2/3, or 5/8 size, and the method in which the CU is divided is not limited thereto.
만약 트리 노드 블록의 부분(a portion)이 하단(bottom) 또는 오른쪽(right) 픽처 바운더리를 초과하는(exceeds) 경우, 해당 트리 노드 블록은 모든 코딩된 CU의 모든 샘플들이 상기 픽처 바운더리들 내에 위치하도록 제한될 수 있다. 이 경우 예를 들어 다음과 같은 분할 규칙이 적용될 수 있다.If a portion of a tree node block exceeds the bottom or right picture boundary, the tree node block ensures that all samples of all coded CUs are located within the picture boundaries. Can be limited. In this case, for example, the following division rule may be applied.
- If a portion of a tree node block exceeds both the bottom and the right picture boundaries,-If a portion of a tree node block exceeds both the bottom and the right picture boundaries,
- If the block is a QT node and the size of the block is larger than the minimum QT size, the block is forced to be split with QT split mode.-If the block is a QT node and the size of the block is larger than the minimum QT size, the block is forced to be split with QT split mode.
- Otherwise, the block is forced to be split with SPLIT_BT_HOR mode-Otherwise, the block is forced to be split with SPLIT_BT_HOR mode
- Otherwise if a portion of a tree node block exceeds the bottom picture boundaries,-Otherwise if a portion of a tree node block exceeds the bottom picture boundaries,
- If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.-If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.
- Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_HOR mode.-Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_HOR mode.
- Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_HOR mode.-Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_HOR mode.
- Otherwise if a portion of a tree node block exceeds the right picture boundaries,-Otherwise if a portion of a tree node block exceeds the right picture boundaries,
- If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.-If the block is a QT node, and the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forced to be split with QT split mode.
- Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_VER mode.-Otherwise, if the block is a QT node, and the size of the block is larger than the minimum QT size and the size of the block is smaller than or equal to the maximum BT size, the block is forced to be split with QT split mode or SPLIT_BT_VER mode.
- Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_VER mode.-Otherwise (the block is a BTT node or the size of the block is smaller than or equal to the minimum QT size), the block is forced to be split with SPLIT_BT_VER mode.
한편, 상술한 멀티타입 트리를 수반한 쿼드트리 코딩 블록 구조는 매우 유연한 블록 파티셔닝 구조를 제공할 수 있다. 멀티타입 트리에 지원되는 분할 타입들 때문에, 다른 분할 패턴들이 경우에 따라서 잠재적으로 동일한 코딩 블록 구조 결과를 가져올 수 잇다. 이러한 리던던트(redundant)한 분할 패턴들의 발생을 제한함으로써 파티셔닝 정보의 데이터량을 줄일 수 있다. 아래의 도면을 참조하여 설명한다.On the other hand, the above-described quadtree coding block structure accompanying the multi-type tree can provide a very flexible block partitioning structure. Due to the division types supported in the multitype tree, different division patterns can potentially result in the same coding block structure in some cases. By limiting the occurrence of such redundant partition patterns, the data amount of partitioning information can be reduced. It will be described with reference to the drawings below.
도 7은 본 발명이 적용될 수 있는 실시예로서, 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들을 예시하는 도면이다.7 is an embodiment to which the present invention can be applied, and is a diagram illustrating redundant splitting patterns that may occur in binary tree splitting and ternary tree splitting.
도 7에 도시된 바와 같이, 2단계 레벨의 한 방향에 대한 연속적인 바이너리 분할(two levels of consecutive binary splits in one direction)은, 터너리 분할 이후 센터 파티션에 대한 바이너리 분할과 동일한 코딩 블록 구조를 갖는다. 이러한 경우, 터너리 트리 분할의 센터 파티션에 대한 바이너리 트리 분할 (in the given direction)은 제한될 수 있다. 이러한 제한는 모든 픽처들의 CU들에 대하여 적용될 수 있다. 이러한 특정 분할이 제한되는 경우, 대응하는 신텍스 요소들의 시그널링은 이러한 제한되는 경우를 반영하여 수정될 수 있고, 이를 통하여 파티셔닝을 위하여 시그널링되는 비트수를 줄일 수 있다. 예를 들어, 도 7에 도시된 예와 같이, CU의 센터 파티션에 대한 바이너리 트리 분할이 제한되는 경우, 분할이 바이너리 분할인지 테너리 분할인지 여부를 가리키는 mtt_split_cu_binary_flag 신텍스 요소는 시그널링되지 않고, 그 값은 0으로 디코더에 의하여 추론될 수 있다.As shown in FIG. 7, two levels of consecutive binary splits in one direction have the same coding block structure as binary partitions for the center partition after ternary splitting. . In this case, the binary tree partition for the center partition of the ternary tree partition (in the given direction) may be limited. This limitation can be applied to CUs of all pictures. When such a specific partition is limited, signaling of corresponding syntax elements can be modified to reflect this limited case, thereby reducing the number of bits signaled for partitioning. For example, as in the example shown in FIG. 7, when the binary tree partition for the center partition of the CU is limited, the mtt_split_cu_binary_flag syntax element indicating whether the partition is a binary partition or a ternary partition is not signaled, and its value is It can be inferred by the decoder to zero.
예측(prediction)Prediction
디코딩이 수행되는 현재 처리 유닛을 복원하기 위해서 현재 처리 유닛이 포함된 현재 픽쳐 또는 다른 픽쳐들의 디코딩된 부분을 이용할 수 있다. In order to restore the current processing unit in which decoding is performed, a decoded portion of the current picture or other pictures including the current processing unit may be used.
복원에 현재 픽쳐만을 이용하는, 즉 화면내 예측만을 수행하는 픽쳐(슬라이스)를 인트라 픽쳐 또는 I 픽쳐(슬라이스), 각 유닛을 예측하기 위하여 최대 하나의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 예측 픽쳐(predictive picture) 또는 P 픽쳐(슬라이스), 최대 두 개의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 쌍예측 픽쳐(Bi-predictive picture) 또는 B 픽쳐(슬라이스)라고 지칭할 수 있다. Predict a picture (slice) that uses only the current picture for reconstruction, i.e., a picture (slice) that performs only intra-picture prediction, an intra picture or an I picture (slice), and up to one motion vector and a reference index to predict each unit A picture (slice) using a predictive picture or a P picture (slice), up to two motion vectors and a reference index may be referred to as a bi-predictive picture or a B picture (slice).
인터 예측은 현재 픽쳐 이외의 픽쳐의 데이터 요소(예를 들어, 샘플 값 또는 움직임 벡터 등)의 기반하여 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 이외의 복원된 다른 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다.Inter-prediction refers to a prediction method that derives a current processing block based on a data element (eg, a sample value or a motion vector) of a picture other than the current picture. That is, it means a method of predicting a pixel value of a current processing block by referring to reconstructed regions in another reconstructed picture other than the current picture.
이하, 인트라 예측(또는 화면 내 예측)에 대하여 보다 상세히 살펴본다.Hereinafter, intra prediction (or intra prediction) will be described in more detail.
인트라 예측(Intra prediction)(또는 화면 내 예측)Intra prediction (or intra prediction)
인트라 예측은 동일한 디코딩된 픽쳐(또는 슬라이스)의 데이터 요소(예를 들어, 샘플 값 등)으로부터 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다. Intra prediction refers to a prediction method that derives a current processing block from data elements (eg, sample values, etc.) of the same decoded picture (or slice). That is, it means a method of predicting the pixel value of the current processing block by referring to the reconstructed regions in the current picture.
인트라 예측은 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 생성하는 예측을 나타낼 수 있다.The intra prediction may represent prediction for generating a prediction sample for the current block based on a reference sample outside the current block in a picture to which the current block belongs (hereinafter, the current picture).
본 발명은 앞서 도 1 및 도 2에서 설명한 인트라 예측 방법의 세부 기술을 설명하는 것으로 디코더의 경우 후술하는 도 10의 인트라 예측 기반 비디오/영상 디코딩 방법 및 도 11의 디코딩 장치 내 인트라 예측부로 나타낼 수 있다. 더불어 인코더의 경우, 후술하는 도 8의 인트라 예측 기반 비디오/영상 인코딩 방법 및 도 9의 인코딩 장치 내 인트라 예측부로 나타낼 수 있다. 더하여, 도 8 및 도 9에 의해 인코딩된 데이터는 비트스트림의 형태로 저장될 수 있다.The present invention describes the detailed technique of the intra prediction method described above with reference to FIGS. 1 and 2, and may be represented by the intra prediction based video / image decoding method of FIG. 10 and the intra prediction unit of the decoding apparatus of FIG. 11, which will be described later. . In addition, the encoder may be represented by the intra prediction-based video / video encoding method of FIG. 8 described later and the intra prediction unit in the encoding apparatus of FIG. 9. In addition, the data encoded by FIGS. 8 and 9 can be stored in the form of a bitstream.
현재 블록에 인트라 예측이 적용되는 경우, 현재 블록의 인트라 예측에 사용할 주변 참조 샘플들이 도출될 수 있다. 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 좌측(left) 경계에 인접한 샘플 및 좌하측(bottom-left)에 이웃하는 총 2xnH 개의 샘플들, 현재 블록의 상측(top) 경계에 인접한 샘플 및 우상측(top-right)에 이웃하는 총 2xnW 개의 샘플들 및 현재 블록의 좌상측(top-left)에 이웃하는 1개의 샘플을 포함할 수 있다. 또는, 상기 현재 블록의 주변 참조 샘플들은 복수열의 상측 주변 샘플들 및 복수행의 좌측 주변 샘플들을 포함할 수도 있다. 또한, 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 우측(right) 경계에 인접한 총 nH 개의 샘플들, 현재 블록의 하측(bottom) 경계에 인접한 총 nW 개의 샘플들 및 현재 블록의 우하측(bottom-right)에 이웃하는 1개의 샘플을 포함할 수도 있다. When intra prediction is applied to the current block, peripheral reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block are samples adjacent to the left boundary of the current block of nWxnH size and total 2xnH samples adjacent to the bottom-left, samples adjacent to the top boundary of the current block. And a total of 2xnW samples neighboring the top-right and one sample neighboring the top-left of the current block. Alternatively, the peripheral reference samples of the current block may include multiple columns of upper peripheral samples and multiple rows of left peripheral samples. In addition, the neighboring reference samples of the current block have a total nH samples adjacent to the right boundary of the current block of size nWxnH, a total nW samples adjacent to the bottom boundary of the current block, and the lower right side of the current block. (bottom-right) may include one neighboring sample.
다만, 현재 블록의 주변 참조 샘플들 중 일부는 아직 디코딩되지 않았거나, 이용 가능하지 않을 수 있다. 이 경우, 디코더는 이용 가능한 샘플들로 이용 가능하지 않은 샘플들을 대체(substitution)하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다. 또는, 이용 가능한 샘플들의 보간(interpolation)을 통하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다.However, some of the neighboring reference samples of the current block may not be decoded yet or may not be available. In this case, the decoder may construct surrounding reference samples to be used for prediction by substituting unavailable samples with available samples. Alternatively, peripheral reference samples to be used for prediction may be configured through interpolation of available samples.
주변 참조 샘플들이 도출된 경우, 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 또한, 상기 주변 참조 샘플들 중 상기 현재 블록의 예측 샘플을 기준으로 상기 현재 블록의 인트라 예측 모드의 예측 방향의 반대 방향에 위치하는 상기 제2 주변 샘플과 상기 제1 주변 샘플과의 보간을 통하여 상기 예측 샘플이 생성될 수도 있다. 상술한 경우는 선형 보간 인트라 예측(Linear interpolation intra prediction, LIP) 이라고 불릴 수 있다. 또한, 필터링된 주변 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 주변 참조 샘플들, 즉, 필터링되지 않은 주변 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수도 있다. 상술한 경우는 PDPC(Position dependent intra prediction) 라고 불릴 수 있다. 한편, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링이 수행될 수도 있다.When the neighboring reference samples are derived, a prediction sample may be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) prediction among neighboring reference samples of the current block The prediction sample may be derived based on a reference sample present in a specific (predictive) direction with respect to the sample. In the case of (i), it may be called a non-directional mode or a non-angle mode, and in the case of (ii), a directional mode or an angular mode. In addition, the interpolation between the second neighboring sample and the first neighboring sample located in a direction opposite to the prediction direction of the intra prediction mode of the current block based on the predicted sample of the current block among the neighboring reference samples Predictive samples may be generated. The above-described case may be referred to as linear interpolation intra prediction (LIP). In addition, a temporary prediction sample of the current block is derived based on filtered peripheral reference samples, and at least one of the existing peripheral reference samples, ie, unfiltered peripheral reference samples, derived according to the intra prediction mode A prediction sample of the current block may be derived by weighting a sum of a reference sample and the temporary prediction sample. The above-described case may be called PDPC (Position dependent intra prediction). On the other hand, post-process filtering may be performed on the predicted samples derived as necessary.
구체적으로, 인트라 예측 절차는 인트라 예측 모드 결정 단계, 주변 참조 샘플 도출 단계, 인트라 예측 모드 기반 예측 샘플 도출 단계를 포함할 수 있다. 또한, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링(post-filtering) 단계가 수행될 수도 있다. Specifically, the intra prediction procedure may include an intra prediction mode determination step, a peripheral reference sample derivation step, and an intra prediction mode based prediction sample derivation step. Also, a post-filtering step may be performed on the predicted sample derived as necessary.
인트라 예측에 기반한 비디오/영상 인코딩 절차 및 인코딩 장치 내 인트라 예측부는 개략적으로 예를 들어 다음을 포함할 수 있다.The video / video encoding procedure based on intra prediction and the intra prediction unit in the encoding device may schematically include, for example, the following.
도 8 및 도 9는 본 발명의 실시예에 따른 인트라 예측 기반 비디오/영상 인코딩 방법 및 본 발명의 실시예에 따른 인코딩 장치 내 인트라 예측부를 예시하는 도면이다.8 and 9 are diagrams illustrating an intra prediction-based video / video encoding method according to an embodiment of the present invention and an intra prediction unit in an encoding device according to an embodiment of the present invention.
도 8 및 도 9를 참조하면, S801은 인코딩 장치의 인트라 예측부(185)에 의하여 수행될 수 있고, S802는 인코딩 장치의 레지듀얼 처리부에 의하여 수행될 수 있다. 구체적으로, S802은 인코딩 장치의 감산부(115)에 의하여 수행될 수 있다. S803에서 예측 정보는 인트라 예측부(185)에 의하여 도출되고, 엔트로피 인코딩부(190)에 의하여 인코딩될 수 있다. S803에서 레지듀얼 정보는 레지듀얼 처리부에 의하여 도출되고, 엔트로피 인코딩부(190)에 의하여 인코딩될 수 있다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 관한 정보이다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다. 8 and 9, S801 may be performed by the intra prediction unit 185 of the encoding device, and S802 may be performed by the residual processing unit of the encoding device. Specifically, S802 may be performed by the subtraction unit 115 of the encoding device. In S803, the prediction information is derived by the intra prediction unit 185 and may be encoded by the entropy encoding unit 190. In S803, the residual information is derived by the residual processing unit and may be encoded by the entropy encoding unit 190. The residual information is information about the residual samples. The residual information may include information about quantized transform coefficients for the residual samples.
상술한 바와 같이 상기 레지듀얼 샘플들은 인코딩 장치의 변환부(120)를 통하여 변환 계수들로 도출되고, 상기 변환 계수들은 양자화부(130)를 통하여 양자화된 변환 계수들로 도출될 수 있다. 상기 양자화된 변환 계수들에 관한 정보가 레지듀얼 코딩 절차를 통하여 엔트로피 인코딩부(190)에서 인코딩될 수 있다. As described above, the residual samples may be derived as transform coefficients through the transform unit 120 of the encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through the quantization unit 130. Information about the quantized transform coefficients may be encoded in the entropy encoding unit 190 through a residual coding procedure.
인코딩 장치는 현재 블록에 대한 인트라 예측을 수행한다(S801). 인코딩 장치는 현재 블록에 대한 인트라 예측 모드를 도출하고, 현재 블록의 주변 참조 샘플들을 도출할 수 있고, 상기 인트라 예측 모드 및 상기 주변 참조 샘플들을 기반으로 상기 현재 블록 내 예측 샘플들을 생성한다. 여기서 인트라 예측 모드 결정, 주변 참조 샘플들 도(출 및 예측 샘플들 생성 절차는 동시에 수행될 수도 있고, 어느 한 절차가 다른 절차보다 먼저 수행될 수도 있다. 예를 들어, 인코딩 장치의 인트라 예측부(185)는 예측 모드 결정부(186), 참조 샘플 도출부(187), 예측 샘플 도출부(188)를 포함할 수 있으며, 예측 모드 결정부(186)에서 상기 현재 블록에 대한 인트라 예측 모드를 결정하고, 참조 샘플 도출부(187)에서 상기 현재 블록의 주변 참조 샘플들을 도출하고, 예측 샘플 도출부(188)에서 상기 현재 블록의 움직임 샘플들을 도출할 수 있다. 한편, 비록 도시되지는 않았지만, 후술하는 예측 샘플 필터링 절차가 수행되는 경우, 인트라 예측부(185)는 예측 샘플 필터부(미도시)를 더 포함할 수도 있다. 인코딩 장치는 복수의 인트라 예측 모드들 중 상기 현재 블록에 대하여 적용되는 모드를 결정할 수 있다. 인코딩 장치는 상기 인트라 예측 모드들에 대한 RD cost를 비교하고 상기 현재 블록에 대한 최적의 인트라 예측 모드를 결정할 수 있다. The encoding device performs intra prediction on the current block (S801). The encoding apparatus may derive an intra prediction mode for the current block, derive neighbor reference samples of the current block, and generate prediction samples in the current block based on the intra prediction mode and the neighbor reference samples. Here, the intra prediction mode determination, neighboring reference samples (procedures of generating and predicting samples may be performed simultaneously, or one procedure may be performed before another procedure. For example, the intra prediction unit of the encoding apparatus ( 185) may include a prediction mode determination unit 186, a reference sample derivation unit 187, a prediction sample derivation unit 188, and the prediction mode determination unit 186 determines an intra prediction mode for the current block The reference sample derivation unit 187 may derive neighboring reference samples of the current block, and the prediction sample derivation unit 188 may deduce motion samples of the current block. When the prediction sample filtering procedure is performed, the intra prediction unit 185 may further include a prediction sample filter unit (not shown) The encoding device may include the current block among a plurality of intra prediction modes. The encoding apparatus may compare the RD cost for the intra prediction modes and determine an optimal intra prediction mode for the current block.
한편, 인코딩 장치는 예측 샘플 필터링 절차를 수행할 수도 있다. 예측 샘플 필터링은 포스트 필터링이라 불릴 수 있다. 상기 예측 샘플 필터링 절차에 의하여 상기 예측 샘플들 중 일부 또는 전부가 필터링될 수 있다. 경우에 따라 상기 예측 샘플 필터링 절차는 생략될 수 있다. Meanwhile, the encoding device may perform a prediction sample filtering procedure. Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
인코딩 장치는 (필터링된) 예측 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성한다(S802). 인코딩 장치는 상기 인트라 예측 모드를 나타내는 예측 모드 정보 및 상기 레듀얼 샘플들에 관한 레지듀얼 정보를 포함하는 영상 정보를 인코딩할 수 있다(S803). 인코딩된 영상 정보를 비트스트림 형태로 출력될 수 있다. 출력된 비트스트림은 저장매체 또는 네트워크를 통하여 디코딩 장치로 전달될 수 있다.The encoding apparatus generates residual samples for the current block based on the (filtered) prediction sample (S802). The encoding apparatus may encode image information including prediction mode information indicating the intra prediction mode and residual information about the residual samples (S803). The encoded image information may be output in the form of a bit stream. The output bitstream may be delivered to a decoding device through a storage medium or network.
한편, 상술한 바와 같이 인코딩 장치는 상기 참조 샘플들 및 상기 레지듀얼 샘플들을 기반으로 복원 픽처(복원 샘플들 및 복원 블록 포함)를 생성할 수 있다. 이는 디코딩 장치에서 수행되는 것과 동일한 예측 결과를 인코딩 장치에서 도출하기 위함이며, 이를 통하여 코딩 효율을 높일 수 있기 때문이다. 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다. Meanwhile, as described above, the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is for deriving the same prediction result as that performed in the decoding device in the encoding device, because it is possible to increase coding efficiency. The above-described in-loop filtering procedure may be further applied to the reconstructed picture.
도 10 및 도 11은 본 발명의 실시예에 따른 인트라 예측 기반 비디오/영상 디코딩 방법 및 본 발명의 실시예에 따른 디코딩 장치 내 인트라 예측부를 예시하는 도면이다.10 and 11 are diagrams illustrating an intra prediction-based video / image decoding method according to an embodiment of the present invention and an intra prediction unit in a decoding apparatus according to an embodiment of the present invention.
도 10 및 도 11을 참조하면, 디코딩 장치는 상기 인코딩 장치에서 수행된 동작과 대응되는 동작을 수행할 수 있다. 디코딩 장치는 수신된 예측 정보를 기반으로 현재 블록에 예측을 수행하고 예측 샘플들을 도출할 수 있다.10 and 11, the decoding apparatus may perform an operation corresponding to an operation performed in the encoding apparatus. The decoding apparatus may perform prediction on the current block based on the received prediction information and derive prediction samples.
구체적으로 디코딩 장치는 수신된 예측 모드 정보를 기반으로 현재 블록에 대한 인트라 예측 모드를 도출할 수 있다(S1001). 디코딩 장치는 상기 현재 블록의 주변 참조 샘플들을 도출할 수 있다(S1002). 디코딩 장치는 상기 인트라 예측 모드 및 상기 주변 참조 샘플들을 기반으로 상기 현재 블록 내 예측 샘플들을 생성한다(S1003). 이 경우 디코딩 장치는 예측 샘플 필터링 절차를 수행할 수 있다. 예측 샘플 필터링은 포스트 필터링이라 불릴 수 있다. 상기 예측 샘플 필터링 절차에 의하여 상기 예측 샘플들 중 일부 또는 전부가 필터링될 수 있다. 경우에 따라 예측 샘플 필터링 절차는 생략될 수 있다. Specifically, the decoding apparatus may derive an intra prediction mode for the current block based on the received prediction mode information (S1001). The decoding apparatus may derive neighboring reference samples of the current block (S1002). The decoding apparatus generates prediction samples in the current block based on the intra prediction mode and the surrounding reference samples (S1003). In this case, the decoding apparatus may perform a prediction sample filtering procedure. Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
디코딩 장치는 수신된 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성한다(S1004). 디코딩 장치는 상기 (필터링된) 예측 샘플들 및 상기 레지듀얼 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하고, 이를 기반으로 복원 픽처를 생성할 수 있다(S1005).The decoding apparatus generates residual samples for the current block based on the received residual information (S1004). The decoding apparatus may generate reconstructed samples for the current block based on the (filtered) predicted samples and the residual samples, and generate a reconstructed picture based on the reconstructed pictures (S1005).
여기서, 디코딩 장치의 인트라 예측부(265)는 예측 모드 결정부(266), 참조 샘플 도출부(267), 예측 샘플 도출부(268)를 포함할 수 있으며, 예측 모드 결정부(266)는 인코딩 장치의 예측 모드 결정부(186)에서 수신된 예측 모드 정보를 기반으로 상기 현재 블록에 대한 인트라 예측 모드를 결정하고, 참조 샘플 도출부(266)는 상기 현재 블록의 주변 참조 샘플들을 도출하고, 예측 샘플 도출부(267)는 상기 현재 블록의 예측 샘플들을 도출할 수 있다. 한편, 비록 도시되지는 않았지만, 상술한 예측 샘플 필터링 절차가 수행되는 경우, 인트라 예측부(265)는 예측 샘플 필터부(미도시)를 더 포함할 수도 있다.Here, the intra prediction unit 265 of the decoding apparatus may include a prediction mode determination unit 266, a reference sample derivation unit 267, and a prediction sample derivation unit 268, and the prediction mode determination unit 266 is encoded. The intra prediction mode for the current block is determined based on the prediction mode information received from the prediction mode determination unit 186 of the device, and the reference sample derivation unit 266 derives neighboring reference samples of the current block and predicts it. The sample derivation unit 267 may derive prediction samples of the current block. Meanwhile, although not illustrated, when the above-described prediction sample filtering procedure is performed, the intra prediction unit 265 may further include a prediction sample filter unit (not shown).
상기 예측 모드 정보는 MPM(most probable mode)가 상기 현재 블록에 적용되는지 아니면 리메이닝 모드(remaining mode)가 적용되는지 여부를 나타내는 플래그 정보(ex. prev_intra_luma_pred_flag)를 포함할 수 있고, 상기 MPM이 상기 현재 블록에 적용되는 경우 상기 예측 모드 정보는 상기 인트라 예측 모드 후보들(MPM 후보들) 중 하나를 가리키는 인덱스 정보(ex. mpm_idx)를 더 포함할 수 있다. 상기 인트라 예측 모드 후보들(MPM 후보들)은 MPM 후보 리스트 또는 MPM 리스트로 구성될 수 있다. 또한, 상기 MPM이 상기 현재 블록에 적용되지 않는 경우, 상기 예측 모드 정보는 상기 인트라 예측 모드 후보들(MPM 후보들)을 제외한 나머지 인트라 예측 모드들 중 하나를 가리키는 리메이닝 모드 정보(ex. rem_inra_luma_pred_mode)를 더 포함할 수 있다. 디코딩 장치는 상기 예측 모드 정보를 기반으로 상기 현재 블록의 인트라 예측 모드를 결정할 수 있다. 상기 예측 모드 정보는 후술하는 코딩 방법을 통하여 인코딩/디코딩될 수 있다. 예를 들어, 상기 예측 모드 정보는 truncated (rice) binary code를 기반으로 엔코로피 코딩(ex. CABAC, CAVLC) 코딩을 통하여 인코딩/디코딩될 수 있다.The prediction mode information may include flag information (ex. Prev_intra_luma_pred_flag) indicating whether most probable mode (MPM) is applied to the current block or remaining mode, and the MPM is the current When applied to a block, the prediction mode information may further include index information (ex. Mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the prediction mode information further includes remodeling mode information (eg, rem_inra_luma_pred_mode) indicating one of the remaining intra prediction modes except the intra prediction mode candidates (MPM candidates). It can contain. The decoding apparatus may determine an intra prediction mode of the current block based on the prediction mode information. The prediction mode information may be encoded / decoded through a coding method described below. For example, the prediction mode information may be encoded / decoded through encoding coding (eg, CABAC, CAVLC) based on truncated (rice) binary code.
인트라 예측 모드 결정Intra prediction mode decision
인트라 예측이 적용되는 경우, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용되는 인트라 예측 모드가 결정될 수 있다. 예를 들어, 디코딩 장치는 현재 블록의 좌측 블록의 인트라 예측 모드 및 상측 블록의 인트라 예측 모드를 기반으로 도출된 mpm(most probable mode) 후보들 중 하나를 수신된 mpm 인덱스를 기반으로 선택할 수 있으며, 또는 상기 mpm 후보들에 포함되지 않은 나머지 인트라 예측 모드들 중 하나를 리메이닝 인트라 예측 모드 정보를 기반으로 선택할 수 있다. 상기 mpm 인덱스는 mpm_idx 신텍스 요소의 형태로 시그널링될 수 있고, 상기 리메이닝 인트라 예측 모드 정보는 rem_intra_luma_pred_mode 신텍스 요소의 형태로 시그널링될 수 있다. 예를 들어, 상기 리메이닝 인트라 예측 모드 정보는 전체 인트라 예측 모드들 중 상기 mpm 후보들에 포함되지 않는 나머지 인트라 예측 모드들을 예측 모드 번호 순으로 인덱싱하여 그 중 하나를 가리킬 수 있다.When intra prediction is applied, an intra prediction mode applied to a current block may be determined using an intra prediction mode of neighboring blocks. For example, the decoding apparatus may select one of the most probable mode (mpm) candidates derived based on the intra prediction mode of the left block of the current block and the intra prediction mode of the upper block based on the received mpm index, or One of the remaining intra prediction modes that are not included in the mpm candidates may be selected based on the remodeling intra prediction mode information. The mpm index may be signaled in the form of an mpm_idx syntax element, and the remodeling intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode syntax element. For example, the re-maining intra-prediction mode information may indicate one of the intra-prediction modes by indexing the remaining intra-prediction modes not included in the mpm candidates in order of prediction mode number.
도 12 및 도 13은 본 발명이 적용될 수 있는 일 실시예에 따른 인트라 예측 모드의 예측 방향을 나타내는 도면이다.12 and 13 are views illustrating a prediction direction of an intra prediction mode according to an embodiment to which the present invention can be applied.
도 12를 참조하면, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 33개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 34번 인트라 예측 모드들을 포함할 수 있다. 상기 플래너 인트라 예측 모드는 플래너 모드라고 불릴 수 있고, 상기 DC 인트라 예측 모드는 DC 모드라고 불릴 수 있다.Referring to FIG. 12, the intra prediction mode may include two non-directional intra prediction modes and 33 directional intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include intra prediction modes 2 to 34. The planner intra prediction mode may be called a planner mode, and the DC intra prediction mode may be called a DC mode.
한편, 자연 영상(natural video)에서 제시된 임의의 에지 방향(edge direction)을 캡쳐하기 위하여, 상기 방향성 인트라 예측 모드는 후술하는 도 13에 도시된 바와 같이 기존의 33개에서 65개로 확장될 수 있다. 이 경우, 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번 인트라 예측 모드들을 포함할 수 있다. 확장된 방향성 인트라 예측 모든 사이즈의 블록들에 적용될 수 있고, 루마 성분 및 크로마 성분 모두에 적용될 수 있다.Meanwhile, in order to capture an arbitrary edge direction presented in a natural video, the directional intra prediction mode may be extended from the existing 33 to 65, as shown in FIG. 13 to be described later. In this case, the intra prediction mode may include two non-directional intra prediction modes and 65 directional intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include intra prediction modes 2 to 66. The extended directional intra prediction can be applied to blocks of all sizes, and can be applied to both luma and chroma components.
도 13을 참조하면, 일 실시예에서, 인트라 예측 모드는 67개의 모드를 포함할 수 있다. 각각의 예측 모드 인덱스(또는 모드 번호)에 따른 예측 방향은 도 13에 도시된 바와 같다. 예측 모드 인덱스 0과 1은 각각 플래너 모드와 DC 모드를 나타낸다. 2부터 66까지의 예측 모드 인덱스는 도 13에 도시된 바와 같이 좌측 하단 방향의 화살표부터 우측 상단 방향 화살표까지 분할된 각도의 예측 방향을 나타낸다. 65 개의 각도 중에서, 예측 모드 2, 18, 50 및 66은 각각 수평 대각선 방향, 수평 방향, 수직 방향 및 수직 대각선 방향을 나타낸다.Referring to FIG. 13, in one embodiment, the intra prediction mode may include 67 modes. The prediction direction according to each prediction mode index (or mode number) is as illustrated in FIG. 13. Prediction mode indexes 0 and 1 indicate planner mode and DC mode, respectively. As illustrated in FIG. 13, the prediction mode indexes 2 to 66 indicate a prediction direction of an angle divided from an arrow in the lower left direction to an arrow in the upper right direction. Of the 65 angles, prediction modes 2, 18, 50, and 66 indicate horizontal diagonal directions, horizontal directions, vertical directions, and vertical diagonal directions, respectively.
또는, 상기 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 129개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 130번 인트라 예측 모드들을 포함할 수 있다.Alternatively, the intra prediction mode may include two non-directional intra prediction modes and 129 directional intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 130 intra prediction modes.
인코딩 장치/디코딩 장치의 예측부는 현재 블록의 주변 참조 샘플들 중 상기 현재 블록의 인트라 예측 모드에 따른 참조 샘플을 도출할 수 있고, 상기 참조 샘플을 기반으로 상기 현재 블록의 예측 샘플을 생성할 수 있다.The prediction unit of the encoding device / decoding device may derive a reference sample according to the intra prediction mode of the current block among neighboring reference samples of the current block, and generate a prediction sample of the current block based on the reference sample. .
예를 들어, 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 또한, 일 실시예에서, 보다 정확한 예측을 위하여 하나 이상의 참조 샘플 라인을 인트라 예측에 이용하는 멀티 참조 샘플 라인이 이용될 수도 있다.For example, a prediction sample may be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) specific to a prediction sample among neighboring reference samples of the current block. The prediction sample may be derived based on a reference sample present in the (prediction) direction. In the case of (i), it may be called a non-directional mode or a non-angle mode, and in the case of (ii), a directional mode or an angular mode. Further, in one embodiment, multi-reference sample lines using one or more reference sample lines for intra prediction may be used for more accurate prediction.
본 발명의 실시예에서는, 인트라 예측 모드의 수가 도 13에서 설명한 바와 같이 종래의 영상 압축 기술보다 더 커지는 환경에서, 인트라 예측 모드를 시그널링하는 오버 헤드를 효과적으로 감소시키기 위해 MPM(most probale mode)를 구성하는 방법을 제안한다. 본 발명의 실시예에 따르면, 인트라 예측 모드를 효율적으로 코딩함으로써 시그널링 오버헤드 감소 관점에서 코딩 효율을 향상시킬 수 있다. 시그널링 오버헤드를 줄임으로써 BD-rate/BD-PSNR 측면에서 더 나은 코딩 효율을 획득할 수 있다.In an embodiment of the present invention, in an environment in which the number of intra prediction modes is greater than that of the conventional image compression technique as described in FIG. 13, the most probale mode (MPM) is configured to effectively reduce the overhead signaling the intra prediction mode. Suggest how to do it. According to an embodiment of the present invention, coding efficiency can be improved in terms of reducing signaling overhead by efficiently coding the intra prediction mode. By reducing the signaling overhead, better coding efficiency can be obtained in terms of BD-rate / BD-PSNR.
인코더 측에서 최상의 인트라 예측 모드는 비트율(bit-rate)과 왜곡(distortion)을 공동으로 고려하여 최적화된 예측 모드로 결정된다. 그 후, 최적의(선택된)예측 인트라 모드는 비트 스트림을 통해 코딩되며, 디코더는 비트 스트림으로부터 파싱된 최적의 인트라 예측 모드를 사용하여 인트라 예측을 수행한다. 그러나, 전술한 바와 같이 증가된 수의 인트라 예측 모드는 시그널링 오버 헤드를 최소화하기 위해 효율적인 인트라 모드 코딩을 필요로 한다.On the encoder side, the best intra prediction mode is determined as an optimized prediction mode by jointly considering bit-rate and distortion. Then, the optimal (selected) predictive intra mode is coded through the bit stream, and the decoder performs intra prediction using the optimal intra prediction mode parsed from the bit stream. However, as described above, the increased number of intra prediction modes require efficient intra mode coding to minimize signaling overhead.
MPM 리스트(도는 MPM 후보 리스트)는 인코더 및 디코더 모두에서 이웃하는 인트라 코딩된 블록의 인트라 예측 모드를 사용하여 구성될 수 있다. 인코더에서 선택된 최적의 예측 모드가 MPM 리스트에 포함된 예측 모드들 중 하나인 경우, MPM 인덱스 시그널링을 통해 오버헤드가 최소화될 수 있다. The MPM list (or MPM candidate list) may be constructed using intra prediction modes of neighboring intra coded blocks at both the encoder and decoder. When the optimal prediction mode selected by the encoder is one of prediction modes included in the MPM list, overhead may be minimized through MPM index signaling.
도 14는 본 발명이 적용될 수 있는 실시예에 따른 MPM 후보로 이용되는 주변 블록의 일 예를 도시한다.14 shows an example of a neighboring block used as an MPM candidate according to an embodiment to which the present invention can be applied.
종래의 영상 압축 기술(예컨대, HEVC)에서는, 도 14에 도시된 위치 F 및 G의 2 개의 이웃 인트라 예측 모드에 기초하여 3개의 MPM 리스트가 생성된다. 다음의 3가지 중 적어도 하나를 만족하는 경우, F 또는 G는 각각 DC 모드로 설정될 수 있다. In a conventional image compression technique (for example, HEVC), three MPM lists are generated based on two neighbor intra prediction modes of positions F and G shown in FIG. 14. When at least one of the following three is satisfied, F or G may be set to DC mode, respectively.
- F 또는 G가 이용 가능하지 않은 경우-If F or G is not available
- F 또는 G가 인트라 코딩된 블록이 아닌 경우-F or G is not an intra coded block
- F 또는 G가 현재 블록이 속한 현재 코딩 트리 유닛(CTU: coding tree unit)을 벗어나는 경우-F or G is outside the current coding tree unit (CTU) to which the current block belongs
본 명세서에서, 설명의 편의를 위해, 도 14에 도시된 A 내지 G 위치 블록의 인트라 예측 모드는 각각 A 내지 G로 표현될 수 있다. 즉, 상기 F 또는 G는 각각 F 또는 G 위치 블록의 인트라 예측 모드를 나타낸다. 만약, F 및 G가 결정되면, 3개의 MPM 리스트는 다음의 표 2의 의사 코드를 기반으로 구성될 수 있다. In this specification, for convenience of description, intra prediction modes of the A to G position blocks illustrated in FIG. 14 may be represented by A to G, respectively. That is, the F or G represents the intra prediction mode of the F or G position block, respectively. If F and G are determined, the three MPM lists may be constructed based on the pseudo codes of Table 2 below.
Figure PCTKR2019011588-appb-img-000002
Figure PCTKR2019011588-appb-img-000002
표 2를 참조하면, F와 G가 동일한 경우, F가 2(또는 예측 모드 2, 2번 모드, 2번 예측 모드)보다 작은 경우, 제1 MPM 리스트가 생성(또는 유도)되고, F가 2보다 작지 않은 경우, 제2 MPM 리스트가 생성될 수 있다. Referring to Table 2, when F and G are the same, if F is less than 2 (or prediction mode 2, 2, and 2 prediction modes), a first MPM list is generated (or derived), and F is 2 If not smaller, a second MPM list may be generated.
그리고, F와 G가 동일하지 않은 경우에는, F 또는 G가 플래너 모드가 아닌 경우 제3 MPM 리스트가 생성되고, (F+G)가 2보다 작은 경우 제4 리스트가 생성되고, 이외의 경우 제5 MPM 리스트가 생성될 수 있다. And, if F and G are not the same, if F or G is not in the planner mode, a third MPM list is generated, if (F + G) is less than 2, a fourth list is generated, and otherwise, A 5 MPM list can be created.
일 실시예에서, MPM 리스트에 포함되는 MPM 후보의 수는 인트라 예측 모드의 수에 따라 다르게 설정될 수 있다. 일반적으로, 인트라 예측 모드 수가 증가하면 MPM 후보의 수가 증가할 수 있다. 다만, 이에 제한되는 것은 아니며, 예를 들어, 35 및 67 인트라 모드는 디자인에 따라 3, 4, 5와 같은 다양한 수의 MPM 후보 수를 가질 수 있다.In one embodiment, the number of MPM candidates included in the MPM list may be set differently according to the number of intra prediction modes. In general, as the number of intra prediction modes increases, the number of MPM candidates may increase. However, the present invention is not limited thereto, and for example, 35 and 67 intra modes may have various numbers of MPM candidates such as 3, 4, and 5 depending on design.
또한, 일 실시예에서, 이웃하는 인터 코딩된 블록이 그들의 인트라 예측 모드를 알고 있는 경우, 이러한 인트라 예측 모드는 MPM 리스트를 구성하는데 사용될 수도 있다.Further, in one embodiment, if neighboring inter coded blocks know their intra prediction mode, this intra prediction mode may be used to construct the MPM list.
인트라 모드 코딩 효율을 향상시키고, MPM 모드가 보다 자주 발생할 수 있도록 다양한 인트라 모드가 MPM 리스트에 포함될 필요가 있다. 일반적으로, 다양한 이웃 위치로부터 다양한 인트라 모드를 고려할수록, 더 나은 코딩 효율이 달성될 수 있다. 예를 들어, 도 14에 도시된 인접 위치 A, B, C, D, E, F 및 G를 통해 주변 인트라 예측 모드를 고려하는 경우, 다양한 MPM 리스트를 가질 확률이 증가할 수 있다. 이로 인해, 최근에는 HEVC 대비 더 많은 수의 MPM 후보를 고려함에 따라, 더 많은 위치의 주변 블록을 이용하여 MPM 리스트를 구성하는 방법이 논의되고 있다. 그러나, 이처럼 많은 위치의 주변 블록을 탐색하는 경우 복잡도를 현저히 증가시키는 문제가 발생할 수 있다.Various intra modes need to be included in the MPM list to improve the intra mode coding efficiency and make the MPM mode more frequent. In general, the more various modes of intra-consideration are considered from various neighboring locations, the better coding efficiency can be achieved. For example, when considering the intra intra prediction mode through the adjacent positions A, B, C, D, E, F, and G shown in FIG. 14, the probability of having various MPM lists may increase. For this reason, recently, as more MPM candidates are considered than HEVC, a method of constructing an MPM list using more neighboring blocks has been discussed. However, in the case of searching for a block of a large number of locations, a problem of significantly increasing complexity may occur.
따라서, 본 발명의 목적은, 이러한 문제점을 개선함과 동시에 MPM 후보의 다양성을 높일 수 있는 MPM 리스트 생성 방법을 제안한다.Accordingly, an object of the present invention is to propose a method for generating an MPM list that can improve such problems and increase diversity of MPM candidates.
도 14를 다시 참조하면, G 블록과 F 블록의 기하학적 거리는 B 블록과 D 블록의 기하학적 거리보다 짧다. 상대적으로 B 블록과 D 블록간 거리가 G 블록과 F 블록간 거리보다 크기 때문에, 확률적으로 B와 D간 차이(즉, B와 D의 인트라 예측 모드간 차이)보다 G와 F간 차이(즉, G와 F의 인트라 예측 모드간 차이)는 적을 수 있다. 동시에 상대적으로 B 블록과 D 블록간 거리가 G 블록과 F 블록간 거리보다 크기 때문에, G와 F가 동일할 확률 보다 B와 D가 동일할 확률이 더 낮을 수 있다. 이로 인해, 좌측 및 상측 주변 블록으로 각각 G와 F를 이용하는 경우보다 B와 D를 이용하는 경우 MPM 후보 구성에 보다 많은 다양성이 확보될 수 있으며, 동일한 수의 주변 블록을 MPM 후보로서 고려함에도 불구하고 결과적으로 더 많은 수의 주변 블록을 MPM 후보로서 고려하는 효과를 가져올 수 있다.Referring to FIG. 14 again, the geometrical distance between the G block and the F block is shorter than that of the B block and the D block. Since the distance between the B block and the D block is relatively larger than the distance between the G block and the F block, the probability is different between the G and the F (i.e., the difference between the B and D intra prediction modes). , Difference between intra prediction modes of G and F) may be small. At the same time, since the distance between the B block and the D block is relatively larger than the distance between the G block and the F block, the probability of B and D being equal may be lower than the probability of G and F being equal. Therefore, more diversity can be secured in the MPM candidate configuration when B and D are used than when G and F are used as the left and upper neighboring blocks, respectively, and the result is despite considering the same number of neighboring blocks as MPM candidates. As a result, a larger number of neighboring blocks may be considered as MPM candidates.
한편, 도 14에서 C 블록 또는 E 블록은 예측하고자 하는 현재 블록을 기준으로 대각선 방향에 위치를 가지며, 현재 CTU 또는 현재 파이프 라이닝 유닛의 외부에 있을 확률이 B 블록과 D 블록 보다 크다. 만약, 이웃 위치가 현재 CTU 또는 현재 파이프 라이닝 유닛의 외부에 위치하게 되면, 해당 위치의 인트라 예특 모드는 전술한 바와 같이, 후술하는 실시예에서와 같이 플래너 모드 또는 DC 모드로 간주될 수 있다. 따라서, 이 경우, C 블록 또는 E 블록은 B 블록과 D 블록 대비 MPM 후보 구성에 낮은 다양성을 가져올 수 있다. Meanwhile, in FIG. 14, the C block or the E block has a position in a diagonal direction based on the current block to be predicted, and the probability of being outside the current CTU or the current pipe lining unit is greater than the B block and the D block. If the neighboring position is located outside the current CTU or the current pipe lining unit, the intra preliminary mode of the corresponding position may be regarded as a planner mode or a DC mode as in the embodiments described below. Therefore, in this case, the C block or the E block can bring about a low diversity in MPM candidate configuration compared to the B block and the D block.
따라서, 본 발명의 실시예에서, 인코더/디코더는 B 및 D 위치의 주변 블록의 인트라 예측 모드를 이용하여 MPM 리스트를 구성하는 방법을 제안한다. 즉, 본 실시예에서, 인코더/디코더는 MPM 후보의 다양성을 높이기 위해 제한된 수의 이웃 위치인 B 및 D를 사용하여 MPM 리스트를 구성하는 방법을 제안한다. 실시예로서, B 및 D의 위치는 각각 G 및 F 대신 MPM 리스트를 구성하는데 사용될 수 있다. 이때, 예측하고자 하는 현재 블록의 좌상단 위치 좌표가 (xPb, yPb)일 때, B와 D의 위치는 각각 (xPb+W-1, yPb-1)와 (xPb-1, yPb+H-1)로 정의될 수 있다. 여기서, W와 H는 현재 블록의 너비와 높이를 나타낸다.Accordingly, in an embodiment of the present invention, the encoder / decoder proposes a method of constructing an MPM list using an intra prediction mode of neighboring blocks of B and D positions. That is, in the present embodiment, the encoder / decoder proposes a method of constructing an MPM list using a limited number of neighboring locations B and D in order to increase diversity of MPM candidates. As an embodiment, the locations of B and D can be used to construct MPM lists instead of G and F, respectively. At this time, when the coordinates of the upper left position of the current block to be predicted are (xPb, yPb), the positions of B and D are (xPb + W-1, yPb-1) and (xPb-1, yPb + H-1), respectively. It can be defined as Here, W and H represent the width and height of the current block.
본 발명의 실시예에 따르면, B 및 D 위치의 주변 블록의 인트라 예측 모드를 이용함으로써, 보다 다양한 MPM 리스트를 구성할 수 있다. According to an embodiment of the present invention, by using the intra prediction mode of the neighboring blocks of the B and D positions, more various MPM lists can be constructed.
도 15는 본 발명의 실시예에 따른 MPM 리스트를 생성하는 컴포넌트의 일 예를 나타내는 도면이다.15 is a diagram illustrating an example of a component that generates an MPM list according to an embodiment of the present invention.
도 15의 컴포넌트는 디코더(또는 디코딩 장치, 앞서 도 2의 200)에 포함되는 구성으로 구현될 수 있다. 설명의 편의를 위해 디코더를 위주로 설명하나, 본 실시예에 따른 MPM 리스트 생성 방법은 인코더에도 실질적으로 동일하게 적용될 수 있으며, 도 15의 컴포넌트는 마찬가지로 인코더(또는 인코딩 장치, 앞서 도1의 100)에 포함되는 구성으로 구현될 수 있다.The component of FIG. 15 may be implemented with a configuration included in a decoder (or a decoding apparatus, 200 of FIG. 2 above). For convenience of explanation, the decoder is mainly described, but the MPM list generation method according to the present embodiment can be applied to the encoder substantially the same, and the component of FIG. 15 is similarly applied to the encoder (or encoding device, 100 of FIG. 1 above). It can be implemented in an included configuration.
도 15를 참조하면, MPM 리스트를 생성하는 컴포넌트는 제1 컴포넌트(1501), 제2 컴포넌트(1502) 및 제3 컴포넌트(1503)를 포함할 수 있다.15, a component for generating an MPM list may include a first component 1501, a second component 1502, and a third component 1503.
제1 컴포넌트(1501)는 좌측 및 상측 주변 블록이 이용 가능한지 여부를 확인할 수 있다. 이때, 좌측 및 상측 주변 블록 앞서 설명한 도 14의 B 위치 및 D 위치의 주변 블록일 수 있다. The first component 1501 may check whether the left and upper peripheral blocks are available. At this time, the left and upper peripheral blocks may be the peripheral blocks of positions B and D of FIG. 14 described above.
제2 컴포넌트(1502)는 좌측 및 상측 주변 블록의 인트라 예측 모드를 획득할 수 있다. 제3 컴포넌트(1503)는 미리 정의된 조건(또는 분기)에 기초하여 MPM 리스트를 생성할 수 있다. MPM 리스트 생성 방법에 관한 실시예는 후술한다.The second component 1502 may acquire intra prediction modes of the left and upper neighboring blocks. The third component 1503 may generate the MPM list based on a predefined condition (or branch). An embodiment of the MPM list generation method will be described later.
본 발명의 실시예에서, MPM의 다양성을 높이기 위해 MPM 리스트의 길이(즉, MPM 후보의 개수)가 확장될 수 있다. 이때, 상술한 바와 같이, B 및 D 위치의 주변 블록은 확장된 MPM 리스트의 생성을 위해 사용될 수 있다. 일 예로, 확장된 MPM 리스트의 길이는 인트라 예측 모드의 수에 따라 달라질 수 있으며 4, 5, 6 등과 같이 3보다 큰 수로 정의(또는 결정, 설정)될 수 있다.In an embodiment of the present invention, the length of the MPM list (ie, the number of MPM candidates) may be extended to increase the diversity of MPMs. At this time, as described above, the neighboring blocks at positions B and D can be used for generation of the extended MPM list. For example, the length of the extended MPM list may vary depending on the number of intra prediction modes, and may be defined (or determined, set) by a number greater than 3, such as 4, 5, 6, and the like.
일 실시예에서, MPM 리스트 구성 방법의 일 예를 다음의 표 3를 참조하여 설명한다.In one embodiment, an example of a method of constructing an MPM list will be described with reference to Table 3 below.
Figure PCTKR2019011588-appb-img-000003
Figure PCTKR2019011588-appb-img-000003
표 3을 참조하면, 인코더/디코더는 B와 D(즉, B의 인트라 예측 모드와 D의 인트라 예측 모드)가 동일한지 여부를 확인할 수 있다. Referring to Table 3, the encoder / decoder can confirm whether B and D (that is, intra prediction mode of B and intra prediction mode of D) are the same.
만약, B와 D가 동일한 경우, 인코더/디코더는 B가 2(즉, 앞서 설명한 도 13의 예측 모드 2)보다 작은지 여부를 확인할 수 있다. B가 2보다 작은 경우, 인코더/디코더는 제1 MPM 리스트를 생성(또는 유도)하고, B가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성할 수 있다. If B and D are the same, the encoder / decoder can check whether B is smaller than 2 (that is, the prediction mode 2 of FIG. 13 described above). If B is less than 2, the encoder / decoder may generate (or derive) a first MPM list, and if B is not less than 2, it may generate a second MPM list.
만약, B와 D가 동일하지 않은 경우, 인코더/디코더는 B 또는 D가 플래너 모드가 아닌지 여부를 확인할 수 있다. B 또는 D가 플래너 모드가 아닌 경우, 인코더/디코더는 제3 MPM 리스트를 생성하고, (B+D)가 2보다 작은 경우 제4 리스트를 생성할 수 있다. 그리고, 이외의 경우 인코더/디코더는 제5 MPM 리스트를 생성할 수 있다. If B and D are not the same, the encoder / decoder can check whether B or D is not in the planner mode. If B or D is not in the planner mode, the encoder / decoder may generate a third MPM list, and if (B + D) is less than 2, a fourth list. And, in other cases, the encoder / decoder may generate the fifth MPM list.
또한, 일 실시예에서, 본 실시예의 MPM 리스트 구성 방법에 따라 생성된 MPM 리스트의 일 예는 다음의 표 4와 같다.In addition, in one embodiment, an example of the MPM list generated according to the MPM list construction method of this embodiment is shown in Table 4 below.
Figure PCTKR2019011588-appb-img-000004
Figure PCTKR2019011588-appb-img-000004
표 4를 참조하면, MPM 리스트의 길이가 3일 때 또는 확장된 MPM 리스트로서 MPM 리스트의 길이가 6일 때, 제1 내지 제5 MPM 리스트는 표 4과 같은 MPM 후보를 포함할 수 있다.Referring to Table 4, when the length of the MPM list is 3 or when the length of the MPM list is 6 as an extended MPM list, the first to fifth MPM lists may include MPM candidates as shown in Table 4.
다른 일 예로서, 확장된 MPM 리스트의 길이는 4일 수 있고, 이 경우, 인코더/디코더는 1개의 MPM 후보를 기존의 3개의 MPM 리스트에 추가하여 4개의 MPM 리스트를 구성할 수 있다.As another example, the length of the extended MPM list may be 4, and in this case, the encoder / decoder may construct 4 MPM lists by adding 1 MPM candidate to 3 existing MPM lists.
또한, 본 발명의 일 실시예에서, 앞서 설명한 도 14의 B 및 D 위치의 주변 블록의 인트라 예측 모드를 이용할 수 없는 경우, 인코더/디코더는 통계적으로 많이 발생하는 예측 모드를 대신 사용할 수 있다. 이때, DC 모드 보다 플래너 모드의 발생 확률이 더 높은 것으로 고려하여, 인코더/디코더는 B 및 D 위치의 주변 블록의 인트라 예측 모드를 이용할 수 없는 경우, 플래너 모드를 B 또는 D의 예측 모드로 설정(또는 이용)할 수 있다. 구체적으로, 인코더/디코더는 다음의 경우를 적어도 하나 만족하는 경우, 플래너 모드를 B 또는 D의 예측 모드로 설정할 수 있다.In addition, in one embodiment of the present invention, when the intra prediction mode of the neighboring blocks at positions B and D of FIG. 14 described above cannot be used, the encoder / decoder may instead use a prediction mode that occurs statistically. At this time, considering that the probability of occurrence of the planner mode is higher than that of the DC mode, the encoder / decoder sets the planner mode to the prediction mode of B or D when the intra prediction mode of the neighboring blocks of the B and D positions cannot be used ( Or use). Specifically, when at least one of the following conditions is satisfied, the encoder / decoder may set the planner mode as the prediction mode of B or D.
- B 또는 D가 이용 가능하지 않은 경우-When B or D is not available
- B 또는 D가 인트라 코딩된 블록이 아닌 경우-If B or D is not an intra coded block
- B 또는 D가 현재 블록이 속한 CTU를 벗어나는 경우-B or D is outside the CTU to which the current block belongs
또한, 본 발명의 일 실시예에서, MPM을 효율적으로 코딩하기 위해 확장된 MPM 리스트에 대한 이진화 방법을 제안한다. 통계에 의하면 6 MPM이 이용되는 경우, 최적의 모드로서 특정 MPM 인덱스가 적중될 확률이 낮은 인덱스로 기울어지기 보다는 모든 인덱스에 스프레드된다. 따라서, 이하에서는 6개의 MPM 후보에 대한 인덱스에 2개 또는 3개의 빈(bin)만을 이용하여 이진화를 수행하는 방법을 제안한다. 본 실시예에서 제안하는 이진화의 예시는 다음의 표 5와 같다.In addition, in one embodiment of the present invention, a method for binarizing an extended MPM list is proposed to efficiently code MPM. According to statistics, when 6 MPM is used, as an optimal mode, a specific MPM index is spread to all indexes rather than being inclined to an index having a low probability of being hit. Therefore, hereinafter, a method of performing binarization using only 2 or 3 bins for indexes for 6 MPM candidates is proposed. Examples of the binarization proposed in this embodiment are shown in Table 5 below.
Figure PCTKR2019011588-appb-img-000005
Figure PCTKR2019011588-appb-img-000005
표 5를 참조하면, 종래의 6 MPM과 제안하는 확장된 6 MPM의 이진화를 모두 나타낸다. 최적의 모드로 선택될 확률이 특정 인덱스에 편중되지 않기 때문에, 제안된 이진화는 종래의 6 MPM보다 MPM 코딩에서 더 많은 이점을 갖는다. Referring to Table 5, both the conventional 6 MPM and the proposed extended 6 MPM are binarized. The proposed binarization has more advantages in MPM coding than the conventional 6 MPM, since the probability of choosing the optimal mode is not biased to a particular index.
구체적으로, 제안하는 이진화에 필요한 최대 빈의 수는 3개인 반면에 종래의 이진화에 따르면 이진화에 필요한 최대 빈의 수는 5 개이다. Specifically, the maximum number of bins required for the proposed binarization is three, whereas according to the conventional binarization, the maximum number of bins required for binarization is five.
35개의 인트라 모드를 이용하는 경우를 예로 들면, 제안하는 방식을 적용함으로써, 6 개의 인트라 모드가 MPM으로 표시될 때, 나머지 모드를 5 비트로 코딩할 수 있다. 나머지 모드의 수는 35-6 = 29이며, 이때 Floor (log2 (35-6)) = 5이다. MPM에 필요한 최대 빈 수는 3으로서 나머지 모드에 대한 5 비트보다 작기 때문에, 제안하는 이진화는 35개의 인트라 모드가 적용되는 환경에서 종래의 6 MPM보다 높은 코딩 효율을 가질 수 있다.For example, when 35 intra modes are used, by applying the proposed method, when 6 intra modes are displayed as MPM, the remaining modes can be coded with 5 bits. The number of remaining modes is 35-6 = 29, where Floor (log2 (35-6)) = 5. Since the maximum number of bins required for MPM is 3, which is less than 5 bits for the remaining modes, the proposed binarization may have higher coding efficiency than the conventional 6 MPM in an environment in which 35 intra modes are applied.
이상에서 설명한 본 발명의 실시예들은 각각 독립적으로 구현될 수도 있고, 하나 이상의 실시예가 조합되어 구현될 수도 있다.Each of the embodiments of the present invention described above may be implemented independently, or may be implemented by combining one or more embodiments.
도 16은 본 발명이 적용되는 실시예에 따른 인트라 예측 블록을 생성하는 방법을 예시하는 흐름도이다.16 is a flowchart illustrating a method of generating an intra prediction block according to an embodiment to which the present invention is applied.
도 16을 참조하면, 설명의 편의를 위해 디코더를 위주로 설명하나 본 발명이 이에 한정되는 것이 아니며, 본 발명의 실시예에 따른 인트라 예측 블록 생성 방법은 인코더와 디코더에서 동일하게 수행될 수 있다. Referring to FIG. 16, for convenience of description, a decoder is mainly described, but the present invention is not limited thereto, and an intra prediction block generation method according to an embodiment of the present invention may be performed in the same manner in an encoder and a decoder.
디코더는 현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득한다(S1601). 여기서, 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타낸다.The decoder acquires an MPM flag indicating whether a Most Probable Mode (MPM) is applied to the current block (S1601). Here, the MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block.
디코더는 상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성한다(S1602).When MPM is applied to the current block, the decoder configures an MPM list based on intra prediction modes of the left and upper neighboring blocks of the current block (S1602).
디코더는 상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득 한다(S1603). The decoder acquires an MPM index indicating a specific intra prediction mode in the MPM list (S1603).
디코더는 상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성한다(S1604).The decoder generates a prediction block of the current block using the intra prediction mode specified by the MPM index (S1604).
전술한 바와 같이, 상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고, 상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정될 수 있다.As described above, the left neighboring block is set as a block including pixels adjacent in the horizontal direction of the lower left sample in the current block, and the upper neighboring block includes pixels adjacent in the vertical direction of the upper right sample in the current block. It can be set as a block.
또한, 전술한 바와 같이, 상기 S1602 단계는, 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한지 여부를 확인하는 단계; 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한 경우, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은지 여부를 확인하는 단계; 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은 경우, 제1 MPM 리스트를 생성하는 단계; 및 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성하는 단계를 더 포함할 수 있다.In addition, as described above, the step S1602 includes: checking whether intra prediction modes of the left and upper neighboring blocks are the same; Checking whether the intra prediction mode of the upper neighboring block is less than 2 when the intra prediction mode of the left and upper neighboring blocks are the same; If the intra prediction mode of the upper neighboring block is less than 2, generating a first MPM list; And when the intra prediction mode of the upper neighboring block is not less than 2, generating a second MPM list.
또한, 전술한 바와 같이, 상기 제1 MPM 리스트는 플래너(planar) 모드, DC 모드, 수직 모드, 수평 모드, 수평 대각 모드 및 수직 대각 모드를 포함하고, 상기 제2 MPM 리스트는 플래너 모드, DC 모드, 상기 상측 이웃 블록의 인트라 예측 모드 및 상기 상측 이웃 블록의 인트라 예측 모드에 가장 인접한 2개의 인트라 예측 모드를 포함할 수 있다.In addition, as described above, the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode, and the second MPM list is a planner mode, a DC mode , The intra prediction mode of the upper neighboring block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
또한, 전술한 바와 같이, 상기 S1602 단계는, 상기 좌측 또는 상측 이웃 블록이 이용 가능하지 않거나, 인트라 예측 모드로 코딩된 블록이 아니거나, 또는 현재 코딩 트리 유닛(CTU: coding tree unit) 내에 위치하지 않는 경우, 상기 좌측 또는 상측 이웃 블록의 인트라 예측 모드를 플래너(planar) 모드로 설정하는 단계를 더 포함할 수 있다. Also, as described above, in step S1602, the left or upper neighboring block is not available, is not a block coded in an intra prediction mode, or is not located in a current coding tree unit (CTU). If not, the method may further include setting the intra prediction mode of the left or upper neighboring block to a planar mode.
또한, 전술한 바와 같이, 상기 MPM 리스트는 6개의 MPM 후보를 포함하고, 상기 6개의 MPM 후보를 각각 지시하는 인덱스들 중에서, 0번 인덱스는 00으로 이진화되고, 1번 인덱스는 01으로 이진화되고, 2번 인덱스는 100으로 이진화되고, 3번 인덱스는 101으로 이진화되고, 4번 인덱스는 110으로 이진화되고, 5번 인덱스는 111으로 이진화될 수 있다.In addition, as described above, the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00 and index 1 is binarized to 01, Index 2 can be binarized to 100, index 3 can be binarized to 101, index 4 can be binarized to 110, and index 5 can be binarized to 111.
도 17은 본 발명이 적용되는 실시예에 따른 인트라 예측 장치를 예시하는 도면이다.17 is a diagram illustrating an intra prediction apparatus according to an embodiment to which the present invention is applied.
도 17에서는 설명의 편의를 위해 인트라 예측부를 하나의 블록으로 도시하였으나, 인트라 예측부는 인코더 및/또는 디코더에 포함되는 구성으로 구현될 수 있다.In FIG. 17, for convenience of description, the intra prediction unit is illustrated as one block, but the intra prediction unit may be implemented in a configuration included in the encoder and / or decoder.
도 17을 참조하면, 인트라 예측부는 앞서 도 8내지 도 16에서 제안된 기능, 과정 및/또는 방법을 구현한다. 구체적으로, 인트라 예측부는 MPM 플래그 획득부(1701), MPM 리스트 구성부(1702), MPM 인덱스 획득부(1703) 및 예측 블록 생성부(1704)를 포함할 수 있다.Referring to FIG. 17, the intra prediction unit implements the functions, processes, and / or methods previously proposed in FIGS. 8 to 16. Specifically, the intra prediction unit may include an MPM flag acquisition unit 1701, an MPM list construction unit 1702, an MPM index acquisition unit 1703, and a prediction block generation unit 1704.
MPM 플래그 획득부(1701)는 현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득한다. 여기서, 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타낸다.The MPM flag acquiring unit 1701 acquires an MPM flag indicating whether Most Probable Mode (MPM) is applied to the current block. Here, the MPM indicates a mode in which the intra prediction mode of the current block is derived from the intra predicted block around the current block.
MPM 리스트 구성부(1702)는 상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성한다.When the MPM is applied to the current block, the MPM list construction unit 1702 configures the MPM list based on the intra prediction mode of the left and upper neighboring blocks of the current block.
MPM 인덱스 획득부(1703)는 상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득 한다. The MPM index obtaining unit 1703 acquires an MPM index indicating a specific intra prediction mode in the MPM list.
예측 블록 생성부(1704)는 상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성한다.The prediction block generator 1704 generates a prediction block of the current block using an intra prediction mode specified by the MPM index.
전술한 바와 같이, 상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고, 상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정될 수 있다.As described above, the left neighboring block is set as a block including pixels adjacent in the horizontal direction of the lower left sample in the current block, and the upper neighboring block includes pixels adjacent in the vertical direction of the upper right sample in the current block. It can be set as a block.
또한, 전술한 바와 같이, 상기 MPM 리스트 구성부(1702)는, 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한지 여부를 확인하고, 상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한 경우, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은지 여부를 확인하고, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은 경우, 제1 MPM 리스트를 생성하고, 그리고, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성할 수 있다.In addition, as described above, the MPM list construction unit 1702 checks whether the intra prediction modes of the left and upper neighboring blocks are the same, and when the intra prediction modes of the left and upper neighboring blocks are the same, the It is checked whether the intra prediction mode of the upper neighboring block is less than 2, and if the intra prediction mode of the upper neighboring block is less than 2, a first MPM list is generated, and the intra prediction mode of the upper neighboring block is If not less than 2, a second MPM list may be generated.
또한, 전술한 바와 같이, 상기 제1 MPM 리스트는 플래너(planar) 모드, DC 모드, 수직 모드, 수평 모드, 수평 대각 모드 및 수직 대각 모드를 포함하고, 상기 제2 MPM 리스트는 플래너 모드, DC 모드, 상기 상측 이웃 블록의 인트라 예측 모드 및 상기 상측 이웃 블록의 인트라 예측 모드에 가장 인접한 2개의 인트라 예측 모드를 포함할 수 있다.In addition, as described above, the first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode, and the second MPM list is a planner mode, a DC mode , The intra prediction mode of the upper neighboring block and the two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
또한, 전술한 바와 같이, 상기 MPM 리스트 구성부(1702)는 상기 좌측 또는 상측 이웃 블록이 이용 가능하지 않거나, 인트라 예측 모드로 코딩된 블록이 아니거나, 또는 현재 코딩 트리 유닛(CTU: coding tree unit) 내에 위치하지 않는 경우, 상기 좌측 또는 상측 이웃 블록의 인트라 예측 모드를 플래너(planar) 모드로 설정할 수 있다. In addition, as described above, the MPM list construction unit 1702 is not available in the left or upper neighboring block, is not a block coded in intra prediction mode, or is currently a coding tree unit (CTU). ), The intra prediction mode of the left or upper neighboring block may be set as a planar mode.
또한, 전술한 바와 같이, 상기 MPM 리스트는 6개의 MPM 후보를 포함하고, 상기 6개의 MPM 후보를 각각 지시하는 인덱스들 중에서, 0번 인덱스는 00으로 이진화되고, 1번 인덱스는 01으로 이진화되고, 2번 인덱스는 100으로 이진화되고, 3번 인덱스는 101으로 이진화되고, 4번 인덱스는 110으로 이진화되고, 5번 인덱스는 111으로 이진화될 수 있다.In addition, as described above, the MPM list includes 6 MPM candidates, and among indexes indicating the 6 MPM candidates, index 0 is binarized to 00 and index 1 is binarized to 01, Index 2 can be binarized to 100, index 3 can be binarized to 101, index 4 can be binarized to 110, and index 5 can be binarized to 111.
도 18은 본 발명이 적용되는 비디오 코딩 시스템을 나타낸다.18 shows a video coding system to which the present invention is applied.
비디오 코딩 시스템은 소스 디바이스(source device) 및 수신 디바이스(receiving device)를 포함할 수 있다. 소스 디바이스는 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스로 전달할 수 있다. The video coding system may include a source device and a receiving device. The source device may deliver the encoded video / video information or data to a receiving device through a digital storage medium or network in the form of a file or streaming.
상기 소스 디바이스는 비디오 소스(video source), 인코딩 장치(encoding apparatus), 전송부(transmitter)를 포함할 수 있다. 상기 수신 디바이스는 수신부(receiver), 디코딩 장치(decoding apparatus) 및 렌더러(renderer)를 포함할 수 있다. 상기 인코딩 장치는 비디오/영상 인코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기는 인코딩 장치에 포함될 수 있다. 수신기는 디코딩 장치에 포함될 수 있다. 렌더러는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다. The source device may include a video source, an encoding apparatus, and a transmitter. The receiving device may include a receiver, a decoding apparatus, and a renderer. The encoding device may be called a video / video encoding device, and the decoding device may be called a video / video decoding device. The transmitter can be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
비디오 소스는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.The video source may acquire a video / image through a capture, synthesis, or generation process of the video / image. The video source may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive including previously captured video / images, and the like. The video / image generating device may include, for example, a computer, a tablet and a smart phone, and the like (electronically) to generate the video / image. For example, a virtual video / image may be generated through a computer or the like, and in this case, the video / image capture process may be replaced by a process in which related data is generated.
인코딩 장치는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.The encoding device can encode the input video / video. The encoding apparatus may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency. The encoded data (encoded video / video information) may be output in the form of a bitstream.
전송부는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘레멘트를 포함할 수 있다. 수신부는 상기 비트스트림을 추출하여 디코딩 장치로 전달할 수 있다.The transmitting unit may transmit the encoded video / video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format. The digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD. The transmission unit may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast / communication network. The receiver may extract the bitstream and transmit it to the decoding device.
디코딩 장치는 인코딩 장치의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다. The decoding apparatus may decode a video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus.
렌더러는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.The renderer can render the decoded video / image. The rendered video / image may be displayed through the display unit.
도 19는 본 발명이 적용되는 실시예로서, 컨텐츠 스트리밍 시스템 구조도를 나타낸다.19 is an embodiment to which the present invention is applied, and shows a structure diagram of a content streaming system.
도 19를 참조하면, 본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.Referring to FIG. 19, a content streaming system to which the present invention is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.The encoding server serves to compress a content input from multimedia input devices such as a smartphone, a camera, and a camcorder into digital data to generate a bitstream and transmit it to the streaming server. As another example, when multimedia input devices such as a smartphone, a camera, and a camcorder directly generate a bitstream, the encoding server may be omitted.
상기 비트스트림은 본 발명이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.The bitstream may be generated by an encoding method or a bitstream generation method to which the present invention is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server serves as an intermediary to inform the user of the service. When a user requests a desired service from the web server, the web server delivers it to the streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, in which case the control server serves to control commands / responses between devices in the content streaming system.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server may receive content from a media storage and / or encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.Examples of the user device include a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PC, ultrabook, wearable device (e.g., smartwatch, smart glass, head mounted display (HMD)), digital TV, desktop Computers, digital signage, and the like.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
상기 기술된 것과 같이, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.As described above, the embodiments described in the present invention may be implemented and implemented on a processor, microprocessor, controller, or chip. For example, the functional units illustrated in each drawing may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
또한, 본 발명이 적용되는 디코더 및 인코더는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.In addition, the decoder and encoder to which the present invention is applied are a multimedia broadcast transmission / reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video communication device, a real-time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. And can be used to process video signals or data signals. For example, the OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.Further, the processing method to which the present invention is applied can be produced in the form of a computer-implemented program, and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device. In addition, the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet). In addition, the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.Further, an embodiment of the present invention may be implemented as a computer program product by program code, and the program code may be executed on a computer by an embodiment of the present invention. The program code can be stored on a computer readable carrier.
이상에서 설명된 실시예들은 본 발명의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 발명의 실시예를 구성하는 것도 가능하다. 본 발명의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.The embodiments described above are those in which the components and features of the present invention are combined in a predetermined form. Each component or feature should be considered optional unless stated otherwise. Each component or feature may be implemented in a form that is not combined with other components or features. It is also possible to configure an embodiment of the present invention by combining some components and / or features. The order of the operations described in the embodiments of the present invention can be changed. Some configurations or features of one embodiment may be included in other embodiments, or may be replaced with corresponding configurations or features of other embodiments. It is obvious that the claims may not be explicitly included in the claims, and the embodiments may be combined or included as new claims by amendment after filing.
본 발명에 따른 실시예는 다양한 수단, 예를 들어, 하드웨어, 펌웨어(firmware), 소프트웨어 또는 그것들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 본 발명의 일 실시예는 하나 또는 그 이상의 ASICs(application specific integrated circuits), DSPs(digital signal processors), DSPDs(digital signal processing devices), PLDs(programmable logic devices), FPGAs(field programmable gate arrays), 프로세서, 콘트롤러, 마이크로 콘트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.Embodiments according to the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof. For implementation by hardware, one embodiment of the invention includes one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, and the like.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 발명의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고 받을 수 있다.In the case of implementation by firmware or software, an embodiment of the present invention may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above. The software code can be stored in memory and driven by a processor. The memory is located inside or outside the processor, and can exchange data with the processor by various known means.
본 발명은 본 발명의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 발명의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 발명의 등가적 범위 내에서의 모든 변경은 본 발명의 범위에 포함된다.It will be apparent to those skilled in the art that the present invention may be embodied in other specific forms without departing from the essential features of the present invention. Accordingly, the above detailed description should not be construed as limiting in all respects but should be considered as illustrative. The scope of the invention should be determined by rational interpretation of the appended claims, and all changes within the equivalent scope of the invention are included in the scope of the invention.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.The preferred embodiments of the present invention described above have been disclosed for purposes of illustration, and those skilled in the art can improve and change various other embodiments within the technical spirit and the technical scope of the present invention disclosed in the appended claims. , Replacement or addition may be possible.

Claims (10)

  1. 인트라 예측 모드 기반으로 영상을 디코딩하는 방법에 있어서,In the method of decoding an image based on the intra prediction mode,
    현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득하는 단계, 여기서 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타냄;Obtaining an MPM flag indicating whether or not MPM (Most Probable Mode) is applied to the current block, wherein the MPM is an intra prediction mode of the current block derived from an intra predicted block around the current block Indicates mode;
    상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성하는 단계;When MPM is applied to the current block, constructing an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block;
    상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득하는 단계; 및 Obtaining an MPM index indicating a specific intra prediction mode in the MPM list; And
    상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성하는 단계를 포함하되,Generating a prediction block of the current block using an intra prediction mode specified by the MPM index,
    상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고,The left neighboring block is set to a block including pixels adjacent to the horizontal direction of the lower left sample in the current block,
    상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정되는, 영상 디코딩 방법.The upper neighboring block is set as a block including pixels adjacent in a vertical direction of a right uppermost sample in the current block.
  2. 제1항에 있어서,The method of claim 1,
    상기 MPM 리스트를 구성하는 단계는,The step of constructing the MPM list,
    상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한지 여부를 확인하는 단계; Checking whether intra prediction modes of the left and upper neighboring blocks are the same;
    상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한 경우, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은지 여부를 확인하는 단계;Checking whether the intra prediction mode of the upper neighboring block is less than 2 when the intra prediction mode of the left and upper neighboring blocks are the same;
    상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은 경우, 제1 MPM 리스트를 생성하는 단계; 및 If the intra prediction mode of the upper neighboring block is less than 2, generating a first MPM list; And
    상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성하는 단계를 더 포함하는, 영상 디코딩 방법.And if the intra prediction mode of the upper neighboring block is not less than 2, generating a second MPM list.
  3. 제2항에 있어서,According to claim 2,
    상기 제1 MPM 리스트는 플래너(planar) 모드, DC 모드, 수직 모드, 수평 모드, 수평 대각 모드 및 수직 대각 모드를 포함하고,The first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode,
    상기 제2 MPM 리스트는 플래너 모드, DC 모드, 상기 상측 이웃 블록의 인트라 예측 모드 및 상기 상측 이웃 블록의 인트라 예측 모드에 가장 인접한 2개의 인트라 예측 모드를 포함하는, 영상 디코딩 방법.The second MPM list includes a planar mode, a DC mode, an intra prediction mode of the upper neighboring block, and two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
  4. 제1항에 있어서,The method of claim 1,
    상기 MPM 리스트를 구성하는 단계는,The step of constructing the MPM list,
    상기 좌측 또는 상측 이웃 블록이 이용 가능하지 않거나, 인트라 예측 모드로 코딩된 블록이 아니거나, 또는 현재 코딩 트리 유닛(CTU: coding tree unit) 내에 위치하지 않는 경우, 상기 좌측 또는 상측 이웃 블록의 인트라 예측 모드를 플래너(planar) 모드로 설정하는 단계를 더 포함하는, 영상 디코딩 방법.If the left or upper neighboring block is not available, is not a block coded in intra prediction mode, or is not located in a current coding tree unit (CTU), intra prediction of the left or upper neighboring block And setting the mode to a planar mode.
  5. 제1항에 있어서,The method of claim 1,
    상기 MPM 리스트는 6개의 MPM 후보를 포함하고,The MPM list includes 6 MPM candidates,
    상기 6개의 MPM 후보를 각각 지시하는 인덱스들 중에서, 0번 인덱스는 00으로 이진화되고, 1번 인덱스는 01으로 이진화되고, 2번 인덱스는 100으로 이진화되고, 3번 인덱스는 101으로 이진화되고, 4번 인덱스는 110으로 이진화되고, 5번 인덱스는 111으로 이진화되는, 영상 디코딩 방법.Among the indexes indicating each of the six MPM candidates, index 0 is binarized to 00, index 1 is binarized to 01, index 2 is binarized to 100, index 3 is binarized to 101, and 4 The method of decoding an image, wherein the index number is binarized to 110 and the index 5 is binarized to 111.
  6. 인트라 예측 모드 기반으로 영상을 디코딩하는 장치에 있어서,In the apparatus for decoding an image based on the intra prediction mode,
    현재 블록에 MPM(Most Probable Mode)이 적용되는지 여부를 지시하는 MPM 플래그(flag)를 획득하는 MPM 플래그 획득부, 여기서 상기 MPM은 상기 현재 블록의 인트라 예측 모드가 상기 현재 블록 주변의 인트라 예측된 블록으로부터 유도되는 모드를 나타냄;An MPM flag acquiring unit that acquires an MPM flag indicating whether Most Probable Mode (MPM) is applied to the current block, wherein the MPM is an intra predicted block in which the intra prediction mode of the current block is around the current block Represents a mode derived from;
    상기 현재 블록에 MPM이 적용되는 경우, 상기 현재 블록의 좌측 및 상측 이웃 블록의 인트라 예측 모드에 기초하여 MPM 리스트를 구성하는 MPM 리스트 구성부;An MPM list construction unit configured to configure an MPM list based on intra prediction modes of left and upper neighboring blocks of the current block when MPM is applied to the current block;
    상기 MPM 리스트 내에서 특정 인트라 예측 모드를 지시하는 MPM 인덱스(index)를 획득하는 MPM 인덱스 획득부; 및 An MPM index obtaining unit for obtaining an MPM index indicating a specific intra prediction mode in the MPM list; And
    상기 MPM 인덱스에 의해 특정되는 인트라 예측 모드를 이용하여 상기 현재 블록의 예측 블록을 생성하는 예측 블록 생성부를 포함하되,It includes a prediction block generator for generating a prediction block of the current block using the intra prediction mode specified by the MPM index,
    상기 좌측 이웃 블록은 상기 현재 블록 내 좌하단 샘플의 수평 방향으로 인접한 픽셀을 포함하는 블록으로 설정되고,The left neighboring block is set to a block including pixels adjacent to the horizontal direction of the lower left sample in the current block,
    상기 상측 이웃 블록은 상기 현재 블록 내 우상단 샘플의 수직 방향으로 인접한 픽셀을 포함하는 블록으로 설정되는, 영상 디코딩 장치.And the upper neighboring block is set to a block including pixels adjacent in a vertical direction of a right uppermost sample in the current block.
  7. 제6항에 있어서,The method of claim 6,
    상기 MPM 리스트 구성부는,The MPM list configuration unit,
    상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한지 여부를 확인하고,Check whether intra prediction modes of the left and upper neighboring blocks are the same,
    상기 좌측 및 상측 이웃 블록의 인트라 예측 모드가 동일한 경우, 상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은지 여부를 확인하고,When the intra prediction mode of the left and upper neighboring blocks is the same, it is checked whether the intra prediction mode of the upper neighboring block is less than 2,
    상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작은 경우, 제1 MPM 리스트를 생성하고, 그리고, When the intra prediction mode of the upper neighboring block is less than 2, a first MPM list is generated, and
    상기 상측 이웃 블록의 인트라 예측 모드가 2보다 작지 않은 경우, 제2 MPM 리스트를 생성하는, 영상 디코딩 장치.When the intra prediction mode of the upper neighboring block is not less than 2, a second MPM list is generated.
  8. 제7항에 있어서,The method of claim 7,
    상기 제1 MPM 리스트는 플래너(planar) 모드, DC 모드, 수직 모드, 수평 모드, 수평 대각 모드 및 수직 대각 모드를 포함하고,The first MPM list includes a planar mode, a DC mode, a vertical mode, a horizontal mode, a horizontal diagonal mode, and a vertical diagonal mode,
    상기 제2 MPM 리스트는 플래너 모드, DC 모드, 상기 상측 이웃 블록의 인트라 예측 모드 및 상기 상측 이웃 블록의 인트라 예측 모드에 가장 인접한 2개의 인트라 예측 모드를 포함하는, 영상 디코딩 장치.The second MPM list includes a planar mode, a DC mode, an intra prediction mode of the upper neighboring block, and two intra prediction modes closest to the intra prediction mode of the upper neighboring block.
  9. 제6항에 있어서,The method of claim 6,
    상기 MPM 리스트 구성부는,The MPM list configuration unit,
    상기 좌측 또는 상측 이웃 블록이 이용 가능하지 않거나, 인트라 예측 모드로 코딩된 블록이 아니거나, 또는 현재 코딩 트리 유닛(CTU: coding tree unit) 내에 위치하지 않는 경우, 상기 좌측 또는 상측 이웃 블록의 인트라 예측 모드를 플래너(planar) 모드로 설정하는, 영상 디코딩 장치.If the left or upper neighboring block is not available, is not a block coded in intra prediction mode, or is not located in a current coding tree unit (CTU), intra prediction of the left or upper neighboring block An image decoding apparatus that sets the mode to a planar mode.
  10. 제6항에 있어서,The method of claim 6,
    상기 MPM 리스트는 6개의 MPM 후보를 포함하고,The MPM list includes 6 MPM candidates,
    상기 6개의 MPM 후보를 각각 지시하는 인덱스들 중에서, 0번 인덱스는 00으로 이진화되고, 1번 인덱스는 01으로 이진화되고, 2번 인덱스는 100으로 이진화되고, 3번 인덱스는 101으로 이진화되고, 4번 인덱스는 110으로 이진화되고, 5번 인덱스는 111으로 이진화되는, 영상 디코딩 장치.Among the indexes indicating each of the six MPM candidates, index 0 is binarized to 00, index 1 is binarized to 01, index 2 is binarized to 100, index 3 is binarized to 101, and 4 An image decoding apparatus in which the index number is binarized to 110 and the index 5 is binarized to 111.
PCT/KR2019/011588 2018-09-06 2019-09-06 Intra-prediction mode-based image processing method and device therefor WO2020050697A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20180106698 2018-09-06
KR10-2018-0106698 2018-09-06

Publications (1)

Publication Number Publication Date
WO2020050697A1 true WO2020050697A1 (en) 2020-03-12

Family

ID=69722936

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/011588 WO2020050697A1 (en) 2018-09-06 2019-09-06 Intra-prediction mode-based image processing method and device therefor

Country Status (1)

Country Link
WO (1) WO2020050697A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11297345B2 (en) * 2018-09-21 2022-04-05 Huawei Technologies Co., Ltd. Intra prediction mode derivation based on neighboring blocks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150091184A (en) * 2011-06-09 2015-08-07 퀄컴 인코포레이티드 Enhanced intra-prediction mode signaling for video coding using neighboring mode
KR20160030323A (en) * 2011-09-12 2016-03-16 캐논 가부시끼가이샤 Deriving reference mode values and encoding and decoding information representing prediction modes
KR20180014109A (en) * 2010-12-21 2018-02-07 한국전자통신연구원 Method for coding/decoding of intra prediction mode and computer readable redording meduim thereof
KR20180019562A (en) * 2015-06-18 2018-02-26 퀄컴 인코포레이티드 Intra prediction and intra mode coding
KR20180042829A (en) * 2011-06-28 2018-04-26 삼성전자주식회사 Method and apparatus for video encoding with intra prediction, method and apparatus for video decoding with intra prediction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180014109A (en) * 2010-12-21 2018-02-07 한국전자통신연구원 Method for coding/decoding of intra prediction mode and computer readable redording meduim thereof
KR20150091184A (en) * 2011-06-09 2015-08-07 퀄컴 인코포레이티드 Enhanced intra-prediction mode signaling for video coding using neighboring mode
KR20180042829A (en) * 2011-06-28 2018-04-26 삼성전자주식회사 Method and apparatus for video encoding with intra prediction, method and apparatus for video decoding with intra prediction
KR20160030323A (en) * 2011-09-12 2016-03-16 캐논 가부시끼가이샤 Deriving reference mode values and encoding and decoding information representing prediction modes
KR20180019562A (en) * 2015-06-18 2018-02-26 퀄컴 인코포레이티드 Intra prediction and intra mode coding

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11297345B2 (en) * 2018-09-21 2022-04-05 Huawei Technologies Co., Ltd. Intra prediction mode derivation based on neighboring blocks

Similar Documents

Publication Publication Date Title
WO2020246849A1 (en) Transform-based image coding method and device for same
WO2019190181A1 (en) Image/video coding method based on intra prediction, and device therefor
WO2020218793A1 (en) Bdpcm-based image coding method and device therefor
WO2020256389A1 (en) Bdpcm-based image decoding method and device for same
WO2020171632A1 (en) Mpm list-based intra prediction method and device
WO2019203610A1 (en) Method for processing image and device therefor
WO2020149630A1 (en) Method and device for decoding image on basis of cclm prediction in image coding system
WO2019235822A1 (en) Method and device for processing video signal by using affine motion prediction
WO2021137597A1 (en) Image decoding method and device using dpb parameter for ols
WO2020256344A1 (en) Signaling of information indicating transform kernel set in image coding
WO2020167097A1 (en) Derivation of inter-prediction type for inter prediction in image coding system
WO2020145604A1 (en) Intra prediction-based video coding method and device using mpm list
WO2020141879A1 (en) Affine motion prediction-based video decoding method and device using subblock-based temporal merge candidate in video coding system
WO2020071832A1 (en) Method for coding transform coefficient and device therefor
WO2020256506A1 (en) Video encoding/decoding method and apparatus using multiple reference line intra-prediction, and method for transmitting bitstream
WO2020235960A1 (en) Image decoding method using bdpcm and device therefor
WO2020180100A1 (en) Intra block coding-based video or image coding
WO2019199093A1 (en) Intra prediction mode-based image processing method and device therefor
WO2021091256A1 (en) Image/video coding method and device
WO2021034161A1 (en) Intra prediction device and method
WO2020256346A1 (en) Coding of information about transform kernel set
WO2020145620A1 (en) Intra prediction-based image coding method and device using mpm list
WO2020149616A1 (en) Method and device for decoding image on basis of cclm prediction in image coding system
WO2020055159A1 (en) Method for processing image on basis of intra prediction mode, and device therefor
WO2020197031A1 (en) Intra prediction method and apparatus based on multi-reference line in image coding system

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: 19858140

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19858140

Country of ref document: EP

Kind code of ref document: A1