[go: up one dir, main page]

WO2020040439A1 - Intra prediction method and device in image coding system - Google Patents

Intra prediction method and device in image coding system Download PDF

Info

Publication number
WO2020040439A1
WO2020040439A1 PCT/KR2019/009388 KR2019009388W WO2020040439A1 WO 2020040439 A1 WO2020040439 A1 WO 2020040439A1 KR 2019009388 W KR2019009388 W KR 2019009388W WO 2020040439 A1 WO2020040439 A1 WO 2020040439A1
Authority
WO
WIPO (PCT)
Prior art keywords
current block
intra prediction
mpm
block
mpm list
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/KR2019/009388
Other languages
French (fr)
Korean (ko)
Inventor
이령
김승환
임재현
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics Inc
Original Assignee
LG Electronics Inc
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 LG Electronics Inc filed Critical LG Electronics Inc
Publication of WO2020040439A1 publication Critical patent/WO2020040439A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Definitions

  • the present invention relates to image coding technology, and more particularly, to an intra prediction method and apparatus in an image coding system.
  • the demand for high resolution and high quality images such as high definition (HD) and ultra high definition (UHD) images is increasing in various fields.
  • the higher the resolution and the higher quality of the image data the more information or bit amount is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium.
  • the transmission cost and the storage cost increase.
  • a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
  • An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
  • Another technical problem of the present invention is to provide an efficient intra prediction method and apparatus.
  • Another technical problem of the present invention is to provide a method and apparatus for constructing an MPM list based on the size of a current block.
  • Another technical problem of the present invention is to provide a method and apparatus for constructing a simple MPM list using a left neighbor block and an upper neighbor block based on the size of a current block.
  • an image decoding method performed by a decoding apparatus may include obtaining a Most Probable Mode (MPM) index of a current block, constructing an MPM list based on neighboring blocks of the current block, intra prediction of the current block based on the MPM list and the MPM index. Deriving a mode and generating a predicted block for the current block based on the intra prediction mode, wherein the MPM list is derived based on the size of the current block, and the size of the current block The width of the current block and the height of the current block is calculated as a value.
  • MPM Most Probable Mode
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus obtains an entropy decoding unit for obtaining prediction information on a current block and a Most Probable Mode (MPM) index of the current block, constructs an MPM list based on neighboring blocks of the current block, and generates the MPM list.
  • a prediction unit for deriving an intra prediction mode of the current block based on the MPM index and generating a predicted block for the current block based on the intra prediction mode, wherein the MPM list includes a size of the current block.
  • the size of the current block is calculated based on the product of the width of the current block and the height of the current block.
  • a video encoding method performed by an encoding apparatus includes constructing a Most Probable Mode (MPM) list based on neighboring blocks of the current block, deriving an intra prediction mode of the current block based on the MPM list, and deriving an MPM index of the current block. Generating a predicted block for the current block based on the intra prediction mode, and generating, encoding and outputting prediction information for the current block including the MPM index, wherein the MPM list Is derived based on the size of the current block, and the size of the current block is calculated by multiplying the width of the current block and the height of the current block.
  • MPM Most Probable Mode
  • a video encoding apparatus constructs a Most Probable Mode (MPM) list based on neighboring blocks of the current block, derives an intra prediction mode of the current block based on the MPM list, derives an MPM index of the current block, A prediction unit for generating a predicted block for the current block based on the intra prediction mode, and an entropy encoding unit for generating, encoding and outputting prediction information for the current block including the MPM index, wherein the MPM list Is derived based on the size of the current block, and the size of the current block is calculated by multiplying the width of the current block and the height of the current block.
  • MPM Most Probable Mode
  • image compression efficiency can be improved.
  • the intra prediction mode can be efficiently derived while reducing the computational complexity.
  • FIG. 1 is a diagram schematically illustrating a video / image coding system to which the present invention may be applied.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • FIG. 3 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • FIG. 4 is a diagram schematically illustrating some components of an encoding apparatus according to the present invention.
  • FIG. 5 is a diagram schematically illustrating some components of a decoding apparatus according to the present invention.
  • FIG 6 schematically illustrates an intra prediction method according to the present invention.
  • FIG. 8 schematically illustrates an example of a block size based MPM list construction method.
  • FIG. 9 schematically illustrates another example of a block size based MPM list construction method.
  • FIG. 10 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • FIG. 11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
  • each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented in separate hardware or separate software.
  • two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
  • Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
  • FIG. 1 is a diagram schematically illustrating a video / image coding system to which the present invention may be applied.
  • a video / image coding system may include a source device and a receiving device.
  • the source device may transmit the encoded video / image information or data to the receiving device through a digital storage medium or a 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 receiving unit, a decoding apparatus and a renderer.
  • the encoding device may be called a video / image encoding device, and the decoding device may be called a video / image decoding device.
  • the transmitter may 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 the video / image through a process of capturing, synthesizing, or generating the video / image.
  • the video source may comprise 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, video / image archives including previously captured video / images, and the like.
  • Video / image generation devices may include, for example, computers, tablets and smartphones, and may (electronically) generate video / images.
  • a virtual video / image may be generated through a computer or the like. In this case, the video / image capturing process may be replaced by a process of generating related data.
  • the encoding device may encode the input video / image.
  • the encoding apparatus may perform a series of procedures such as prediction, transform, and quantization for compression and coding efficiency.
  • the encoded data (encoded video / image information) may be output in the form of a bitstream.
  • the transmitter may transmit the encoded video / video information or data output in the form of a bitstream to the receiver of the receiving device through a digital storage medium or a network in the form of a file or streaming.
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like.
  • 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 receive / extract the bitstream and transmit the received bitstream to the decoding apparatus.
  • the decoding apparatus may decode the 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 may render the decoded video / image.
  • the rendered video / image may be displayed through the display unit.
  • the present invention relates to video / picture coding.
  • the methods / embodiments disclosed in the present invention may include a versatile video coding (VVC) standard, an essential video coding (EVC) standard, an AOMedia Video 1 (AV1) standard, a second generation of audio video coding standard (AVS2) or It can be applied to the method disclosed in the image coding standard (ex. H.267 or H.268, etc.).
  • VVC versatile video coding
  • EVC essential video coding
  • AV1 AOMedia Video 1
  • AVS2 second generation of audio video coding standard
  • a video may refer to a set of images over time.
  • a picture generally refers to a unit representing one image in a specific time zone, and a slice / tile is a unit constituting a part of a picture in coding.
  • the slice / tile may comprise one or more coding tree units (CTUs).
  • CTUs coding tree units
  • One picture may consist of one or more slices / tiles.
  • One picture may consist of one or more tile groups.
  • One tile group may include one or more tiles.
  • the brick may represent a rectangular region of CTU rows within a tile in the picture.
  • tile groups and slices may be used interchangeably.
  • tile group / tile group header may be called slice / slice header.
  • a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
  • a unit may represent a basic unit of image processing.
  • the unit may include at least one of a specific region of the picture and information related to the region.
  • One unit may include one luma block and two chroma (ex. Cb, cr) blocks.
  • the unit may be used interchangeably with terms such as block or area in some cases.
  • an M ⁇ N block may include samples (or sample arrays) or a set (or array) of transform coefficients of M columns and N rows.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
  • the encoding apparatus 100 may include an image splitter 110, a subtractor 115, a transformer 120, a quantizer 130, an inverse quantizer 140, an inverse transformer 150,
  • the adder 155, the filter 160, the memory 170, the inter predictor 180, the intra predictor 185, and the entropy encoder 190 may be configured.
  • the inter predictor 180 and the intra predictor 185 may be collectively called a predictor. That is, the predictor may include an inter predictor 180 and an intra predictor 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in the residual processing unit.
  • the residual processing unit may further include a subtracting unit 115.
  • the image divider 110, the subtractor 115, the transformer 120, the quantizer 130, the inverse quantizer 140, the inverse transformer 150, the adder 155, and the filter 160 are described above.
  • the inter predictor 180, the intra predictor 185, and the entropy encoder 190 may be configured by one hardware component (for example, an encoder chipset or a processor) according to an embodiment.
  • the memory 170 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium.
  • the hardware component may further include the memory 170 as an internal / external component.
  • the image divider 110 may divide an input image (or a picture or a 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 ternary-tree (QTBTTT) structure from a coding tree unit (CTU) or a largest coding unit (LCU).
  • QTBTTT quad-tree binary-tree ternary-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, a binary tree structure, and / or a ternary tree structure.
  • the quad tree structure may be applied first and the binary tree structure and / or ternary tree structure may be applied later.
  • the binary tree structure may be applied first.
  • the coding procedure according to the present invention may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
  • a coding unit of size may be used as the final coding unit.
  • the coding procedure may include a procedure of prediction, transform, 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 last coding unit described above, 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.
  • an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
  • a sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
  • a sample may be used as a term corresponding to one picture (or image) for a pixel or a pel.
  • the encoding apparatus 100 subtracts the prediction signal (predicted block, 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 may be generated (residual signal, residual block, residual sample array), and the generated residual signal is transmitted to the converter 120.
  • a unit for subtracting a prediction signal (prediction block, 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 a 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 on a current block or CU basis. As described later in the description of each prediction mode, the prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the generated information to the entropy encoding unit 190. The information about the prediction may be encoded in the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra predictor 185 may predict the current block by referring to the samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode.
  • the prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • Non-directional mode may include, for example, DC mode and planner 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, as an example, more or less number of directional prediction modes may be used depending on the setting.
  • the intra predictor 185 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter predictor 180 may derive the predicted block with respect to the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the 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 as a collocated reference block, a collocated CU (colCU), or the like, and a reference picture including the temporal neighboring block is called a collocated picture (colPic). It may be.
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidates are used to derive the motion vector and / or reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes.
  • the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block.
  • the residual signal may not be transmitted.
  • MVP motion vector prediction
  • the motion vector of the neighboring block is used as a motion vector predictor, and the motion vector of the current block is signaled by signaling a motion vector difference. Can be directed.
  • the prediction unit may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction to predict one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP).
  • the prediction unit may perform intra block copy (IBC) to predict a block.
  • the intra block copy may be used for content video / video coding of a game or the like, for example, screen content coding (SCC).
  • SCC screen content coding
  • the IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC can use at least one of the inter prediction techniques described in this document.
  • the prediction signal generated by the predictor may be used to generate a reconstruction signal or to generate a residual signal.
  • the transformer 120 may apply transform techniques to the residual signal to generate transform coefficients.
  • the transformation technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a karhunen-loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). It may include.
  • DCT discrete cosine transform
  • DST discrete sine transform
  • KLT karhunen-loeve transform
  • GBT graph-based transform
  • CNT conditionally non-linear transform
  • the CNT refers to a transform that is generated based on and generates a prediction signal by using all previously reconstructed pixels.
  • the conversion process may be applied to pixel blocks having the same size as the square, or may be applied to blocks of variable size rather than square.
  • the quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190.
  • the entropy encoding unit 190 encodes the quantized signal (information about the quantized transform coefficients) and outputs the bitstream as a bitstream. have.
  • the information about the quantized transform coefficients may be referred to as residual information.
  • the quantization unit 130 may rearrange block quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about transform coefficients may be generated.
  • the entropy encoding unit 190 may perform various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
  • the entropy encoding unit 190 may encode information necessary for video / image reconstruction other than quantized transform coefficients (for example, values of syntax elements) together or separately.
  • the encoded information (eg, encoded video / picture information) may be transmitted or stored in units of NALs (network abstraction layer) in the form of a bitstream.
  • the video / image information may further include information about various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
  • the video / image information may further include general constraint information.
  • Signaling / transmitted information and / or syntax elements described later in this document may be encoded and included in the bitstream through the above-described encoding procedure.
  • the bitstream may be transmitted over a network or may be stored in a digital storage medium.
  • 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, and the like.
  • the signal output from the entropy encoding unit 190 may include a transmitting unit (not shown) for transmitting and / or a storing unit (not shown) for storing as an internal / external element of the encoding apparatus 100, or the transmitting unit It may be included in the entropy encoding unit 190.
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal.
  • the inverse quantization and inverse transform may be applied to the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150 to restore the residual signal (residual block or residual samples).
  • 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 a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) is added. Can be generated. 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 the reconstructed block.
  • the adder 155 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstruction signal may be used for intra prediction of the next block to be processed in the current picture, and may be used for inter prediction of the next picture through filtering as described below.
  • LMCS luma mapping with chroma scaling
  • the filtering unit 160 may improve subjective / objective image quality by applying filtering to the reconstruction signal.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture is stored in the memory 170, specifically, the DPB of the memory 170.
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the filtering unit 160 may generate various information related to the filtering and transmit the generated information to the entropy encoding unit 190 as described later in the description of each filtering method.
  • the filtering information may be encoded in 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 the reference picture in the inter predictor 180.
  • the encoding apparatus may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus, and may improve encoding efficiency.
  • the memory 170 DPB may store the modified reconstructed picture for use as a reference picture in the inter predictor 180.
  • the memory 170 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the blocks in the picture that have already been reconstructed.
  • the stored motion information may be transmitted to the inter predictor 180 to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer the reconstructed samples to the intra predictor 185.
  • FIG. 3 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
  • the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, and an inter
  • the prediction unit 260 and the intra prediction unit 265 may be configured.
  • the inter predictor 260 and the intra predictor 265 may be collectively called a predictor. That is, the predictor may include an inter predictor 180 and an intra predictor 185.
  • the inverse quantization unit 220 and the inverse transform unit 230 may be collectively called a residual processing unit. That is, the residual processor may include an inverse quantization unit 220 and an inverse transform unit 230.
  • the entropy decoding unit 210, the inverse quantization unit 220, the inverse transformer 230, the adder 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 are described above. It may be configured by one hardware component (for example, decoder chipset or processor).
  • the memory 250 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium.
  • the hardware component may further include the memory 250 as an internal / external component.
  • the decoding apparatus 200 may reconstruct an image corresponding to a process in which video / image information is processed in the encoding apparatus of FIG. 2.
  • the decoding apparatus 200 may derive units / blocks based on the block division related information obtained from the bitstream.
  • the decoding apparatus 200 may perform decoding using a processing unit applied in the encoding apparatus.
  • the processing unit of decoding may be a coding unit, for example, and the coding unit may be divided along the quad tree structure, binary tree structure and / or ternary tree structure from the coding tree unit or the largest coding unit.
  • One or more transform units may be derived from the coding unit.
  • the reconstructed video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproducing apparatus.
  • the decoding apparatus 200 may receive a signal output from the encoding apparatus of FIG. 2 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 video / image information may further include information about various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
  • the video / image information may further include general constraint information.
  • the decoding apparatus may further decode the picture based on the information about the parameter set and / or the general restriction information.
  • Signaling / received information and / or syntax elements described later in this document may be decoded through the decoding procedure and obtained from the bitstream.
  • the entropy decoding unit 210 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for image reconstruction, and transform coefficients for residuals. Can be output. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
  • the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.
  • the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the predictor (the inter predictor 260 and the intra predictor 265), and the entropy decoding performed by the entropy decoder 210 is performed.
  • Dual values that is, quantized transform coefficients and related parameter information, may be input to the inverse quantizer 220.
  • information on filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
  • a receiver (not shown) that receives a signal output from the encoding apparatus may be further configured as an internal / external element of the decoding apparatus 200, or the receiver may be a component of the entropy decoding unit 210.
  • the decoding apparatus may be called a video / image / picture decoding apparatus, and the decoding apparatus may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). It may be.
  • the information decoder may include the entropy decoding unit 210, and the sample decoder may include the inverse quantizer 220, an inverse transformer 230, an adder 235, a filter 240, and a memory 250. ),
  • the inverse quantization unit 220 may dequantize the quantized transform coefficients and output the transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block. In this case, the reordering may be performed based on the coefficient scan order performed in the encoding apparatus.
  • the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients using a quantization parameter (for example, quantization step size information), and may obtain transform coefficients.
  • a quantization parameter for example, quantization step size information
  • the inverse transformer 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 or inter prediction is applied to the current block based on the information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode.
  • the prediction unit may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction to predict one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP).
  • the prediction unit may perform intra block copy (IBC) to predict a block.
  • the intra block copy may be used for content video / video coding of a game or the like, for example, screen content coding (SCC).
  • SCC screen content coding
  • the IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC can use at least one of the inter prediction techniques described in this document.
  • the intra predictor 265 may predict the current block by referring to the samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode.
  • the prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra predictor 265 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter predictor 260 may derive the predicted block for the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the 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 a 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 the information about the prediction may include information indicating a mode of inter prediction for the current block.
  • the adder 235 reconstructs the obtained residual signal by adding the obtained residual signal to a prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and / or the intra prediction unit 265).
  • a signal (restored picture, reconstructed block, reconstructed sample array) can be generated. 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 the reconstructed block.
  • the adder 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstruction signal may be used for intra prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter prediction of the next picture.
  • LMCS luma mapping with chroma scaling
  • the filtering unit 240 may improve subjective / objective image quality by applying filtering to the reconstruction 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 is stored in the memory 250, specifically, the DPB of the memory 250. Can be sent to.
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the (modified) reconstructed picture stored in the DPB of the memory 250 may be used as the reference picture in the inter predictor 260.
  • the memory 250 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the blocks in the picture that are already reconstructed.
  • the stored motion information may be transmitted to the inter predictor 260 in order to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block.
  • the memory 250 may store reconstructed samples of reconstructed blocks in the current picture, and may transfer the reconstructed samples to the intra predictor 265.
  • the embodiments described by 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 also apply to the unit 260 and the intra predictor 265.
  • Intra prediction may refer to prediction that generates prediction samples for the current block based on reference samples in a picture to which the current block belongs (hereinafter, referred to as a current picture).
  • peripheral reference samples to be used for intra prediction of the current block may be derived.
  • the peripheral reference samples of the current block are samples adjacent to the left border of the current block of size nWxnH and a total of 2xnH samples neighboring to the bottom-left, samples adjacent to the top border of the current block. And a total of 2 ⁇ nW samples neighboring to the top-right and one sample neighboring to the top-left of the current block.
  • the peripheral reference samples of the current block may include a plurality of upper peripheral samples and a plurality of left peripheral samples.
  • the peripheral reference samples of the current block are a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block and the lower right side of the current block. It may include one sample neighboring (bottom-right).
  • peripheral reference samples of the current block may not be decoded yet or available.
  • the decoder can construct the surrounding reference samples to use for prediction by substituting the samples that are not available with the available samples.
  • peripheral reference samples to be used for prediction may be configured through interpolation of the available samples.
  • the prediction sample can be derived based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighboring reference samples of the current block.
  • the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or 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 prediction sample of the current block among the neighboring reference samples may be performed.
  • Prediction samples may be generated.
  • LIP linear interpolation intra prediction
  • chroma prediction samples may be generated based on luma samples using a linear model. In this case, it may be called LM mode.
  • a temporary prediction sample of the current block is derived based on filtered neighbor reference samples, and at least one of the existing neighbor reference samples, that is, unfiltered neighbor reference samples, derived according to the intra prediction mode.
  • a weighted sum of a reference sample and the temporary prediction sample may be used to derive the prediction sample of the current block.
  • the above case may be referred to as position dependent intra prediction (PDPC).
  • a reference sample line having the highest prediction accuracy among the neighboring multi-reference sample lines of the current block is selected to derive the prediction sample by using the reference sample located in the prediction direction in the corresponding line, and then decode the used reference sample line.
  • Intra-prediction encoding may be performed by instructing (signaling) the device. The above case may be referred to as multi-reference line (MRL) intra prediction or MRL based intra prediction.
  • MRL multi-reference line
  • intra prediction may be performed based on the same intra prediction mode by dividing the current block into vertical or horizontal subpartitions, and peripheral reference samples may be derived and used in units of the subpartition. That is, in this case, the intra prediction mode for the current block is equally applied to the subpartitions, and the intra prediction performance may be improved in some cases by deriving and using the peripheral reference samples in the subpartition unit.
  • Such a prediction method may be called intra sub-partitions (ISP) or ISP based intra prediction.
  • the above-described intra prediction methods may be called an intra prediction type separately from the intra prediction mode.
  • the intra prediction type may be called in various terms such as an intra prediction technique or an additional intra prediction mode.
  • the intra prediction type (or additional intra prediction mode) may include at least one of the above-described LIP, PDPC, MRL, and ISP.
  • a general intra prediction method except for a specific intra prediction type such as LIP, PDPC, MRL, or ISP may be called a normal intra prediction type.
  • the normal intra prediction type may be generally applied when the specific intra prediction type is not applied, and prediction may be performed based on the above-described intra prediction mode. Meanwhile, post-processing filtering may be performed on the predicted sample derived as needed.
  • the intra prediction procedure may include an intra prediction mode / type determination step, a peripheral reference sample derivation step, and an intra prediction mode / type based prediction sample derivation step.
  • a post-filtering step may be performed on the predicted sample derived as needed.
  • affine linear weighted intra prediction may be used.
  • the ALWIP may be referred to as linear weighted intra prediction (LWIP) or matrix weighted intra prediction or matrix based intra prediction (MIP). If the MIP is applied to the current block, i) perform a matrix-vector-multiplication procedure using i) surrounding reference samples on which an averaging procedure has been performed, and iii) if necessary. Accordingly, a horizontal / vertical interpolation procedure may be further performed to derive prediction samples for the current block.
  • the intra prediction modes used for the MIP may be configured differently from the intra prediction modes used in the LIP, PDPC, MRL, ISP intra prediction, or normal intra prediction.
  • the intra prediction mode for the MIP may be called a MIP intra prediction mode, a MIP prediction mode or a MIP mode.
  • the matrix and offset used in the matrix vector multiplication may be set differently according to the intra prediction mode for the MIP.
  • the matrix may be referred to as a (MIP) weighting matrix
  • the offset may be referred to as a (MIP) offset vector or a (MIP) bias vector.
  • the intra prediction mode applied to the current block may be determined using the intra prediction mode of the neighboring block.
  • the decoding apparatus receives one of the MPM candidates in the most probable mode (MPM) list derived based on the intra prediction mode and additional candidate modes of the neighboring block (eg, left and / or upper neighboring block) of the current block.
  • the selected MPM index may be selected or one of the remaining intra prediction modes not included in the MPM candidates (and planner mode) may be selected based on the remaining intra prediction mode information.
  • the MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates.
  • the MPM list may have three or five candidates. You can have a candidate.
  • a not planner flag eg, intra_luma_not_planar_flag
  • the MPM flag is signaled first, and the MPM index and not planner flag may be signaled when the value of the MPM flag is one.
  • the MPM index may be signaled when the value of the not planner flag is 1.
  • the configuration of the MPM list so as not to include a planner mode as a candidate does not mean that the planner mode is not an MPM, but because a planner mode is always considered as an MPM, a planner signal is signaled first. This is to check whether the mode is first.
  • the intra prediction mode applied to the current block is in MPM candidates (and planner mode) or in remaining mode may be indicated based on the MPM flag (ex. Intra_luma_mpm_flag).
  • a value of 1 of the MPM flag may indicate that the intra prediction mode for the current block is within MPM candidates (and planner mode), and a value of 0 of the MPM flag indicates that the intra prediction mode for the current block is MPM candidates (and planner mode). ) May be absent.
  • the not planar flag (ex. Intra_luma_not_planar_flag) value 0 may indicate that the intra prediction mode for the current block is planner mode, and the not planar flag value 1 indicates that the intra prediction mode for the current block is not planner mode. Can be.
  • the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element.
  • the remaining intra prediction mode information may index remaining intra prediction modes not included in the MPM candidates (and planner mode) among all intra prediction modes in order of prediction mode number to indicate one of them.
  • the intra prediction mode may be an intra prediction mode for a luma component (sample).
  • intra prediction mode information includes the MPM flag (ex. Intra_luma_mpm_flag), the not planar flag (ex.
  • Intra_luma_not_planar_flag the MPM index (ex. Mpm_idx or intra_luma_mpm_idx), and the remaining intra prediction mode information (rem_intra_luma_intra_lum_mode). It may include at least one.
  • the MPM list may be referred to in various terms such as MPM candidate list and candModeList.
  • One embodiment of the present invention may propose a method of constructing an MPM list depending on a block size.
  • One embodiment may be applied to encoding / decoding for still pictures and moving pictures, and the encoded / decoded still pictures and moving pictures may have a bitstream format or another type of file format.
  • the bitstreams and files may be stored in various kinds of storage of devices. Or it may be stored in a stream on various kinds of network environment, such as a cellular network, an Internet protocol.
  • the bitstream or files can be decoded and played back.
  • One embodiment of the present invention can be applied to all devices having an encoder and / or a decoder regardless of the display of the bitstream.
  • the method of constructing a block size dependent MPM list according to an embodiment may effectively reduce the overhead of signaling intra modes as the number of intra prediction modes increases.
  • the intra mode may be efficiently coded through the method according to an embodiment, thereby improving coding efficiency in terms of reducing signaling overhead.
  • the method according to an embodiment may reduce the signaling overhead of the intra prediction mode, and according to the reduction of the overhead, the Bjntegaard Distortion rate (BD-rate) Peak Signal to Noise Ratio (PSNR) Improved coding efficiency can be achieved in terms of In addition, bitstream throughput at smaller block sizes can be improved such that the method according to one embodiment is more hardware friendly.
  • BD-rate Bjntegaard Distortion rate
  • PSNR Peak Signal to Noise Ratio
  • FIG. 4 is a diagram schematically illustrating some components of an encoding apparatus according to the present invention.
  • FIG. 5 is a diagram schematically illustrating some components of a decoding apparatus according to the present invention.
  • the intra prediction method may exploit correlation between samples and use the difference between the original block and the prediction of the original block. Transform and quantization can be applied to this residual to further remove spatial redundancy.
  • the residual may refer to the difference between the original block and the prediction of the original block
  • the prediction of the original block may refer to the predicted block for the original block.
  • FIG 6 schematically illustrates an intra prediction method according to the present invention.
  • an intra prediction method may be configured by three steps of reference sample construction, sample prediction, and post filtering.
  • sample prediction may use known peripheral reference samples and intra prediction mode to predict unknown samples. That is, the prediction sample for the current sample may be generated using the decoded neighbor reference samples and the intra prediction mode. Multiple lines of reference samples can also be used for more accurate predictions.
  • the best intra mode on the encoding device side may be determined by jointly optimizing bit rate and distortion.
  • the optimal intra mode can then be coded in the bitstream, and the decoding apparatus can perform intra prediction using the parsed optimal intra mode.
  • the encoding apparatus may derive the optimal intra mode, encode the information on the derived optimal intra mode, and output the bitstream.
  • the decoding apparatus may obtain information about an optimal intra mode by parsing the bitstream, and may perform intra prediction based on the information.
  • an increased number of intra prediction modes may require efficient intra mode coding in order to minimize signaling overhead.
  • the Most Probable Mode (MPM) list may be constructed using blocks coded in the peripheral intra mode in the encoding apparatus and the decoding apparatus.
  • the overhead may be minimized by signaling the MPM index when the best mode is one of the MPMs. Since the MPM is coded in truncated unary code, order may be important in terms of saving bits.
  • an order for configuring six MPM candidates may include the intra mode of the left peripheral block D of the current block, the intra mode of the upper peripheral block B of the current block, and the planar mode. mode), a DC mode, an intra mode of the lower left peripheral block E of the current block, an intra mode of the right upper peripheral block C of the current block, and an intra mode of the upper left peripheral block A of the current block. . If the optimal intra mode is not in the MPM list, a flag may be signaled to indicate an exception. Thus, the optimal intra mode can be coded using variable length coding or fixed length coding. The number of MPMs may depend on the number of intra modes.
  • the number of MPMs may increase with the number of intra modes, but may not increase. For example, when the number of intra modes is 35 and / or 67, the number of MPMs may have various numbers such as 3, 4, 5, 6, etc., which may be designed. If blocks coded in the peripheral intra mode have information about the intra mode, these intra modes can be used to construct the MPM list.
  • FIG. 8 schematically illustrates an example of a block size based MPM list construction method.
  • various MPM list construction algorithms may be used for bit reduction of this overhead.
  • a 6 MPM list construct may perform exhaustive search through the locations of the various perimeters, and may constantly perform pruning checks to exclude the same intra mode.
  • 6 MPM list construction can be used for the intra mode coding method to accommodate the increased number of directional intra modes.
  • Two main technical aspects may relate to derivation of six MPM candidates and entropy coding of six MPM candidates and non-MPM modes.
  • Modes containing MPM lists may be classified into three groups. The three groups may include neighbor intra modes, derived intra modes, and default intra modes.
  • intra modes may be referred to as intra prediction modes.
  • the five neighboring intra prediction modes may refer to the intra prediction modes of the five neighboring blocks of the current block, and the positions of the five neighboring blocks may be the same as the positions used in the merge mode, A, B of FIG. And may be the same as the positions of C, D and E.
  • the initial MPM list may be formed by inserting five peripheral intra modes, a planner mode, and a DC mode into the MPM list, and may remove duplicated modes through a pruning process.
  • the pruning process can be used to remove duplicated modes so that unique modes are included in the MPM list. That is, duplicate modes may be removed through pruning on the initial MPM list.
  • the order of the modes in the initial mode or the initial MPM list is the intra mode of the left peripheral block D of the current block, the intra mode of the upper peripheral block B of the current block, the planar mode, the DC mode, of the current block.
  • derived modes may be added.
  • the derived modes may be derived as -1 or +1 modes for the angle modes included in the MPM list, and may not apply for non-angle modes such as DC or planner.
  • default modes can be added.
  • the order in which the default intra mode is added may be a vertical intra prediction mode, a horizontal intra prediction mode, a second intra prediction mode, and a 3 (diagonal) intra prediction mode.
  • Truncated unary binarization of MPM candidates may be used for entropy coding of 6 MPM candidates.
  • the first three bins may be coded context according to the MPM mode associated with the bin currently being signaled.
  • the MPM mode can be classified into one of three categories.
  • the three categories may include whether the mode is a horizontal mode, a vertical mode, or a non-directional mode.
  • the horizontal mode may refer to a mode in which the MPM mode is the same as or smaller than the diagonal direction or the horizontal directional mode.
  • the vertical mode may refer to a mode in which the MPM mode is larger than the diagonal direction or the vertical directional mode.
  • Non-directional mode may refer to DC mode and planner mode.
  • three contexts can be used to signal the MPM index.
  • 61 non-MPM modes can be divided into two sets first.
  • the two sets may include a set of selected modes and a set of non-selected modes.
  • the selected set of modes may include 16 modes, and the remaining 45 modes may be assigned to the set of unselected modes.
  • the mode set to which the current mode belongs may be indicated in the bitstream with a flag.
  • the mode from the selected set may then be signaled with a 4 bit fixed length code.
  • the modes from the unselected set can be coded with truncated binary code.
  • the selected set of modes may be generated by sub-sampling a total of 61 non-MPM modes with an index as in Equation (1).
  • the adjacent angle mode followed by the predefined default mode may be considered with the pruning check.
  • exhaustive search and endless pruning may have advantages for bit rate savings.
  • this may increase the number of hardware operation cycles for MPM list construction of each block. Considering the worst case scenario, if a 4k image of 3840x2160 is divided into 4x4 blocks for intra prediction, the increased hardware operating cycles for each 4x4 block may be important for throughput.
  • an embodiment may propose a method of constructing an MPM list depending on a block size in consideration of hardware throughput as well as saving bit rate as follows.
  • an embodiment may determine whether a block size is less than a threshold. In other words, it may be checked whether the target block is a small block.
  • the target block may be referred to as a current block, and the MPM list depending on the above-described block size may mean an MPM list of the target block. For example, the number of pixels in the target block may be compared with a given threshold as shown in equation (2).
  • TH k may mean a threshold, and may have a value such as 32, 64, 128, or the like. For example, if TH k is 64, blocks such as 4x4, 4x8 and 8x4 sizes may use the simple k MPM list construction method.
  • TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block.
  • k may represent the number of MPM candidates in the MPM list.
  • a width threshold and a height threshold may be used as shown in Equation 3 to classify a target block between a small block and a large block.
  • TH w may mean a width threshold
  • TH h may indicate a height threshold
  • TH w and TH h may have values such as 4, 8, or 16, respectively.
  • 4 ⁇ 4 blocks may use a simple k MPM list construction method.
  • an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method.
  • a simple k MPM list construction method may be applied to blocks between the first size and the second size.
  • one embodiment may compare each of the width and height of the block with a threshold. That is, a simple k MPM list construction method may be applied to blocks whose width is greater than or equal to TH w and whose width is greater than or equal to TH h .
  • the threshold values may be a tradeoff between bit rate savings and hardware throughput. That is, the bit rate saving aspect and the hardware throughput aspect may be tradeoff relations according to threshold values. If the threshold is large, throughput can be increased by applying a simpler k MPM than a sophisticated k MPM for relatively small blocks. However, if the threshold value is too large, the bit rate savings can be reduced. Thus, an appropriate threshold value can be defined to achieve proper balancing between bit rate savings and throughput. For example, in the case of an art video codec, the TH k value may be 64 for balanced throughput, but is not limited thereto.
  • a simple k MPM list construction method may be applied to reduce the worst case complexity.
  • a simple k MPM could be a HEVC 3 MPM list construction that only performs two position search and few pruning and condition checks. Or left and top modes (as HEVC), but a 6 MPM list may be generated.
  • the complexity may be similar to the HEVC 3 MPM list construction, but six MPM candidates may be generated.
  • a sophisticated k MPM list construction method may be applied. For example, a 6 MPM list construction with five peripheral modes shown in FIG. 7 may be used to improve coding performance.
  • the peripheral modes may represent intra modes of neighboring blocks of the current block.
  • Sophisticated MPM generation methods may require more operations (compare) to generate the MPM list because relatively more peripheral modes are compared with each other.
  • sophisticated MPM lists can provide improved prediction for coding modes and lead to higher coding performance.
  • k is configurable and can be changed.
  • k may be 3 when the number of intra modes is 35 and 6 when k is the number of intra modes.
  • k may be 5, but is not limited thereto.
  • a simple k MPM list may be configured as shown in Table 1 when k is 6.
  • DiagonalDownIntraMode can represent a downward diagonal intra prediction mode, a left downward diagonal intra prediction mode, or an intra prediction mode 2
  • DiagonalIntraMode can represent a diagonal intra prediction mode, a left upward diagonal intra prediction mode, or an intra 34 prediction mode. Can be.
  • DiagonalUpIntraMode may indicate an upward diagonal intra prediction mode, a right upward diagonal intra prediction mode, or an intra prediction mode 66.
  • FIG. 9 schematically illustrates another example of a block size based MPM list construction method.
  • the MPM list may include a simple MPM list and a sophisticated MPM list.
  • a simple MPM list scheme may share common parts with a sophisticated MPM list scheme.
  • the simple k MPM list construct may be composed of "k MPM Part A” and “k MPM Part B”
  • the sophisticated k MPM list construct may be composed of "k MPM Part A” and “k MPM Part. C ". That is, the simple k MPM list construction method may have some common processes with the sophisticated k MPM list construction method.
  • k MPM Part A may include a list structure based on left and top conditions
  • k MPM Part B may also include a list structure based on left and top conditions
  • k MPM Part C may include a list structure based on other things such as neighboring blocks A, B, C, D, and E shown in FIG. 7.
  • FIG. 10 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.
  • the method disclosed in FIG. 10 may be performed by the encoding apparatus disclosed in FIG. 2. Specifically, for example, S1000 to S1030 of FIG. 10 may be performed by the prediction unit of the encoding apparatus, and S1040 may be performed by the entropy encoding unit of the encoding apparatus.
  • a process of deriving a residual sample for the current block based on an original sample and a prediction sample for the current block may be performed by a subtractor of the encoding apparatus.
  • the generating of the information about the residual on the basis of the current block may be performed by a converter of the encoding apparatus.
  • the encoding of the information on the residual and the prediction of the current block may be performed. It may be performed by the entropy encoding unit of the encoding device.
  • the encoding apparatus configures an MPM list based on neighboring blocks of the current block (S1000).
  • the MPM list may be referred to in various terms such as MPM candidate list and candModeList.
  • the MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates. When the MPM list does not include a planner mode as a candidate, the MPM list may have three or five candidates. You can have a candidate. When the MPM list does not include a planner mode as a candidate, a not planner flag (eg, intra_luma_not_planar_flag) indicating whether an intra prediction mode of the current block is not a planner mode may be signaled.
  • intra_luma_not_planar_flag indicating whether an intra prediction mode of the current block is not a planner mode
  • the MPM list may be derived based on the size of the current block, and the size of the current block may be calculated as Equation 2 by multiplying the width of the current block and the height of the current block. .
  • the MPM list may include a simple MPM list when the size of the current block is less than a first threshold TH k .
  • TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block.
  • the size of the current block is less than the first threshold TH k
  • the width of the current block is greater than or equal to the second threshold TH w
  • the height of the current block is third.
  • the simple MPM list may be included. For example, if TH w and TH h are 4 respectively, 4 ⁇ 4 blocks may use a simple k MPM list construction method. In other words, an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method.
  • the simple MPM list is configured based on a neighbor intra prediction mode, a derived intra prediction mode, and a default intra prediction mode, wherein the peripheral intra prediction mode is a left neighboring block and an upper side of the current block. It may include an intra prediction mode of at least one of the neighboring blocks.
  • the simple MPM list may be configured as shown in Table 1.
  • the simple MPM list includes -1 intra prediction mode (leftIntraMode -1), the number based on the number of intra prediction modes of the left neighboring block of the current block, the number of intra prediction modes of the left neighboring block, and the number
  • the intra prediction mode may include +1 intra prediction mode (leftIntraMode +1), the planar mode (PlanarIntraMode), the +3 intra prediction mode (leftIntraMode +3), and the DC mode (DCIntraMode) based on the number.
  • the simple MPM list includes a planar mode (PlanarIntraMode), a vertical intra prediction mode (VerticalIntraMode), a left downward diagonal intra prediction mode (DiagonalDownIntraMode), a horizontal intra prediction mode (HorizontalIntraMode), and a left upward diagonal intra prediction mode. It may include a +3 intra prediction mode (DiagonalIntraMode +3) and a right upward diagonal intra prediction mode (DiagonalUpIntraMode).
  • the simple MPM list may include an intra prediction mode (leftIntraMode) of the left neighboring block of the current block, an intra prediction mode of the upper neighboring block of the current block (aboveIntraMode), a planar mode (PlanarIntraMode), and a left neighboring block of the current block.
  • -1 intra prediction mode leftIntraMode -1 based on the number of intra prediction modes
  • +1 intra prediction mode leftIntraMode +1
  • It may include +2 intra prediction modes (leftIntraMode + aboveIntraMode +2) based on the sum of.
  • the MPM list may include a sophisticated MPM list when the size of the current block is greater than or equal to the first threshold TH k .
  • the sophisticated MPM list may include the simple MPM list and at least one MPM candidate in common.
  • the configuration of the simple MPM list may be configured based on the intra prediction mode of at least one of the left neighboring block and the upper neighboring block of the current block.
  • the intra prediction mode may be configured based on at least one of a neighboring block, an upper left neighboring block, an upper neighboring block, and a right upper neighboring block. That is, candidates associated with the left neighboring block and the upper neighboring block may be commonly used.
  • the encoding apparatus derives the intra prediction mode of the current block based on the MPM list (S1010). That is, an intra prediction mode for prediction of the current block among candidates in the MPM list may be derived. Alternatively, a candidate for prediction of the current block among the candidates in the MPM list may be selected, and an intra prediction mode of the selected candidate may be derived.
  • the encoding apparatus derives the MPM index of the current block (S1020).
  • the MPM index may mean information indicating one of the MPM candidates included in the MPM list. That is, the MPM index may be information indicating a candidate having an intra prediction mode derived for prediction of the current block among candidates in the MPM list.
  • the MPM index may be referred to as an index, and the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.
  • the encoding apparatus generates a predicted block for the current block based on the intra prediction mode (S1030).
  • the derived intra prediction mode may be a directional mode or a non-directional mode.
  • the encoding apparatus may generate a prediction sample based on the intra prediction mode, and may use the prediction sample directly as a reconstruction sample according to the prediction mode.
  • the encoding apparatus may generate a residual sample based on the original sample and the generated prediction sample.
  • the encoding apparatus may generate information about the residual based on the residual sample.
  • the information about the residual may include transform coefficients related to the residual sample.
  • the encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample.
  • the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample.
  • the encoding apparatus may generate a residual block based on the original block and the predicted block, and may generate information about the residual based on this.
  • the encoding apparatus may output information in the form of a bitstream by encoding the information about the residual.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • the encoding apparatus generates, encodes, and outputs prediction information about the current block including the MPM index (S1040).
  • the encoding apparatus may encode and output image information including information on prediction of the current block in a bitstream form. For example, the encoding apparatus may determine the prediction mode of the current block, and generate information indicating the prediction mode. Also, information about the MPM index may be generated. In addition, it is possible to generate information about the residual.
  • the above-described information on prediction of the current block may include all of the above-described information or may include only a part of the information.
  • the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
  • FIG. 11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.
  • the method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 3. Specifically, for example, S1100 to S61130 of FIG. 11 may be performed by the prediction unit of the decoding apparatus.
  • a process of acquiring image information including information on prediction of a current block and information on residual through a bitstream may be performed by an entropy decoding unit of the decoding apparatus.
  • the process of deriving the residual sample for the current block based on the dual information may be performed by an inverse transform unit of the decoding apparatus, and the process of generating a reconstructed picture based on the prediction sample and the residual sample may be performed. It may be performed by an adder of the decoding apparatus.
  • the decoding apparatus obtains an MPM index of the current block (S1100).
  • the MPM index may mean information indicating one of the MPM candidates included in the MPM list. That is, intra prediction may be performed based on the MPM candidate indicated by the MPM index.
  • the MPM index may be referred to as an index, and the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.
  • the decoding apparatus configures an MPM list based on neighboring blocks of the current block (S1110).
  • the MPM list may be referred to in various terms such as MPM candidate list and candModeList.
  • the MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates. When the MPM list does not include a planner mode as a candidate, the MPM list may have three or five candidates. You can have a candidate. When the MPM list does not include a planner mode as a candidate, a not planner flag (eg, intra_luma_not_planar_flag) indicating whether an intra prediction mode of the current block is not a planner mode may be signaled.
  • intra_luma_not_planar_flag indicating whether an intra prediction mode of the current block is not a planner mode
  • the MPM list may be derived based on the size of the current block, and the size of the current block may be calculated as Equation 2 by multiplying the width of the current block and the height of the current block. .
  • the MPM list may include a simple MPM list when the size of the current block is less than a first threshold TH k .
  • TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block.
  • the size of the current block is less than the first threshold TH k
  • the width of the current block is greater than or equal to the second threshold TH w
  • the height of the current block is third.
  • the simple MPM list may be included. For example, if TH w and TH h are 4 respectively, 4 ⁇ 4 blocks may use a simple k MPM list construction method. In other words, an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method.
  • the simple MPM list is configured based on a neighbor intra prediction mode, a derived intra prediction mode, and a default intra prediction mode, wherein the peripheral intra prediction mode is a left neighboring block and an upper side of the current block. It may include an intra prediction mode of at least one of the neighboring blocks.
  • the simple MPM list may be configured as shown in Table 1.
  • the simple MPM list includes -1 intra prediction mode (leftIntraMode -1), the number based on the number of intra prediction modes of the left neighboring block of the current block, the number of intra prediction modes of the left neighboring block, and the number
  • the intra prediction mode may include +1 intra prediction mode (leftIntraMode +1), the planar mode (PlanarIntraMode), the +3 intra prediction mode (leftIntraMode +3), and the DC mode (DCIntraMode) based on the number.
  • the simple MPM list includes a planar mode (PlanarIntraMode), a vertical intra prediction mode (VerticalIntraMode), a left downward diagonal intra prediction mode (DiagonalDownIntraMode), a horizontal intra prediction mode (HorizontalIntraMode), and a left upward diagonal intra prediction mode. It may include a +3 intra prediction mode (DiagonalIntraMode +3) and a right upward diagonal intra prediction mode (DiagonalUpIntraMode).
  • the simple MPM list may include an intra prediction mode (leftIntraMode) of the left neighboring block of the current block, an intra prediction mode of the upper neighboring block of the current block (aboveIntraMode), a planar mode (PlanarIntraMode), and a left neighboring block of the current block.
  • -1 intra prediction mode leftIntraMode -1 based on the number of intra prediction modes
  • +1 intra prediction mode leftIntraMode +1
  • It may include +2 intra prediction modes (leftIntraMode + aboveIntraMode +2) based on the sum of.
  • the MPM list may include a sophisticated MPM list when the size of the current block is greater than or equal to the first threshold TH k .
  • the sophisticated MPM list may include the simple MPM list and at least one MPM candidate in common.
  • the configuration of the simple MPM list may be configured based on the intra prediction mode of at least one of the left neighboring block and the upper neighboring block of the current block.
  • the intra prediction mode may be configured based on at least one of a neighboring block, an upper left neighboring block, an upper neighboring block, and a right upper neighboring block. That is, candidates associated with the left neighboring block and the upper neighboring block may be commonly used.
  • the decoding apparatus derives an intra prediction mode of the current block based on the MPM index and the MPM list (S1120). That is, the intra prediction mode indicated by the MPM index among the candidates in the MPM list can be derived. Alternatively, a candidate indicated or indicated by the MPM index among the candidates in the MPM list may be selected, and an intra prediction mode of the selected candidate may be derived.
  • the decoding apparatus generates a predicted block for the current block based on the intra prediction mode (S1130).
  • the derived intra prediction mode may be a directional mode or a non-directional mode.
  • the decoding apparatus may generate a prediction sample based on an intra prediction mode, and may directly use the prediction sample as a reconstruction sample according to the prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. . If there is a residual sample for the current block, the decoding apparatus may obtain information about the residual for the current block from the bitstream. The information about the residual may include transform coefficients regarding the residual sample.
  • the decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information.
  • the decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture to improve subjective / objective picture quality as needed.
  • an in-loop filtering procedure such as a deblocking filtering and / or SAO procedure
  • the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
  • the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
  • the module may be stored in memory and executed by a processor.
  • the memory may be internal or external to the processor and may be coupled to the processor by a variety of known means.
  • the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.
  • the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller or a chip.
  • the functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip.
  • the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming.
  • the OTT video device may include a game console, a Blu-ray player, an Internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.
  • the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, 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 types of storage devices and distributed storage devices for storing computer readable data.
  • the computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device.
  • the computer-readable recording medium also includes media embodied in the form of a carrier wave (for example, transmission over 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.
  • embodiments of the present invention may be implemented as a computer program product by a program code, the program code may be performed on a computer by an embodiment of the present invention.
  • the program code may be stored on a carrier readable by a computer.
  • the 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 compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server.
  • multimedia input devices such as smart phones, cameras, camcorders, etc. 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 the user device based on a user request through the web server, and the web server serves as an intermediary for informing the user of what service there is.
  • the web server transmits it to a streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server.
  • the control server plays a role of controlling a command / response between devices in the content streaming system.
  • the streaming server may receive content from a media store and / or an encoding server. For example, when the 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 digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, glass glasses, head mounted displays), digital TVs, desktops Computer, digital signage, and the like.
  • PDA personal digital assistant
  • PMP portable multimedia player

Landscapes

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

Abstract

An image decoding method performed by a decoding apparatus according to the present invention comprises the steps of: obtaining a Most Probable Mode (MPM) index of a current block; constructing an MPM list on the basis of neighboring blocks of the current block, deriving an intra prediction mode for the current block on the basis of the MPM list and the MPM index; and generating predicted blocks for the current block on the basis of the intra prediction mode, wherein the MPM list is derived based on the size of the current block, and the size of the current block is calculated by means of multiplying the width of the current block and the height of the current block.

Description

영상 코딩 시스템에서 인트라 예측 방법 및 장치Intra prediction method and apparatus in image coding system

본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 인트라 예측 방법 및 장치에 관한 것이다.The present invention relates to image coding technology, and more particularly, to an intra prediction method and apparatus in an image coding system.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다. Recently, the demand for high resolution and high quality images such as high definition (HD) and ultra high definition (UHD) images is increasing in various fields. The higher the resolution and the higher quality of the image data, the more information or bit amount is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost increase.

이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.Accordingly, a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.

본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.An object of the present invention is to provide a method and apparatus for improving image coding efficiency.

본 발명의 다른 기술적 과제는 효율적인 인트라 예측 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide an efficient intra prediction method and apparatus.

본 발명의 또 다른 기술적 과제는 현재 블록의 사이즈를 기반으로 MPM 리스트를 구성하는 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide a method and apparatus for constructing an MPM list based on the size of a current block.

본 발명의 또 다른 기술적 과제는 현재 블록의 사이즈를 기반으로 좌측 주변 블록 및 상측 주변 블록을 이용한 간단한(simple) MPM 리스트를 구성하는 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide a method and apparatus for constructing a simple MPM list using a left neighbor block and an upper neighbor block based on the size of a current block.

본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 블록의 MPM(Most Probable Mode) 인덱스를 획득하는 단계, 상기 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성하는 단계, 상기 MPM 리스트 및 상기 MPM 인덱스를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 단계 및 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 단계를 포함하고, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 한다.According to an embodiment of the present invention, an image decoding method performed by a decoding apparatus is provided. The method may include obtaining a Most Probable Mode (MPM) index of a current block, constructing an MPM list based on neighboring blocks of the current block, intra prediction of the current block based on the MPM list and the MPM index. Deriving a mode and generating a predicted block for the current block based on the intra prediction mode, wherein the MPM list is derived based on the size of the current block, and the size of the current block The width of the current block and the height of the current block is calculated as a value.

본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부 및 상기 현재 블록의 MPM(Most Probable Mode) 인덱스를 획득하고, 상기 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성하고, 상기 MPM 리스트 및 상기 MPM 인덱스를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 예측부를 포함하고, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 한다.According to another embodiment of the present invention, a decoding apparatus for performing image decoding is provided. The decoding apparatus obtains an entropy decoding unit for obtaining prediction information on a current block and a Most Probable Mode (MPM) index of the current block, constructs an MPM list based on neighboring blocks of the current block, and generates the MPM list. And a prediction unit for deriving an intra prediction mode of the current block based on the MPM index and generating a predicted block for the current block based on the intra prediction mode, wherein the MPM list includes a size of the current block. The size of the current block is calculated based on the product of the width of the current block and the height of the current block.

본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 블록의 주변 블록들을 기반으로 MPM(Most Probable Mode) 리스트를 구성하는 단계, 상기 MPM 리스트를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 단계, 상기 현재 블록의 MPM 인덱스를 도출하는 단계, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 단계 및 상기 MPM 인덱스를 포함하는 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하고, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding method performed by an encoding apparatus is provided. The method includes constructing a Most Probable Mode (MPM) list based on neighboring blocks of the current block, deriving an intra prediction mode of the current block based on the MPM list, and deriving an MPM index of the current block. Generating a predicted block for the current block based on the intra prediction mode, and generating, encoding and outputting prediction information for the current block including the MPM index, wherein the MPM list Is derived based on the size of the current block, and the size of the current block is calculated by multiplying the width of the current block and the height of the current block.

본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 블록의 주변 블록들을 기반으로 MPM(Most Probable Mode) 리스트를 구성하고, 상기 MPM 리스트를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하고, 상기 현재 블록의 MPM 인덱스를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 예측부 및 상기 MPM 인덱스를 포함하는 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 엔트로피 인코딩부를 포함하고, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding apparatus is provided. The encoding apparatus constructs a Most Probable Mode (MPM) list based on neighboring blocks of the current block, derives an intra prediction mode of the current block based on the MPM list, derives an MPM index of the current block, A prediction unit for generating a predicted block for the current block based on the intra prediction mode, and an entropy encoding unit for generating, encoding and outputting prediction information for the current block including the MPM index, wherein the MPM list Is derived based on the size of the current block, and the size of the current block is calculated by multiplying the width of the current block and the height of the current block.

본 발명에 따르면 영상 압축 효율을 향상시킬 수 있다.According to the present invention, image compression efficiency can be improved.

본 발명에 따르면 연산 복잡도를 줄이면서 효율적으로 인트라 예측 모드를 도출할 수 있다. According to the present invention, the intra prediction mode can be efficiently derived while reducing the computational complexity.

도 1은 본 발명이 적용될 수 있는 비디오/영상 코딩 시스템을 개략적으로 설명하는 도면이다.1 is a diagram schematically illustrating a video / image coding system to which the present invention may be applied.

도 2는 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 2 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.

도 3은 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.3 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.

도 4는 본 발명에 따른 인코딩 장치의 일부 구성을 개략적으로 설명하는 도면이다.4 is a diagram schematically illustrating some components of an encoding apparatus according to the present invention.

도 5는 본 발명에 따른 디코딩 장치의 일부 구성을 개략적으로 설명하는 도면이다.5 is a diagram schematically illustrating some components of a decoding apparatus according to the present invention.

도 6은 본 발명에 따른 인트라 예측 방법을 개략적으로 나타낸다.6 schematically illustrates an intra prediction method according to the present invention.

도 7은 MPM 후보 도출을 위한 주변 블록의 예를 나타낸다.7 shows an example of neighboring blocks for MPM candidate derivation.

도 8은 블록 사이즈 기반의 MPM 리스트 구성 방법의 일 예를 개략적으로 나타낸다.8 schematically illustrates an example of a block size based MPM list construction method.

도 9는 블록 사이즈 기반의 MPM 리스트 구성 방법의 다른 예를 개략적으로 나타낸다.9 schematically illustrates another example of a block size based MPM list construction method.

도 10은 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다.10 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.

도 11은 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다.11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.

도 12는 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.12 schematically illustrates a content streaming system structure.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.As the present invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the invention to the specific embodiments. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the spirit of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. The terms "comprise" or "having" herein are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and that one or more other features It is to be understood that the numbers, steps, operations, components, parts or figures do not exclude in advance the existence or the possibility of adding them.

한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.On the other hand, each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented in separate hardware or separate software. For example, two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and redundant description of the same components is omitted.

도 1은 본 발명이 적용될 수 있는 비디오/영상 코딩 시스템을 개략적으로 설명하는 도면이다.1 is a diagram schematically illustrating a video / image coding system to which the present invention may be applied.

도 1을 참조하면, 비디오/영상 코딩 시스템은 소스 디바이스 및 수신 디바이스를 포함할 수 있다. 소스 디바이스는 인코딩된 비디오(video)/영상(image) 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스로 전달할 수 있다. Referring to FIG. 1, a video / image coding system may include a source device and a receiving device. The source device may transmit the encoded video / image information or data to the receiving device through a digital storage medium or a 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 receiving unit, a decoding apparatus and a renderer. The encoding device may be called a video / image encoding device, and the decoding device may be called a video / image decoding device. The transmitter may 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 the video / image through a process of capturing, synthesizing, or generating the video / image. The video source may comprise 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, video / image archives including previously captured video / images, and the like. Video / image generation devices may include, for example, computers, tablets and smartphones, and may (electronically) generate video / images. For example, a virtual video / image may be generated through a computer or the like. In this case, the video / image capturing process may be replaced by a process of generating related data.

인코딩 장치는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.The encoding device may encode the input video / image. The encoding apparatus may perform a series of procedures such as prediction, transform, and quantization for compression and coding efficiency. The encoded data (encoded video / image information) may be output in the form of a bitstream.

전송부는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘리먼트를 포함할 수 있다. 수신부는 상기 비트스트림을 수신/추출하여 디코딩 장치로 전달할 수 있다.The transmitter may transmit the encoded video / video information or data output in the form of a bitstream to the receiver of the receiving device through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like. 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 receive / extract the bitstream and transmit the received bitstream to the decoding apparatus.

디코딩 장치는 인코딩 장치의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다. The decoding apparatus may decode the 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 may render the decoded video / image. The rendered video / image may be displayed through the display unit.

본 발명은 비디오/영상 코딩에 관한 것이다. 예를 들어 본 발명에서 개시된 방법/실시예는 VVC (versatile video coding) 표준, EVC (essential video coding) 표준, AV1 (AOMedia Video 1) 표준, AVS2 (2nd generation of audio video coding standard) 또는 차세대 비디오/영상 코딩 표준(ex. H.267 or H.268 등)에 개시되는 방법에 적용될 수 있다.The present invention relates to video / picture coding. For example, the methods / embodiments disclosed in the present invention may include a versatile video coding (VVC) standard, an essential video coding (EVC) standard, an AOMedia Video 1 (AV1) standard, a second generation of audio video coding standard (AVS2) or It can be applied to the method disclosed in the image coding standard (ex. H.267 or H.268, etc.).

본 발명에서는 비디오/영상 코딩에 관한 다양한 실시예들을 제시하며, 다른 언급이 없는 한 상기 실시예들은 서로 조합되어 수행될 수도 있다. In the present invention, various embodiments related to video / image coding are presented, and unless otherwise stated, the above embodiments may be performed in combination with each other.

본 발명에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 슬라이스/타일은 하나 이상의 CTU(coding tree unit)을 포함할 수 있다. 하나의 픽처는 하나 이상의 슬라이스/타일로 구성될 수 있다. 하나의 픽처는 하나 이상의 타일 그룹으로 구성될 수 있다. 하나의 타일 그룹은 하나 이상의 타일들을 포함할 수 있다. 브릭은 픽처 내 타일 이내의 CTU 행들의 사각 영역을 나타낼 수 있다In the present invention, a video may refer to a set of images over time. A picture generally refers to a unit representing one image in a specific time zone, and a slice / tile is a unit constituting a part of a picture in coding. The slice / tile may comprise one or more coding tree units (CTUs). One picture may consist of one or more slices / tiles. One picture may consist of one or more tile groups. One tile group may include one or more tiles. The brick may represent a rectangular region of CTU rows within a tile in the picture.

본 발명에서 타일 그룹과 슬라이스는 혼용될 수 있다. 예를 들어 본 문서에서 tile group/tile group header는 slice/slice header로 불리 수 있다. In the present invention, tile groups and slices may be used interchangeably. For example, in this document, tile group / tile group header may be called slice / slice header.

픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 루마(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 크로마(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. A pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.

유닛(unit)은 영상 처리의 기본 단위를 나타낼 수 있다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 하나의 유닛은 하나의 루마 블록 및 두개의 크로마(ex. cb, cr) 블록을 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들(또는 샘플 어레이) 또는 변환 계수(transform coefficient)들의 집합(또는 어레이)을 포함할 수 있다.A unit may represent a basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. One unit may include one luma block and two chroma (ex. Cb, cr) blocks. The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M × N block may include samples (or sample arrays) or a set (or array) of transform coefficients of M columns and N rows.

본 발명에서 "/"와 ","는 "및/또는"으로 해석된다. 예를 들어, "A/B"는 "A 및/또는 B"로 해석되고, "A, B"는 "A 및/또는 B"로 해석된다. 추가적으로, "A/B/C"는 "A, B 및/또는 C 중 적어도 하나"를 의미한다. 또한, "A, B, C"도 "A, B 및/또는 C 중 적어도 하나"를 의미한다. In the present invention, "/" and "," are interpreted as "and / or". For example, "A / B" is interpreted as "A and / or B" and "A, B" is interpreted as "A and / or B". In addition, "A / B / C" means "at least one of A, B and / or C". In addition, "A, B, C" also means "at least one of A, B, and / or C."

추가적으로, 본 문서에서 "또는"는 "및/또는"으로 해석된다. 예를 들어, "A 또는 B"은, 1) "A" 만을 의미하고, 2) "B" 만을 의미하거나, 3) "A 및 B"를 의미할 수 있다. 달리 표현하면, 본 문서의 "또는"은 "추가적으로 또는 대체적으로(additionally or alternatively)"를 의미할 수 있다.In addition, in this document "or" is interpreted as "and / or". For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B". In other words, "or" in this document may mean "additionally or alternatively".

도 2는 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 2 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.

도 2를 참조하면, 인코딩 장치(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)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(170)을 내/외부 컴포넌트로 더 포함할 수도 있다.Referring to FIG. 2, the encoding apparatus 100 may include an image splitter 110, a subtractor 115, a transformer 120, a quantizer 130, an inverse quantizer 140, an inverse transformer 150, The adder 155, the filter 160, the memory 170, the inter predictor 180, the intra predictor 185, and the entropy encoder 190 may be configured. The inter predictor 180 and the intra predictor 185 may be collectively called a predictor. That is, the predictor may include an inter predictor 180 and an intra predictor 185. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in the residual processing unit. The residual processing unit may further include a subtracting unit 115. The image divider 110, the subtractor 115, the transformer 120, the quantizer 130, the inverse quantizer 140, the inverse transformer 150, the adder 155, and the filter 160 are described above. ), The inter predictor 180, the intra predictor 185, and the entropy encoder 190 may be configured by one hardware component (for example, an encoder chipset or a processor) according to an embodiment. In addition, the memory 170 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware component may further include the memory 170 as an internal / external component.

영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBTTT (Quad-tree binary-tree ternary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조, 및/또는 터너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및/또는 터너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 발명에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. 다른 예로, 상기 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)을 더 포함할 수 있다. 이 경우 상기 예측 유닛 및 상기 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image divider 110 may divide an input image (or a picture or a 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 ternary-tree (QTBTTT) structure from a coding tree unit (CTU) or a largest coding unit (LCU). Can be. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and / or a ternary tree structure. In this case, for example, the quad tree structure may be applied first and the binary tree structure and / or ternary tree structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present invention may be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. Here, the coding procedure may include a procedure of prediction, transform, 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 last coding unit described above, 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 block or area in some cases. In a general case, an M × N block may represent a set of samples or transform coefficients composed of M columns and N rows. A sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component. A sample may be used as a term corresponding to one picture (or image) for a pixel or a pel.

인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코더(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보 등 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The encoding apparatus 100 subtracts the prediction signal (predicted block, 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 may be generated (residual signal, residual block, residual sample array), and the generated residual signal is transmitted to the converter 120. In this case, as shown, a unit for subtracting a prediction signal (prediction block, 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 a 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 on a current block or CU basis. As described later in the description of each prediction mode, the prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the generated information to the entropy encoding unit 190. The information about the prediction may be encoded in the entropy encoding unit 190 and output in the form of a bitstream.

인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra predictor 185 may predict the current block by referring to the samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In intra prediction, the prediction modes may include a plurality of non-directional modes and a plurality of directional modes. Non-directional mode may include, for example, DC mode and planner 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, as an example, more or less number of directional prediction modes may be used depending on the setting. The intra predictor 185 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.

인터 예측부(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 predictor 180 may derive the predicted block with respect to the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the 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 as a collocated reference block, a collocated CU (colCU), or the like, and a reference picture including the temporal neighboring block is called a collocated picture (colPic). It may be. For example, the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidates are used to derive the motion vector and / or reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes. For example, in the case of a skip mode and a merge mode, the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block is used as a motion vector predictor, and the motion vector of the current block is signaled by signaling a motion vector difference. Can be directed.

예측부는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC)를 수행할 수도 있다. 상기 인트라 블록 카피는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. The prediction unit may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction to predict one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may perform intra block copy (IBC) to predict a block. The intra block copy may be used for content video / video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC can use at least one of the inter prediction techniques described in this document.

상기 예측부 (인터 예측부(180) 및/또는 상기 인트라 예측부(185) 포함)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 변환부(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 prediction signal generated by the predictor (including the inter predictor 180 and / or the intra predictor 185) may be used to generate a reconstruction signal or to generate a residual signal. The transformer 120 may apply transform techniques to the residual signal to generate transform coefficients. For example, the transformation technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a karhunen-loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). It may include. Here, GBT means a conversion obtained from this graph when the relationship information between pixels is represented by a graph. The CNT refers to a transform that is generated based on and generates a prediction signal by using all previously reconstructed pixels. In addition, the conversion process may be applied to pixel blocks having the same size as the square, or may be applied to blocks of variable size rather than square.

양자화부(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) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 본 문서에서 후술되는 시그널링/전송되는 정보 및/또는 신택스 요소들은 상술한 인코딩 절차를 통하여 인코딩되어 상기 비트스트림에 포함될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 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. The entropy encoding unit 190 encodes the quantized signal (information about the quantized transform coefficients) and outputs the bitstream as a bitstream. have. The information about the quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange block quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about transform coefficients may be generated. The entropy encoding unit 190 may perform various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like. The entropy encoding unit 190 may encode information necessary for video / image reconstruction other than quantized transform coefficients (for example, values of syntax elements) together or separately. The encoded information (eg, encoded video / picture information) may be transmitted or stored in units of NALs (network abstraction layer) in the form of a bitstream. The video / image information may further include information about various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. Signaling / transmitted information and / or syntax elements described later in this document may be encoded and included in the bitstream through the above-described encoding procedure. The bitstream may be transmitted over a network or may be stored in a digital storage medium. 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, and the like. The signal output from the entropy encoding unit 190 may include a transmitting unit (not shown) for transmitting and / or a storing unit (not shown) for storing as an internal / external element of the encoding apparatus 100, or the transmitting unit It may be included in the entropy encoding unit 190.

양자화부(130)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록 or 레지듀얼 샘플들)를 복원할 수 있다. 가산부(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 inverse quantization and inverse transform may be applied to the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150 to restore the residual signal (residual block or residual samples). 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 a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) is added. Can be generated. 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 the reconstructed block. The adder 155 may be called a restoration unit or a restoration block generation unit. The generated reconstruction signal may be used for intra prediction of the next block to be processed in the current picture, and may be used for inter prediction of the next picture through filtering as described below.

한편 픽처 인코딩 및/또는 복원 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or reconstruction.

필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)은 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(170), 구체적으로 메모리(170)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(160)은 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may improve subjective / objective image quality by applying filtering to the reconstruction signal. 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 is stored in the memory 170, specifically, the DPB of the memory 170. Can be stored in The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filtering unit 160 may generate various information related to the filtering and transmit the generated information to the entropy encoding unit 190 as described later in the description of each filtering method. The filtering information may be encoded in 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 the reference picture in the inter predictor 180. When the inter prediction is applied through the encoding apparatus, the encoding apparatus may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus, and may improve encoding efficiency.

메모리(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 predictor 180. The memory 170 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 180 to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer the reconstructed samples to the intra predictor 185.

도 3은 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.3 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.

도 3을 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)를 합쳐서 예측부라고 불릴 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220), 역변환부(230)를 합쳐서 레지듀얼 처리부라고 불릴 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220), 역변환부(230)을 포함할 수 있다. 상술한 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 칩셋 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(250)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(250)을 내/외부 컴포넌트로 더 포함할 수도 있다.Referring to FIG. 3, the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, and an inter The prediction unit 260 and the intra prediction unit 265 may be configured. The inter predictor 260 and the intra predictor 265 may be collectively called a predictor. That is, the predictor may include an inter predictor 180 and an intra predictor 185. The inverse quantization unit 220 and the inverse transform unit 230 may be collectively called a residual processing unit. That is, the residual processor may include an inverse quantization unit 220 and an inverse transform unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transformer 230, the adder 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 are described above. It may be configured by one hardware component (for example, decoder chipset or processor). In addition, the memory 250 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware component may further include the memory 250 as an internal / external component.

비디오/영상 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 2의 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 상기 비트스트림으로부터 획득한 블록 분할 관련 정보를 기반으로 유닛들/블록들을 도출할 수 있다. 디코딩 장치(200)는 인코딩 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 따라서 분할될 수 있다. 코딩 유닛으로부터 하나 이상의 변환 유닛이 도출될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.When a bitstream including video / image information is input, the decoding apparatus 200 may reconstruct an image corresponding to a process in which video / image information is processed in the encoding apparatus of FIG. 2. For example, the decoding apparatus 200 may derive units / blocks based on the block division related information obtained from the bitstream. The decoding apparatus 200 may perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit of decoding may be a coding unit, for example, and the coding unit may be divided along the quad tree structure, binary tree structure and / or ternary tree structure from the coding tree unit or the largest coding unit. One or more transform units may be derived from the coding unit. The reconstructed video signal decoded and output through the decoding apparatus 200 may be reproduced through the reproducing apparatus.

디코딩 장치(200)는 도 2의 인코딩 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(ex. 비디오/영상 정보)를 도출할 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 디코딩 장치는 상기 파라미터 세트에 관한 정보 및/또는 상기 일반 제한 정보를 더 기반으로 픽처를 디코딩할 수 있다. 본 문서에서 후술되는 시그널링/수신되는 정보 및/또는 신택스 요소들은 상기 디코딩 절차를 통하여 디코딩되어 상기 비트스트림으로부터 획득될 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)으로 제공될 수 있다. 한편, 인코딩 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다. 한편, 본 문서에 따른 디코딩 장치는 비디오/영상/픽처 디코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 정보 디코더(비디오/영상/픽처 정보 디코더) 및 샘플 디코더(비디오/영상/픽처 샘플 디코더)로 구분할 수도 있다. 상기 정보 디코더는 상기 엔트로피 디코딩부(210)를 포함할 수 있고, 상기 샘플 디코더는 상기 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265) 중 적어도 하나를 포함할 수 있다.The decoding apparatus 200 may receive a signal output from the encoding apparatus of FIG. 2 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). The video / image information may further include information about various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The decoding apparatus may further decode the picture based on the information about the parameter set and / or the general restriction information. Signaling / received information and / or syntax elements described later in this document may be decoded through the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 210 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for image reconstruction, and transform coefficients for residuals. Can be output. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step. The context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have. In this case, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. The information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the predictor (the inter predictor 260 and the intra predictor 265), and the entropy decoding performed by the entropy decoder 210 is performed. Dual values, that is, quantized transform coefficients and related parameter information, may be input to the inverse quantizer 220. In addition, information on filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiver (not shown) that receives a signal output from the encoding apparatus may be further configured as an internal / external element of the decoding apparatus 200, or the receiver may be a component of the entropy decoding unit 210. Meanwhile, the decoding apparatus according to this document may be called a video / image / picture decoding apparatus, and the decoding apparatus may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). It may be. The information decoder may include the entropy decoding unit 210, and the sample decoder may include the inverse quantizer 220, an inverse transformer 230, an adder 235, a filter 240, and a memory 250. ), The inter predictor 260, and the intra predictor 265.

역양자화부(220)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 인코딩 장치에서 수행된 계수 스캔 순서를 기반하여 재정렬을 수행할 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)를 획득할 수 있다. The inverse quantization unit 220 may dequantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block. In this case, the reordering may be performed based on the coefficient scan order performed in the encoding apparatus. The inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients using a quantization parameter (for example, quantization step size information), and may obtain transform coefficients.

역변환부(230)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득하게 된다. The inverse transformer 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 or inter prediction is applied to the current block based on the information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode.

예측부는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC)를 수행할 수도 있다. 상기 인트라 블록 카피는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. The prediction unit may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction to predict one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may perform intra block copy (IBC) to predict a block. The intra block copy may be used for content video / video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC can use at least one of the inter prediction techniques described in this document.

인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra predictor 265 may predict the current block by referring to the samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In intra prediction, the prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra predictor 265 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.

인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다. The inter predictor 260 may derive the predicted block for the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of the motion information between the neighboring block and the 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 a 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 the information about the prediction may include information indicating a mode of inter prediction for the current block.

가산부(235)는 획득된 레지듀얼 신호를 예측부(인터 예측부(260) 및/또는 인트라 예측부(265) 포함)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.The adder 235 reconstructs the obtained residual signal by adding the obtained residual signal to a prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and / or the intra prediction unit 265). A signal (restored picture, reconstructed block, reconstructed sample array) can be generated. 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 the reconstructed block.

가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 출력될 수도 있고 또는 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The adder 235 may be called a restoration unit or a restoration block generation unit. The generated reconstruction signal may be used for intra prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter prediction of the next picture.

한편, 픽처 디코딩 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in the picture decoding process.

필터링부(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 reconstruction 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 is stored in the memory 250, specifically, the DPB of the memory 250. Can be sent to. The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.

메모리(250)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(250)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.The (modified) reconstructed picture stored in the DPB of the memory 250 may be used as the reference picture in the inter predictor 260. The memory 250 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the blocks in the picture that are already reconstructed. The stored motion information may be transmitted to the inter predictor 260 in order to use the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 250 may store reconstructed samples of reconstructed blocks in the current picture, and may transfer the reconstructed samples to the intra predictor 265.

본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치(200)의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In the present specification, the embodiments described by 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 also apply to the unit 260 and the intra predictor 265.

인트라 예측은 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 참조 샘플들을 기반으로 현재 블록에 대한 예측 샘플들을 생성하는 예측을 나타낼 수 있다. 현재 블록에 인트라 예측이 적용되는 경우, 현재 블록의 인트라 예측에 사용할 주변 참조 샘플들이 도출될 수 있다. 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 좌측(left) 경계에 인접한 샘플 및 좌하측(bottom-left)에 이웃하는 총 2xnH 개의 샘플들, 현재 블록의 상측(top) 경계에 인접한 샘플 및 우상측(top-right)에 이웃하는 총 2xnW 개의 샘플들 및 현재 블록의 좌상측(top-left)에 이웃하는 1개의 샘플을 포함할 수 있다. 또는, 상기 현재 블록의 주변 참조 샘플들은 복수열의 상측 주변 샘플들 및 복수행의 좌측 주변 샘플들을 포함할 수도 있다. 또한, 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 우측(right) 경계에 인접한 총 nH 개의 샘플들, 현재 블록의 하측(bottom) 경계에 인접한 총 nW 개의 샘플들 및 현재 블록의 우하측(bottom-right)에 이웃하는 1개의 샘플을 포함할 수도 있다. Intra prediction may refer to prediction that generates prediction samples for the current block based on reference samples in a picture to which the current block belongs (hereinafter, referred to as a current picture). 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 peripheral reference samples of the current block are samples adjacent to the left border of the current block of size nWxnH and a total of 2xnH samples neighboring to the bottom-left, samples adjacent to the top border of the current block. And a total of 2 × nW samples neighboring to the top-right and one sample neighboring to the top-left of the current block. Alternatively, the peripheral reference samples of the current block may include a plurality of upper peripheral samples and a plurality of left peripheral samples. In addition, the peripheral reference samples of the current block are a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block and the lower right side of the current block. It may include one sample neighboring (bottom-right).

다만, 현재 블록의 주변 참조 샘플들 중 일부는 아직 디코딩되지 않았거나, 이용 가능하지 않을 수 있다. 이 경우, 디코더는 이용 가능한 샘플들로 이용 가능하지 않은 샘플들을 대체(substitution)하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다. 또는, 이용 가능한 샘플들의 보간(interpolation)을 통하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다.However, some of the peripheral reference samples of the current block may not be decoded yet or available. In this case, the decoder can construct the surrounding reference samples to use for prediction by substituting the samples that are not available with the available samples. Alternatively, peripheral reference samples to be used for prediction may be configured through interpolation of the available samples.

주변 참조 샘플들이 도출된 경우, (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. When neighboring reference samples are derived, (i) the prediction sample can be derived based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighboring reference samples of the current block. The prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.

또한, 상기 주변 참조 샘플들 중 상기 현재 블록의 예측 샘플을 기준으로 상기 현재 블록의 인트라 예측 모드의 예측 방향의 반대 방향에 위치하는 상기 제2 주변 샘플과 상기 제1 주변 샘플과의 보간을 통하여 상기 예측 샘플이 생성될 수도 있다. 상술한 경우는 선형 보간 인트라 예측(Linear interpolation intra prediction, LIP) 이라고 불릴 수 있다. 또한, 선형 모델(linear model)을 이용하여 루마 샘플들을 기반으로 크로마 예측 샘플들이 생성될 수도 있다. 이 경우는 LM 모드라고 불릴 수 있다. 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 prediction sample of the current block among the neighboring reference samples may be performed. Prediction samples may be generated. The above case may be referred to as linear interpolation intra prediction (LIP). In addition, chroma prediction samples may be generated based on luma samples using a linear model. In this case, it may be called LM mode.

또한, 필터링된 주변 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 주변 참조 샘플들, 즉, 필터링되지 않은 주변 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수도 있다. 상술한 경우는 PDPC(Position dependent intra prediction) 라고 불릴 수 있다. In addition, a temporary prediction sample of the current block is derived based on filtered neighbor reference samples, and at least one of the existing neighbor reference samples, that is, unfiltered neighbor reference samples, derived according to the intra prediction mode. A weighted sum of a reference sample and the temporary prediction sample may be used to derive the prediction sample of the current block. The above case may be referred to as position dependent intra prediction (PDPC).

또한, 현재 블록의 주변 다중 참조 샘플 라인 중 가장 예측 정확도가 높은 참조 샘플 라인을 선택하여 해당 라인에서 예측 방향에 위치하는 참조 샘플을 이용하여 예측 샘플을 도출하고 이 때, 사용된 참조 샘플 라인을 디코딩 장치에 지시(시그널링)하는 방법으로 인트라 예측 부호화를 수행할 수 있다. 상술한 경우는 multi-reference line (MRL) intra prediction 또는 MRL 기반 인트라 예측이 라고 불릴 수 있다. In addition, a reference sample line having the highest prediction accuracy among the neighboring multi-reference sample lines of the current block is selected to derive the prediction sample by using the reference sample located in the prediction direction in the corresponding line, and then decode the used reference sample line. Intra-prediction encoding may be performed by instructing (signaling) the device. The above case may be referred to as multi-reference line (MRL) intra prediction or MRL based intra prediction.

또한, 현재 블록을 수직 또는 수평의 서브파티션들로 나누어 동일한 인트라 예측 모드를 기반으로 인트라 예측을 수행하되, 상기 서브파티션 단위로 주변 참조 샘플들을 도출하여 이용할 수 있다. 즉, 이 경우 현재 블록에 대한 인트라 예측 모드가 상기 서브파티션들에 동일하게 적용되되, 상기 서브파티션 단위로 주변 참조 샘플을 도출하여 이용함으로써 경우에 따라 인트라 예측 성능을 높일 수 있다. 이러한 예측 방법은 intra sub-partitions (ISP) 또는 ISP 기반 인트라 예측이라고 불릴 수 있다. In addition, intra prediction may be performed based on the same intra prediction mode by dividing the current block into vertical or horizontal subpartitions, and peripheral reference samples may be derived and used in units of the subpartition. That is, in this case, the intra prediction mode for the current block is equally applied to the subpartitions, and the intra prediction performance may be improved in some cases by deriving and using the peripheral reference samples in the subpartition unit. Such a prediction method may be called intra sub-partitions (ISP) or ISP based intra prediction.

상술한 인트라 예측 방법들은 인트라 예측 모드와 구분하여 인트라 예측 타입이라고 불릴 수 있다. 상기 인트라 예측 타입은 인트라 예측 기법 또는 부가 인트라 예측 모드 등 다양한 용어로 불릴 수 있다. 예를 들어 상기 인트라 예측 타입(또는 부가 인트라 예측 모드 등)은 상술한 LIP, PDPC, MRL, ISP 중 적어도 하나를 포함할 수 있다. 상기 LIP, PDPC, MRL, ISP 등의 특정 인트라 예측 타입을 제외한 일반 인트라 예측 방법은 노멀 인트라 예측 타입이라고 불릴 수 있다. 노멀 인트라 예측 타입은 상기와 같은 특정 인트라 예측 타입이 적용되지 않는 경우 일반적으로 적용될 수 있으며, 상술한 인트라 예측 모드를 기반으로 예측이 수행될 수 있다. 한편, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링이 수행될 수도 있다. The above-described intra prediction methods may be called an intra prediction type separately from the intra prediction mode. The intra prediction type may be called in various terms such as an intra prediction technique or an additional intra prediction mode. For example, the intra prediction type (or additional intra prediction mode) may include at least one of the above-described LIP, PDPC, MRL, and ISP. A general intra prediction method except for a specific intra prediction type such as LIP, PDPC, MRL, or ISP may be called a normal intra prediction type. The normal intra prediction type may be generally applied when the specific intra prediction type is not applied, and prediction may be performed based on the above-described intra prediction mode. Meanwhile, post-processing filtering may be performed on the predicted sample derived as needed.

구체적으로, 인트라 예측 절차는 인트라 예측 모드/타입 결정 단계, 주변 참조 샘플 도출 단계, 인트라 예측 모드/타입 기반 예측 샘플 도출 단계를 포함할 수 있다. 또한, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링(post-filtering) 단계가 수행될 수도 있다. In detail, the intra prediction procedure may include an intra prediction mode / type determination step, a peripheral reference sample derivation step, and an intra prediction mode / type based prediction sample derivation step. In addition, a post-filtering step may be performed on the predicted sample derived as needed.

한편, 상술한 인트라 예측 타입들 외에도 affine linear weighted intra prediction (ALWIP)이 사용될 수 있다. 상기 ALWIP는 LWIP(linear weighted intra prediction) 또는 MIP(matrix weighted intra prediction 또는 matrix based intra prediction)이라고 불릴 수도 있다. 상기 MIP가 현재 블록에 대하여 적용되는 경우, i) 에버러징(averaging) 절차가 수행된 주변 참조 샘플들을 이용하여 ii) 메트릭스 벡터 멀티플리케이션(matrix-vector-multiplication) 절차를 수행하고, iii) 필요에 따라 수평/수직 보간(interpolation) 절차를 더 수행하여 상기 현재 블록에 대한 예측 샘플들을 도출할 수 있다. 상기 MIP를 위하여 사용되는 인트라 예측 모드들은 상술한 LIP, PDPC, MRL, ISP 인트라 예측이나, 노멀 인트라 예측에서 사용되는 인트라 예측 모드들과 다르게 구성될 수 있다. 상기 MIP를 위한 인트라 예측 모드는 MIP intra prediction mode, MIP prediction mode 또는 MIP mode라고 불릴 수 있다. 예를 들어, 상기 MIP를 위한 인트라 예측 모드에 따라 상기 메트릭스 벡터 멀티플리케이션에서 사용되는 메트릭스 및 오프셋이 다르게 설정될 수 있다. 여기서 상기 메트릭스는 (MIP) 가중치 메트릭스라고 불릴 수 있고, 상기 오프셋은 (MIP) 오프셋 벡터 또는 (MIP) 바이어스(bias) 벡터라고 불릴 수 있다. Meanwhile, in addition to the above-described intra prediction types, affine linear weighted intra prediction (ALWIP) may be used. The ALWIP may be referred to as linear weighted intra prediction (LWIP) or matrix weighted intra prediction or matrix based intra prediction (MIP). If the MIP is applied to the current block, i) perform a matrix-vector-multiplication procedure using i) surrounding reference samples on which an averaging procedure has been performed, and iii) if necessary. Accordingly, a horizontal / vertical interpolation procedure may be further performed to derive prediction samples for the current block. The intra prediction modes used for the MIP may be configured differently from the intra prediction modes used in the LIP, PDPC, MRL, ISP intra prediction, or normal intra prediction. The intra prediction mode for the MIP may be called a MIP intra prediction mode, a MIP prediction mode or a MIP mode. For example, the matrix and offset used in the matrix vector multiplication may be set differently according to the intra prediction mode for the MIP. In this case, the matrix may be referred to as a (MIP) weighting matrix, and the offset may be referred to as a (MIP) offset vector or a (MIP) bias vector.

인트라 예측이 적용되는 경우, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용되는 인트라 예측 모드가 결정될 수 있다. 예를 들어, 디코딩 장치는 현재 블록의 주변 블록(ex. 좌측 및/또는 상측 주변 블록)의 인트라 예측 모드 및 추가적인 후보 모드들을 기반으로 도출된 MPM(most probable mode) 리스트 내 MPM 후보들 중 하나를 수신된 MPM 인덱스를 기반으로 선택할 수 있으며, 또는 상기 MPM 후보들(및 플래너 모드)에 포함되지 않은 나머지 인트라 예측 모드들 중 하나를 리메이닝 인트라 예측 모드 정보를 기반으로 선택할 수 있다. 상기 MPM 리스트는 플래너 모드를 후보로 포함하거나 포함하지 않도록 구성될 수 있다. 예를 들어, 상기 MPM 리스트가 플래너 모드를 후보로 포함하는 경우 상기 MPM 리스트는 6개의 후보를 가질 수 있고, 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 상기 MPM 리스트는 3개 또는 5개의 후보를 가질 수 있다. 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 현재 블록의 인트라 예측 모드가 플래너 모드가 아닌지 나타내는 not 플래너 플래그(ex. intra_luma_not_planar_flag)가 시그널링될 수 있다. 예를 들어, MPM 플래그가 먼저 시그널링되고, MPM 인덱스 및 not 플래너 플래그는 MPM 플래그의 값이 1인 경우 시그널링될 수 있다. 또한, 상기 MPM 인덱스는 상기 not 플래너 플래그의 값이 1인 경우 시그널링될 수 있다. 여기서, 상기 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않도록 구성되는 것은, 상기 플래너 모드가 MPM이 아니라는 것이라기보다는, MPM으로 항상 플래너 모드가 고려되기에 먼저 플래그(not planar flag)를 시그널링하여 플래너 모드인지 여부를 먼저 확인하기 위함이다. When intra prediction is applied, the intra prediction mode applied to the current block may be determined using the intra prediction mode of the neighboring block. For example, the decoding apparatus receives one of the MPM candidates in the most probable mode (MPM) list derived based on the intra prediction mode and additional candidate modes of the neighboring block (eg, left and / or upper neighboring block) of the current block. The selected MPM index may be selected or one of the remaining intra prediction modes not included in the MPM candidates (and planner mode) may be selected based on the remaining intra prediction mode information. The MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates. When the MPM list does not include a planner mode as a candidate, the MPM list may have three or five candidates. You can have a candidate. When the MPM list does not include a planner mode as a candidate, a not planner flag (eg, intra_luma_not_planar_flag) indicating whether an intra prediction mode of the current block is not a planner mode may be signaled. For example, the MPM flag is signaled first, and the MPM index and not planner flag may be signaled when the value of the MPM flag is one. In addition, the MPM index may be signaled when the value of the not planner flag is 1. Here, the configuration of the MPM list so as not to include a planner mode as a candidate does not mean that the planner mode is not an MPM, but because a planner mode is always considered as an MPM, a planner signal is signaled first. This is to check whether the mode is first.

예를 들어, 현재 블록에 적용되는 인트라 예측 모드가 MPM 후보들(및 플래너 모드) 중에 있는지, 아니면 리메이닝 모드 중에 있는지는 MPM flag (ex. intra_luma_mpm_flag)를 기반으로 지시될 수 있다. MPM flag의 값 1은 상기 현재 블록에 대한 인트라 예측 모드가 MPM 후보들(및 플래너 모드) 내에 있음을 나타낼 수 있으며, MPM flag의 값 0은 상기 현재 블록에 대한 인트라 예측 모드가 MPM 후보들(및 플래너 모드) 내에 없음을 나타낼 수 있다. 상기 not planar flag (ex. intra_luma_not_planar_flag) 값 0은 상기 현재 블록에 대한 인트라 예측 모드가 플래너 모드임을 나타낼 수 있고, 상기 not planar flag 값 1은 상기 현재 블록에 대한 인트라 예측 모드가 플래너 모드가 아님을 나타낼 수 있다. 상기 MPM 인덱스는 mpm_idx 또는 intra_luma_mpm_idx 신텍스 요소의 형태로 시그널링될 수 있고, 상기 리메이닝 인트라 예측 모드 정보는 rem_intra_luma_pred_mode 또는 intra_luma_mpm_remainder 신텍스 요소의 형태로 시그널링될 수 있다. 예를 들어, 상기 리메이닝 인트라 예측 모드 정보는 전체 인트라 예측 모드들 중 상기 MPM 후보들(및 플래너 모드)에 포함되지 않는 나머지 인트라 예측 모드들을 예측 모드 번호 순으로 인덱싱하여 그 중 하나를 가리킬 수 있다. 상기 인트라 예측 모드는 루마 성분(샘플)에 대한 인트라 예측 모드일 수 있다. 이하, 인트라 예측 모드 정보는 상기 MPM flag (ex. intra_luma_mpm_flag), 상기 not planar flag (ex. intra_luma_not_planar_flag), 상기 MPM 인덱스 (ex. mpm_idx 또는 intra_luma_mpm_idx), 상기 리메이닝 인트라 예측 모드 정보 (rem_intra_luma_pred_mode 또는 intra_luma_mpm_remainder) 중 적어도 하나를 포함할 수 있다. 본 문서에서 MPM 리스트는 MPM 후보 리스트, candModeList 등 다양한 용어로 불릴 수 있다. MIP가 현재 블록에 적용되는 경우, MIP를 위한 별도의 mpm flag(ex. intra_mip_mpm_flag), mpm 인덱스(ex. intra_mip_mpm_idx), 리메이닝 인트라 예측 모드 정보(ex. intra_mip_mpm_remainder)가 시그널링될 수 있으며, 상기 not planar flag는 시그널링되지 않는다. For example, whether the intra prediction mode applied to the current block is in MPM candidates (and planner mode) or in remaining mode may be indicated based on the MPM flag (ex. Intra_luma_mpm_flag). A value of 1 of the MPM flag may indicate that the intra prediction mode for the current block is within MPM candidates (and planner mode), and a value of 0 of the MPM flag indicates that the intra prediction mode for the current block is MPM candidates (and planner mode). ) May be absent. The not planar flag (ex. Intra_luma_not_planar_flag) value 0 may indicate that the intra prediction mode for the current block is planner mode, and the not planar flag value 1 indicates that the intra prediction mode for the current block is not planner mode. Can be. The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may index remaining intra prediction modes not included in the MPM candidates (and planner mode) among all intra prediction modes in order of prediction mode number to indicate one of them. The intra prediction mode may be an intra prediction mode for a luma component (sample). Hereinafter, intra prediction mode information includes the MPM flag (ex. Intra_luma_mpm_flag), the not planar flag (ex. Intra_luma_not_planar_flag), the MPM index (ex. Mpm_idx or intra_luma_mpm_idx), and the remaining intra prediction mode information (rem_intra_luma_intra_lum_mode). It may include at least one. In this document, the MPM list may be referred to in various terms such as MPM candidate list and candModeList. When the MIP is applied to the current block, a separate mpm flag (ex. Intra_mip_mpm_flag), mpm index (ex. Intra_mip_mpm_idx), remaining intra prediction mode information (ex. Intra_mip_mpm_remainder) for MIP may be signaled, and the not planar The flag is not signaled.

본 발명의 일 실시예는 블록 사이즈에 의존적인 MPM 리스트를 구성하는 방안을 제안할 수 있다. 일 실시예는 정지 영상 및 동영상에 대한 인코딩/디코딩에 적용될 수 있으며, 인코딩/디코딩된 정지 영상 및 동영상은 비트스트림 포멧 또는 다른 타입의 파일 포멧을 가질 수 있다. 여기서, 비트스트림 및 파일은 장치들의 다양한 종류의 저장소에 저장될 수 있다. 또는 셀롤러 네트워크, 인터넷 프로토콜 등과 같은 다양한 종류의 네트워크 환경 상의 스트림에 저장될 수 있다. 일 실시예에서 디스플레이를 가지는 사용자 단말 장치들로 스트리밍하는 경우, 비트스트림 또는 파일들은 디코딩될 수 있고, 재생될 수 있다. 본 발명의 일 실시예는 비트스트림의 디스플레이와 관계 없이 인코더 및/또는 디코더를 가지는 모든 장치들에 적용될 수 있다.One embodiment of the present invention may propose a method of constructing an MPM list depending on a block size. One embodiment may be applied to encoding / decoding for still pictures and moving pictures, and the encoded / decoded still pictures and moving pictures may have a bitstream format or another type of file format. Here, the bitstreams and files may be stored in various kinds of storage of devices. Or it may be stored in a stream on various kinds of network environment, such as a cellular network, an Internet protocol. In one embodiment, when streaming to user terminal devices having a display, the bitstream or files can be decoded and played back. One embodiment of the present invention can be applied to all devices having an encoder and / or a decoder regardless of the display of the bitstream.

일 실시예에 따른 블록 사이즈에 의존적인 MPM 리스트를 구성하는 방법은 인트라 예측 모드들의 수가 많아질수록, 시그널링하는 인트라 모드들의 오버헤드를 효과적으로 감소시킬 수 있다. 또한, 일 실시예에 따른 방법을 통해 인트라 모드가 효율적으로 코딩되어 시그널링 오버헤드 감소 측면에서 코딩 효율이 향상될 수 있다.The method of constructing a block size dependent MPM list according to an embodiment may effectively reduce the overhead of signaling intra modes as the number of intra prediction modes increases. In addition, the intra mode may be efficiently coded through the method according to an embodiment, thereby improving coding efficiency in terms of reducing signaling overhead.

다시 말해, 일 실시예에 따른 방법은 인트라 예측 모드의 시그널링 오버헤드를 감소시킬 수 있고, 오버헤드의 감소에 따라 비온테가르드 디스토션 레이트(Bjøntegaard Distortion rate, BD-rate) PSNR(Peak Signal to Noise Ratio)의 관점에서 향상된 코딩 효율이 달성될 수 있다. 게다가, 더 작은 블록 사이즈에서의 비트스트림 스루풋(throughput)은 일 실시예에 따른 방법이 보다 하드웨어에 친화적이되도록 개선될 수 있다.In other words, the method according to an embodiment may reduce the signaling overhead of the intra prediction mode, and according to the reduction of the overhead, the Bjntegaard Distortion rate (BD-rate) Peak Signal to Noise Ratio (PSNR) Improved coding efficiency can be achieved in terms of In addition, bitstream throughput at smaller block sizes can be improved such that the method according to one embodiment is more hardware friendly.

도 4는 본 발명에 따른 인코딩 장치의 일부 구성을 개략적으로 설명하는 도면이다.4 is a diagram schematically illustrating some components of an encoding apparatus according to the present invention.

도 5는 본 발명에 따른 디코딩 장치의 일부 구성을 개략적으로 설명하는 도면이다.5 is a diagram schematically illustrating some components of a decoding apparatus according to the present invention.

도 4 및 도 5를 참조하면, 인트라 예측 방법은 샘플들 간의 상관 관계를 이용할 수 있고(exploit), 원본 블록과 상기 원본 블록의 예측 간의 차이를 이용할 수 있다. 변환 및 양자화는 공간 중복(spatial redundancy)를 더 제거하기 위해 이러한 잔차에 적용될 수 있다. 여기서, 잔차는 원본 블록과 상기 원본 블록의 예측 간의 차이를 지칭할 수 있으며, 원본 블록의 예측은 원본 블록에 대한 예측된 블록을 지칭할 수 있다.4 and 5, the intra prediction method may exploit correlation between samples and use the difference between the original block and the prediction of the original block. Transform and quantization can be applied to this residual to further remove spatial redundancy. Here, the residual may refer to the difference between the original block and the prediction of the original block, and the prediction of the original block may refer to the predicted block for the original block.

도 6은 본 발명에 따른 인트라 예측 방법을 개략적으로 나타낸다.6 schematically illustrates an intra prediction method according to the present invention.

도 6을 참조하면, 본 발명의 일 실시예에 따른 인트라 예측 방법은 참조 샘플 구성(reference sample construction), 샘플 예측(sample prediction) 및 포스트 필터링(post filtering)의 3단계로 구성될 수 있다.Referring to FIG. 6, an intra prediction method according to an embodiment of the present invention may be configured by three steps of reference sample construction, sample prediction, and post filtering.

예를 들어, 샘플 예측에서는 알려진 주변 참조 샘플들 및 인트라 예측 모드를 이용하여 알려지지 않은 샘플들을 예측할 수 있다. 즉, 먼저 디코딩된 주변 참조 샘플들 및 인트라 예측 모드를 이용하여 현재 샘플에 대한 예측 샘플을 생성할 수 있다. 더 정확한 예측을 위해서는 여러 라인의 참조 샘플을 활용할 수도 있다.For example, sample prediction may use known peripheral reference samples and intra prediction mode to predict unknown samples. That is, the prediction sample for the current sample may be generated using the decoded neighbor reference samples and the intra prediction mode. Multiple lines of reference samples can also be used for more accurate predictions.

인코딩 장치 측에서 최적의 인트라 모드(best intra mode)는 비트 레이트(bit rate) 및 왜곡(distortion)을 공동으로 최적화하여 결정될 수 있다. 그 후, 최적의 인트라 모드가 비트스트림 내에 코딩될 수 있고, 디코딩 장치가 파싱된 최적의 인트라 모드를 이용하여 인트라 예측을 수행할 수 있다. 다시 말해, 인코딩 장치는 최적의 인트라 모드를 도출하고, 도출한 최적의 인트라 모드에 대한 정보를 인코딩하여 비트스트림을 출력할 수 있다. 디코딩 장치는 비트스트림을 파싱하여 최적의 인트라 모드에 대한 정보를 획득할 수 있고, 이를 기반으로 인트라 예측을 수행할 수 있다. 다만, 인트라 예측 모드들의 증가된 개수는 시그널링 오버헤드를 최소화하기 위하여 효율적인 인트라 모드 코딩을 요구할 수 있다. The best intra mode on the encoding device side may be determined by jointly optimizing bit rate and distortion. The optimal intra mode can then be coded in the bitstream, and the decoding apparatus can perform intra prediction using the parsed optimal intra mode. In other words, the encoding apparatus may derive the optimal intra mode, encode the information on the derived optimal intra mode, and output the bitstream. The decoding apparatus may obtain information about an optimal intra mode by parsing the bitstream, and may perform intra prediction based on the information. However, an increased number of intra prediction modes may require efficient intra mode coding in order to minimize signaling overhead.

도 7은 MPM 후보 도출을 위한 주변 블록의 예를 나타낸다.7 shows an example of neighboring blocks for MPM candidate derivation.

MPM(Most Probable mode) 리스트는 인코딩 장치 및 디코딩 장치에서 주변 인트라 모드로 코딩된 블록들을 이용하여 구성될 수 있다. 또한, 오버헤드는 최적의 모드(best mode)가 MPM 중 하나인 경우, MPM 인덱스를 시그널링하여 최소화될 수 있다. MPM은 절단된 단항 코드(truncated unary code)로 코딩되므로 비트를 절약하는 관점에서 순서가 중요할 수 있다.The Most Probable Mode (MPM) list may be constructed using blocks coded in the peripheral intra mode in the encoding apparatus and the decoding apparatus. In addition, the overhead may be minimized by signaling the MPM index when the best mode is one of the MPMs. Since the MPM is coded in truncated unary code, order may be important in terms of saving bits.

도 7을 참조하면, 예를 들어, 6개의 MPM 후보를 구성하기 위한 순서는 현재 블록의 좌측 주변 블록(D)의 인트라 모드, 현재 블록의 상측 주변 블록(B)의 인트라 모드, 플래너 모드(planar mode), DC 모드, 현재 블록의 좌하측 주변 블록(E)의 인트라 모드, 현재 블록의 우상측 주변 블록(C)의 인트라 모드 및 현재 블록의 좌상측 주변 블록(A)의 인트라 모드일 수 있다. 최적의 인트라 모드가 MPM 리스트 내에 없는 경우에는 플래그가 예외(exclusion)를 표시하도록 시그널링될 수 있다. 따라서, 최적의 인트라 모드는 가변 길이 코딩 또는 고정 길이 코딩을 사용하여 코딩될 수 있다. MPM의 개수는 인트라 모드의 개수에 따를 수 있다. 일반적으로 인트라 모드의 개수의 증가와 함께 MPM의 개수가 증가할 수 있으나, 증가하지 않을 수도 있다. 예를 들어, 인트라 모드들의 개수가 35개 및/또는 67개인 경우, MPM의 개수는 3개, 4개, 5개 및 6개 등과 같이 다양한 개수를 가질 수 있으며, 이는 디자인될 수 있다. 주변 인트라 모드로 코딩된 블록들이 인트라 모드에 대한 정보를 가지는 경우, 이 인트라 모드들은 MPM 리스트를 구성하는데 이용될 수 있다.Referring to FIG. 7, for example, an order for configuring six MPM candidates may include the intra mode of the left peripheral block D of the current block, the intra mode of the upper peripheral block B of the current block, and the planar mode. mode), a DC mode, an intra mode of the lower left peripheral block E of the current block, an intra mode of the right upper peripheral block C of the current block, and an intra mode of the upper left peripheral block A of the current block. . If the optimal intra mode is not in the MPM list, a flag may be signaled to indicate an exception. Thus, the optimal intra mode can be coded using variable length coding or fixed length coding. The number of MPMs may depend on the number of intra modes. In general, the number of MPMs may increase with the number of intra modes, but may not increase. For example, when the number of intra modes is 35 and / or 67, the number of MPMs may have various numbers such as 3, 4, 5, 6, etc., which may be designed. If blocks coded in the peripheral intra mode have information about the intra mode, these intra modes can be used to construct the MPM list.

도 8은 블록 사이즈 기반의 MPM 리스트 구성 방법의 일 예를 개략적으로 나타낸다.8 schematically illustrates an example of a block size based MPM list construction method.

일 실시예에서 다양한 MPM 리스트 구성 알고리즘을이 오버헤드의 비트 감소를 위해 이용될 수 있다. 예를 들어, 6 MPM 리스트 구성은 다양한 주변들의 위치들을 통해 소모적 탐색(exhaust search)을 수행할 수 있고, 동일한 인트라 모드를 제외하기 위하여 끊임없이 프루닝 체크(pruning check)를 수행할 수 있다. In one embodiment, various MPM list construction algorithms may be used for bit reduction of this overhead. For example, a 6 MPM list construct may perform exhaustive search through the locations of the various perimeters, and may constantly perform pruning checks to exclude the same intra mode.

여기서, 6 MPM 리스트 구성은 방향성 인트라 모드들의 증가된 개수를 수용하기 위하여 인트라 모드 코딩 방법에 이용될 수 있다. 2개의 주된 기술적 관점들은 6개의 MPM 후보들의 도출 및 6개의 MPM 후보들 및 non-MPM 모드들의 엔트로피 코딩과 관련될 수 있다. MPM 리스트들을 포함하는 모드들은 3개의 그룹들로 분류될 수 있다. 3개의 그룹들은 주변 인트라 모드들(neighbor intra modes), 도출된 인트라 모드들(derived intra modes) 및 디폴트 인트라 모드들(default intra modes)을 포함할 수 있다. 여기서, 인트라 모드들은 인트라 예측 모드들이라 지칭할 수도 있다.Here, 6 MPM list construction can be used for the intra mode coding method to accommodate the increased number of directional intra modes. Two main technical aspects may relate to derivation of six MPM candidates and entropy coding of six MPM candidates and non-MPM modes. Modes containing MPM lists may be classified into three groups. The three groups may include neighbor intra modes, derived intra modes, and default intra modes. Here, intra modes may be referred to as intra prediction modes.

5개의 주변 인트라 예측 모드들은 MPM 리스트를 형성하기 위해 이용될 수 있다. 5개의 주변 인트라 예측 모드들은 현재 블록의 5개의 주변 블록들의 인트라 예측 모드들을 지칭할 수 있으며, 5개의 주변 블록들의 위치는 머지 모드에서 사용된 위치들과 동일할 수 있으며, 도 7의 A, B, C, D 및 E의 위치와 같을 수 있다.Five peripheral intra prediction modes may be used to form the MPM list. The five neighboring intra prediction modes may refer to the intra prediction modes of the five neighboring blocks of the current block, and the positions of the five neighboring blocks may be the same as the positions used in the merge mode, A, B of FIG. And may be the same as the positions of C, D and E.

초기 MPM 리스트는 MPM 리스트에 5개의 주변 인트라 모드들, 플래너 모드 및 DC 모드를 삽입함에 의해 형성될 수 있으며, 프루닝(pruning) 과정을 통해 중복된 모드를 제거할 수 있다. 다시 말해, 프루닝 과정은 고유한 모드들이 MPM 리스트에 포함되도록 중복된 모드를 제거하기 위해 이용될 수 있다. 즉, 초기 MPM 리스트에 프루닝 과정을 통해 중복되는 모드들을 제거할 수 있다. 초기 모드 또는 초기 MPM 리스트 내의 모드들의 순서는 현재 블록의 좌측 주변 블록(D)의 인트라 모드, 현재 블록의 상측 주변 블록(B)의 인트라 모드, 플래너 모드(planar mode), DC 모드, 현재 블록의 좌하측 주변 블록(E)의 인트라 모드, 현재 블록의 우상측 주변 블록(C)의 인트라 모드 및 현재 블록의 좌상측 주변 블록(A)의 인트라 모드일 수 있다.The initial MPM list may be formed by inserting five peripheral intra modes, a planner mode, and a DC mode into the MPM list, and may remove duplicated modes through a pruning process. In other words, the pruning process can be used to remove duplicated modes so that unique modes are included in the MPM list. That is, duplicate modes may be removed through pruning on the initial MPM list. The order of the modes in the initial mode or the initial MPM list is the intra mode of the left peripheral block D of the current block, the intra mode of the upper peripheral block B of the current block, the planar mode, the DC mode, of the current block. An intra mode of the lower left peripheral block E, an intra mode of the upper right peripheral block C of the current block, and an intra mode of the upper left peripheral block A of the current block.

MPM 리스트 내에 6개보다 적은 MPM 후보들이 존재하는 경우와 같이 MPM 리스트가 가득 차지 않는 경우, 도출된 모드들이 추가될 수 있다. 도출된 모드들은 MPM 리스트 내에 포함되어 있는 각도 모드에 대하여 -1 또는 +1한 모드로 도출될 수 있으며, DC 또는 플래너와 같은 비-각도 모드에 대해서는 적용하지 않을 수 있다.If the MPM list is not full, such as when there are less than six MPM candidates in the MPM list, derived modes may be added. The derived modes may be derived as -1 or +1 modes for the angle modes included in the MPM list, and may not apply for non-angle modes such as DC or planner.

마지막으로 MPM 리스트가 여전히 완성되지 않은 경우, 디폴트 모드들이 추가될 수 있다. 디폴트 인트라 모드가 추가되는 순서는 수직 인트라 예측 모드, 수평 인트라 예측 모드, 2번 인트라 예측 모드 및 3(diagonal) 인트라 예측 모드일 수 있다. 이러한 과정을 통해 6 MPM 모드들의 고유한 리스트가 생성될 수 있다.Finally, if the MPM list is still not complete, default modes can be added. The order in which the default intra mode is added may be a vertical intra prediction mode, a horizontal intra prediction mode, a second intra prediction mode, and a 3 (diagonal) intra prediction mode. Through this process, a unique list of 6 MPM modes can be generated.

6 MPM 후보들의 엔트로피 코딩을 위해 MPM 후보들의 절단된 단항 이진화(truncated unary binarization)가 이용될 수 있다. 첫 번째의 3개의 빈(bin)들은 현재 시그널링되고 있는 빈에 관련된 MPM 모드에 따른 컨텍스트가 코딩될 수 있다. MPM 모드는 3개의 카테고리 중 하나로 분류될 수 있다. 3개의 카테고리는 모드가 수평적인 모드인지, 수직적인 모드인지, 비방향성 모드인지를 포함할 수 있다. 수평적인 모드는 MPM 모드가 대각성 방향과 동일하거나 작은 모드 또는 수평 방향성 모드를 지칭할 수 있다. 수직적인 모드는 MPM 모드가 대각선 방향보다 큰 모드 또는 수직 방향성 모드를 지칭할 수 있다. 비방향성 모드는 DC 모드 및 플래너 모드를 지칭할 수 있다. 따라서, 3개의 컨텍스트들이 MPM 인덱스를 시그널링하기 위해 이용될 수 있다.Truncated unary binarization of MPM candidates may be used for entropy coding of 6 MPM candidates. The first three bins may be coded context according to the MPM mode associated with the bin currently being signaled. The MPM mode can be classified into one of three categories. The three categories may include whether the mode is a horizontal mode, a vertical mode, or a non-directional mode. The horizontal mode may refer to a mode in which the MPM mode is the same as or smaller than the diagonal direction or the horizontal directional mode. The vertical mode may refer to a mode in which the MPM mode is larger than the diagonal direction or the vertical directional mode. Non-directional mode may refer to DC mode and planner mode. Thus, three contexts can be used to signal the MPM index.

남겨진 61개의 MPM 후보가 아닌 모드들(non-MPMs)의 코딩은 다음과 같을 수 있다. 61개의 non-MPM 모드들은 우선 2개의 집합으로 나누어질 수 있다. 2개의 집합은 선택된(selected) 모드들 집합 및 비선택된(non-selected) 모드들 집합을 포함할 수 있다. 선택된 모드들 집합은 16개의 모드들을 포함할 수 있고, 나머지 45개의 모드들은 비선택된 모드들 집합에 할당될 수 있다. 현재 모드가 속하는 모드 집합은 플래그와 함께 비트스트림 내에 지시될 수 있다. 그러면, 선택된 집합으로부터의 모드는 4 비트의 고정 길이 코드로 시그널링될 수 있다. 또한, 비선택된 집합으로부터의 모드는 절단된 이진 코드로 코딩될 수 있다. 선택된 모드들 집합은 수학식 1과 같이 인덱스를 가지고 전체 61개의 non-MPM 모드들을 서브-샘플링하여 생성될 수 있다.The coding of the remaining 61 non-MPM candidates (non-MPMs) may be as follows. 61 non-MPM modes can be divided into two sets first. The two sets may include a set of selected modes and a set of non-selected modes. The selected set of modes may include 16 modes, and the remaining 45 modes may be assigned to the set of unselected modes. The mode set to which the current mode belongs may be indicated in the bitstream with a flag. The mode from the selected set may then be signaled with a 4 bit fixed length code. In addition, the modes from the unselected set can be coded with truncated binary code. The selected set of modes may be generated by sub-sampling a total of 61 non-MPM modes with an index as in Equation (1).

Figure PCTKR2019009388-appb-M000001
Figure PCTKR2019009388-appb-M000001

다시 말해, 일 실시예에서 MPM 리스트가 가득 차지 않은 경우, 미리 정의된 디폴트 모드에 의해 뒤따르는 인접한 각도의 모드가 프루닝 체크와 함께 고려될 수 있다. 여기서, 소모적 탐색 및 끊임없는 프루닝은 비트 레이트 절약에 대하여 장점을 가질 수 있다. 다만, 이는 각 블록의 MPM 리스트 구성을 위한 하드웨어 동작 사이클들의 개수가 증가할 수 있다. 최악의 시나리오를 고려하면, 3840x2160인 4k 이미지가 인트라 예측을 위해 4x4 블록으로 나누어지는 경우, 각 4x4 블록을 위한 증가된 하드웨어 동작 사이클들은 스루풋(throughput)에 대해 중요할 수 있다.In other words, in one embodiment, when the MPM list is not full, the adjacent angle mode followed by the predefined default mode may be considered with the pruning check. Here, exhaustive search and endless pruning may have advantages for bit rate savings. However, this may increase the number of hardware operation cycles for MPM list construction of each block. Considering the worst case scenario, if a 4k image of 3840x2160 is divided into 4x4 blocks for intra prediction, the increased hardware operating cycles for each 4x4 block may be important for throughput.

이에 따라, 일 실시예는 비트 레이트 절약뿐만 아니라 하드웨어 스루풋을 고려한 블록 사이즈에 의존적인 MPM 리스트 구성 방법을 다음과 같이 제안할 수 있다.Accordingly, an embodiment may propose a method of constructing an MPM list depending on a block size in consideration of hardware throughput as well as saving bit rate as follows.

도 8을 참조하면, 일 실시예는 블록 사이즈가 임계치 미만인지 판단할 수 있다. 다시 말해, 타겟 블록이 작은 블록인지 체크할 수 있다. 여기서, 타겟 블록은 현재 블록이라 지칭할 수도 있으며, 상술한 블록 사이즈에 의존적인 MPM 리스트는 타겟 블록의 MPM 리스트를 의미할 수 있다. 예를 들어, 타겟 블록 내의 픽셀들의 개수는 수학식 2와 같이 주어진 임계치(threshold)와 비교될 수 있다.Referring to FIG. 8, an embodiment may determine whether a block size is less than a threshold. In other words, it may be checked whether the target block is a small block. Here, the target block may be referred to as a current block, and the MPM list depending on the above-described block size may mean an MPM list of the target block. For example, the number of pixels in the target block may be compared with a given threshold as shown in equation (2).

Figure PCTKR2019009388-appb-M000002
Figure PCTKR2019009388-appb-M000002

수학식 2에서, THk는 임계치를 의미할 수 있으며, 32, 64, 또는 128 등과 같은 값을 가질 수 있다. 예를 들어, THk가 64인 경우, 4x4, 4x8 및 8x4 크기와 같은 블록들은 간단한(simple) k MPM 리스트 구성 방법을 이용할 수 있다. 다시 말해, THk는 블록의 사이즈와 관련된 임계치를 나타낼 수 있으며, 블록의 너비(block_width) 및 블록의 높이(block_height)를 곱하여 획득되는 블록 내의 샘플들의 개수와 임계치를 비교할 수 있고, 블록 내의 샘플들의 개수가 임계치보다 작은 경우, 해당 블록에 대하여 간단한 k MPM 리스트 구성 방법이 이용될 수 있다. 여기서, k는 MPM 리스트 내의 MPM 후보의 개수를 나타낼 수 있다.In Equation 2, TH k may mean a threshold, and may have a value such as 32, 64, 128, or the like. For example, if TH k is 64, blocks such as 4x4, 4x8 and 8x4 sizes may use the simple k MPM list construction method. In other words, TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block. Here, k may represent the number of MPM candidates in the MPM list.

예를 들어, 작은 사이즈의 블록 및 큰 사이즈의 블록 사이의 타겟 블록을 분류하기 위하여 수학식 3과 같이 너비 임계치 및 높이 임계치를 이용할 수도 있다.For example, a width threshold and a height threshold may be used as shown in Equation 3 to classify a target block between a small block and a large block.

Figure PCTKR2019009388-appb-M000003
Figure PCTKR2019009388-appb-M000003

수학식 3에서, THw는 너비 임계치를, THh는 높이 임계치를 의미할 수 있으며, THw 및 THh는 각각 4, 8, 또는 16 등과 같은 값을 가질 수 있다. 예를 들어, THw 및 THh가 각각 4인 경우, 4x4 크기의 블록들은 간단한 k MPM 리스트 구성 방법을 이용할 수 있다. In Equation 3, TH w may mean a width threshold, TH h may indicate a height threshold, and TH w and TH h may have values such as 4, 8, or 16, respectively. For example, if TH w and TH h are 4 respectively, 4 × 4 blocks may use a simple k MPM list construction method.

다시 말해, 일 실시예는 일정 이하의 사이즈를 가지는 블록은 간단한 k MPM 리스트 구성 방법을 이용하지 않도록 배제할 수 있다. 또는 제1 사이즈 및 제2 사이즈 사이의 블록에 대하여 간단한 k MPM 리스트 구성 방법을 적용할 수 있다. 이를 위해, 일 실시예는 블록의 너비 및 높이 각각을 임계치와 비교할 수 있다. 즉, 블록의 너비가 THw보다 크거나 같고, 블록의 너비가 THh보다 크거나 같은 블록에 대하여 간단한 k MPM 리스트 구성 방법을 적용할 수 있다.In other words, an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method. Alternatively, a simple k MPM list construction method may be applied to blocks between the first size and the second size. To this end, one embodiment may compare each of the width and height of the block with a threshold. That is, a simple k MPM list construction method may be applied to blocks whose width is greater than or equal to TH w and whose width is greater than or equal to TH h .

일 실시예에서 임계치 값들은 비트 레이트 절약 및 하드웨어 스루풋 간의 트레이드 오프(tradeoff)일 수 있다. 즉, 비트 레이트 절약 측면 및 하드웨어 스르풋 측면은 서로 임계치 값에 따른 트레이드 오프 관계일 수 있다. 임계치가 큰 경우, 스루풋은 비교적 작은 블록들에 대하여 정교한(sophisticated) k MPM 보다 간단한 k MPM을 적용함에 의해 증가될 수 있다. 다만, 임계치 값이 너무 큰 경우, 비트 레이트 절약이 적어질 수 있다. 따라서, 적절한 임계치 값이 비트 레이트 절약 및 스루풋 간의 적절한 밸런싱을 달성하기 위해 정의될 수 있다. 예를 들어, 아트(art) 비디오 코덱의 경우, 균형잡힌 스루풋을 위해 THk 값은 64일 수 있으나, 이에 한정되는 것은 아니다.In one embodiment the threshold values may be a tradeoff between bit rate savings and hardware throughput. That is, the bit rate saving aspect and the hardware throughput aspect may be tradeoff relations according to threshold values. If the threshold is large, throughput can be increased by applying a simpler k MPM than a sophisticated k MPM for relatively small blocks. However, if the threshold value is too large, the bit rate savings can be reduced. Thus, an appropriate threshold value can be defined to achieve proper balancing between bit rate savings and throughput. For example, in the case of an art video codec, the TH k value may be 64 for balanced throughput, but is not limited thereto.

일 실시예는 타겟 블록이 작은 블록에 속하는 등과 같이 상술한 조건을 만족하는 경우, 최악의 케이스 복잡도(worst case complexity)를 감소시키기 위해 간단한 k MPM 리스트 구성 방법이 적용될 수 있다. 예를 들어, 간단한 k MPM는 2개의 포지션 탐색 및 적은 프루닝과 조건 체크만을 수행하는 HEVC 3 MPM 리스트 구성이 될 수 있다. 또는 (HEVC로서) 좌측 및 상측 모드들을 이용할 수 있으나, 6 MPM 리스트가 생성될 수 있다. 이 경우, 복잡도는 HEVC 3 MPM 리스트 구성과 유사할 수 있으나, 6개의 MPM 후보가 생성될 수 있다.In one embodiment, when the target block satisfies the above conditions, such as belonging to a small block, a simple k MPM list construction method may be applied to reduce the worst case complexity. For example, a simple k MPM could be a HEVC 3 MPM list construction that only performs two position search and few pruning and condition checks. Or left and top modes (as HEVC), but a 6 MPM list may be generated. In this case, the complexity may be similar to the HEVC 3 MPM list construction, but six MPM candidates may be generated.

일 실시예는 상술한 조건을 만족하지 않는 경우, 정교한 k MPM 리스트 구성 방법이 적용될 수 있다. 예를 들어, 도 7에 도시된 5개의 주변 모드들이 이용된 6 MPM 리스트 구성은 코딩 성능을 향상시키기 위해 이용될 수 있다. 여기서, 주변 모드들은 현재 블록의 주변 블록들의 인트라 모드들을 나타낼 수 있다. 정교한 MPM 생성 방법들은 상대적으로 더 많은 주변 모드들이 서로 비교되기 때문에 MPM 리스트를 생성하기 위해 보다 많은 동작들(비교)이 요구될 수 있다. 다만, 정교한 MPM 리스트는 코딩 모드에 대한 향상된 예측을 제공할 수 있고, 더 높은 코딩 성능을 이끌 수 있다.If one embodiment does not satisfy the above conditions, a sophisticated k MPM list construction method may be applied. For example, a 6 MPM list construction with five peripheral modes shown in FIG. 7 may be used to improve coding performance. Here, the peripheral modes may represent intra modes of neighboring blocks of the current block. Sophisticated MPM generation methods may require more operations (compare) to generate the MPM list because relatively more peripheral modes are compared with each other. However, sophisticated MPM lists can provide improved prediction for coding modes and lead to higher coding performance.

여기서, 상술한 파라미터 k는 구성가능(configurable)하며 변경될 수 있다. 예를 들어, k는 인트라 모드의 개수가 35인 경우 3일 수 있고, 인트라 모드의 개수가 67인 경우 6일 수 있다. 다만, k는 5일 수도 있으므로, 이에 한정되는 것은 아니다.Here, the above-described parameter k is configurable and can be changed. For example, k may be 3 when the number of intra modes is 35 and 6 when k is the number of intra modes. However, k may be 5, but is not limited thereto.

예를 들어, 간단한 k MPM 리스트는 k가 6인 경우 표 1과 같이 구성될 수 있다.For example, a simple k MPM list may be configured as shown in Table 1 when k is 6.

Figure PCTKR2019009388-appb-T000001
Figure PCTKR2019009388-appb-T000001

표 1에서, DiagonalDownIntraMode는 하향 대각 인트라 예측 모드, 좌하향 대각 인트라 예측 모드 또는 2번 인트라 예측 모드를 나타낼 수 있고, DiagonalIntraMode는 대각 인트라 예측 모드, 좌상향 대각 인트라 예측 모드 또는 34번 인트라 예측 모드를 나타낼 수 있다. 또한, DiagonalUpIntraMode는 상향 대각 인트라 예측 모드, 우상향 대각 인트라 예측 모드 또는 66번 인트라 예측 모드를 나타낼 수 있다.In Table 1, DiagonalDownIntraMode can represent a downward diagonal intra prediction mode, a left downward diagonal intra prediction mode, or an intra prediction mode 2, and DiagonalIntraMode can represent a diagonal intra prediction mode, a left upward diagonal intra prediction mode, or an intra 34 prediction mode. Can be. In addition, DiagonalUpIntraMode may indicate an upward diagonal intra prediction mode, a right upward diagonal intra prediction mode, or an intra prediction mode 66.

도 9는 블록 사이즈 기반의 MPM 리스트 구성 방법의 다른 예를 개략적으로 나타낸다.9 schematically illustrates another example of a block size based MPM list construction method.

MPM 리스트는 간단한(simple) MPM 리스트 및 정교한(sophisticated) MPM 리스트를 포함할 수 있다. 예를 들어, 간단한 MPM 리스트 구성은 정교한 MPM 리스트 구성과 공통 부분을 공유할 수도 있다.The MPM list may include a simple MPM list and a sophisticated MPM list. For example, a simple MPM list scheme may share common parts with a sophisticated MPM list scheme.

도 9를 참조하면, 간단한 k MPM 리스트 구성 부분은 "k MPM Part A" 및 "k MPM Part B"로 구성될 수 있으며, 정교한 k MPM 리스트 구성 부분은 "k MPM Part A" 및 "k MPM Part C"로 구성될 수 있다. 즉, 간단한 k MPM 리스트 구성 방법은 정교한 k MPM 리스트 구성 방법과 일부 공통된 프로세스를 가질 수 있다.Referring to FIG. 9, the simple k MPM list construct may be composed of "k MPM Part A" and "k MPM Part B", and the sophisticated k MPM list construct may be composed of "k MPM Part A" and "k MPM Part. C ". That is, the simple k MPM list construction method may have some common processes with the sophisticated k MPM list construction method.

예를 들어, k MPM Part A는 좌측 및 상측 조건 기반의 리스트 구성을 포함할 수 있고, k MPM Part B도 좌측 및 상측 조건 기반의 리스트 구성을 포함할 수 있다. 다만, k MPM Part C는 도 7에서 도시된 주변 블록 A, B, C, D 및 E와 같이 다른 것들 기반의 리스트 구성을 포함할 수 있다.For example, k MPM Part A may include a list structure based on left and top conditions, and k MPM Part B may also include a list structure based on left and top conditions. However, k MPM Part C may include a list structure based on other things such as neighboring blocks A, B, C, D, and E shown in FIG. 7.

도 10은 본 발명에 따른 인코딩 장치에 의한 영상 인코딩 방법을 개략적으로 나타낸다.10 schematically illustrates an image encoding method by an encoding apparatus according to the present invention.

도 10에서 개시된 방법은 도 2에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 10의 S1000 내지 S1030은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S1040은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 현재 블록에 대한 원본 샘플과 예측 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플을 도출하는 과정은 상기 인코딩 장치의 감산부에 의하여 수행될 수 있고, 상기 레지듀얼 샘플을 기반으로 상기 현재 블록에 대한 레지듀얼에 관한 정보를 생성하는 과정은 상기 인코딩 장치의 변환부에 의하여 수행될 수 있고, 상기 레지듀얼에 관한 정보 및 현재 블록의 예측에 대한 정보를 인코딩하는 과정은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.The method disclosed in FIG. 10 may be performed by the encoding apparatus disclosed in FIG. 2. Specifically, for example, S1000 to S1030 of FIG. 10 may be performed by the prediction unit of the encoding apparatus, and S1040 may be performed by the entropy encoding unit of the encoding apparatus. In addition, although not shown, a process of deriving a residual sample for the current block based on an original sample and a prediction sample for the current block may be performed by a subtractor of the encoding apparatus. The generating of the information about the residual on the basis of the current block may be performed by a converter of the encoding apparatus. The encoding of the information on the residual and the prediction of the current block may be performed. It may be performed by the entropy encoding unit of the encoding device.

인코딩 장치는 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성한다(S1000). MPM 리스트는 MPM 후보 리스트 및 candModeList 등 다양한 용어로 지칭될 수 있다. 상기 MPM 리스트는 플래너 모드를 후보로 포함하거나 포함하지 않도록 구성될 수 있다. 예를 들어, 상기 MPM 리스트가 플래너 모드를 후보로 포함하는 경우 상기 MPM 리스트는 6개의 후보를 가질 수 있고, 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 상기 MPM 리스트는 3개 또는 5개의 후보를 가질 수 있다. 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 현재 블록의 인트라 예측 모드가 플래너 모드가 아닌지 나타내는 not 플래너 플래그(ex. intra_luma_not_planar_flag)가 시그널링될 수 있다.The encoding apparatus configures an MPM list based on neighboring blocks of the current block (S1000). The MPM list may be referred to in various terms such as MPM candidate list and candModeList. The MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates. When the MPM list does not include a planner mode as a candidate, the MPM list may have three or five candidates. You can have a candidate. When the MPM list does not include a planner mode as a candidate, a not planner flag (eg, intra_luma_not_planar_flag) indicating whether an intra prediction mode of the current block is not a planner mode may be signaled.

일 실시예에서 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출될 수 있고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 수학식 2와 같이 계산될 수 있다. In an embodiment, the MPM list may be derived based on the size of the current block, and the size of the current block may be calculated as Equation 2 by multiplying the width of the current block and the height of the current block. .

예를 들어, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치(THk) 미만인 경우 간단한(simple) MPM 리스트를 포함할 수 있다. 예를 들어, THk가 64인 경우, 4x4, 4x8 및 8x4 크기와 같은 블록들은 간단한(simple) k MPM 리스트 구성 방법을 이용할 수 있다. 다시 말해, THk는 블록의 사이즈와 관련된 임계치를 나타낼 수 있으며, 블록의 너비(block_width) 및 블록의 높이(block_height)를 곱하여 획득되는 블록 내의 샘플들의 개수와 임계치를 비교할 수 있고, 블록 내의 샘플들의 개수가 임계치보다 작은 경우, 해당 블록에 대하여 간단한 k MPM 리스트 구성 방법이 이용될 수 있다.For example, the MPM list may include a simple MPM list when the size of the current block is less than a first threshold TH k . For example, if TH k is 64, blocks such as 4x4, 4x8 and 8x4 sizes may use the simple k MPM list construction method. In other words, TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block.

또는 상기 MPM 리스트는 수학식 3과 같이 상기 현재 블록의 사이즈가 제1 임계치(THk) 미만이고, 상기 현재 블록의 너비가 제2 임계치(THw) 이상이고, 상기 현재 블록의 높이가 제3 임계치(THh) 이상인 경우 상기 간단한 MPM 리스트를 포함할 수 있다. 예를 들어, THw 및 THh가 각각 4인 경우, 4x4 크기의 블록들은 간단한 k MPM 리스트 구성 방법을 이용할 수 있다. 다시 말해, 일 실시예는 일정 이하의 사이즈를 가지는 블록은 간단한 k MPM 리스트 구성 방법을 이용하지 않도록 배제할 수 있다.Alternatively, in the MPM list, as in Equation 3, the size of the current block is less than the first threshold TH k , the width of the current block is greater than or equal to the second threshold TH w , and the height of the current block is third. If it is greater than or equal to the threshold value TH h , the simple MPM list may be included. For example, if TH w and TH h are 4 respectively, 4 × 4 blocks may use a simple k MPM list construction method. In other words, an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method.

상기 간단한 MPM 리스트는 주변(neighbor) 인트라 예측 모드, 도출된(derived) 인트라 예측 모드 및 디폴트(default) 인트라 예측 모드를 기반으로 구성되고, 상기 주변 인트라 예측 모드는 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 포함할 수 있다.The simple MPM list is configured based on a neighbor intra prediction mode, a derived intra prediction mode, and a default intra prediction mode, wherein the peripheral intra prediction mode is a left neighboring block and an upper side of the current block. It may include an intra prediction mode of at least one of the neighboring blocks.

예를 들어, 상기 간단한 MPM 리스트는 표 1과 같이 구성될 수 있다. 다시 말해, 상기 간단한 MPM 리스트는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드(leftIntraMode), 상기 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드(leftIntraMode -1), 상기 번호를 기준으로 +1 번의 인트라 예측 모드(leftIntraMode +1), 플래너 모드(PlanarIntraMode), 상기 번호를 기준으로 +3 번의 인트라 예측 모드(leftIntraMode +3) 및 DC 모드(DCIntraMode)를 포함할 수 있다. 또는 상기 간단한 MPM 리스트는 플래너 모드(PlanarIntraMode), 수직 방향의 인트라 예측 모드(VerticalIntraMode), 좌하향 대각 인트라 예측 모드(DiagonalDownIntraMode), 수평 방향의 인트라 예측 모드(HorizontalIntraMode), 좌상향 대각 인트라 예측 모드의 번호를 기준으로 +3 번의 인트라 예측 모드(DiagonalIntraMode +3) 및 우상향 대각 인트라 예측 모드(DiagonalUpIntraMode)를 포함할 수 있다. 또는 상기 간단한 MPM 리스트는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드(leftIntraMode), 상기 현재 블록의 상측 주변 블록의 인트라 예측 모드(aboveIntraMode), 플래너 모드(PlanarIntraMode), 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드(leftIntraMode -1), 상기 번호를 기준으로 +1 번의 인트라 예측 모드(leftIntraMode +1), 상기 번호와 상기 상측 주변 블록의 인트라 예측 모드의 번호의 합을 기준으로 +2 번의 인트라 예측 모드(leftIntraMode + aboveIntraMode +2)를 포함할 수 있다.For example, the simple MPM list may be configured as shown in Table 1. In other words, the simple MPM list includes -1 intra prediction mode (leftIntraMode -1), the number based on the number of intra prediction modes of the left neighboring block of the current block, the number of intra prediction modes of the left neighboring block, and the number The intra prediction mode may include +1 intra prediction mode (leftIntraMode +1), the planar mode (PlanarIntraMode), the +3 intra prediction mode (leftIntraMode +3), and the DC mode (DCIntraMode) based on the number. Alternatively, the simple MPM list includes a planar mode (PlanarIntraMode), a vertical intra prediction mode (VerticalIntraMode), a left downward diagonal intra prediction mode (DiagonalDownIntraMode), a horizontal intra prediction mode (HorizontalIntraMode), and a left upward diagonal intra prediction mode. It may include a +3 intra prediction mode (DiagonalIntraMode +3) and a right upward diagonal intra prediction mode (DiagonalUpIntraMode). Alternatively, the simple MPM list may include an intra prediction mode (leftIntraMode) of the left neighboring block of the current block, an intra prediction mode of the upper neighboring block of the current block (aboveIntraMode), a planar mode (PlanarIntraMode), and a left neighboring block of the current block. -1 intra prediction mode (leftIntraMode -1) based on the number of intra prediction modes, +1 intra prediction mode (leftIntraMode +1) based on the number, the number of intra prediction modes of the number and the upper neighboring block It may include +2 intra prediction modes (leftIntraMode + aboveIntraMode +2) based on the sum of.

예를 들어, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 상기 제1 임계치(THk) 이상인 경우 정교한(sophisticated) MPM 리스트를 포함할 수 있다. 여기서, 상기 정교한 MPM 리스트는 상기 간단한 MPM 리스트와 적어도 하나의 MPM 후보를 공통적으로 포함할 수 있다. 예를 들어, 간단한 MPM 리스트의 구성은 현재 블록의 좌측 주변 블록 및 상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 기반으로 구성될 수 있으나, 정교한 MPM 리스트의 구성은 현재 블록의 좌하측 주변 블록, 좌측 주변 블록, 좌상측 주변 블록, 상측 주변 블록 및 우상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 기반으로 구성될 수 있다. 즉, 좌측 주변 블록 및 상측 주변 블록과 관련된 후보가 공통적으로 이용될 수 있다. For example, the MPM list may include a sophisticated MPM list when the size of the current block is greater than or equal to the first threshold TH k . Here, the sophisticated MPM list may include the simple MPM list and at least one MPM candidate in common. For example, the configuration of the simple MPM list may be configured based on the intra prediction mode of at least one of the left neighboring block and the upper neighboring block of the current block. The intra prediction mode may be configured based on at least one of a neighboring block, an upper left neighboring block, an upper neighboring block, and a right upper neighboring block. That is, candidates associated with the left neighboring block and the upper neighboring block may be commonly used.

인코딩 장치는 MPM 리스트를 기반으로 현재 블록의 인트라 예측 모드를 도출한다(S1010). 즉, MPM 리스트 내의 후보 중 현재 블록의 예측을 위한 인트라 예측 모드를 도출할 수 있다. 또는, MPM 리스트 내의 후보 중 현재 블록의 예측을 위한 후보를 선택할 수 있으며, 선택한 후보의 인트라 예측 모드를 도출할 수 있다.The encoding apparatus derives the intra prediction mode of the current block based on the MPM list (S1010). That is, an intra prediction mode for prediction of the current block among candidates in the MPM list may be derived. Alternatively, a candidate for prediction of the current block among the candidates in the MPM list may be selected, and an intra prediction mode of the selected candidate may be derived.

인코딩 장치는 현재 블록의 MPM 인덱스를 도출한다(S1020). 여기서, MPM 인덱스는 MPM 리스트에 포함된 MPM 후보들 중 하나를 지시하는 정보를 의미할 수 있다. 즉, MPM 인덱스는 MPM 리스트 내의 후보 중 현재 블록의 예측을 위하여 도출한 인트라 예측 모드를 가지는 후보를 지시하는 정보일 수 있다. MPM 인덱스는 인덱스라 지칭할 수 있으며, MPM 인덱스는 mpm_idx 또는 intra_luma_mpm_idx 신텍스 요소의 형태로 시그널링될 수 있다.The encoding apparatus derives the MPM index of the current block (S1020). Here, the MPM index may mean information indicating one of the MPM candidates included in the MPM list. That is, the MPM index may be information indicating a candidate having an intra prediction mode derived for prediction of the current block among candidates in the MPM list. The MPM index may be referred to as an index, and the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.

인코딩 장치는 인트라 예측 모드를 기반으로 현재 블록에 대한 예측된 블록을 생성한다(S1030). 여기서, 도출한 인트라 예측 모드는 방향성 모드일 수 있고, 비방향성 모드일 수 있다. 인코딩 장치는 인트라 예측 모드를 기반으로 예측 샘플을 생성할 수 있고, 예측 모드에 따라 상기 예측 샘플을 바로 복원 샘플로 이용할 수도 있다. 또한, 인코딩 장치는 원본 샘플과 상기 생성된 예측 샘플을 기반으로 레지듀얼(residual) 샘플을 생성할 수 있다. 인코딩 장치는 상기 레지듀얼 샘플을 기반으로 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 상기 복원 샘플을 도출할 수 있다. 즉, 인코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 더하여 상기 복원 샘플을 도출할 수 있다. 여기서, 인코딩 장치는 원본 블록과 예측된 블록을 기반으로 레지듀얼 블록을 생성할 수도 있으며, 이를 기반으로 레지듀얼에 관한 정보를 생성할 수도 있다. 또한, 인코딩 장치는 상기 레지듀얼에 관한 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.The encoding apparatus generates a predicted block for the current block based on the intra prediction mode (S1030). Here, the derived intra prediction mode may be a directional mode or a non-directional mode. The encoding apparatus may generate a prediction sample based on the intra prediction mode, and may use the prediction sample directly as a reconstruction sample according to the prediction mode. In addition, the encoding apparatus may generate a residual sample based on the original sample and the generated prediction sample. The encoding apparatus may generate information about the residual based on the residual sample. The information about the residual may include transform coefficients related to the residual sample. The encoding apparatus may derive the reconstructed sample based on the prediction sample and the residual sample. That is, the encoding apparatus may derive the reconstructed sample by adding the prediction sample and the residual sample. Here, the encoding apparatus may generate a residual block based on the original block and the predicted block, and may generate information about the residual based on this. In addition, the encoding apparatus may output information in the form of a bitstream by encoding the information about the residual. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium.

인코딩 장치는 MPM 인덱스를 포함하는 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력한다(S1040). 인코딩 장치는 상기 현재 블록의 예측에 대한 정보를 포함하는 영상 정보를 인코딩하여 비트스트림 형태로 출력할 수 있다. 예를 들어, 인코딩 장치는 상기 현재 블록의 예측 모드를 결정할 수 있고, 상기 예측 모드를 나타내는 정보를 생성할 수 있다. 또한, 상기 MPM 인덱스에 관한 정보를 생성할 수 있다. 또한, 상기 레지듀얼에 관한 정보를 생성할 수 있다. 상술한 현재 블록의 예측에 대한 정보는 상술한 정보들을 모두 포함할 수도 있으며, 일부만을 포함할 수도 있다. 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다.The encoding apparatus generates, encodes, and outputs prediction information about the current block including the MPM index (S1040). The encoding apparatus may encode and output image information including information on prediction of the current block in a bitstream form. For example, the encoding apparatus may determine the prediction mode of the current block, and generate information indicating the prediction mode. Also, information about the MPM index may be generated. In addition, it is possible to generate information about the residual. The above-described information on prediction of the current block may include all of the above-described information or may include only a part of the information. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium.

도 11은 본 발명에 따른 디코딩 장치에 의한 영상 디코딩 방법을 개략적으로 나타낸다.11 schematically illustrates an image decoding method by a decoding apparatus according to the present invention.

도 11에서 개시된 방법은 도 3에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 11의 S1100 내지 S61130은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다. 또한, 비록 도시되지는 않았으나 비트스트림을 통하여 현재 블록의 예측에 대한 정보 및 레지듀얼에 관한 정보를 포함하는 영상 정보를 획득하는 과정은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있고, 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플을 도출하는 과정은 상기 디코딩 장치의 역변환부에 의하여 수행될 수 있고, 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 픽처를 생성하는 과정은 상기 디코딩 장치의 가산부에 의하여 수행될 수 있다.The method disclosed in FIG. 11 may be performed by the decoding apparatus disclosed in FIG. 3. Specifically, for example, S1100 to S61130 of FIG. 11 may be performed by the prediction unit of the decoding apparatus. In addition, although not shown, a process of acquiring image information including information on prediction of a current block and information on residual through a bitstream may be performed by an entropy decoding unit of the decoding apparatus. The process of deriving the residual sample for the current block based on the dual information may be performed by an inverse transform unit of the decoding apparatus, and the process of generating a reconstructed picture based on the prediction sample and the residual sample may be performed. It may be performed by an adder of the decoding apparatus.

디코딩 장치는 현재 블록의 MPM 인덱스를 획득한다(S1100). 여기서, MPM 인덱스는 MPM 리스트에 포함된 MPM 후보들 중 하나를 지시하는 정보를 의미할 수 있다. 즉, MPM 인덱스에 의해 지시되는 MPM 후보를 기반으로 인트라 예측을 수행할 수 있다. MPM 인덱스는 인덱스라 지칭할 수 있으며, MPM 인덱스는 mpm_idx 또는 intra_luma_mpm_idx 신텍스 요소의 형태로 시그널링될 수 있다.The decoding apparatus obtains an MPM index of the current block (S1100). Here, the MPM index may mean information indicating one of the MPM candidates included in the MPM list. That is, intra prediction may be performed based on the MPM candidate indicated by the MPM index. The MPM index may be referred to as an index, and the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element.

디코딩 장치는 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성한다(S1110). MPM 리스트는 MPM 후보 리스트 및 candModeList 등 다양한 용어로 지칭될 수 있다. 상기 MPM 리스트는 플래너 모드를 후보로 포함하거나 포함하지 않도록 구성될 수 있다. 예를 들어, 상기 MPM 리스트가 플래너 모드를 후보로 포함하는 경우 상기 MPM 리스트는 6개의 후보를 가질 수 있고, 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 상기 MPM 리스트는 3개 또는 5개의 후보를 가질 수 있다. 상기 MPM 리스트가 플래너 모드를 후보로 포함하지 않는 경우 현재 블록의 인트라 예측 모드가 플래너 모드가 아닌지 나타내는 not 플래너 플래그(ex. intra_luma_not_planar_flag)가 시그널링될 수 있다.The decoding apparatus configures an MPM list based on neighboring blocks of the current block (S1110). The MPM list may be referred to in various terms such as MPM candidate list and candModeList. The MPM list may be configured to include or not include a planner mode as a candidate. For example, when the MPM list includes a planner mode as a candidate, the MPM list may have six candidates. When the MPM list does not include a planner mode as a candidate, the MPM list may have three or five candidates. You can have a candidate. When the MPM list does not include a planner mode as a candidate, a not planner flag (eg, intra_luma_not_planar_flag) indicating whether an intra prediction mode of the current block is not a planner mode may be signaled.

일 실시예에서 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출될 수 있고, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 수학식 2와 같이 계산될 수 있다. In an embodiment, the MPM list may be derived based on the size of the current block, and the size of the current block may be calculated as Equation 2 by multiplying the width of the current block and the height of the current block. .

예를 들어, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치(THk) 미만인 경우 간단한(simple) MPM 리스트를 포함할 수 있다. 예를 들어, THk가 64인 경우, 4x4, 4x8 및 8x4 크기와 같은 블록들은 간단한(simple) k MPM 리스트 구성 방법을 이용할 수 있다. 다시 말해, THk는 블록의 사이즈와 관련된 임계치를 나타낼 수 있으며, 블록의 너비(block_width) 및 블록의 높이(block_height)를 곱하여 획득되는 블록 내의 샘플들의 개수와 임계치를 비교할 수 있고, 블록 내의 샘플들의 개수가 임계치보다 작은 경우, 해당 블록에 대하여 간단한 k MPM 리스트 구성 방법이 이용될 수 있다.For example, the MPM list may include a simple MPM list when the size of the current block is less than a first threshold TH k . For example, if TH k is 64, blocks such as 4x4, 4x8 and 8x4 sizes may use the simple k MPM list construction method. In other words, TH k may represent a threshold associated with the size of the block, compare the threshold with the number of samples in the block obtained by multiplying the block's width (block_width) and the block's height (block_height), If the number is smaller than the threshold, a simple k MPM list construction method may be used for the block.

또는 상기 MPM 리스트는 수학식 3과 같이 상기 현재 블록의 사이즈가 제1 임계치(THk) 미만이고, 상기 현재 블록의 너비가 제2 임계치(THw) 이상이고, 상기 현재 블록의 높이가 제3 임계치(THh) 이상인 경우 상기 간단한 MPM 리스트를 포함할 수 있다. 예를 들어, THw 및 THh가 각각 4인 경우, 4x4 크기의 블록들은 간단한 k MPM 리스트 구성 방법을 이용할 수 있다. 다시 말해, 일 실시예는 일정 이하의 사이즈를 가지는 블록은 간단한 k MPM 리스트 구성 방법을 이용하지 않도록 배제할 수 있다.Alternatively, in the MPM list, as in Equation 3, the size of the current block is less than the first threshold TH k , the width of the current block is greater than or equal to the second threshold TH w , and the height of the current block is third. If it is greater than or equal to the threshold value TH h , the simple MPM list may be included. For example, if TH w and TH h are 4 respectively, 4 × 4 blocks may use a simple k MPM list construction method. In other words, an embodiment may exclude blocks having a predetermined size or less from using a simple k MPM list construction method.

상기 간단한 MPM 리스트는 주변(neighbor) 인트라 예측 모드, 도출된(derived) 인트라 예측 모드 및 디폴트(default) 인트라 예측 모드를 기반으로 구성되고, 상기 주변 인트라 예측 모드는 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 포함할 수 있다.The simple MPM list is configured based on a neighbor intra prediction mode, a derived intra prediction mode, and a default intra prediction mode, wherein the peripheral intra prediction mode is a left neighboring block and an upper side of the current block. It may include an intra prediction mode of at least one of the neighboring blocks.

예를 들어, 상기 간단한 MPM 리스트는 표 1과 같이 구성될 수 있다. 다시 말해, 상기 간단한 MPM 리스트는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드(leftIntraMode), 상기 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드(leftIntraMode -1), 상기 번호를 기준으로 +1 번의 인트라 예측 모드(leftIntraMode +1), 플래너 모드(PlanarIntraMode), 상기 번호를 기준으로 +3 번의 인트라 예측 모드(leftIntraMode +3) 및 DC 모드(DCIntraMode)를 포함할 수 있다. 또는 상기 간단한 MPM 리스트는 플래너 모드(PlanarIntraMode), 수직 방향의 인트라 예측 모드(VerticalIntraMode), 좌하향 대각 인트라 예측 모드(DiagonalDownIntraMode), 수평 방향의 인트라 예측 모드(HorizontalIntraMode), 좌상향 대각 인트라 예측 모드의 번호를 기준으로 +3 번의 인트라 예측 모드(DiagonalIntraMode +3) 및 우상향 대각 인트라 예측 모드(DiagonalUpIntraMode)를 포함할 수 있다. 또는 상기 간단한 MPM 리스트는 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드(leftIntraMode), 상기 현재 블록의 상측 주변 블록의 인트라 예측 모드(aboveIntraMode), 플래너 모드(PlanarIntraMode), 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드(leftIntraMode -1), 상기 번호를 기준으로 +1 번의 인트라 예측 모드(leftIntraMode +1), 상기 번호와 상기 상측 주변 블록의 인트라 예측 모드의 번호의 합을 기준으로 +2 번의 인트라 예측 모드(leftIntraMode + aboveIntraMode +2)를 포함할 수 있다.For example, the simple MPM list may be configured as shown in Table 1. In other words, the simple MPM list includes -1 intra prediction mode (leftIntraMode -1), the number based on the number of intra prediction modes of the left neighboring block of the current block, the number of intra prediction modes of the left neighboring block, and the number The intra prediction mode may include +1 intra prediction mode (leftIntraMode +1), the planar mode (PlanarIntraMode), the +3 intra prediction mode (leftIntraMode +3), and the DC mode (DCIntraMode) based on the number. Alternatively, the simple MPM list includes a planar mode (PlanarIntraMode), a vertical intra prediction mode (VerticalIntraMode), a left downward diagonal intra prediction mode (DiagonalDownIntraMode), a horizontal intra prediction mode (HorizontalIntraMode), and a left upward diagonal intra prediction mode. It may include a +3 intra prediction mode (DiagonalIntraMode +3) and a right upward diagonal intra prediction mode (DiagonalUpIntraMode). Alternatively, the simple MPM list may include an intra prediction mode (leftIntraMode) of the left neighboring block of the current block, an intra prediction mode of the upper neighboring block of the current block (aboveIntraMode), a planar mode (PlanarIntraMode), and a left neighboring block of the current block. -1 intra prediction mode (leftIntraMode -1) based on the number of intra prediction modes, +1 intra prediction mode (leftIntraMode +1) based on the number, the number of intra prediction modes of the number and the upper neighboring block It may include +2 intra prediction modes (leftIntraMode + aboveIntraMode +2) based on the sum of.

예를 들어, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 상기 제1 임계치(THk) 이상인 경우 정교한(sophisticated) MPM 리스트를 포함할 수 있다. 여기서, 상기 정교한 MPM 리스트는 상기 간단한 MPM 리스트와 적어도 하나의 MPM 후보를 공통적으로 포함할 수 있다. 예를 들어, 간단한 MPM 리스트의 구성은 현재 블록의 좌측 주변 블록 및 상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 기반으로 구성될 수 있으나, 정교한 MPM 리스트의 구성은 현재 블록의 좌하측 주변 블록, 좌측 주변 블록, 좌상측 주변 블록, 상측 주변 블록 및 우상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 기반으로 구성될 수 있다. 즉, 좌측 주변 블록 및 상측 주변 블록과 관련된 후보가 공통적으로 이용될 수 있다. For example, the MPM list may include a sophisticated MPM list when the size of the current block is greater than or equal to the first threshold TH k . Here, the sophisticated MPM list may include the simple MPM list and at least one MPM candidate in common. For example, the configuration of the simple MPM list may be configured based on the intra prediction mode of at least one of the left neighboring block and the upper neighboring block of the current block. The intra prediction mode may be configured based on at least one of a neighboring block, an upper left neighboring block, an upper neighboring block, and a right upper neighboring block. That is, candidates associated with the left neighboring block and the upper neighboring block may be commonly used.

디코딩 장치는 MPM 인덱스 및 MPM 리스트를 기반으로 현재 블록의 인트라 예측 모드를 도출한다(S1120). 즉, MPM 리스트 내의 후보 중 MPM 인덱스가 가리키는 인트라 예측 모드를 도출할 수 있다. 또는, MPM 리스트 내의 후보 중 MPM 인덱스가 가리키는 또는 지시하는 후보를 선택할 수 있으며, 선택한 후보의 인트라 예측 모드를 도출할 수 있다.The decoding apparatus derives an intra prediction mode of the current block based on the MPM index and the MPM list (S1120). That is, the intra prediction mode indicated by the MPM index among the candidates in the MPM list can be derived. Alternatively, a candidate indicated or indicated by the MPM index among the candidates in the MPM list may be selected, and an intra prediction mode of the selected candidate may be derived.

디코딩 장치는 인트라 예측 모드를 기반으로 현재 블록에 대한 예측된 블록을 생성한다(S1130). 여기서, 도출한 인트라 예측 모드는 방향성 모드일 수 있고, 비방향성 모드일 수 있다. 디코딩 장치는 인트라 예측 모드를 기반으로 예측 샘플을 생성할 수 있고, 예측 모드에 따라 상기 예측 샘플을 바로 복원 샘플로 이용할 수도 있고, 또는 상기 예측 샘플에 레지듀얼 샘플을 더하여 복원 샘플을 생성할 수도 있다. 디코딩 장치는 상기 현재 블록에 대한 레지듀얼 샘플이 존재하는 경우, 상기 비트스트림으로부터 상기 현재 블록에 대한 레지듀얼에 관한 정보를 획득할 수 있다. 상기 레지듀얼에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.The decoding apparatus generates a predicted block for the current block based on the intra prediction mode (S1130). Here, the derived intra prediction mode may be a directional mode or a non-directional mode. The decoding apparatus may generate a prediction sample based on an intra prediction mode, and may directly use the prediction sample as a reconstruction sample according to the prediction mode, or generate a reconstruction sample by adding a residual sample to the prediction sample. . If there is a residual sample for the current block, the decoding apparatus may obtain information about the residual for the current block from the bitstream. The information about the residual may include transform coefficients regarding the residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture to improve subjective / objective picture quality as needed.

상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiment, the methods are described based on a flowchart as a series of steps or blocks, but the present invention is not limited to the order of the steps, and any steps may occur in a different order or at the same time than the other steps described above. have. In addition, those skilled in the art will appreciate that the steps shown in the flowcharts are not exclusive and that other steps may be included or one or more steps in the flowcharts may be deleted without affecting the scope of the present invention.

상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.The above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.

본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다. When the embodiments of the present invention are implemented in software, the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function. The module may be stored in memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor by a variety of known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.

도 12는 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.12 schematically illustrates a content streaming system structure.

즉, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.That is, the embodiments described in the present invention may be implemented and performed on a processor, a microprocessor, a controller or a chip. For example, the functional units shown in each drawing may be implemented and performed 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 Recorder) 등을 포함할 수 있다.In addition, the decoding apparatus and encoding apparatus to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, and mobile streaming. Devices, storage media, camcorders, on-demand (VoD) service providing devices, OTT video (Over the top video) devices, Internet streaming service providing devices, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. It may be included and used to process a video signal or a data signal. For example, the OTT video device may include a game console, a Blu-ray player, an Internet access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), and the like.

또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다. 또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독 가능한 캐리어 상에 저장될 수 있다.In addition, the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, 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 types of storage devices and distributed storage devices for storing computer readable data. The computer-readable recording medium may be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical disc. It may include a data storage device. The computer-readable recording medium also includes media embodied in the form of a carrier wave (for example, transmission over 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. In addition, embodiments of the present invention may be implemented as a computer program product by a program code, the program code may be performed on a computer by an embodiment of the present invention. The program code may be stored on a carrier readable by a computer.

또한, 본 발명이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.In addition, the 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 compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server. As another example, when multimedia input devices such as smart phones, cameras, camcorders, etc. 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 the user device based on a user request through the web server, and the web server serves as an intermediary for informing the user of what service there is. When a user requests a desired service from the web server, the web server transmits it to a 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 this case, the control server plays a role of controlling a command / response between devices in the content streaming system.

상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server may receive content from a media store and / or an encoding server. For example, when the 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 digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, glass glasses, head mounted displays), digital TVs, desktops Computer, digital signage, and the like. Each server in the content streaming system may operate as a distributed server, in which case data received from each server may be distributed.

Claims (15)

디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,In the image decoding method performed by the decoding apparatus, 현재 블록의 MPM(Most Probable Mode) 인덱스를 획득하는 단계;Obtaining a Most Probable Mode (MPM) index of the current block; 상기 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성하는 단계;Constructing an MPM list based on neighboring blocks of the current block; 상기 MPM 리스트 및 상기 MPM 인덱스를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 단계; 및Deriving an intra prediction mode of the current block based on the MPM list and the MPM index; And 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 단계를 포함하고,Generating a predicted block for the current block based on the intra prediction mode, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고,The MPM list is derived based on the size of the current block, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 하는, 영상 디코딩 방법.And the size of the current block is calculated by multiplying the width of the current block by the height of the current block. 제1항에 있어서,The method of claim 1, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치 미만인 경우 간단한(simple) MPM 리스트를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And the MPM list comprises a simple MPM list if the size of the current block is less than a first threshold. 제1항에 있어서,The method of claim 1, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치 미만이고, 상기 현재 블록의 너비가 제2 임계치 이상이고, 상기 현재 블록의 높이가 제3 임계치 이상인 경우 상기 간단한 MPM 리스트를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.The MPM list includes the simple MPM list when the size of the current block is less than a first threshold, the width of the current block is greater than or equal to a second threshold, and the height of the current block is greater than or equal to a third threshold. , Video decoding method. 제2항에 있어서,The method of claim 2, 상기 간단한 MPM 리스트는,The simple MPM list, 주변(neighbor) 인트라 예측 모드, 도출된(derived) 인트라 예측 모드 및 디폴트(default) 인트라 예측 모드를 기반으로 구성되고,Configured based on a neighbor intra prediction mode, a derived intra prediction mode, and a default intra prediction mode, 상기 주변 인트라 예측 모드는 상기 현재 블록의 좌측 주변 블록 및 상측 주변 블록 중 적어도 하나의 인트라 예측 모드를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.The neighbor intra prediction mode includes an intra prediction mode of at least one of a left neighbor block and an upper neighbor block of the current block. 제2항에 있어서,The method of claim 2, 상기 간단한 MPM 리스트는,The simple MPM list, 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드, 상기 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드, 상기 번호를 기준으로 +1 번의 인트라 예측 모드, 플래너(planar) 모드, 상기 번호를 기준으로 +3 번의 인트라 예측 모드 및 DC 모드를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.An intra prediction mode of the left neighboring block of the current block, an intra prediction mode of the number 1 of the intra prediction mode of the left neighboring block, an intra prediction mode of the +1 number of times based on the number, a planar mode, And an intra prediction mode and a DC mode of +3 times based on the number. 제2항에 있어서,The method of claim 2, 상기 간단한 MPM 리스트는,The simple MPM list, 플래너(planar) 모드, 수직 방향의 인트라 예측 모드, 좌하향 대각 인트라 예측 모드, 수평 방향의 인트라 예측 모드, 좌상향 대각 인트라 예측 모드의 번호를 기준으로 +3 번의 인트라 예측 모드 및 우상향 대각 인트라 예측 모드를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.+3 intra prediction modes and right upward diagonal intra prediction modes based on the number of planar modes, vertical intra prediction modes, left downward diagonal intra prediction modes, horizontal intra prediction modes, and left upward diagonal intra prediction modes. Image decoding method comprising a. 제2항에 있어서,The method of claim 2, 상기 간단한 MPM 리스트는,The simple MPM list, 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드, 상기 현재 블록의 상측 주변 블록의 인트라 예측 모드, 플래너(planar) 모드, 상기 현재 블록의 좌측 주변 블록의 인트라 예측 모드의 번호를 기준으로 -1 번의 인트라 예측 모드, 상기 번호를 기준으로 +1 번의 인트라 예측 모드, 상기 번호와 상기 상측 주변 블록의 인트라 예측 모드의 번호의 합을 기준으로 +2 번의 인트라 예측 모드를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.-1 intra based on the number of the intra prediction mode of the left neighboring block of the current block, the intra prediction mode of the upper neighboring block of the current block, the planar mode, and the intra prediction mode of the left neighboring block of the current block And a prediction mode, an intra prediction mode +1 times based on the number, and an intra prediction mode +2 times based on the sum of the number and the number of intra prediction modes of the upper neighboring block. . 제2항에 있어서,The method of claim 2, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 상기 제1 임계치 이상인 경우 정교한(sophisticated) MPM 리스트를 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And the MPM list comprises a sophisticated MPM list if the size of the current block is greater than or equal to the first threshold. 제8항에 있어서,The method of claim 8, 상기 정교한 MPM 리스트는 상기 간단한 MPM 리스트와 적어도 하나의 MPM 후보를 공통적으로 포함하는 것을 특징으로 하는, 영상 디코딩 방법.And the elaborate MPM list comprises the simple MPM list and at least one MPM candidate in common. 인코딩 장치에 의하여 수행되는 영상 인코딩 방법에 있어서,In the video encoding method performed by the encoding device, 현재 블록의 주변 블록들을 기반으로 MPM(Most Probable Mode) 리스트를 구성하는 단계;Constructing a Most Probable Mode (MPM) list based on neighboring blocks of the current block; 상기 MPM 리스트를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하는 단계; Deriving an intra prediction mode of the current block based on the MPM list; 상기 현재 블록의 MPM 인덱스를 도출하는 단계;Deriving an MPM index of the current block; 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 단계; 및Generating a predicted block for the current block based on the intra prediction mode; And 상기 MPM 인덱스를 포함하는 상기 현재 블록에 대한 예측 정보를 생성하고 인코딩하여 출력하는 단계를 포함하고,Generating, encoding, and outputting prediction information about the current block including the MPM index, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고,The MPM list is derived based on the size of the current block, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 하는, 영상 인코딩 방법.And the size of the current block is calculated by multiplying the width of the current block by the height of the current block. 제10항에 있어서,The method of claim 10, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치 미만인 경우 간단한(simple) MPM 리스트를 포함하는 것을 특징으로 하는, 영상 인코딩 방법.And the MPM list comprises a simple MPM list if the size of the current block is less than a first threshold. 제10항에 있어서,The method of claim 10, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 제1 임계치 미만이고, 상기 현재 블록의 너비가 제2 임계치 이상이고, 상기 현재 블록의 높이가 제3 임계치 이상인 경우 상기 간단한 MPM 리스트를 포함하는 것을 특징으로 하는, 영상 인코딩 방법.The MPM list includes the simple MPM list when the size of the current block is less than a first threshold, the width of the current block is greater than or equal to a second threshold, and the height of the current block is greater than or equal to a third threshold. , Video encoding method. 제11항에 있어서,The method of claim 11, 상기 MPM 리스트는 상기 현재 블록의 사이즈가 상기 제1 임계치 이상인 경우 정교한(sophisticated) MPM 리스트를 포함하는 것을 특징으로 하는, 영상 인코딩 방법.And the MPM list comprises a sophisticated MPM list if the size of the current block is greater than or equal to the first threshold. 제13항에 있어서,The method of claim 13, 상기 정교한 MPM 리스트는 상기 간단한 MPM 리스트와 적어도 하나의 MPM 후보를 공통적으로 포함하는 것을 특징으로 하는, 영상 인코딩 방법.And the elaborate MPM list comprises the simple MPM list and at least one MPM candidate in common. 영상 디코딩 방법을 수행하는 디코딩 장치에 있어서,A decoding apparatus for performing an image decoding method, 현재 블록에 대한 예측 정보를 획득하는 엔트로피 디코딩부; 및An entropy decoding unit for obtaining prediction information about the current block; And 상기 현재 블록의 MPM(Most Probable Mode) 인덱스를 획득하고, 상기 현재 블록의 주변 블록들을 기반으로 MPM 리스트를 구성하고, 상기 MPM 리스트 및 상기 MPM 인덱스를 기반으로 상기 현재 블록의 인트라 예측 모드를 도출하고, 상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측된 블록을 생성하는 예측부를 포함하고,Obtain a Most Probable Mode (MPM) index of the current block, construct an MPM list based on neighboring blocks of the current block, derive an intra prediction mode of the current block based on the MPM list and the MPM index, and A prediction unit generating a predicted block for the current block based on the intra prediction mode, 상기 MPM 리스트는 상기 현재 블록의 사이즈를 기반으로 도출되고,The MPM list is derived based on the size of the current block, 상기 현재 블록의 사이즈는 상기 현재 블록의 너비 및 상기 현재 블록의 높이를 곱한 값으로 계산되는 것을 특징으로 하는, 디코딩 장치.And the size of the current block is calculated by multiplying the width of the current block by the height of the current block.
PCT/KR2019/009388 2018-08-21 2019-07-29 Intra prediction method and device in image coding system Ceased WO2020040439A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20180097416 2018-08-21
KR10-2018-0097416 2018-08-21

Publications (1)

Publication Number Publication Date
WO2020040439A1 true WO2020040439A1 (en) 2020-02-27

Family

ID=69593168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/009388 Ceased WO2020040439A1 (en) 2018-08-21 2019-07-29 Intra prediction method and device in image coding system

Country Status (1)

Country Link
WO (1) WO2020040439A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220224885A1 (en) * 2019-05-27 2022-07-14 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
CN116472711A (en) * 2021-08-24 2023-07-21 腾讯美国有限责任公司 Hardware-friendly design for intra-mode encoding
US12120335B2 (en) 2021-08-24 2024-10-15 Tencent America LLC Hardware friendly design for intra mode coding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170272745A1 (en) * 2016-03-18 2017-09-21 Mediatek Inc. Method and Apparatus of Intra Prediction in Image and Video Processing
KR20170124081A (en) * 2016-04-29 2017-11-09 세종대학교산학협력단 Method and apparatus for encoding/decoding a video signal
WO2018037896A1 (en) * 2016-08-26 2018-03-01 シャープ株式会社 Image decoding apparatus, image encoding apparatus, image decoding method, and image encoding method
US20180192073A1 (en) * 2012-01-16 2018-07-05 Hfi Innovation Inc. Method and apparatus for intra mode coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180192073A1 (en) * 2012-01-16 2018-07-05 Hfi Innovation Inc. Method and apparatus for intra mode coding
US20170272745A1 (en) * 2016-03-18 2017-09-21 Mediatek Inc. Method and Apparatus of Intra Prediction in Image and Video Processing
KR20170124081A (en) * 2016-04-29 2017-11-09 세종대학교산학협력단 Method and apparatus for encoding/decoding a video signal
WO2018037896A1 (en) * 2016-08-26 2018-03-01 シャープ株式会社 Image decoding apparatus, image encoding apparatus, image decoding method, and image encoding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ADARSH K. RAMASUBRAMONIAN ET AL.: "CE3-3.1.1: Two MPM modes and shape dependency", JVET-K0081 , JOINT VIDEO EXPLORATION TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, 11TH MEETING, 3 July 2018 (2018-07-03), Ljubljana *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220224885A1 (en) * 2019-05-27 2022-07-14 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
US11991350B2 (en) * 2019-05-27 2024-05-21 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
US12335466B2 (en) 2019-05-27 2025-06-17 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
US12348709B2 (en) 2019-05-27 2025-07-01 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
US12348710B2 (en) 2019-05-27 2025-07-01 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
US12355949B2 (en) 2019-05-27 2025-07-08 Sk Telecom Co., Ltd. Method and device for deriving intra-prediction mode
CN116472711A (en) * 2021-08-24 2023-07-21 腾讯美国有限责任公司 Hardware-friendly design for intra-mode encoding
US12120335B2 (en) 2021-08-24 2024-10-15 Tencent America LLC Hardware friendly design for intra mode coding

Similar Documents

Publication Publication Date Title
WO2020036417A1 (en) Inter prediction method based on history-based motion vector, and device therefor
WO2019194440A1 (en) Image coding method using lookup table for intra prediction mode and apparatus therefor
WO2020017840A1 (en) Method and device for inter predicting on basis of dmvr
WO2020197038A1 (en) Intra prediction method and device based on intra sub-partitions in image coding system
WO2020145775A1 (en) Image coding method and device for carrying out mrl-based intra prediction
WO2020076066A1 (en) Syntax design method and apparatus for performing coding by using syntax
WO2020009390A1 (en) Image processing method and device by means of inter-prediction in image coding system
WO2020189960A1 (en) Method and device for signaling information on chroma format
WO2019212230A1 (en) Method and apparatus for decoding image by using transform according to block size in image coding system
WO2020013480A1 (en) Method for coding intra-prediction mode, and device for same
WO2020149630A1 (en) Method and device for decoding image on basis of cclm prediction in image coding system
WO2020145604A1 (en) Intra prediction-based video coding method and device using mpm list
WO2020141928A1 (en) Method and apparatus for decoding image on basis of prediction based on mmvd in image coding system
WO2020141885A1 (en) Image coding method and device using deblocking filtering
WO2020005002A1 (en) Method and device for deriving template area according to inter-prediction in image coding system
WO2020040439A1 (en) Intra prediction method and device in image coding system
WO2020141884A1 (en) Method and apparatus for coding image by using mmvd based on cpr
WO2020184821A1 (en) Method and device for configuring mpm list
WO2020004931A1 (en) Method and apparatus for processing image according to inter-prediction in image coding system
WO2019203533A1 (en) Inter-prediction method in accordance with multiple motion model, and device thereof
WO2020130629A1 (en) Image coding method based on multiple reference line intra prediction, and device therefor
WO2020004879A1 (en) Method and device for image decoding according to inter-prediction using plurality of neighboring blocks in image coding system
WO2020145656A1 (en) Method and device for signaling whether tmvp candidate is available
WO2020197031A1 (en) Intra prediction method and apparatus based on multi-reference line in image coding system
WO2020009375A1 (en) Intra prediction method and device 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: 19850907

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

Country of ref document: EP

Kind code of ref document: A1