WO2020141906A1 - 인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치 - Google Patents

인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치 Download PDF

Info

Publication number
WO2020141906A1
WO2020141906A1 PCT/KR2020/000059 KR2020000059W WO2020141906A1 WO 2020141906 A1 WO2020141906 A1 WO 2020141906A1 KR 2020000059 W KR2020000059 W KR 2020000059W WO 2020141906 A1 WO2020141906 A1 WO 2020141906A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
information
luma
chroma
size
Prior art date
Application number
PCT/KR2020/000059
Other languages
English (en)
French (fr)
Inventor
남정학
유선미
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2020141906A1 publication Critical patent/WO2020141906A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • This document relates to image coding technology, and more particularly, to an image coding method and apparatus using intra block copy prediction in an image coding system.
  • a high-efficiency image compression technique is required to effectively transmit, store, and reproduce high-resolution, high-quality image information.
  • the technical problem of this document is to provide a method and apparatus for improving image coding efficiency.
  • Another technical task of this document is to provide an efficient intra block copy (IBC) prediction method and apparatus.
  • IBC intra block copy
  • Another technical problem of the present document is to provide a method and apparatus for using information about a size of a luma block and information about a size of a separate chroma block when the current block has a dual tree structure and in an IBC prediction mode.
  • Another technical problem of the present document is to provide a method and apparatus for deriving a maximum quadtree split size and a minimum quadtree split size of a current picture in an IBC prediction mode using block size information used in inter prediction mode.
  • an image decoding method performed by a decoding apparatus includes obtaining prediction mode information and block partitioning information for a current block from a bitstream, and predicting a prediction mode of the current block based on the prediction mode information to an intra block copy (IBC) prediction mode Deriving, deriving a block vector of the current block based on the IBC prediction mode, and generating prediction samples of the current block based on reconstructed samples in the current picture indicated by the block vector, and
  • the current block is a block partitioned based on information on the block partitioning, and the current block includes a luma block or a chroma block associated with the luma block, and the information on the block partitioning is the luma It is characterized in that information on the size of the block and information on the size of the chroma block are separately included, and the information on the block partitioning is included in a sequence parameter set (SPS) syntax.
  • SPS sequence parameter set
  • a decoding apparatus for performing image decoding.
  • the decoding apparatus sets the prediction mode of the current block based on the prediction mode information and an entropy decoding unit that obtains prediction mode information and block partitioning information for a current block from a bitstream.
  • a prediction unit that derives into a prediction mode, derives a block vector of the current block based on the IBC prediction mode, and generates prediction samples of the current block based on reconstructed samples in the current picture indicated by the block vector,
  • the current block is a block partitioned based on information on the block partitioning, and the current block includes a luma block or a chroma block associated with the luma block, and the information on the block partitioning is It is characterized in that information on the size of the luma block and information on the size of the chroma block are separately included, and the information on the block partitioning is included in a sequence parameter set (SPS) syntax.
  • SPS sequence parameter set
  • a video encoding method performed by an encoding device includes deriving a prediction mode of a current block as an intra block copy (IBC) prediction mode, deriving a block vector of the current block based on the IBC prediction mode, and reconstructing samples in the current picture indicated by the block vector Generating prediction samples of the current block based on the values, deriving residual samples of the current block based on the prediction samples, prediction mode information on the IBC prediction mode, and information on the residual samples And encoding the video information including the video information, wherein the video information further includes a sequence parameter set (SPS) syntax including information on block partitioning, and the current block is based on the information on the block partitioning.
  • SPS sequence parameter set
  • a partitioned block wherein the current block includes a luma block or a chroma block associated with the luma block, and the information about the block partitioning is information about the size of the luma block and the size of the chroma block Characterized in that it includes information about the individual.
  • a video encoding apparatus derives a prediction mode of the current block as an intra block copy (IBC) prediction mode, derives a block vector of the current block based on the IBC prediction mode, and reconstructs samples in the current picture indicated by the block vector.
  • IBC intra block copy
  • a residual processor for deriving residual samples of the current block based on the prediction samples, prediction mode information about the IBC prediction mode, and the residual samples
  • SPS sequence parameter set
  • a computer-readable digital storage medium is characterized by storing a bitstream that causes the decoding method to be performed.
  • IBC intra block copy
  • compression efficiency can be improved by using information about the size of the luma block and information about the size of a separate chroma block.
  • compression efficiency can be improved by deriving the maximum quadtree split size and the minimum quadtree split size of the current picture in the IBC prediction mode based on the size information of the blocks used in the inter prediction mode.
  • FIG. 1 schematically shows an example of a video/image coding system to which the present document can be applied.
  • FIG. 2 is a diagram schematically illustrating a configuration of a video/video encoding apparatus to which the present document can be applied.
  • FIG. 3 is a diagram schematically illustrating a configuration of a video/video decoding apparatus to which the present document can be applied.
  • FIG. 4 schematically shows an example of a multi-tree split mode.
  • 5 schematically shows an example of a CTU divided into multiple CUs.
  • FIG. 6 shows an example of a block vector of the current block.
  • FIG. 7 and 8 schematically show an example of a video/video encoding method and related components according to embodiment(s) of the present document.
  • FIGS. 9 and 10 schematically show an example of a video/video encoding method and related components according to embodiment(s) of the present document.
  • FIG. 11 schematically shows a structure of a content streaming system.
  • each component in the drawings described in this document is independently shown for convenience of description of different characteristic functions, and does not mean that each component is implemented with separate hardware or separate software.
  • two or more components of each component may be combined to form a single component, or one component may be divided into a plurality of components.
  • Embodiments in which each component is integrated and/or separated are also included in the scope of this document as long as they do not depart from the nature of this document.
  • FIG. 1 schematically shows an example of a video/image coding system to which the present document can be applied.
  • a video/image coding system may include a first device (source device) and a second device (receiving device).
  • the source device may transmit the encoded video/image information or data to a receiving device through a digital storage medium or network in the form of a file or streaming.
  • the source device may include a video source, an encoding device, and a transmission unit.
  • the receiving device may include a receiving unit, a decoding apparatus, and a renderer.
  • the encoding device may be referred to as a video/video encoding device, and the decoding device may be referred to as a video/video decoding device.
  • the transmitter can be included in the encoding device.
  • the receiver may be included in the decoding device.
  • the renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source may acquire a video/image through a capture, synthesis, or generation process of the video/image.
  • the video source may include a video/image capture device and/or a video/image generation device.
  • the video/image capture device may include, for example, one or more cameras, a video/image archive including previously captured video/images, and the like.
  • the video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image.
  • a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process in which related data is generated.
  • the encoding device can encode the input video/video.
  • the encoding apparatus may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video/image information) may be output in the form of a bitstream.
  • the transmitting unit may transmit the encoded video/video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format.
  • the digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the transmission unit may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network.
  • the receiver may receive/extract the bitstream and deliver it to a decoding device.
  • the decoding apparatus may decode a video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus.
  • the renderer can render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • VVC versatile video coding
  • EVC essential video coding
  • AV1 AOMedia Video 1
  • AVS2 2nd generation of audio video coding standard
  • next-generation video/ It can be applied to the method disclosed in the video coding standard (ex. H.267 or H.268, etc.).
  • video may mean a set of images over time.
  • a picture generally refers to a unit representing one image in a specific time period, and a slice/tile is a unit constituting a part of a picture in coding.
  • the slice/tile may include one or more coding tree units (CTUs).
  • CTUs coding tree units
  • One picture may be composed of one or more slices/tiles.
  • One picture may be composed 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 a picture. Tiles can be partitioned into multiple bricks, and each brick can be composed of one or more CTU rows in the tile (A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile ).
  • a tile that is not partitioned into multiple bricks may be also referred to as a brick.
  • a brick scan can indicate a specific sequential ordering of CTUs partitioning a picture, the CTUs can be aligned with a CTU raster scan within a brick, and the bricks in a tile can be aligned sequentially with a raster scan of the bricks of the tile.
  • A, and tiles in a picture can be sequentially aligned with a raster scan of the tiles of the picture
  • a brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick , bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture).
  • a tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture.
  • the tile column is a rectangular area of CTUs, the rectangular area has a height equal to the height of the picture, and the width can be specified by syntax elements in a picture parameter set (The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set).
  • the tile row is a rectangular region of CTUs, the rectangular region has a width specified by syntax elements in a picture parameter set, and the height can be the same as the height of the picture (The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture).
  • a tile scan can indicate a specific sequential ordering of CTUs partitioning a picture, the CTUs can be successively aligned with a CTU raster scan in a tile, and the tiles in a picture can be successively aligned with a raster scan of the tiles of the picture.
  • a tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture).
  • a slice may include an integer number of bricks of a picture, and the integer number of bricks may be included in one NAL unit (A slice includes an integer number of bricks of a picture that may be exclusively contained in a single NAL unit). A slice may consist of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile ).
  • Tile groups and slices are used interchangeably in this document. For example, the tile group/tile group header in this document may be referred to as a slice/slice header.
  • a pixel or a pel may mean a minimum unit constituting one picture (or image). Also, as a term corresponding to a pixel,'sample' may be used.
  • the sample may generally represent a pixel or a pixel value, may represent only a pixel/pixel value of a luma component, or may represent only a pixel/pixel value of a chroma component.
  • the unit may represent a basic unit of image processing.
  • the unit may include at least one of a specific region of a 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 a block or area in some cases.
  • the MxN block may include samples (or sample arrays) of M columns and N rows or a set (or array) of transform coefficients.
  • the video encoding device may include a video encoding device.
  • the encoding apparatus 200 includes an image partitioner 210, a predictor 220, a residual processor 230, and an entropy encoder 240. It may be configured to include an adder (250), a filtering unit (filter, 260) and a memory (memory, 270).
  • the prediction unit 220 may include an inter prediction unit 221 and an intra prediction unit 222.
  • the residual processing unit 230 may include a transform unit 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235.
  • the residual processing unit 230 may further include a subtractor 231.
  • the adder 250 may be referred to as a reconstructor or a recontructged block generator.
  • the above-described image segmentation unit 210, prediction unit 220, residual processing unit 230, entropy encoding unit 240, adding unit 250, and filtering unit 260 may include one or more hardware components (for example, it may be configured by an encoder chipset or processor).
  • the memory 270 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
  • the hardware component may further include a memory 270 as an internal/external component.
  • the image division unit 210 may divide an input image (or picture, frame) input to the encoding apparatus 200 into one or more processing units.
  • the processing unit may be called a coding unit (CU).
  • the coding unit is 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 structure.
  • a quad tree structure may be applied first, and a binary tree structure and/or a ternary structure may be applied later.
  • a binary tree structure may be applied first.
  • a coding procedure according to an embodiment may be performed based on a final coding unit that is no longer split.
  • the maximum coding unit may be directly used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal if necessary.
  • the coding unit of the size of can be used as the final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later.
  • the processing unit may further include a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may be partitioned or partitioned from the above-described final coding unit, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transformation unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from the transform coefficient.
  • the unit may be used interchangeably with terms such as a block or area in some cases.
  • the MxN block may represent samples of M columns and N rows or a set of transform coefficients.
  • the sample may generally represent a pixel or a pixel value, and may indicate only a pixel/pixel value of a luma component or only a pixel/pixel value of a saturation component.
  • the sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
  • the encoding device 200 subtracts a prediction signal (a predicted block, a prediction sample array) output from the inter prediction unit 221 or the intra prediction unit 222 from the input image signal (original block, original sample array).
  • a signal residual signal, residual block, residual sample array
  • the prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU. As described later in the description of each prediction mode, the prediction unit may generate various information about prediction, such as prediction mode information, and transmit it to the entropy encoding unit 240.
  • the prediction information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
  • the intra prediction unit 222 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 222 may determine a prediction mode applied to the current block by using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 221 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be referred to by a name such as a collocated reference block or a colCU, and a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
  • the inter prediction unit 221 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive the motion vector and/or reference picture index of the current block. Can be created. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 221 may use motion information of neighboring blocks as motion information of the current block.
  • the residual signal may not be transmitted.
  • the motion vector of the current block is obtained by using the motion vector of the neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
  • the prediction unit 220 may generate a prediction signal based on various prediction methods described below.
  • the prediction unit may apply intra prediction or inter prediction as well as intra prediction and inter prediction at the same time for prediction for one block. This can be called combined inter and intra prediction (CIIP).
  • the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block.
  • the IBC prediction mode or palette mode may be used for content video/video coding such as a game, such as screen content coding (SCC).
  • SCC screen content coding
  • 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 palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, a sample value in a picture may be signaled based on information on the palette table and palette index.
  • the prediction signal generated through the prediction unit may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the transform unit 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, at least one of a DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform) It can contain.
  • GBT means a transformation obtained from this graph when it is said that the relationship information between pixels is graphically represented.
  • CNT means a transform obtained by generating a prediction signal using all previously reconstructed pixels and based on it.
  • the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
  • the quantization unit 233 quantizes the transform coefficients and transmits them to the entropy encoding unit 240, and the entropy encoding unit 240 encodes a quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about the quantized transform coefficients may be called residual information.
  • the quantization unit 233 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the one-dimensional vector form. Information regarding transform coefficients may be generated.
  • the entropy encoding unit 240 may perform various encoding methods, such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • CAVLC exponential Golomb
  • CAVLC context-adaptive variable length coding
  • CABAC context-adaptive binary arithmetic coding
  • the entropy encoding unit 240 may encode information necessary for video/image reconstruction (eg, a value of syntax elements, etc.) together with the quantized transform coefficients together or separately.
  • the encoded information (ex. encoded video/video information) may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream.
  • NAL network abstraction layer
  • the video/video information may further include information regarding 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/video information may further include general constraint information.
  • information and/or syntax elements transmitted/signaled from an encoding device to a decoding device may be included in video/video information.
  • the video/video information may be encoded through the above-described encoding procedure and included in the bitstream.
  • the bitstream can be transmitted over a network or stored on 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.
  • the signal output from the entropy encoding unit 240 may be configured as an internal/external element of the encoding device 200 by a transmitting unit (not shown) and/or a storing unit (not shown) for storing, or the transmitting unit It may be included in the entropy encoding unit 240.
  • the quantized transform coefficients output from the quantization unit 233 may be used to generate a prediction signal.
  • a residual signal residual block or residual samples
  • the adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 221 or the intra predictor 222, so that the reconstructed 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 a reconstructed block.
  • the adder 250 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
  • LMCS luma mapping with chroma scaling
  • the filtering unit 260 may improve subjective/objective image quality by applying filtering to the reconstructed signal.
  • the filtering unit 260 may generate a modified restoration picture by applying various filtering methods to the restoration picture, and the modified restoration picture may be a DPB of the memory 270, specifically, the memory 270. Can be stored in.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the filtering unit 260 may generate various pieces of information regarding filtering as described later in the description of each filtering method, and transmit them to the entropy encoding unit 240.
  • the filtering information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 221.
  • inter prediction When the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 100 and the decoding apparatus can be avoided, and encoding efficiency can be improved.
  • the memory 270 DPB may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 221.
  • the memory 270 may store motion information of a block from which motion information in a current picture is derived (or encoded) and/or motion information of blocks in a picture that has already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 270 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 222.
  • FIG. 3 is a diagram schematically illustrating a configuration of a video/video decoding apparatus to which the present document can be applied.
  • the decoding apparatus 300 includes an entropy decoder (310), a residual processor (320), a prediction unit (predictor, 330), an adder (340), and a filtering unit (filter, 350) and memory (memoery, 360).
  • the prediction unit 330 may include an inter prediction unit 331 and an intra prediction unit 332.
  • the residual processing unit 320 may include a deequantizer (321) and an inverse transformer (321).
  • the entropy decoding unit 310, the residual processing unit 320, the prediction unit 330, the adding unit 340, and the filtering unit 350 described above may include one hardware component (eg, a decoder chipset or processor) according to an embodiment. ).
  • the memory 360 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium.
  • the hardware component may further include a memory 360 as an internal/external component.
  • the decoding apparatus 300 may restore an image corresponding to a process in which the video/image information is processed in the encoding apparatus of FIG. 2.
  • the decoding apparatus 300 may derive units/blocks based on block partitioning related information obtained from the bitstream.
  • the decoding apparatus 300 may perform decoding using a processing unit applied in the encoding apparatus.
  • the processing unit of decoding may be, for example, a coding unit, and the coding unit may be divided along a quad tree structure, a binary tree structure and/or a ternary tree structure from a coding tree unit or a largest coding unit.
  • One or more transform units can be derived from the coding unit. Then, the decoded video signal decoded and output through the decoding device 300 may be reproduced through the reproduction device.
  • the decoding apparatus 300 may receive the 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 310.
  • the entropy decoding unit 310 may parse the bitstream to derive information (eg, video/image information) necessary for image reconstruction (or picture reconstruction).
  • the video/video information may further include information regarding 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/video information may further include general constraint information.
  • the decoding apparatus may decode a picture further based on the information on the parameter set and/or the general restriction information.
  • Signaling/receiving 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 310 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element required for image reconstruction and a transform coefficient for residual.
  • a coding method such as exponential Golomb coding, CAVLC, or CABAC
  • the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and decodes syntax element information to be decoded and decoding information of neighboring and decoding target blocks or symbol/bin information decoded in the previous step.
  • the context model is determined by using, and the probability of occurrence of the bin is predicted according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model using the decoded symbol/bin information for the next symbol/bin context model after determining the context model.
  • prediction information is provided to a prediction unit (inter prediction unit 332 and intra prediction unit 331), and the entropy decoding unit 310 performs entropy decoding.
  • the dual value that is, quantized transform coefficients and related parameter information may be input to the residual processing unit 320.
  • the residual processor 320 may derive a residual signal (residual block, residual samples, residual sample array). Also, information related to filtering among information decoded by the entropy decoding unit 310 may be provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) receiving a signal output from the encoding device may be further configured as an internal/external element of the decoding device 300, or the receiving unit may be a component of the entropy decoding unit 310.
  • the decoding device may be called a video/picture/picture decoding device, and the decoding device may be classified into an information decoder (video/picture/picture information decoder) and a sample decoder (video/picture/picture sample decoder). It might be.
  • the information decoder may include the entropy decoding unit 310, and the sample decoder may include the inverse quantization unit 321, an inverse transformation unit 322, an addition unit 340, a filtering unit 350, and a memory 360 ), at least one of an inter prediction unit 332 and an intra prediction unit 331.
  • the inverse quantization unit 321 may inverse quantize the quantized transform coefficients to output transform coefficients.
  • the inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding device.
  • the inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients by using a quantization parameter (for example, quantization step size information), and obtain transform coefficients.
  • a quantization parameter for example, quantization step size information
  • the inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction is applied to the current block or inter prediction is applied based on the information on the prediction output from the entropy decoding unit 310, and may determine a specific intra/inter prediction mode.
  • the prediction unit 320 may generate a prediction signal based on various prediction methods described below.
  • the prediction unit may apply intra prediction or inter prediction as well as intra prediction and inter prediction at the same time for prediction for one block. This can be called combined inter and intra prediction (CIIP).
  • the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block.
  • the IBC prediction mode or palette mode may be used for content video/video coding such as a game, such as screen content coding (SCC).
  • SCC screen content coding
  • 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 palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, information on the palette table and palette index may be signaled by being included in the video/image information.
  • the intra prediction unit 331 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra prediction unit 331 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 332 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.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture.
  • the inter prediction unit 332 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or reference picture index of the current block based on the received candidate selection information. Inter-prediction may be performed based on various prediction modes, and information on the prediction may include information indicating a mode of inter-prediction for the current block.
  • the adder 340 reconstructs the obtained residual signal by adding it to the predicted signal (predicted block, predicted sample array) output from the predictor (including the inter predictor 332 and/or the intra predictor 331) 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 a reconstructed block.
  • the adding unit 340 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, may be output through filtering as described below, or may be used for inter prediction of a next picture.
  • LMCS luma mapping with chroma scaling
  • the filtering unit 350 may apply subjective/objective filtering to improve subjective/objective image quality.
  • the filtering unit 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be a DPB of the memory 360, specifically, the memory 360 Can be transferred to.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the (corrected) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332.
  • the memory 360 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that has already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 360 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 331.
  • the embodiments described in the filtering unit 260, the inter prediction unit 221, and the intra prediction unit 222 of the encoding device 100 are respectively the filtering unit 350 and the inter prediction of the decoding device 300.
  • the unit 332 and the intra prediction unit 331 may be applied to the same or corresponding.
  • a predicted block including prediction samples for a current block which is a block to be coded
  • the predicted block includes prediction samples in a spatial domain (or pixel domain).
  • the predicted block is derived equally from an encoding device and a decoding device, and the encoding device decodes information (residual information) about the residual between the original block and the predicted block, not the original sample value itself of the original block. Signaling to the device can improve video coding efficiency.
  • the decoding apparatus may derive a residual block including residual samples based on the residual information, generate a reconstruction block including reconstruction samples by combining the residual block and the predicted block, and generate reconstruction blocks. It is possible to generate a reconstructed picture that includes.
  • the residual information may be generated through a transform and quantization procedure.
  • the encoding apparatus derives a residual block between the original block and the predicted block, and performs transformation procedures on residual samples (residual sample array) included in the residual block to derive transformation coefficients. And, by performing a quantization procedure on the transform coefficients, the quantized transform coefficients are derived to signal related residual information (via a bitstream) to a decoding apparatus.
  • the residual information may include information such as value information of the quantized transform coefficients, position information, a transform technique, a transform kernel, and quantization parameters.
  • the decoding apparatus may perform an inverse quantization/inverse transformation procedure based on the residual information and derive residual samples (or residual blocks).
  • the decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block.
  • the encoding apparatus can also dequantize/inverse transform quantized transform coefficients for reference for inter prediction of a picture, to derive a residual block, and generate a reconstructed picture based on the quantized/inverse transform.
  • the prediction unit of the encoding device/decoding device may derive a prediction sample by performing inter prediction on a block basis.
  • the inter prediction may represent a prediction derived in a manner dependent on data elements (e.g. sample values, motion information, etc.) of the picture(s) other than the current picture.
  • data elements e.g. sample values, motion information, etc.
  • a predicted block predicted sample array for the current block is derived.
  • motion information of the current block may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction type (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 name such as a collocated reference block or a CUCU, and a reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). It might be.
  • a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag indicating which candidate is selected (used) to derive a motion vector and/or reference picture index of the current block Alternatively, index information may be signaled.
  • Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, motion information of a current block may be the same as motion information of a selected neighboring block.
  • the residual signal may not be transmitted.
  • a motion vector prediction (MVP) mode a motion vector of a selected neighboring block is used as a motion vector predictor (MVP), and a motion vector difference (MVD) may be signaled.
  • MVP motion vector prediction
  • MVD motion vector difference
  • a motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
  • inter prediction modes may be used for prediction of a current block in a picture.
  • various modes such as a merge mode, a skip mode, an MVP mode, and an affine mode may be used.
  • Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, and the like may be further used as ancillary modes.
  • the affine mode may also be called aaffine motion prediction mode.
  • the MVP mode may also be called AMVP (advanced motion vector prediction) mode.
  • the prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device.
  • the prediction mode information may be included in a bitstream and received by a decoding device.
  • the prediction mode information may include index information indicating one of a plurality of candidate modes.
  • the inter prediction mode may be indicated through hierarchical signaling of flag information.
  • the prediction mode information may include one or more flags.
  • the skip flag is signaled to indicate whether the skip mode is applied, and when the skip mode is not applied, the merge flag is signaled to indicate whether the merge mode is applied, and when the merge mode is not applied, the MVP mode is indicated to be applied.
  • a flag for further classification may be further signaled.
  • the affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on a merge mode or an MVP mode.
  • the affine mode may be configured as one candidate of the merge candidate list or the MVP candidate list, as described later.
  • Inter prediction may be performed using motion information of a current block.
  • the encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search similar reference blocks having high correlation using the original blocks in the original picture for the current block in fractional pixel units within a predetermined search range in the reference picture, thereby deriving motion information. Can.
  • the similarity of the block can be derived based on the difference between phase-based sample values. For example, the similarity of a block may be calculated based on a sum of absolute difference (SAD) between a current block (or a template of a current block) and a reference block (or a template of a reference block). In this case, motion information may be derived based on a reference block having the smallest SAD in the search area.
  • the derived motion information may be signaled to the decoding apparatus according to various methods based on the inter prediction mode.
  • a motion vector predictor (MVP) candidate list is generated by using a motion vector of a reconstructed spatial neighboring block and/or a temporal neighboring block (or Col block). Can be generated. That is, the motion vector of the reconstructed spatial neighboring block and/or the motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate.
  • the prediction information may include selection information (eg, an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the list.
  • the prediction unit may select a motion vector predictor of the current block from among motion vector predictor candidates included in the motion vector candidate list, using the selection information.
  • the prediction unit of the encoding device may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, encode it, and output it in a bitstream format. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit of the decoding apparatus may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor.
  • the prediction unit of the decoding apparatus may obtain or derive a reference picture index indicating the reference picture from the information on the prediction.
  • a predicted block for a current block may be derived based on motion information derived according to a prediction mode.
  • the predicted block may include predicted samples (predicted sample array) of the current block.
  • an interpolation procedure may be performed, and through this, predictive samples of the current block may be derived based on reference samples in a fractional sample unit in a reference picture. .
  • prediction samples may be generated based on the sample/subblock unit MV.
  • final prediction samples may be derived through weighting (according to phase) of prediction samples derived based on L0 prediction and prediction samples derived based on L1 prediction.
  • reconstruction samples and reconstruction pictures may be generated based on the derived prediction samples, and then procedures such as in-loop filtering may be performed.
  • FIG. 4 schematically shows an example of dividing a multi-type tree structure.
  • the coding tree unit may be divided into coding units (CUs) based on a quad-tree (QT) structure.
  • the quadtree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics.
  • the CTU may be divided based on a multi-type tree structure partition including a binary tree (BT) and a ternary tree (TT) as well as a quad tree.
  • BT binary tree
  • TT ternary tree
  • the QTBT structure may include a quadtree and binary tree based splitting structure.
  • the QTBTTT structure may include a quadtree, binary tree, and ternary tree based splitting structure.
  • the QTBT structure may include a quadtree, binary tree, and ternary tree based splitting structure.
  • the CU can have a square or rectangular shape.
  • the CTU can be first divided into a quadtree structure. Thereafter, leaf nodes having a quadtree structure may be further divided by a multi-type tree structure. For example, referring to FIG. 4, in the multi-type tree structure, four division types may be schematically included.
  • the four split types are vertical binary splitting (SPLIT_BT_VER), horizontal binary splitting (SPLIT_BT_HOR), vertical ternary splitting (SPLIT_TT_VER), horizontal ternary splitting (horizontal ternary splitting, SPLIT_TT_HOR) ).
  • the leaf nodes of the multi-type tree structure may be called CUs. These CUs can be used for prediction and transformation procedures.
  • CU, PU and TU may have the same block size. However, when the maximum supported transform length is less than the width or height of the color component of the CU, or when the maximum transform size is smaller than the size of the CU, the CU and the TU have different block sizes. Can.
  • 5 schematically shows an example of a CTU divided into multiple CUs.
  • FIG. 5 exemplarily shows that the CTU is divided into multiple CUs based on a quadtree and nested multi-type tree structure.
  • the CU may correspond to a coding block (CB).
  • the CU may include a coding block of luma samples and two coding blocks of corresponding chroma samples.
  • the size of the CU may be as large as CTU, or as small as 4x4 in luma sample units. For example, in the case of a 4:2:0 color format (or chroma format), the maximum chroma CB size may be 64x64 and the minimum chroma CB size may be 2x2.
  • the maximum allowable luma TB size in this document may be 64x64, and the maximum allowable chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum conversion width or height, the CB may be automatically (or implicitly) partitioned until the horizontal and vertical TB size limitations are satisfied.
  • the following parameters may be defined and identified as a sequence parameter set (SPS) syntax element.
  • the parameter CTU size may indicate the root node size of a quaternary tree
  • the parameter MinQTSize is the minimum allowed quaternary tree leaf node size.
  • the parameter MaxBtSize can indicate the maximum allowed binary tree root node size
  • the parameter MaxTtSize is the maximum allowed ternary tree root node size.
  • parameter MaxMttDepth may indicate the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf
  • parameter MinBtSize is The minimum allowed binary tree leaf node size may be indicated
  • the parameter MinTtSize may indicate the minimum allowed ternary tree leaf node size.
  • the CTU size may be set to 64x64 blocks of 128x128 luma samples and two corresponding chroma samples (for 4:2:0 chroma format).
  • MinOTSize may be set to 16x16
  • MaxBtSize may be set to 128x1208
  • MaxTtSzie may be set to 64x64
  • MinBtSize and MinTtSize(for both width and height) may be set to 4x4
  • MaxMttDepth may be set to 4.
  • Quarttree partitioning can be applied to CTU to generate quadtree leaf nodes.
  • the quadtree leaf node may be referred to as a leaf QT node.
  • Quadtree leaf nodes may have a size of 128x128 (i.e. the CTU size) from a size of 16x16 (i.e. the MinOTSize). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because even if divided, it exceeds MaxBtsize and MaxTtszie (i.e. 64x64). In other cases, the leaf QT node may be further divided into a multi-type tree. Therefore, a leaf QT node is a root node for a multitype tree, and a leaf QT node may have a multitype tree depth (mttDepth) 0 value.
  • mttDepth multitype tree depth
  • MaxMttdepth (ex. 4)
  • further partitioning may not be considered. If the width of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal partitioning may no longer be considered. If the height of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical splitting may no longer be considered.
  • a coding tree scheme may support that luma and chroma (component) blocks have a separate block tree structure.
  • the luma and chroma blocks in one CTU may be represented as a single tree (single_tree).
  • the luma and chroma blocks in one CTU may be represented as a dual tree.
  • the block tree type for the luma component may be represented as DUAL_TREE_LUMA
  • the block tree type for the chroma component may be represented as DUAL_TREE_CHROMA.
  • luma and chroma Coding Tree Blocks (CTBs) in one CTU may be limited to have the same coding tree structure.
  • luma and chroma blocks may have a separate block tree structure from each other. If the individual block tree mode is applied, the luma CTB may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on another coding tree structure. This means that a CU in an I slice may be composed of one luma component coding block or two chroma component coding blocks, and a P or B slice CU may be composed of three color component blocks. have.
  • the structure in which the CU is divided is not limited to the above.
  • the BT structure and the TT structure may be interpreted as a concept included in a multiple partitioning tree (MPT) structure, and a CU may be divided through a QT structure and an MPT structure.
  • a syntax element for example, MPT_split_type syntax element
  • a leaf node of a QT structure including information on how many blocks the leaf node of the QT structure is divided into
  • a partitioning structure may be determined by signaling a syntax element (eg, MPT_split_mode syntax element) including information on which direction is divided between vertical and horizontal.
  • the CU may be divided in a different way from the QT structure, BT structure or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 the size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 the size of the CU of the upper depth according to the BT structure, or according to the TT structure Unlike the CU of the lower depth, which is divided into 1/4 or 1/2 the size of the CU of the upper depth, the CU of the lower depth may be 1/5, 1/3, 3/8, 3 of the CU of the upper depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method in which the CU is divided is not limited thereto.
  • FIG. 6 shows an example of a block vector of the current block.
  • Motion compensation using a general temporal reference image uses an image in which both in-loop filtering is applied.
  • a delay may occur because in-loop filtering for a partial region of a previously decoded current image has to be waited.
  • an image to which in-loop filtering is not applied may be used in motion compensation using the current image.
  • an image buffer corresponding thereto may be required according to an area used for motion compensation. Accordingly, the motion compensation possible region may be limited to the largest coding unit (or current CTU) including the current coding unit.
  • the maximum coding unit on the right by +1 (unit) or +2 (unit) as the current maximum coding unit reference may be used as a motion compensation area.
  • the image buffer may be limited to a specific area including the current CTU.
  • the displacement value used for motion compensation in the current image is called a block vector in order to distinguish it from a motion vector for motion compensation in an existing inter-screen image.
  • One embodiment relates to a method of using a part of the current video that has been coded so far as a reference video during encoding of the current coding unit.
  • the encoder adds the current image to the reference image list in the current image prediction unit, and finds a block most similar to the current block in a predetermined region among the already coded regions.
  • the optimal motion vector uses motion information prediction in the same way as the existing inter mode, and only the motion vector difference value is transmitted to the decoder.
  • Two methods can be used to indicate whether motion compensation is used in the current image.
  • the DiffPicOrderCnt function represents a difference in picture order count (POC) between two video inputs.
  • the input value currPic means the current image including the current coding target block
  • RefPicList0[ref_idx_l0[x0][y0]] means the reference video of the current coding target block.
  • x0 and y0 indicate the position of the current block
  • ref_idx_l0 indicates the reference image index in the 0 direction of the reference image list. Therefore, the reference image of the current block can be calculated using the reference image index received from the reference image list.
  • the output value 0 by the DiffPicOrderCnt function means that the current image and the reference image are the same image.
  • an intra block copy flag (intra_bc_flag) may be defined, and if the flag value is 1, the corresponding block indicates that motion compensation is used in the current image, and when the flag value is 0, the corresponding block is It may indicate that motion compensation is not used in the current image.
  • the intra block copy flag may be represented by an IBC flag (pred_mode_ibc_flag) syntax element, and may be included in a coding unit syntax.
  • the encoded information (ex. encoded video/video information) derived by the encoding device may be output in the form of a bitstream.
  • the encoding information may include information or flags indicating whether the current video is used as a reference video.
  • the encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream.
  • NAL network abstraction layer
  • the bitstream may be transmitted over a network, or may be stored in a non-transitory digital storage medium.
  • the bitstream is not directly transmitted from the encoding device to the decoding device, and may be streamed/downloaded through an external server (ex. content streaming server).
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the existing I slice may be changed into a P slice.
  • the block size of the quadtree of the corresponding image may be determined by syntax of a P slice or an inter slice.
  • the image may have the characteristics of an I slice, it may be more efficient to determine the block size of the quadtree by the syntax of the intra slice.
  • the inter slice may represent a B slice or a P slice.
  • the inter slice may indicate a slice including a CTU or CU performing inter prediction.
  • intra prediction may be performed on the B slice or the P slice.
  • the inter-slice syntax element(s) may indicate the syntax element(s) for a B slice or P slice.
  • the inter-slice syntax element(s) may indicate syntax element(s) applied to the B slice or the P slice.
  • an intra slice may represent an I slice.
  • the intra slice may indicate a slice including a CTU or CU performing intra prediction.
  • intra slice syntax element(s) may indicate the syntax element(s) for an I slice.
  • the intra slice syntax element(s) may indicate the syntax element(s) applied to the I slice.
  • the size of the quadtree for chroma does not exist in the quad slice adjustment value for chroma in the inter slice. It may be determined based on the syntax of the inter-slice luma. However, it may be efficient that the size of the quad tree (block) for chroma is determined by intra syntax. Accordingly, the SPS syntax according to an embodiment may include a syntax element or intra syntax related to chroma.
  • the SPS may include information/parameters that can be commonly applied to one or more sequences, and information/parameters related to the size of luma/chroma blocks described later may be included in the SPS.
  • syntax elements indicating information/parameters related to the size of the luma/chroma block may be included in the SPS (syntax).
  • syntax elements related to the size of the luma/chroma block which will be described later, are not necessarily included in the SPS syntax, and APS (Adaptation Parameter Set) syntax including information/parameters commonly applicable to one or more slices or pictures, or Picture Parameter Set (PPS) syntax, Video Parameter Set (VPS) syntax that includes information/parameters that can be commonly applied to multiple layers, or DPS (Decoding) that includes information/parameters that can be commonly applied to overall video Parameter Set) may be included in the syntax.
  • PPS Picture Parameter Set
  • VPS Video Parameter Set
  • DPS Decoding
  • At least some of the above-described syntaxes or syntaxes may be included in video information, and may be signaled by being encoded/decoded as video information.
  • image information or SPS syntax may include syntax elements as shown in Table 1.
  • the image information or SPS syntax may include only some of the syntax elements shown in Table 1.
  • the image information or the SPS syntax may include syntax elements other than the syntax elements shown in Table 1.
  • information or semantics represented by syntax elements in Table 1 may be as follows.
  • the syntax element qtbtt_dual_tree_intra_flag may indicate information on whether CUs are separated (coding tree) syntax structure for luma component and chroma component. That is, the syntax element qtbtt_dual_tree_intra_flag may indicate information about whether the same syntax structure or different syntax structures are used for the luma component and the chroma component (in intra prediction or IBC prediction).
  • the CUs may represent CUs divided into 64 ⁇ 64 luma samples through implicit quadtree splitting from the CTU.
  • the syntax element log2_ctu_size_minus2 may indicate information about the CTU size, and a +2 value of the syntax element may indicate the CTU size.
  • the syntax element log2_min_luma_coding_block_size_minus2 may indicate information about the minimum luma coding block size, and a +2 value of the value of the syntax element may represent the minimum luma coding block size.
  • the syntax element partition_constraints_override_enabled_flag may indicate information about a partition constraint parameter. Alternatively, information about the existence of partition_constraints_override_flag in the picture head or information about whether a partition constraint parameter exists may be indicated.
  • the syntax element sps_log2_diff_min_qt_min_cb_inter_slice is the base 2 logarithmic value (in luma samples) of the luma leaf block due to quadtree segmentation of the CTU and the luma CU in the B slice or P slice (in luma samples) Information on a default difference between log values having a base 2 of the minimum luma coding block size may be indicated. For example, a minimum size of a luma leaf block may be derived based on the syntax element sps_log2_diff_min_qt_min_cb_inter_slice and the minimum luma coding block size.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slices may indicate information about a default maximum hierarchical depth for coding units due to multitype division of a quadtree leaf in a B slice or P slice.
  • the syntax element sps_log2_diff_max_bt_min_qt_inter_slice is the luma sample of the luma leaf block due to the quadratic division of the CTU in the B slice or P slice and the base 2 logarithmic value in the luma samples of the luma coding block that can be split using binary partitioning.
  • Information about the default difference between the maximum size in the field (the logarithm of the base 2) may be indicated.
  • the size may indicate width or height. or
  • the syntax element sps_log2_diff_max_tt_min_qt_inter_slice is the base of the logarithmic value of the maximum size (in luma samples) of the luma coding block that can be split using ternary division and the luma leaf block due to the quadtree division of the CTU in the B or P slice. It may indicate information about a default difference between a maximum size (in luma samples) (a logarithmic value of base 2). Here, the size may indicate width or height.
  • the maximum size of a luma coding block that can be divided using ternary division may be derived based on the syntax element sps_log2_diff_max_tt_min_qt_inter_slice and the maximum size of the luma leaf block.
  • the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma is the base 2 logarithmic value of the minimum size (in luma samples) and the I slice of the luma leaf block due to the quadtree division of the CTU or the luma within the P slice (if only the current picture is the reference picture of the slice) It may indicate information about a basic difference between log values having a base 2 of a minimum coding block size (in luma samples) for CUs.
  • a minimum size of a luma leaf block due to luma quadtree splitting may be derived based on the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma and the minimum (luma) coding block size.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slices_luma may indicate information about the default maximum hierarchical depth for coding units due to multitype division of a quadtree leaf in an I slice or a P slice (if only the current picture is a reference picture of the slice). .
  • the syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma is the base 2 logarithmic value (in luma samples) and I slice of the luma coding block that can be split using binary partitioning or P slice (if only the current picture is the reference picture of the slice) Information about a default difference between a maximum size (in a base value of 2 and a logarithmic value) of a luma leaf block (in luma samples) due to quadtree splitting in CTU in FIG.
  • the size may indicate width or height.
  • the maximum size of a luma coding block that can be divided using binary segmentation may be derived based on the syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma and the maximum size of the luma leaf block.
  • the syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma is the logarithmic value of the base 2 with the largest size (in luma samples) and the I slice or (if only the current picture is the reference picture of the slice) of the luma coding block that can be split using ternary division Information about the default difference between the maximum size (in the base 2 logarithmic value) of the luma leaf block (in the luma samples) due to quadtree division of the CTU in the slice may be indicated.
  • the size may indicate width or height.
  • the maximum size of a luma coding block that can be divided using ternary division may be derived based on the syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma and the maximum size of the luma leaf block.
  • the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma is a log value and an I slice of the minimum size (in luma samples) of a chroma leaf block due to quadtree splitting of a chroma CTU having dual trees, or when an I slice or (only the current picture is a reference picture of a slice) )
  • a minimum size of a chroma leaf block due to quadtree splitting of a chroma CTU according to a dual tree may be derived based on the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma and a minimum coding block size for the chroma CUs according to the dual tree.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slice_chroma is set to the default maximum hierarchical depth for chroma coding units due to multitype division of the chroma quadtree leaf with dual trees in the I slice or in the P slice (if only the current picture is the reference picture of the slice). Information.
  • the syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma is the base 2 logarithmic value of the largest size (in luma samples) and an I slice or a P slice (if only the current picture is the reference picture of the slice) that can be split using binary partitioning.
  • Information on the default difference between the maximum size (in the base 2 logarithmic value) of the chroma leaf block (in luma samples) due to the quadtree splitting of the chroma CTU having the dual tree within may be indicated.
  • the size may indicate width or height.
  • the maximum size of the chroma coding block that can be divided using binary partitioning may be derived based on the syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma and the maximum size of the chroma leaf block.
  • the syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma is the logarithmic value of the base 2 with the largest size (in luma samples) and I slice of a chroma coding block that can be split using ternary division, or P (if only the current picture is the reference picture of the slice)
  • Information about the default difference between the maximum size (in the base 2 logarithmic value) of the chroma leaf block (in the luma samples) due to the quadtree splitting of the chroma CTU having the dual tree in the slice may be indicated.
  • the size may indicate width or height.
  • the maximum size of the chroma coding block that can be split using ternary splitting may be derived based on the syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma and the maximum size of the chroma leaf block.
  • syntax elements of the aforementioned syntax elements sps_log2_diff_min_qt_min_cb_intra_slice_luma, sps_max_mtt_hierarchy_depth_intra_slices_luma syntax element, syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma, detailed information or semantic that each syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma may indicate seuneun may be the same as Table 2.
  • image information or SPS syntax may include syntax elements as shown in Table 4.
  • the image information or SPS syntax may include only some of the syntax elements in Table 4.
  • information or semantics represented by the syntax elements in Table 4 may be as follows.
  • syntax element qtbtt_dual_tree_intra_flag syntax element log2_ctu_size_minus2, syntax element log2_min_luma_coding_block_size_minus2, syntax element partition_constraints_override_enabled_flag, syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma, syntax element sps_max_mtt_hierarchy_depth_intra_slices_luma, syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma, syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma, syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma, syntax element sps_max_mtt_hierarchy_depth_
  • the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma is the base 2 logarithmic value (in luma samples) of the luma leaf block due to quadtree segmentation of the CTU and the minimum luma (in luma samples) for luma CUs in the B slice or P slice. Information about the basic difference between log values having a base of 2 coding blocks may be indicated. For example, a minimum size of a luma leaf block due to quadtree splitting of CTU may be derived based on the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma and the minimum luma coding block size.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slices_luma may indicate information about a default maximum hierarchical depth for coding units due to multitype division of a quadtree leaf in a B slice or P slice.
  • the syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma is the base value of the logarithmic value of the maximum size (in luma samples) of the luma coding block that can be divided using binary segmentation and the luma leaf block due to quadtree segmentation of the CTU in the B slice or P slice. It may indicate information about a default difference between a maximum size (in luma samples) (a logarithmic value of base 2). Here, the size may indicate width or height.
  • the maximum size of a luma coding block that can be divided using binary segmentation may be derived based on the syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma and the maximum size of the luma leaf block.
  • the syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma is the base of the logarithmic value of the maximum size (in luma samples) of the luma coding block that can be split using ternary splitting and the luma leaf block due to the quadtree splitting of the CTU in the B or P slice. It may indicate information about a default difference between a maximum size (in luma samples) (a logarithmic value of base 2). Here, the size may indicate width or height.
  • the maximum size of the luma coding block that can be divided using ternary division may be derived based on the syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma and the maximum size of the luma leaf block.
  • the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma is the logarithmic base of the minimum size (in luma samples) of the chroma leaf block due to quadtree splitting of the chroma CTU with dual trees and chroma CUs with dual trees in the I slice (Luma) It may indicate information about a basic difference between log values having a base 2 of the minimum coding block size (in samples).
  • a minimum size of a chroma leaf block due to quadtree partitioning of a chroma CTU may be derived based on the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma and a minimum coding block size for the chroma CUs.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma may indicate information about a default maximum hierarchical depth for chroma coding units due to multitype division of a chroma quadtree leaf having dual trees in an I slice.
  • the syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma is the chroma leaf due to the quadtree splitting of the chroma CTU with dual trees in the I slice and the base 2 logarithmic value of the largest size (in luma samples) of the chroma coding block that can be split using binary splitting. It may indicate information about a default difference between the maximum size (in the luma samples) of a block (a logarithmic value of 2). Here, the size may indicate width or height.
  • the maximum size of a chroma coding block that can be split using binary splitting may be derived based on the syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma and the maximum size of the chroma leaf block.
  • the syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma is a chroma leaf block due to quadtree division of a chroma CTU having a dual tree in an I slice and a logarithmic value of the base 2 with the maximum size in the luma samples of the chroma coding block that can be split using ternary division.
  • the size may indicate width or height.
  • the maximum size of the chroma coding block that can be split using ternary splitting may be derived based on the syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma and the maximum size of the chroma leaf block.
  • syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma element syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma, detailed information or semantics (semantics), which is a syntax element and sps_log2_diff_max_bt_min_qt_inter_slice_chroma syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma each can represent may be as in Table 6.
  • the current block when the current block has a dual tree structure and in the IBC prediction mode, information on the size of a luma block and information on a size of a separate chroma block can be used, thereby improving compression efficiency.
  • I can improve it.
  • the maximum quadtree split size and the minimum quadtree split size of the current picture may be derived in the IBC prediction mode using the size information of the block used in the inter prediction mode, thereby improving compression efficiency.
  • An embodiment may indicate information (or information on size) about a luma block and/or a chroma block based on the syntax element or information described above, and based on this, (IBC) prediction may be performed.
  • an embodiment may individually indicate information about a block size for a luma block and a chroma block based on the syntax element or information described above, and may efficiently perform (IBC) prediction based on this.
  • one embodiment may indicate information about a block size individually for a luma block and a chroma block based on the above syntax element or information, and based on this, block division or block partitioning for a luma block and a chroma block individually
  • (IBC) prediction may be performed based on a segmented or partitioned luma block and a chroma block.
  • the syntax element or information according to the above-described embodiment may be signaled in the form of a bitstream.
  • the syntax element or information according to the above-described embodiment may be included in SPS syntax and signaled in the form of a bitstream.
  • the syntax element or information according to the above-described embodiment may be encoded in the encoding device and signaled to the decoding device in a bitstream, and the bitstream may be decoded in the decoding device to obtain the syntax element or information.
  • FIG. 7 and 8 schematically show an example of a video/video encoding method and related components according to embodiment(s) of the present document.
  • the method disclosed in FIG. 7 may be performed by the encoding apparatus disclosed in FIG. 2.
  • S700 to S720 of FIG. 7 may be performed by the prediction unit 220 of the encoding apparatus in FIG. 8
  • S730 of FIG. 7 may be a residual processing unit 230 of the encoding apparatus in FIG. 8
  • S740 of FIG. 7 may be performed by the entropy encoding unit 240 of the encoding apparatus in FIG. 8.
  • the method disclosed in FIG. 7 may include the embodiments described above in this document.
  • the encoding apparatus may derive a prediction mode of a current block as an IBC prediction mode (S700).
  • the IBC prediction mode may indicate a prediction mode that performs Current Picture Referencing (CPR). That is, the IBC prediction mode may represent a prediction mode that performs motion compensation within a current picture including a current block.
  • CPR Current Picture Referencing
  • the prediction mode of the current block is an inter prediction mode
  • motion vectors and motion vector differences may be derived based on a reference picture different from the current picture to perform prediction
  • the prediction mode of the current block is IBC prediction In the mode
  • block vectors and block vector differences may be derived based on a current picture in order to perform prediction.
  • the encoding device may derive a block vector for the current block based on the IBC prediction mode (S710).
  • the encoding apparatus may find a block most similar to the current block in a predetermined region among regions in the current picture coded so far, and may derive a block vector based on the most similar block and the current block.
  • the block vector may represent information from the current block to the most similar block.
  • the most similar block can be used as a reference block.
  • the predetermined region may include a current largest coding unit including a current coding unit or a current coding tree unit (CTU).
  • the predetermined region may include a maximum coding unit to the right by +1 or +2 based on the current maximum coding unit.
  • the encoding apparatus may generate prediction samples of the current block based on reconstructed samples in the current picture indicated by the block vector (S720). For example, the encoding apparatus may generate the prediction samples (or the predicted block) using the reconstructed samples (or reconstructed blocks) in the current picture as reference samples (or reference blocks). For example, reconstructed samples may represent pre-decoded or reconstructed samples in the current picture, and a relative position from the current block may be determined by the block vector.
  • the encoding apparatus may derive residual samples of the current block based on the predicted samples (S730). For example, the encoding apparatus may derive residual samples (or residual blocks) for the current block based on original samples and prediction samples (or predicted blocks) for the current block. Alternatively, although the encoding apparatus is not illustrated, reconstructed samples (or reconstructed blocks) may be generated by adding residual samples (or residual blocks) to the predicted samples (or predicted blocks).
  • the encoding apparatus may encode image information including prediction mode information on IBC prediction mode and information on residual samples (S740).
  • the encoding device may generate information about the residual including information about the residual samples (or residual sample array), and the image information may include information about the residual.
  • Information on residual samples or information on residual may include information on transform coefficients on the residual samples.
  • the encoding device may generate prediction mode information regarding the IBC prediction mode of the current block, and the image information may include the prediction mode information.
  • prediction mode information may include an IBC flag.
  • the prediction mode information may include information on a picture order count (POC) of a current picture for comparison and information on a POC of a reference (target) picture.
  • the prediction mode information may include information for performing motion compensation based on the current picture.
  • the prediction mode information may include various information related to prediction of the current block.
  • the image information may further include information on block partitioning, and the encoding device may encode the image information further including information on block partitioning.
  • a sequence parameter set (SPS) syntax may include information about the block partitioning, and the image information may include the SPS syntax.
  • the encoding device may encode the video information including SPS syntax.
  • the current block may be a partitioned or partitioned block based on information about the block partitioning.
  • the current block may be a partitioned or partitioned block based on information on the block partitioning according to a prediction mode.
  • the current block may include a luma block or a chroma block related to the luma block.
  • the luma block may indicate a block of luma components or a luma component of the current block
  • the chroma block may represent a block of chroma components or a chroma component of the current block.
  • the chroma block may be a chroma block or a chroma component related to the luma block or luma component.
  • the chroma block may be a chroma block or a chroma component corresponding to the luma block or luma component.
  • the information about the block partitioning may include (individually) information about the size of the luma block and information about the size of the chroma block.
  • the information on the block partitioning may include intra slice syntax elements applied to an I slice or a P slice based on the IBC prediction mode, and information on the size of the luma block is the intra slice syntax elements May be derived based on a first intra slice syntax element, and information regarding the size of the chroma block may be derived based on a second intra slice syntax element different from the first intra slice syntax element among the intra slice syntax elements. Can be.
  • the information on the size of the luma block includes information on the minimum size of the luma coding block, information on the minimum size of the luma leaf block, and binary division of the luma coding block.
  • Information about the maximum possible size information about the maximum size capable of ternary division of the luma coding block, and the maximum size capable of binary or ternary division of the luma coding block. It may include information about the maximum depth (depth), the luma leaf block may be derived by quadtree (quadtree) split from the luma coding tree block, the luma coding tree block may include the luma coding block Can.
  • the information on the minimum size of the luma leaf block may include information on the difference between the minimum size of the luma leaf block and the minimum size of the luma coding block, and binary division of the luma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for binary division and the maximum size for the luma leaf block, and the information for the maximum size for ternary division of the luma coding block is the turner. It may include information on the difference between the maximum size that can be re-divided and the maximum size of the luma leaf block.
  • information regarding the minimum size of the luma coding block may be indicated by a syntax element log2_min_luma_coding_block_size_minus2.
  • the syntax element log2_min_luma_coding_block_size_minus2 may be included.
  • Information about the minimum size of the luma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma.
  • syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma may be included.
  • Information on the maximum depth of a luma coding block capable of multi-tree division from a maximum size capable of binary or ternary division of the luma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_intra_slice_luma.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slice_luma may be included.
  • Information on the maximum size of binary division of the luma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma.
  • syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma may be included.
  • Information on the maximum size that can be ternary divided in the luma coding block may be indicated by a syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma.
  • syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma may be included.
  • the information on the size of the chroma block includes information on the minimum size of the chroma coding block, information on the minimum size of the chroma leaf block, and binary division of the chroma coding block.
  • the maximum depth may include information, and the chroma leaf block may be derived by quadtree splitting from the chroma coding tree block, and the chroma coding tree block may include the chroma coding block. Can.
  • the information on the minimum size of the chroma leaf block may include information on the difference between the minimum size of the chroma leaf block and the minimum size of the chroma coding block, and binary division of the chroma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for which the binary partition is possible and the maximum size of the chroma leaf block,
  • the information on the maximum size that can be ternary split of the chroma coding block may include information about a difference between the maximum size that can be split and the maximum size of the chroma leaf block.
  • information on the minimum size of the chroma coding block may be derived based on information on the minimum size of the luma coding block. Or it may be signaled by a separate syntax element.
  • Information regarding the minimum size of the chroma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma.
  • the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma may be included.
  • Information regarding the maximum depth of a chroma coding block capable of multi-tree division from the maximum size capable of binary or ternary division of the chroma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_intra_slice_chroma.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slice_chroma may be included.
  • Information on the maximum size of the binary coding of the chroma coding block can be indicated by a syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma.
  • syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma may be included.
  • Information regarding the maximum size that can be ternary divided in the chroma coding block may be represented by a syntax element syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma.
  • syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma may be included.
  • the information about the block partitioning may include inter slice syntax elements applied to the B slice or P slice, and the information about the size of the luma block may be the first inter slice syntax of the inter slice syntax elements. It may be derived based on an element, and information regarding the size of the chroma block may be derived based on a second inter slice syntax element different from the first inter slice syntax element among the inter slice syntax elements.
  • the second inter-slice syntax element may be derived based on information about the I slice.
  • the information on the size of the luma block includes information on the minimum size of the luma coding block, information on the minimum size of the luma leaf block, and binary division of the luma coding block.
  • Information about the maximum possible size information about the maximum size capable of ternary division of the luma coding block, and the maximum size capable of binary or ternary division of the luma coding block. It may include information about the maximum depth (depth), the luma leaf block may be derived by quadtree (quadtree) split from the luma coding tree block, the luma coding tree block may include the luma coding block Can.
  • the information on the minimum size of the luma leaf block may include information on the difference between the minimum size of the luma leaf block and the minimum size of the luma coding block, and binary division of the luma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for binary division and the maximum size for the luma leaf block, and the information for the maximum size for ternary division of the luma coding block is the turner. It may include information on the difference between the maximum size that can be re-divided and the maximum size of the luma leaf block.
  • information on the minimum size of the luma coding block may be indicated by a syntax element log2_min_luma_coding_block_size_minus2.
  • the syntax element log2_min_luma_coding_block_size_minus2 may be included.
  • Information about the minimum size of the luma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma.
  • syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma may be included.
  • Information on the maximum depth of a luma coding block capable of multi-tree division from a maximum size capable of binary or ternary division of the luma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_inter_slice_luma.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slice_luma may be included.
  • Information on the maximum size of binary division of the luma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma.
  • syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma may be included.
  • Information about the maximum size that can be ternary divided in the luma coding block may be indicated by a syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma.
  • syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma may be included.
  • the information on the size of the chroma block includes information on the minimum size of the chroma coding block, information on the minimum size of the chroma leaf block, and binary division of the chroma coding block.
  • the maximum depth may include information, and the chroma leaf block may be derived by quadtree splitting from the chroma coding tree block, and the chroma coding tree block may include the chroma coding block. Can.
  • the information on the minimum size of the chroma leaf block may include information on the difference between the minimum size of the chroma leaf block and the minimum size of the chroma coding block, and binary division of the chroma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size capable of binary division and the maximum size of the chroma leaf block, and the information on the maximum size capable of ternary division of the chroma coding block may include the turner. It may include information on the difference between the maximum size capable of re-segmentation and the maximum size of the chroma leaf block.
  • information on the minimum size of the chroma coding block may be derived based on information on the minimum size of the luma coding block. Or it may be signaled by a separate syntax element.
  • Information regarding the minimum size of the chroma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma.
  • the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma may be included.
  • the information about the maximum depth of a chroma coding block capable of multi-tree partitioning from the maximum size of binary or ternary splitting of the chroma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma may be included.
  • the information on the maximum size of binary division of the chroma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma.
  • syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma may be included.
  • Information on the maximum size that can be ternary divided in the chroma coding block may be represented by a syntax element syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma.
  • syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma may be included.
  • the information on the block partitioning may further include information on a minimum size of the luma coding block and/or information on a maximum size of the luma leaf block.
  • the block partitioning information may further include some or all of other information or other syntax elements as shown in Tables 1 to 6.
  • the information regarding the block partitioning may further include other syntax element(s) in addition to the above-described information or syntax element.
  • the encoding apparatus may generate a bitstream by encoding video information including all or part of the above-described information (or syntax elements). Or, it can be output in the form of a bitstream.
  • the bitstream may be transmitted to a decoding device through a network or storage medium. Alternatively, the bitstream can be stored on a computer-readable storage medium.
  • FIG. 9 and 10 schematically show an example of a video/video encoding method and related components according to embodiment(s) of the present document.
  • the method disclosed in FIG. 9 may be performed by the decoding apparatus disclosed in FIG. 3.
  • S900 of FIG. 9 may be performed by the entropy decoding unit 310 of the decoding apparatus in FIG. 10, and S910 to S930 of FIG. 9 may be predicted by the decoding apparatus 330 of FIG. 10 Can be performed by
  • residual information may be obtained from a bitstream by the entropy decoding unit 310 of the decoding apparatus in FIG. 10, and based on the residual information by the residual processing unit 320. Residual samples may be derived, and the adder 340 may generate reconstructed samples (or reconstructed blocks) based on the predicted samples and the residual samples.
  • the method disclosed in FIG. 9 may include the embodiments described above in this document.
  • the decoding apparatus may obtain information about block partitioning and prediction mode information for a current block from a bitstream (S900).
  • the decoding device may (entropy) decode the bitstream to derive prediction mode information and block partitioning information.
  • the current block may be a partitioned or partitioned block based on information about the block partitioning.
  • the current block may be a partitioned or partitioned block based on information on the block partitioning according to a prediction mode.
  • the current block may include a luma block or a chroma block related to the luma block.
  • the luma block may indicate a block of luma components or a luma component of the current block
  • the chroma block may represent a block of chroma components or a chroma component of the current block.
  • the chroma block may be a chroma block or a chroma component related to the luma block or luma component.
  • the chroma block may be a chroma block or a chroma component corresponding to the luma block or luma component.
  • the information about the block partitioning may include (individually) information about the size of the luma block and information about the size of the chroma block.
  • information about block partitioning may be included in a Sequence Parameter Set (SPS) syntax, and the decoding device may acquire the SPS syntax from a bitstream.
  • SPS Sequence Parameter Set
  • information about block partitioning may include intra slice syntax elements applied to an I slice or a P slice based on the IBC prediction mode, and information about the size of the luma block is among the intra slice syntax elements. It may be derived based on a first intra slice syntax element, and information regarding the size of the chroma block may be derived based on a second intra slice syntax element different from the first intra slice syntax element among the intra slice syntax elements. Can.
  • the information on the size of the luma block includes information on the minimum size of the luma coding block, information on the minimum size of the luma leaf block, and binary division of the luma coding block.
  • Information about the maximum possible size information about the maximum size capable of ternary division of the luma coding block, and the maximum size capable of binary or ternary division of the luma coding block. It may include information about the maximum depth (depth), the luma leaf block may be derived by quadtree (quadtree) split from the luma coding tree block, the luma coding tree block may include the luma coding block Can.
  • the information on the minimum size of the luma leaf block may include information on the difference between the minimum size of the luma leaf block and the minimum size of the luma coding block, and binary division of the luma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for binary division and the maximum size for the luma leaf block, and the information for the maximum size for ternary division of the luma coding block is the turner. It may include information on the difference between the maximum size that can be re-divided and the maximum size of the luma leaf block.
  • information regarding the minimum size of the luma coding block may be indicated by a syntax element log2_min_luma_coding_block_size_minus2.
  • the syntax element log2_min_luma_coding_block_size_minus2 may be included.
  • Information about the minimum size of the luma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma.
  • syntax element sps_log2_diff_min_qt_min_cb_intra_slice_luma may be included.
  • Information on the maximum depth of a luma coding block capable of multi-tree division from a maximum size capable of binary or ternary division of the luma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_intra_slice_luma.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slice_luma may be included.
  • Information on the maximum size of binary division of the luma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma.
  • syntax element sps_log2_diff_max_bt_min_qt_intra_slice_luma may be included.
  • Information on the maximum size that can be ternary divided in the luma coding block may be indicated by a syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma.
  • syntax element sps_log2_diff_max_tt_min_qt_intra_slice_luma may be included.
  • the information on the size of the chroma block includes information on the minimum size of the chroma coding block, information on the minimum size of the chroma leaf block, and binary division of the chroma coding block.
  • the maximum depth may include information, and the chroma leaf block may be derived by quadtree splitting from the chroma coding tree block, and the chroma coding tree block may include the chroma coding block. Can.
  • the information on the minimum size of the chroma leaf block may include information on the difference between the minimum size of the chroma leaf block and the minimum size of the chroma coding block, and binary division of the chroma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for which the binary partition is possible and the maximum size of the chroma leaf block,
  • the information on the maximum size that can be ternary split of the chroma coding block may include information about a difference between the maximum size that can be split and the maximum size of the chroma leaf block.
  • information on the minimum size of the chroma coding block may be derived based on information on the minimum size of the luma coding block. Or it may be signaled by a separate syntax element.
  • Information regarding the minimum size of the chroma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma.
  • the syntax element sps_log2_diff_min_qt_min_cb_intra_slice_chroma may be included.
  • Information regarding the maximum depth of a chroma coding block capable of multi-tree division from the maximum size capable of binary or ternary division of the chroma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_intra_slice_chroma.
  • the syntax element sps_max_mtt_hierarchy_depth_intra_slice_chroma may be included.
  • Information on the maximum size of the binary coding of the chroma coding block can be indicated by a syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma.
  • syntax element sps_log2_diff_max_bt_min_qt_intra_slice_chroma may be included.
  • Information regarding the maximum size that can be ternary divided in the chroma coding block may be represented by a syntax element syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma.
  • syntax element sps_log2_diff_max_tt_min_qt_intra_slice_chroma may be included.
  • the information about the block partitioning may include inter slice syntax elements applied to the B slice or P slice, and the information about the size of the luma block may be the first inter slice syntax of the inter slice syntax elements. It may be derived based on an element, and information regarding the size of the chroma block may be derived based on a second inter slice syntax element different from the first inter slice syntax element among the inter slice syntax elements.
  • the second inter-slice syntax element may be derived based on information about the I slice.
  • the information on the size of the luma block includes information on the minimum size of the luma coding block, information on the minimum size of the luma leaf block, and binary division of the luma coding block.
  • Information about the maximum possible size information about the maximum size capable of ternary division of the luma coding block, and the maximum size capable of binary or ternary division of the luma coding block. It may include information about the maximum depth (depth), the luma leaf block may be derived by quadtree (quadtree) split from the luma coding tree block, the luma coding tree block may include the luma coding block Can.
  • the information on the minimum size of the luma leaf block may include information on the difference between the minimum size of the luma leaf block and the minimum size of the luma coding block, and binary division of the luma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size for binary division and the maximum size for the luma leaf block, and the information for the maximum size for ternary division of the luma coding block is the turner. It may include information on the difference between the maximum size that can be re-divided and the maximum size of the luma leaf block.
  • information on the minimum size of the luma coding block may be indicated by a syntax element log2_min_luma_coding_block_size_minus2.
  • the syntax element log2_min_luma_coding_block_size_minus2 may be included.
  • Information about the minimum size of the luma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma.
  • syntax element sps_log2_diff_min_qt_min_cb_inter_slice_luma may be included.
  • Information on the maximum depth of a luma coding block capable of multi-tree division from a maximum size capable of binary or ternary division of the luma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_inter_slice_luma.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slice_luma may be included.
  • Information on the maximum size of binary division of the luma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma.
  • syntax element sps_log2_diff_max_bt_min_qt_inter_slice_luma may be included.
  • Information about the maximum size that can be ternary divided in the luma coding block may be indicated by a syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma.
  • syntax element sps_log2_diff_max_tt_min_qt_inter_slice_luma may be included.
  • the information on the size of the chroma block includes information on the minimum size of the chroma coding block, information on the minimum size of the chroma leaf block, and binary division of the chroma coding block.
  • the maximum depth may include information, and the chroma leaf block may be derived by quadtree splitting from the chroma coding tree block, and the chroma coding tree block may include the chroma coding block. Can.
  • the information on the minimum size of the chroma leaf block may include information on the difference between the minimum size of the chroma leaf block and the minimum size of the chroma coding block, and binary division of the chroma coding block is possible.
  • the information on the maximum size may include information on the difference between the maximum size capable of binary division and the maximum size of the chroma leaf block, and the information on the maximum size capable of ternary division of the chroma coding block may include the turner. It may include information on the difference between the maximum size capable of re-segmentation and the maximum size of the chroma leaf block.
  • information on the minimum size of the chroma coding block may be derived based on information on the minimum size of the luma coding block. Or it may be signaled by a separate syntax element.
  • Information regarding the minimum size of the chroma leaf block may be indicated by a syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma.
  • the syntax element sps_log2_diff_min_qt_min_cb_inter_slice_chroma may be included.
  • the information about the maximum depth of a chroma coding block capable of multi-tree partitioning from the maximum size of binary or ternary splitting of the chroma coding block may be indicated by a syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma.
  • the syntax element sps_max_mtt_hierarchy_depth_inter_slice_chroma may be included.
  • the information on the maximum size of binary division of the chroma coding block may be indicated by a syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma.
  • syntax element sps_log2_diff_max_bt_min_qt_inter_slice_chroma may be included.
  • Information on the maximum size that can be ternary divided in the chroma coding block may be represented by a syntax element syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma.
  • syntax element sps_log2_diff_max_tt_min_qt_inter_slice_chroma may be included.
  • the information on the block partitioning may further include information on a minimum size of the luma coding block and/or information on a maximum size of the luma leaf block.
  • the block partitioning information may further include some or all of other information or other syntax elements as shown in Tables 1 to 6.
  • the information regarding the block partitioning may further include other syntax element(s) in addition to the above-described information or syntax element.
  • prediction mode information may include an IBC flag.
  • the prediction mode information may include information about a picture order count (POC) of a current picture and information about a POC of a reference (target) picture.
  • the prediction mode information may include information for performing motion compensation based on the current picture.
  • the prediction mode information may include various information related to prediction of the current block.
  • the decoding apparatus may derive a prediction mode of the current block as an intra block copy (IBC) prediction mode based on the prediction mode information (S910).
  • the IBC prediction mode may indicate a prediction mode that performs Current Picture Referencing (CPR). That is, the IBC prediction mode may represent a prediction mode that performs motion compensation within a current picture including a current block.
  • CPR Current Picture Referencing
  • the prediction mode of the current block is an inter prediction mode
  • motion vectors and motion vector differences may be derived based on a reference picture different from the current picture to perform prediction, but the prediction mode of the current block is IBC prediction In the mode, block vectors and block vector differences may be derived based on a current picture in order to perform prediction.
  • the decoding apparatus may derive the prediction mode of the current block as the IBC prediction mode based on the IBC flag.
  • the prediction mode information includes information about the picture order count (POC) of the current picture and information about the POC of the reference (destination) picture
  • the decoding apparatus may be based on the difference between the POC of the current picture and the POC of the reference picture.
  • the prediction mode of the current block can be derived as the IBC prediction mode.
  • the prediction mode information may include information for performing motion compensation based on the current picture, and based on this, an IBC prediction mode may be derived.
  • the decoding apparatus may derive the block vector of the current block based on the IBC prediction mode (S920). For example, the decoding apparatus may find a block most similar to the current block in a predetermined region among regions in the current picture coded so far, and may derive a block vector based on the most similar block and the current block.
  • the block vector may represent information from the current block to the most similar block.
  • the most similar block can be used as a reference block.
  • the predetermined region may include a current largest coding unit including a current coding unit or a current coding tree unit (CTU).
  • the predetermined region may include a maximum coding unit to the right by +1 or +2 based on the current maximum coding unit.
  • the decoding apparatus may generate prediction samples of the current block based on reconstructed samples in the current picture indicated by the block vector (S930). For example, the decoding apparatus may generate the predicted samples (or the predicted block) using reconstructed samples (or reconstructed blocks) in the current picture as reference samples (or reference blocks). For example, reconstructed samples may represent pre-decoded or reconstructed samples in the current picture, and a relative position from the current block may be determined by the block vector.
  • the decoding apparatus may obtain information about residual including information about the residual samples (or residual sample array) from a bitstream, and residual samples
  • the information about or residual information may include information about a transform coefficient for the residual samples.
  • the decoding apparatus may obtain various information related to prediction of the current block from a bitstream.
  • the decoding apparatus may derive residual samples based on information on residual samples, generate reconstruction samples based on the prediction samples and residual samples, and reconstruction blocks based on the reconstruction samples Alternatively, a reconstructed picture can be derived. As described above, the decoding apparatus may apply deblocking filtering and/or in-loop filtering procedures, such as SAO procedures, to the reconstructed picture to improve subjective/objective image quality, if necessary.
  • deblocking filtering and/or in-loop filtering procedures such as SAO procedures
  • the decoding device may decode the bitstream to obtain image information including all or part of the above-described information (or syntax elements).
  • the bitstream may be stored in a computer-readable digital storage medium, which may cause the above-described decoding method to be performed.
  • the above-described method according to the present document may be implemented in software form, and the encoding device and/or the decoding device according to the present document may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, and a display device. Device.
  • the above-described method may be implemented as a module (process, function, etc.) performing the above-described function.
  • Modules are stored in memory and can be executed by a processor.
  • the memory may be internal or external to the processor, and may be connected to the processor by various well-known means.
  • the processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits, and/or data processing devices.
  • the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media and/or other storage devices.
  • FIG. 11 schematically shows a structure of a content streaming system.
  • the embodiments described in this document may be implemented and implemented on a processor, microprocessor, controller, or chip.
  • the functional units shown in each figure may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
  • the decoding device and encoding device to which the present document is applied include multimedia broadcast transmission/reception devices, mobile communication terminals, home cinema video devices, digital cinema video devices, surveillance cameras, video communication devices, real-time communication devices such as video communication, mobile streaming Devices, storage media, camcorders, video on demand (VoD) service providing devices, over the top video (OTT video) devices, Internet streaming service providing devices, 3D (3D) video devices, video telephony video devices, and medical video devices And may be used to process video signals or data signals.
  • the OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
  • the processing method to which the present document is applied may be produced in the form of a program executed by a computer, and may be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to this document can also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device.
  • the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet).
  • 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 document may be implemented as computer program products using program codes, and the program codes may be executed on a computer according to embodiments of the present document.
  • the program code can be stored on a computer readable carrier.
  • the content streaming system to which this document is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server serves to compress a content input from multimedia input devices such as a smartphone, a camera, and a camcorder into digital data to generate a bitstream and transmit it to the streaming server.
  • multimedia input devices such as a smart phone, a camera, and a camcorder directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present document is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server serves as an intermediary to inform the user of the service.
  • the web server delivers it to the streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server, in which case the control server serves to control commands/responses between devices in the content streaming system.
  • the streaming server may receive content from a media storage and/or encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC, Tablet PCs, ultrabooks, wearable devices, e.g., smartwatches, smart glass, head mounted display (HMD), digital TV, desktop Computers, digital signage, and the like.
  • PDA personal digital assistants
  • PMP portable multimedia player
  • HMD head mounted display
  • Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.

Abstract

본 문서에 따른 디코딩 장치에 의하여 수행되는 영상 디코딩 비트스트림으로부터 현재 블록에 대한 예측 모드 정보 및 블록 파티셔닝(partitioning)에 관한 정보를 획득하는 단계, 상기 예측 모드 정보를 기반으로 상기 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하는 단계, 상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하는 단계 및 상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 단계를 포함하고, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고, 상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하고, 상기 블록 파티셔닝에 관한 정보는 SPS(Sequence Parameter Set) 신택스에 포함되는 것을 특징으로 한다.

Description

인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치
본 문서는 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.
본 문서의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.
본 문서의 다른 기술적 과제는 효율적인 인트라 블록 카피(IBC:Intra Block Copy) 예측 방법 및 장치를 제공함에 있다.
본 문서의 또 다른 기술적 과제는 현재 블록이 듀얼 트리 구조를 가지고, IBC 예측 모드인 경우, 루마 블록의 크기에 대한 정보와 별도의 크로마 블록의 크기에 대한 정보를 이용하는 방법 및 장치를 제공함에 있다.
본 문서의 또 다른 기술적 과제는 인터 예측 모드에서 이용되는 블록의 크기 정보를 이용하여 IBC 예측 모드에서 현재 픽처의 최대 쿼드트리 분할 크기 및 최소 쿼드트리 분할 크기를 도출하는 방법 및 장치를 제공함에 있다.
본 문서의 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 비트스트림으로부터 현재 블록에 대한 예측 모드 정보 및 블록 파티셔닝(partitioning)에 관한 정보를 획득하는 단계, 상기 예측 모드 정보를 기반으로 상기 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하는 단계, 상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하는 단계 및 상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 단계를 포함하고, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고, 상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하고, 상기 블록 파티셔닝에 관한 정보는 SPS(Sequence Parameter Set) 신택스에 포함되는 것을 특징으로 한다.
본 문서의 다른 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 비트스트림으로부터 현재 블록에 대한 예측 모드 정보 및 블록 파티셔닝(partitioning)에 관한 정보를 획득하는 엔트로피 디코딩부 및 상기 예측 모드 정보를 기반으로 상기 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하고, 상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하고, 상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 예측부를 포함하고, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고, 상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하고, 상기 블록 파티셔닝에 관한 정보는 SPS(Sequence Parameter Set) 신택스에 포함되는 것을 특징으로 한다.
본 문서의 또 다른 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하는 단계, 상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하는 단계, 상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 단계, 상기 예측 샘플들을 기반으로 상기 현재 블록의 레지듀얼 샘플들을 도출하는 단계 및 상기 IBC 예측 모드에 관한 예측 모드 정보 및 상기 레지듀얼 샘플들에 관한 정보를 포함하는 영상 정보를 인코딩하는 단계를 포함하고, 상기 영상 정보는 블록 파티셔닝에 관한 정보를 포함하는 SPS(Sequence Parameter Set) 신택스를 더 포함하고, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고, 상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하는 것을 특징으로 한다.
본 문서의 또 다른 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하고, 상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하고, 상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 예측부, 상기 예측 샘플들을 기반으로 상기 현재 블록의 레지듀얼 샘플들을 도출하는 레지듀얼 처리부 및 상기 IBC 예측 모드에 관한 예측 모드 정보 및 상기 레지듀얼 샘플들에 관한 정보를 포함하는 영상 정보를 인코딩하는 엔트로피 인코딩부를 포함하고, 상기 영상 정보는 블록 파티셔닝에 관한 정보를 포함하는 SPS(Sequence Parameter Set) 신택스를 더 포함하고, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고, 상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하는 것을 특징으로 한다.
본 문서의 또 다른 실시예에 따르면, 컴퓨터 판독 가능한 디지털 저장 매체를 제공한다. 상기 컴퓨터 판독 가능한 디지털 저장 매체는 상기 디코딩 방법을 수행하도록 야기하는 비트스트림이 저장되는 것을 특징으로 한다.
본 문서에 따르면 영상 압축 효율을 향상시킬 수 있다.
본 문서에 따르면 효율적인 인트라 블록 카피(IBC:Intra Block Copy) 예측을 제공할 수 있다.
본 문서에 따르면 현재 블록이 듀얼 트리 구조를 가지고, IBC 예측 모드인 경우, 루마 블록의 크기에 대한 정보와 별도의 크로마 블록의 크기에 대한 정보를 이용하여 압축 효율을 향상시킬 수 있다.
본 문서에 따르면 인터 예측 모드에서 이용되는 블록의 크기 정보를 기반으로 IBC 예측 모드에서 현재 픽처의 최대 쿼드트리 분할 크기 및 최소 쿼드트리 분할 크기를 도출하여 압축 효율을 향상시킬 수 있다.
도 1은 본 문서가 적용될 수 있는 비디오/영상 코딩 시스템의 예를 개략적으로 나타낸다.
도 2는 본 문서가 적용될 수 있는 비디오/영상 인코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3은 본 문서가 적용될 수 있는 비디오/영상 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 4는 멀티트리 분할 모드의 예를 개략적으로 나타낸다.
도 5는 다중 CU로 분할된 CTU의 예를 개략적으로 나타낸다.
도 6은 현재 블록의 블록 벡터의 예를 나타낸다.
도 7 및 도 8은 본 문서의 실시예(들)에 따른 비디오/영상 인코딩 방법 및 관련 컴포넌트의 일 예를 개략적으로 나타낸다.
도 9 및 도 10은 본 문서의 실시예(들)에 따른 비디오/영상 인코딩 방법 및 관련 컴포넌트의 일 예를 개략적으로 나타낸다.
도 11은 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.
본 문서는 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 문서를 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 문서의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
한편, 본 문서에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 문서의 본질에서 벗어나지 않는 한 본 문서의 권리범위에 포함된다.
이하, 첨부한 도면들을 참조하여, 본 문서의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략될 수 있다.
도 1은 본 문서를 적용될 수 있는 비디오/영상 코딩 시스템의 예를 개략적으로 나타낸다.
도 1을 참조하면, 비디오/영상 코딩 시스템은 제1 장치(소스 디바이스) 및 제2 장치(수신 디바이스)를 포함할 수 있다. 소스 디바이스는 인코딩된 비디오(video)/영상(image) 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스로 전달할 수 있다.
상기 소스 디바이스는 비디오 소스, 인코딩 장치, 전송부를 포함할 수 있다. 상기 수신 디바이스는 수신부, 디코딩 장치 및 렌더러를 포함할 수 있다. 상기 인코딩 장치는 비디오/영상 인코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기는 인코딩 장치에 포함될 수 있다. 수신기는 디코딩 장치에 포함될 수 있다. 렌더러는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다.
비디오 소스는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.
인코딩 장치는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.
전송부는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘리먼트를 포함할 수 있다. 수신부는 상기 비트스트림을 수신/추출하여 디코딩 장치로 전달할 수 있다.
디코딩 장치는 인코딩 장치의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다.
렌더러는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.
이 문서는 비디오/영상 코딩에 관한 것이다. 예를 들어 이 문서에서 개시된 방법/실시예는 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 등)에 개시되는 방법에 적용될 수 있다.
이 문서에서는 비디오/영상 코딩에 관한 다양한 실시예들을 제시하며, 다른 언급이 없는 한 상기 실시예들은 서로 조합되어 수행될 수도 있다.
이 문서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 슬라이스/타일은 하나 이상의 CTU(coding tree unit)을 포함할 수 있다. 하나의 픽처는 하나 이상의 슬라이스/타일로 구성될 수 있다. 하나의 픽처는 하나 이상의 타일 그룹으로 구성될 수 있다. 하나의 타일 그룹은 하나 이상의 타일들을 포함할 수 있다. 브릭은 픽처 내 타일 이내의 CTU 행들의 사각 영역을 나타낼 수 있다(a brick may represent a rectangular region of CTU rows within a tile in a picture). 타일은 다수의 브릭들로 파티셔닝될 수 있고, 각 브릭은 상기 타일 내 하나 이상의 CTU 행들로 구성될 수 있다(A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile). 다수의 브릭들로 파티셔닝되지 않은 타일은 또한 브릭으로 불릴 수 있다(A tile that is not partitioned into multiple bricks may be also referred to as a brick). 브릭 스캔은 픽처를 파티셔닝하는 CTU들의 특정한 순차적 오더링을 나타낼 수 있으며, 상기 CTU들은 브릭 내에서 CTU 래스터 스캔으로 정렬될 수 있고, 타일 내 브릭들은 상기 타일의 상기 브릭들의 래스터 스캔으로 연속적으로 정렬될 수 있고, 그리고 픽처 내 타일들은 상기 픽처의 상기 타일들의 래스터 스캔으로 연속적으로 정렬될 수 있다(A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture). 타일은 특정 타일 열 및 특정 타일 열 이내의 CTU들의 사각 영역이다(A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture). 상기 타일 열은 CTU들의 사각 영역이고, 상기 사각 영역은 상기 픽처의 높이와 동일한 높이를 갖고, 너비는 픽처 파라미터 세트 내의 신택스 요소들에 의하여 명시될 수 있다(The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set). 상기 타일 행은 CTU들의 사각 영역이고, 상기 사각 영역은 픽처 파라미터 세트 내의 신택스 요소들에 의하여 명시되는 너비를 갖고, 높이는 상기 픽처의 높이와 동일할 수 있다(The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture). 타일 스캔은 픽처를 파티셔닝하는 CTU들의 특정 순차적 오더링을 나타낼 수 있고, 상기 CTU들은 타일 내 CTU 래스터 스캔으로 연속적으로 정렬될 수 있고, 픽처 내 타일들은 상기 픽처의 상기 타일들의 래스터 스캔으로 연속적으로 정렬될 수 있다(A tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture). 슬라이스는 픽처의 정수개의 브릭들을 포함할 수 있고, 상기 정수개의 브릭들은 하나의 NAL 유닛에 포함될 수 있다(A slice includes an integer number of bricks of a picture that may be exclusively contained in a single NAL unit). 슬라이스는 다수의 완전한 타일들로 구성될 수 있고, 또는 하나의 타일의 완전한 브릭들의 연속적인 시퀀스일 수도 있다(A slice may consists of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile). 이 문서에서 타일 그룹과 슬라이스는 혼용될 수 있다. 예를 들어 본 문서에서 tile group/tile group header는 slice/slice header로 불리 수 있다.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 루마(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 크로마(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낼 수 있다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 하나의 유닛은 하나의 루마 블록 및 두개의 크로마(ex. cb, cr) 블록을 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들(또는 샘플 어레이) 또는 변환 계수(transform coefficient)들의 집합(또는 어레이)을 포함할 수 있다.
이 문서에서 "/"와 ","는 "및/또는"으로 해석된다. 예를 들어, "A/B"는 "A 및/또는 B"로 해석되고, "A, B"는 "A 및/또는 B"로 해석된다. 추가적으로, "A/B/C"는 "A, B 및/또는 C 중 적어도 하나"를 의미한다. 또한, "A, B, C"도 "A, B 및/또는 C 중 적어도 하나"를 의미한다. (In this document, the term "/" and "," should be interpreted to indicate "and/or." For instance, the expression "A/B" may mean "A and/or B." Further, "A, B" may mean "A and/or B." Further, "A/B/C" may mean "at least one of A, B, and/or C." Also, "A/B/C" may mean "at least one of A, B, and/or C.")
추가적으로, 본 문서에서 "또는"는 "및/또는"으로 해석된다. 예를 들어, "A 또는 B"은, 1) "A" 만을 의미하고, 2) "B" 만을 의미하거나, 3) "A 및 B"를 의미할 수 있다. 달리 표현하면, 본 문서의 "또는"은 "추가적으로 또는 대체적으로(additionally or alternatively)"를 의미할 수 있다. (Further, in the document, the term "or" should be interpreted to indicate "and/or." For instance, the expression "A or B" may comprise 1) only A, 2) only B, and/or 3) both A and B. In other words, the term "or" in this document should be interpreted to indicate "additionally or alternatively.")
도 2는 본 문서가 적용될 수 있는 비디오/영상 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 이하 비디오 인코딩 장치라 함은 영상 인코딩 장치를 포함할 수 있다.
도 2를 참조하면, 인코딩 장치(200)는 영상 분할부(image partitioner, 210), 예측부(predictor, 220), 레지듀얼 처리부(residual processor, 230), 엔트로피 인코딩부(entropy encoder, 240), 가산부(adder, 250), 필터링부(filter, 260) 및 메모리(memory, 270)를 포함하여 구성될 수 있다. 예측부(220)는 인터 예측부(221) 및 인트라 예측부(222)를 포함할 수 있다. 레지듀얼 처리부(230)는 변환부(transformer, 232), 양자화부(quantizer 233), 역양자화부(dequantizer 234), 역변환부(inverse transformer, 235)를 포함할 수 있다. 레지듀얼 처리부(230)은 감산부(subtractor, 231)를 더 포함할 수 있다. 가산부(250)는 복원부(reconstructor) 또는 복원 블록 생성부(recontructged block generator)로 불릴 수 있다. 상술한 영상 분할부(210), 예측부(220), 레지듀얼 처리부(230), 엔트로피 인코딩부(240), 가산부(250) 및 필터링부(260)는 실시예에 따라 하나 이상의 하드웨어 컴포넌트(예를 들어 인코더 칩셋 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(270)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(270)을 내/외부 컴포넌트로 더 포함할 수도 있다.
영상 분할부(210)는 인코딩 장치(200)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(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)를 유도하는 단위일 수 있다.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.
인코딩 장치(200)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(221) 또는 인트라 예측부(222)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(232)로 전송된다. 이 경우 도시된 바와 같이 인코더(200) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(231)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보 등 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(240)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(240)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
인트라 예측부(222)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(222)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(221)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 인터 예측부(221)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(221)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.
예측부(220)는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC) 예측 모드에 기반할 수도 있고 또는 팔레트 모드(palette mode)에 기반할 수도 있다. 상기 IBC 예측 모드 또는 팔레트 모드는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. 팔레트 모드는 인트라 코딩 또는 인트라 예측의 일 예로 볼 수 있다. 팔레트 모드가 적용되는 경우 팔레트 테이블 및 팔레트 인덱스에 관한 정보를 기반으로 픽처 내 샘플 값을 시그널링할 수 있다.
상기 예측부 (인터 예측부(221) 및/또는 상기 인트라 예측부(222) 포함)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 변환부(232)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(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)를 이용하여 예측 신호를 생성하고 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.
양자화부(233)는 변환 계수들을 양자화하여 엔트로피 인코딩부(240)로 전송되고, 엔트로피 인코딩부(240)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(233)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. 엔트로피 인코딩부(240)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(240)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 본 문서에서 인코딩 장치에서 디코딩 장치로 전달/시그널링되는 정보 및/또는 신택스 요소들은 비디오/영상 정보에 포함될 수 있다. 상기 비디오/영상 정보는 상술한 인코딩 절차를 통하여 인코딩되어 상기 비트스트림에 포함될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(240)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(200)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(240)에 포함될 수도 있다.
양자화부(233)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 역양자화부(234) 및 역변환부(235)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록 or 레지듀얼 샘플들)를 복원할 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(221) 또는 인트라 예측부(222)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(250)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
한편 픽처 인코딩 및/또는 복원 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.
필터링부(260)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(260)은 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(270), 구체적으로 메모리(270)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(260)은 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(240)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(240)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
메모리(270)에 전송된 수정된 복원 픽처는 인터 예측부(221)에서 참조 픽처로 사용될 수 있다. 인코딩 장치는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(100)와 디코딩 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다.
메모리(270) DPB는 수정된 복원 픽처를 인터 예측부(221)에서의 참조 픽처로 사용하기 위해 저장할 수 있다. 메모리(270)는 현재 픽처 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(221)에 전달할 수 있다. 메모리(270)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(222)에 전달할 수 있다.
도 3은 본 문서가 적용될 수 있는 비디오/영상 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.
도 3을 참조하면, 디코딩 장치(300)는 엔트로피 디코딩부(entropy decoder, 310), 레지듀얼 처리부(residual processor, 320), 예측부(predictor, 330), 가산부(adder, 340), 필터링부(filter, 350) 및 메모리(memoery, 360)를 포함하여 구성될 수 있다. 예측부(330)는 인터 예측부(331) 및 인트라 예측부(332)를 포함할 수 있다. 레지듀얼 처리부(320)는 역양자화부(dequantizer, 321) 및 역변환부(inverse transformer, 321)를 포함할 수 있다. 상술한 엔트로피 디코딩부(310), 레지듀얼 처리부(320), 예측부(330), 가산부(340) 및 필터링부(350)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 칩셋 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(360)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(360)을 내/외부 컴포넌트로 더 포함할 수도 있다.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(300)는 도 2의 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(300)는 상기 비트스트림으로부터 획득한 블록 분할 관련 정보를 기반으로 유닛들/블록들을 도출할 수 있다. 디코딩 장치(300)는 인코딩 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 따라서 분할될 수 있다. 코딩 유닛으로부터 하나 이상의 변환 유닛이 도출될 수 있다. 그리고, 디코딩 장치(300)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.
디코딩 장치(300)는 도 2의 인코딩 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(310)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(310)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(ex. 비디오/영상 정보)를 도출할 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 디코딩 장치는 상기 파라미터 세트에 관한 정보 및/또는 상기 일반 제한 정보를 더 기반으로 픽처를 디코딩할 수 있다. 본 문서에서 후술되는 시그널링/수신되는 정보 및/또는 신택스 요소들은 상기 디코딩 절차를 통하여 디코딩되어 상기 비트스트림으로부터 획득될 수 있다. 예컨대, 엔트로피 디코딩부(310)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 컨텍스트(context) 모델을 결정하고, 결정된 컨텍스트 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 컨텍스트 모델 결정 후 다음 심볼/빈의 컨텍스트 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 컨텍스트 모델을 업데이트할 수 있다. 엔트로피 디코딩부(310)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(332) 및 인트라 예측부(331))로 제공되고, 엔트로피 디코딩부(310)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 레지듀얼 처리부(320)로 입력될 수 있다. 레지듀얼 처리부(320)는 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플들, 레지듀얼 샘플 어레이)를 도출할 수 있다. 또한, 엔트로피 디코딩부(310)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(350)으로 제공될 수 있다. 한편, 인코딩 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(300)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(310)의 구성요소일 수도 있다. 한편, 본 문서에 따른 디코딩 장치는 비디오/영상/픽처 디코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 정보 디코더(비디오/영상/픽처 정보 디코더) 및 샘플 디코더(비디오/영상/픽처 샘플 디코더)로 구분할 수도 있다. 상기 정보 디코더는 상기 엔트로피 디코딩부(310)를 포함할 수 있고, 상기 샘플 디코더는 상기 역양자화부(321), 역변환부(322), 가산부(340), 필터링부(350), 메모리(360), 인터 예측부(332) 및 인트라 예측부(331) 중 적어도 하나를 포함할 수 있다.
역양자화부(321)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(321)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 인코딩 장치에서 수행된 계수 스캔 순서를 기반하여 재정렬을 수행할 수 있다. 역양자화부(321)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)를 획득할 수 있다.
역변환부(322)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득하게 된다.
예측부는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(310)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다.
예측부(320)는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC) 예측 모드에 기반할 수도 있고 또는 팔레트 모드(palette mode)에 기반할 수도 있다. 상기 IBC 예측 모드 또는 팔레트 모드는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. 팔레트 모드는 인트라 코딩 또는 인트라 예측의 일 예로 볼 수 있다. 팔레트 모드가 적용되는 경우 팔레트 테이블 및 팔레트 인덱스에 관한 정보가 상기 비디오/영상 정보에 포함되어 시그널링될 수 있다.
인트라 예측부(331)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(331)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(332)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(332)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다.
가산부(340)는 획득된 레지듀얼 신호를 예측부(인터 예측부(332) 및/또는 인트라 예측부(331) 포함)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.
가산부(340)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 출력될 수도 있고 또는 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
한편, 픽처 디코딩 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.
필터링부(350)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(350)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(360), 구체적으로 메모리(360)의 DPB에 전송할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다.
메모리(360)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(332)에서 참조 픽쳐로 사용될 수 있다. 메모리(360)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(360)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(331)에 전달할 수 있다.
본 명세서에서, 인코딩 장치(100)의 필터링부(260), 인터 예측부(221) 및 인트라 예측부(222)에서 설명된 실시예들은 각각 디코딩 장치(300)의 필터링부(350), 인터 예측부(332) 및 인트라 예측부(331)에도 동일 또는 대응되도록 적용될 수 있다.
상술한 바와 같이 비디오 코딩을 수행함에 있어 압축 효율을 높이기 위하여 예측을 수행한다. 이를 통하여 코딩 대상 블록인 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록을 생성할 수 있다. 여기서 상기 예측된 블록은 공간 도메인(또는 픽셀 도메인)에서의 예측 샘플들을 포함한다. 상기 예측된 블록은 인코딩 장치 및 디코딩 장치에서 동일하게 도출되며, 상기 인코딩 장치는 원본 블록의 원본 샘플 값 자체가 아닌 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼에 대한 정보(레지듀얼 정보)를 디코딩 장치로 시그널링함으로써 영상 코딩 효율을 높일 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록과 상기 예측된 블록을 합하여 복원 샘플들을 포함하는 복원 블록을 생성할 수 있고, 복원 블록들을 포함하는 복원 픽처를 생성할 수 있다.
상기 레지듀얼 정보는 변환 및 양자화 절차를 통하여 생성될 수 있다. 예를 들어, 인코딩 장치는 상기 원본 블록과 상기 예측된 블록 간의 레지듀얼 블록을 도출하고, 상기 레지듀얼 블록에 포함된 레지듀얼 샘플들(레지듀얼 샘플 어레이)에 변환 절차를 수행하여 변환 계수들을 도출하고, 상기 변환 계수들에 양자화 절차를 수행하여 양자화된 변환 계수들을 도출하여 관련된 레지듀얼 정보를 (비트스트림을 통하여) 디코딩 장치로 시그널링할 수 있다. 여기서 상기 레지듀얼 정보는 상기 양자화된 변환 계수들의 값 정보, 위치 정보, 변환 기법, 변환 커널, 양자화 파라미터 등의 정보를 포함할 수 있다. 디코딩 장치는 상기 레지듀얼 정보를 기반으로 역양자화/역변환 절차를 수행하고 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 디코딩 장치는 예측된 블록과 상기 레지듀얼 블록을 기반으로 복원 픽처를 생성할 수 있다. 인코딩 장치는 또한 이후 픽처의 인터 예측을 위한 참조를 위하여 양자화된 변환 계수들을 역양자화/역변환하여 레지듀얼 블록을 도출하고, 이를 기반으로 복원 픽처를 생성할 수 있다.
인코딩 장치/디코딩 장치의 예측부는 블록 단위로 인터 예측을 수행하여 예측 샘플을 도출할 수 있다. 인터 예측은 현재 픽처 이외의 픽처(들)의 데이터 요소들(e.g. 샘플값들, 또는 움직임 정보 등)에 의존적인 방법으로 도출되는 예측을 나타낼 수 있다. 현재 블록에 인터 예측이 적용되는 경우, 참조 픽처 인덱스가 가리키는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록(예측 샘플 어레이)을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 현재 블록의 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 타입(L0 예측, L1 예측 또는 Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측이 적용되는 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(colPic: collocated picture)라고 불릴 수도 있다. 예를 들어, 현재 블록의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 선택(사용)되는지를 지시하는 플래그 또는 인덱스 정보가 시그널링될 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 현재 블록의 움직임 정보는 선택된 주변 블록의 움직임 정보와 같을 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(MVP: motion vector prediction) 모드의 경우, 선택된 주변 블록의 움직임 벡터를 움직임 벡터 예측자(MVP)로 이용하고, 움직임 벡터 차분(MVD: Motion Vector Difference)은 시그널링될 수 있다. 이 경우 상기 움직임 벡터 예측자 및 움직임 벡터 차분의 합을 이용하여 상기 현재 블록의 움직임 벡터를 도출할 수 있다.
픽처 내 현재 블록의 예측을 위하여 다양한 인터 예측 모드가 사용될 수 있다. 예를 들어, 머지 모드, 스킵 모드, MVP 모드, 어파인(Affine) 모드 등 다양한 모드가 사용될 수 있다. DMVR(Decoder side motion vector refinement) 모드, AMVR(adaptive motion vector resolution) 모드 등이 부수적인 모드로 더 사용될 수 있다. 어파인 모드는 어파인 움직임 예측(affine motion prediction) 모드라고 불릴 수도 있다. MVP 모드는 AMVP(advanced motion vector prediction) 모드라고 불릴 수도 있다.
현재 블록의 인터 예측 모드를 가리키는 예측 모드 정보가 인코딩 장치로부터 디코딩 장치로 시그널링될 수 있다. 상기 예측 모드 정보는 비트스트림에 포함되어 디코딩 장치에 수신될 수 있다. 상기 예측 모드 정보는 다수의 후보 모드들 중 하나를 지시하는 인덱스 정보를 포함할 수 있다. 또는, 플래그 정보의 계층적 시그널링을 통하여 인터 예측 모드를 지시할 수도 있다. 이 경우 상기 예측 모드 정보는 하나 이상의 플래그들을 포함할 수 있다. 예를 들어, 스킵 플래그를 시그널링하여 스킵 모드 적용 여부를 지시하고, 스킵 모드가 적용 안되는 경우에 머지 플래그를 시그널링하여 머지 모드 적용 여부를 지시하고, 머지 모드가 적용 안되는 경우에 MVP 모드 적용되는 것으로 지시하거나 추가적인 구분을 위한 플래그를 더 시그널링할 수도 있다. 어파인 모드는 독립적인 모드로 시그널링될 수도 있고, 또는 머지 모드 또는 MVP 모드 등에 종속적인 모드로 시그널링될 수도 있다. 예를 들어, 어파인 모드는 후술하는 바와 같이 머지 후보 리스트 또는 MVP 후보 리스트의 하나의 후보로 구성될 수도 있다.
현재 블록의 움직임 정보를 이용하여 인터 예측을 수행할 수 있다. 인코딩 장치는 움직임 추정(motion estimation) 절차를 통하여 현재 블록에 대한 최적의 움직임 정보를 도출할 수 있다. 예를 들어, 인코딩 장치는 현재 블록에 대한 원본 픽처 내 원본 블록을 이용하여 상관성이 높은 유사한 참조 블록을 참조 픽처 내의 정해진 탐색 범위 내에서 분수 픽셀 단위로 탐색할 수 있고, 이를 통하여 움직임 정보를 도출할 수 있다. 블록의 유사성은 위상(phase) 기반 샘플 값들의 차를 기반으로 도출할 수 있다. 예를 들어, 블록의 유사성은 현재 블록(또는 현재 블록의 템플릿)과 참조 블록(또는 참조 블록의 템플릿) 간 SAD(Sum of Absolute Difference)를 기반으로 계산될 수 있다. 이 경우, 탐색 영역 내 SAD가 가장 작은 참조 블록을 기반으로 움직임 정보를 도출할 수 있다. 도출된 움직임 정보는 인터 예측 모드 기반으로 여러 방법에 따라 디코딩 장치로 시그널링될 수 있다.
MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록(또는 Col 블록)에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자(MVP) 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록에 대응하는 움직임 벡터는 움직임 벡터 예측자 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 예측자 후보들 중에서 선택된 최적의 움직임 벡터 예측자 후보를 지시하는 선택 정보(예를 들어, MVP 플래그 또는 MVP 인덱스)를 포함할 수 있다. 이 때, 예측부는 상기 선택 정보를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 예측자 후보들 중에서, 현재 블록의 움직임 벡터 예측자를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD: Motion Vector Difference)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 디코딩 장치의 예측부는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 디코딩 장치의 예측부는 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다.
예측 모드에 따라 도출된 움직임 정보를 기반으로 현재 블록에 대한 예측된 블록을 도출할 수 있다. 상기 예측된 블록은 상기 현재 블록의 예측 샘플들(예측 샘플 어레이)를 포함할 수 있다. 현재 블록의 움직임 벡터가 분수 샘플 단위를 가리키는 경우, 보간(interpolation) 절차가 수행될 수 있으며, 이를 통하여 참조 픽처 내에서 분수 샘플 단위의 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플들이 도출될 수 있다. 현재 블록에 Affine 인터 예측이 적용되는 경우, 샘플/서브블록 단위 MV를 기반으로 예측 샘플들을 생성할 수 있다. 쌍예측이 적용되는 경우, L0 예측을 기반으로 도출된 예측 샘플들과 L1 예측을 기반으로 도출된 예측 샘플들의 (위상에 따른) 가중합을 통하여 최종 예측 샘플들을 도출할 수 있다. 도출된 예측 샘플들을 기반으로 복원 샘플들 및 복원 픽처가 생성될 수 있고, 이후 인루프 필터링 등의 절차가 수행될 수 있음은 전술한 바와 같다.
도 4는 멀티타입 트리 구조 분할의 예를 개략적으로 나타낸다.
CTU(Coding Tree Unit)는 쿼드트리(QT: Quad-Tree) 구조를 기반으로 CU(Coding Unit)들로 분할될 수 있다. 쿼드트리 구조는 쿼터너리(quaternary) 트리 구조라고 불릴 수 있다. 이는 다양한 국지적 특징(local characteristic)을 반영하기 위함이다. 한편, 본 문서에서 CTU는 쿼드트리뿐만 아니라 바이너리 트리(BT: Binary-Tree) 및 터너리 트리(TT: Ternary-Tree)을 포함하는 멀티타입 트리 구조 분할을 기반하여 분할될 수 있다. 이하, QTBT 구조는 쿼드트리 및 바이너리 트리 기반 분할 구조를 포함할 수 있다. 또는 QTBTTT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 또는 QTBT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 코딩 트리 구조에서, CU는 정사각형 또는 직사각형 모양을 가질 수 있다. CTU는 먼저 쿼드트리 구조로 분할될 수 있다. 이후 쿼드트리 구조의 리프 노드들은 멀티타입 트리 구조에 의하여 더 분할될 수 있다. 예를 들어, 도 4를 참조하면, 멀티타입 트리 구조에서 개략적으로 4개의 분할 타입을 포함할 수 있다.
상기 4개의 분할 타입은 수직 바이너리 분할(vertical binary splitting, SPLIT_BT_VER), 수평 바이너리 분할(horizontal binary splitting, SPLIT_BT_HOR), 수직 터너리 분할(vertical ternary splitting, SPLIT_TT_VER), 수평 터너리 분할(horizontal ternary splitting, SPLIT_TT_HOR)을 포함할 수 있다. 상기 멀티타입 트리 구조의 리프 노드들은 CU들이라고 불리 수 있다. 이러한 CU들은 예측 및 변환 절차를 위하여 사용될 수 있다. 본 문서에서 일반적으로 CU, PU 및 TU는 동일한 블록 사이즈를 가질 수 있다. 다만, 최대 허용 변환 길이(maximum supported transform length)가 CU의 컬러 성분(colour component)의 너비 또는 높이보다 작은 경우 또는 최대 변환 크기가 CU의 크기보다 작은 경우에는 CU와 TU가 서로 다른 블록 사이즈를 가질 수 있다.
도 5는 다중 CU로 분할된 CTU의 예를 개략적으로 나타낸다.
다시 말해, 도 5는 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU가 다중 CU들로 분할되는 것을 예시적으로 도시한다.
여기서, 볼드 블록 엣지들(bold block edges)는 쿼드트리 파티셔닝을, 나머지 엣지들은 멀티타입 트리 파티셔닝을 나타낸다. 멀티타입 트리를 수반한 쿼드트리 파티션은 컨텐츠-어댑티드(content-adaptive) 코딩 트리 구조를 제공할 수 있다. CU는 코딩 블록(CB: Coding block)에 대응될 수 있다. 또는 CU는 루마 샘플들의 코딩 블록과, 대응하는 크로마 샘플들의 두 개의 코딩 블록들을 포함할 수 있다. CU의 사이즈는 CTU만큼 클 수도 있고, 또는 루마 샘플 단위에서 4x4 만큼 작을 수도 있다. 예를 들어, 4:2:0 컬러 포멧(or 크로마 포멧)인 경우, 최대 크로마 CB 사이즈는 64x64이고 최소 크로마 CB 사이즈는 2x2일 수 있다.
예를 들어, 본 문서에서 최대 허용 루마 TB 사이즈는 64x64이고, 최대 허용 크로마 TB 사이즈는 32x32일 수 있다. 만약 상기 트리 구조에 따라 분할된 CB의 너비 또는 높이가 최대 변환 너비 또는 높이보다 큰 경우, 해당 CB는 자동적으로(또는 묵시적으로) 수평 및 수직 방향의 TB 사이즈 제한을 만족할 때까지 분할될 수 있다.
한편, 멀티타입 트리를 수반한 쿼드트리 코딩 트리 스킴을 위하여, 다음 파라미터들이 SPS(Sequence Parameter Set) 신택스 요소로 정의 및 식별될 수 있다. 예를 들어, 파라미터 CTU size는 쿼터너리 트리의 루트 노드 사이즈(the root node size of a quaternary tree)를 나타낼 수 있고, 파라미터 MinQTSize는 최소 허용 쿼터너리 트리 리프 노드 사이즈(the minimum allowed quaternary tree leaf node size)를 나타낼 수 있고, 파라미터 MaxBtSize는 최대 허용 바이너리 트리 루트 노드 사이즈(the maximum allowed binary tree root node size)를 나타낼 수 있고, 파라미터 MaxTtSize는 최대 허용 터너리 트리 루트 노드 사이즈(the maximum allowed ternary tree root node size)를 나타낼 수 있고, 파라미터 MaxMttDepth는 쿼드트리 리프로부터 분할하는 멀티타입 트리의 최대 허용 계층적 뎁스(the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf)를 나타낼 수 있고, 파라미터 MinBtSize는 최소 허용 바이너리 트리 리프 노드 사이즈(the minimum allowed binary tree leaf node size)를 나타낼 수 있고, 파라미터 MinTtSize는 최소 허용 터너리 트리 리프 노드 사이즈(the minimum allowed ternary tree leaf node size)를 나타낼 수 있다.
멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조의 일 예로, CTU 사이즈는 128x128 루마 샘플들 및 두 개의 대응하는 크로마 샘플들의 64x64 블록들로 설정될 수 있다(4:2:0 크로마 포멧의 경우). 이 경우, MinOTSize는 16x16으로 설정되고, MaxBtSize는 128x128로 설정되고, MaxTtSzie는 64x64로 설정되고, MinBtSize 및 MinTtSize(for both width and height)는 4x4로, 그리고 MaxMttDepth는 4로 설정될 수 있다. 쿼트트리 파티셔닝은 CTU에 적용되어 쿼드트리 리프 노드들을 생성할 수 있다. 쿼드트리 리프 노드는 리프 QT 노드라고 불릴 수 있다. 쿼드트리 리프 노드들은 16x16 사이즈(i.e. the MinOTSize)로부터 128x128 사이즈(i.e. the CTU size)를 가질 수 있다. 만약 리프 QT 노드가 128x128인 경우, 추가적으로 바이너리 트리/터너리 트리로 분할되지 않을 수 있다. 이는 분할되더라도 MaxBtsize 및 MaxTtszie (i.e. 64x64)를 초과하기 때문이다. 이 외의 경우, 리프 QT 노드는 멀티타입 트리로 추가적으로 분할될 수 있다. 그러므로, 리프 QT 노드는 멀티타입 트리에 대한 루트 노드(root node)이고, 리프 QT 노드는 멀티타입 트리 뎁스(mttDepth) 0 값을 가질 수 있다. 만약, 멀티타입 트리 뎁스가 MaxMttdepth (ex. 4)에 도달한 경우, 더 이상 추가 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 너비가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수평 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 높이가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수직 분할은 고려되지 않을 수 있다.
본 문서에서, 코딩 트리 스킴(coding tree scheme)은 루마 및 크로마 (성분) 블록이 개별적(separate) 블록 트리 구조를 가지는 것을 지원할 수 있다. 하나의 CTU 내 루마 및 크로마 블록이 동일 블록 트리 구조를 가지는 경우는 싱글 트리(single_tree)라고 나타낼 수 있다. 하나의 CTU 내 루마 및 크로마 블록이 개별적 블록 트리 구조를 가지는 경우는 듀얼 트리(dual_tree)라고 나타낼 수 있다. 이 경우 루마 성분에 대한 블록 트리 타입은 DUAL_TREE_LUMA라고 나타낼 수 있고, 크로마 성분에 대한 블록 트리 타입은 DUAL_TREE_CHROMA라고 나타낼 수 있다. P 및 B 슬라이스들에 대하여, 하나의 CTU 내 루마 및 크로마 CTB(Coding Tree Block)들은 동일한 코딩 트리 구조를 갖도록 제한될 수 있다. 그러나, I 슬라이스들에 대하여, 루마 및 크로마 블록들은 서로 개별적 블록 트리 구조를 가질 수 있다. 만약 개별적 블록 트리 모드가 적용되는 경우, 루마 CTB는 특정 코딩 트리 구조를 기반으로 CU들로 분할되고, 크로마 CTB는 다른 코딩 트리 구조를 기반으로 크로마 CU들로 분할될 수 있다. 이는, I 슬라이스 내 CU는 한 개의 루마 성분의 코딩 블록 또는 두 개의 크로마 성분들의 코딩 블록들로 구성되고, P 또는 B 슬라이스의 CU는 세 가지 컬러 성분의 블록들로 구성될 수 있음을 의미할 수 있다.
다만, CU가 분할되는 구조는 상술한 바에 한정되지 않는다. 예를 들어, BT 구조 및 TT 구조는 다수 분할 트리(Multiple Partitioning Tree, MPT) 구조에 포함되는 개념으로 해석될 수 있고, CU는 QT 구조 및 MPT 구조를 통해 분할된다고 해석할 수 있다. QT 구조 및 MPT 구조를 통해 CU가 분할되는 일 예에서, QT 구조의 리프 노드가 몇 개의 블록으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_type 신택스 요소) 및 QT 구조의 리프 노드가 수직과 수평 중 어느 방향으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예를 들어, MPT_split_mode 신택스 요소)가 시그널링 됨으로써 분할 구조가 결정될 수 있다.
또 다른 예에서, CU는 QT 구조, BT 구조 또는 TT 구조와 다른 방법으로 분할될 수 있다. 즉, QT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 크기로 분할되거나, BT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/2 크기로 분할되거나, TT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 또는 1/2 크기로 분할되는 것과 달리, 하위 뎁스의 CU는 경우에 따라 상위 뎁스의 CU의 1/5, 1/3, 3/8, 3/5, 2/3 또는 5/8 크기로 분할될 수 있으며, CU가 분할되는 방법은 이에 한정되지 않는다.
도 6은 현재 블록의 블록 벡터의 예를 나타낸다.
도 6은 현재 영상에서 움직임 보상을 수행할 시, 움직임 보상을 수행 가능한 영역을 보여준다. 일반적인(general) 시간적 참조 영상을 이용하는 움직임 보상은 인-루프 필터링이 모두 적용된 영상을 사용한다. 현재 영상을 사용하는 움직임 보상에서 인-루프 필터링이 적용된 영상을 사용하려면, 이전에 디코딩된 현재 영상의 일부 영역에 대한 인-루프 필터링을 기다려야 하기 때문에 지연이 발생할 수 있다. 또는 현재 영상을 사용하는 움직임 보상에서 인-루프 필터링이 적용되지 않는 영상이 사용될 수 있다. 이 경우, 움직임 보상으로 사용하는 영역에 따라, 그에 대응하는 영상 버퍼가 필요할 수 있다. 이에 상기 움직임 보상 가능 영역은 현재 코딩 유닛을 포함하는 최대 코딩 유닛(또는 현재 CTU)으로 한정할 수 있다. 또는, 현재 최대 코딩 유닛 기준으로 +1 (단위) 또는 +2 (단위) 만큼 오른쪽의 최대 코딩 유닛을 움직임 보상 영역으로 사용할 수도 있다. 또는 상기 영상 버퍼는 상기 현재 CTU를 포함하는 특정 영역으로 한정할 수 있다. 본 문서에서는 현재 영상을(현재 픽처 내 복원 샘플들을) 참조 영상(참조 샘플들)으로 사용하여, 인터 참조 픽처가 존재하지 않는 I-슬라이스나 또는 가장 유사한 움직임 보상 블록이 현재 영상에 존재하는 경우에 코딩 효율을 높일 수 있다. 현재 영상에서 움직임 보상을 위해 사용하는 변위 값은 경우, 기존의 화면 간 영상에서 움직임 보상을 위한 움직임 벡터(motion vector)와 구별하기 위하여 블록 벡터(block vector)라고 부른다.
일 실시예는 현재 코딩 유닛의 인코딩하는 과정에서 지금까지 코딩되어진 현재 영상의 일 부분을 참조 영상으로 사용하는 방법에 대한 것이다. 디코더와 동일하게 인코더에서는 현재 영상 예측부에서 현재 영상을 참조 영상 리스트에 추가하고, 이미 코딩된 영역 중, 미리 정해진 영역에서 현재 블록과 가장 유사한 블록을 찾는다. 최적의 움직임 벡터는 기존의 인터 모드와 동일하게 움직임 정보 예측을 사용하며, 움직임 벡터 차분 값만 디코더로 전송된다.
현재 영상에서 움직임 보상을 사용하였는지를 나타내기 위해서, 두 가지 방법이 사용될 수 있다.
첫 번째, 참조 영상 인덱스를 기반으로 현재 영상에서 움직임 보상을 사용하였는지 판단할 수 있다. 예를 들어, if(DiffPicOrderCnt(currPic, RefPicList0[ref_idx_l0[x0][y0]])==0)와 같은 조건문이 이용될 수 있다. 여기서, DiffPicOrderCnt 함수는 입력으로 들어오는 2개의 영상 간의 picture order count(POC)의 차이를 나타낸다. 입력 값 currPic는 현재 코딩 대상 블록을 포함하는 현재 영상을 의미하고, RefPicList0[ref_idx_l0[x0][y0]]는 현재 코딩 대상 블록의 참조 영상을 의미한다. 여기서, x0, y0는 현재 블록의 위치를 나타내고, ref_idx_l0는 참조 영상 리스트 0 방향의 참조 영상 인덱스를 나타낸다. 따라서, 현재 블록의 참조 영상은 참조 영상 리스트에서 수신 받은 참조 영상 인덱스를 이용하여 계산할 수 있다. DiffPicOrderCnt 함수에 의한 출력 값 0은 현재 영상과 참조 영상이 동일한 영상임을 의미한다.
두 번째, 코딩 유닛 또는 블록 유닛 단위로 현재 영상에서 움직임 보상을 사용 여부를 플래그 형태로 전송할 수 있다. 일 실시예로, 인트라 블록 카피 플래그(intra_bc_flag)를 정의할 수 있고, 상기 플래그 값이 1인 경우, 해당 블록은 현재 영상에서 움직임 보상을 사용함을 나타내고, 상기 플래그 값이 0인 경우, 해당 블록은 현재 영상에서 움직임 보상을 사용하지 않음을 나타낼 수 있다. 여기서, 인트라 블록 카피 플래그는 IBC 플래그(pred_mode_ibc_flag) 신택스 요소로 나타낼 수 있으며, 코딩 유닛 신택스에 포함될 수 있다.
상술한 본 문서의 실시예를 기반으로 인코딩 장치에 의하여 도출된 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다. 상기 인코딩 정보는 현재 영상을 참조 영상으로 사용하는지 여부를 나타내는 정보 또는 플래그를 포함할 수 있다. 상기 인코딩된 정보는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 비-일시적인(non-transitory) 디지털 저장매체에 저장될 수 있다. 또한, 상술한 바와 같이 상기 비트스트림은 인코딩 장치에서 디코딩 장치로 바로 전송되지 않고, 외부 서버(ex. 컨텐츠 스트리밍 서버) 등을 통하여 스트리밍/다운로드 서비스될 수도 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.
본 문서에서 현재 영상에 대하여 움직임 보상(CPR: Current Picture Referencing)을 수행하는 경우(또는 인트라 블록 카피(IBC:Intra Block Copy) 예측을 수행하는 경우), 기존의 I 슬라이스는 P 슬라이스로 변경될 수 있다. 이에 따라, 해당 영상의 쿼드트리의 블록 크기는 P 슬라이스 또는 인터 슬라이스(inter slice)의 신택스에 의하여 결정될 수 있다. 다만, 영상은 I 슬라이스의 특징을 가질 수 있으므로, 쿼드트리의 블록 크기는 인트라 슬라이스(intra slice)의 신택스에 의하여 결정되는 것이 더욱 효율적일 수도 있다.
예를 들어, 인터 슬라이스는 B 슬라이스 또는 P 슬라이스를 나타낼 수 있다. 또는, 인터 슬라이스는 인터 예측을 수행하는 CTU 또는 CU를 포함하는 슬라이스를 나타낼 수 있다. 다만, B 슬라이스 또는 P 슬라이스는 인트라 예측도 수행할 수 있다. 예를 들어, 인터 슬라이스 신택스 요소(들)는 B 슬라이스 또는 P 슬라이스에 관한 신택스 요소(들)을 나타낼 수 있다. 또는 인터 슬라이스 신택스 요소(들)는 B 슬라이스 또는 P 슬라이스에 적용되는 신택스 요소(들)을 나타낼 수 있다.
예를 들어, 인트라 슬라이스는 I 슬라이스를 나타낼 수 있다. 또는 인트라 슬라이스는 인트라 예측을 수행하는 CTU 또는 CU를 포함하는 슬라이스를 나타낼 수 있다. 예를 들어, 인트라 슬라이스 신택스 요소(들)은 I 슬라이스에 관한 신택스 요소(들)을 나타낼 수 있다. 또는 인트라 슬라이스 신택스 요소(들)은 I 슬라이스에 적용되는 신택스 요소(들)을 나타낼 수 있다.
또한, SPS(Sequence Parameter Set)에서 듀얼 트리가 사용되는 경우, 크로마에 대한 쿼드트리의 크기(또는 쿼드트리 분할로 인한 블록의 크기)는 인터 슬라이스에 크로마에 대한 쿼드트리 조절 값이 존재하지 않으므로, 인터 슬라이스의 루마에 대한 신택스를 기반으로 결정될 수 있다. 다만, 크로마에 대한 쿼드트리 (블록) 크기는 인트라 신택스에 의하여 결정되는 것이 효율적일 수 있다. 따라서, 일 실시예에 따른 SPS 신택스는 크로마에 관한 신택스 요소 또는 인트라 신택스를 포함할 수 있다.
예를 들어, SPS는 하나 이상의 시퀀스에 공통적으로 적용할 수 있는 정보/파라미터를 포함할 수 있으며, 본 문서에서는 후술하는 루마/크로마 블록의 크기와 관련된 정보/파라미터가 SPS에 포함될 수 있다. 또는 루마/크로마 블록의 크기와 관련된 (정보/파라미터를 나타내는) 신택스 요소들이 SPS (신택스)에 포함될 수 있다. 또는 후술하는 루마/크로마 블록의 크기와 관련된 신택스 요소들은 반드시 SPS 신택스에 포함되어야 하는 것은 아니며, 하나 이상의 슬라이스 또는 픽처에 공통적으로 적용할 수 있는 정보/파라미터를 포함하는 APS(Adaptation Parameter Set) 신택스 또는 PPS(Picture Parameter Set) 신택스, 다중 레이어에 공통적으로 적용할 수 있는 정보/파라미터를 포함하는 VPS(Video Parameter Set) 신택스, 또는 비디오 전반에 공통적으로 적용할 수 있는 정보/파라미터를 포함하는 DPS(Decoding Parameter Set) 신택스에 포함될 수도 있다. 상술한 신택스들 또는 신택스들 중 적어도 일부는 영상 정보에 포함될 수 있으며, 영상 정보로서 인코딩/디코딩되어 시그널링될 수 있다.
예를 들어, 영상 정보 또는 SPS 신택스는 표 1과 같이 신택스 요소들을 포함할 수 있다. 또는, 영상 정보 또는 SPS 신택스는 표 1과 같은 신택스 요소들 중 일부만을 포함할 수도 있다. 또는 영상 정보 또는 SPS 신택스는 표 1과 같은 신택스 요소들 외에 다른 신택스 요소도 포함할 수 있다.
Figure PCTKR2020000059-appb-T000001
예를 들어, 표 1의 신택스 요소들이 나타내는 정보 또는 시맨틱스(semantics)는 다음과 같을 수 있다.
신택스 요소 qtbtt_dual_tree_intra_flag는 CU들이 루마 성분 및 크로마 성분에 대하여 분리된 (코딩 트리) 신택스 구조가 이용되는지에 대한 정보를 나타낼 수 있다. 즉, 신택스 요소 qtbtt_dual_tree_intra_flag는 (인트라 예측 또는 IBC 예측에서) 루마 성분 및 크로마 성분에 대하여 동일한 신택스 구조가 이용되는지 또는 서로 다른 신택스 구조가 이용되는지에 대한 정보를 나타낼 수 있다. 여기서, 상기 CU들은 CTU로부터 암시된(implicit) 쿼드트리 분할을 통해 64x64 루마 샘플들 크기로 분할된 CU들을 나타낼 수 있다.
신택스 요소 log2_ctu_size_minus2는 CTU 사이즈에 대한 정보를 나타낼 수 있으며, 해당 신택스 요소의 +2한 값이 CTU 사이즈를 나타낼 수 있다.
신택스 요소 log2_min_luma_coding_block_size_minus2는 최소 루마 코딩 블록 사이즈에 대한 정보를 나타낼 수 있으며, 해당 신택스 요소의 값의 +2한 값이 최소 루마 코딩 블록 사이즈를 나타낼 수 있다.
신택스 요소 partition_constraints_override_enabled_flag는 파티션 제약 파라미터(partition constraint parameter)에 관한 정보를 나타낼 수 있다. 또는 픽처 헤드에 partition_constraints_override_flag의 존재에 대한 정보 또는 파티션 제약 파라미터가 존재하는지에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice는 CTU의 쿼드트리 분할로 인한 루마 리프(leaf) 블록의 (루마 샘플들 내의) 최소 사이즈의 밑이 2인 로그 값과 B 슬라이스 또는 P 슬라이스 내의 루마 CU에 대한 (루마 샘플들 내의) 최소 루마 코딩 블록 사이즈의 밑이 2인 로그 값 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 예를 들어, 루마 리프 블록의 최소 사이즈는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice 및 상기 최소 루마 코딩 블록 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_max_mtt_hierarchy_depth_inter_slices는 B 슬라이스 또는 P 슬라이스 내의 쿼드트리 리프의 멀티타입 분할로 인한 코딩 유닛들에 대한 기본(default) 최대 계층 깊이에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice는 바이너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 루마 샘플들 내의 최대 사이즈의 밑이 2인 로그 값 및 B 슬라이스 또는 P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 루마 샘플들 내의 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 또는
신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice는 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 B 또는 P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice 및 상기 루마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma는 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최소 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 루마 CU들에 대한 (루마 샘플들 내의) 최소 코딩 블록 사이즈의 밑이 2인 로그 값 간의 기본 차이에 대한 정보를 나타낼 수 있다. 예를 들어, 루마 쿼드트리 분할로 인한 루마 리프 블록의 최소 사이즈는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma 및 상기 최소 (루마) 코딩 블록 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_max_mtt_hierarchy_depth_intra_slices_luma는 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 쿼드트리 리프의 멀티타입 분할로 인한 코딩 유닛들에 대한 기본(default) 최대 계층 깊이에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma는 바이너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 바이너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma 및 상기 루마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma는 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma 및 상기 루마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma는 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 (루마 샘플들 내의) 최소 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 듀얼 트리를 가지는 크로마 CU들에 대한 (루마 샘플들 내의) 최소 코딩 블록 사이즈의 밑이 2인 로그 값 간의 기본 차이에 대한 정보를 나타낼 수 있다. 예를 들어, 듀얼 트리에 따라 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 최소 사이즈는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma 및 듀얼 트리에 따른 상기 크로마 CU들에 대한 최소 코딩 블록 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma는 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 듀얼 트리를 가지는 크로마 쿼드트리 리프의 멀티타입 분할로 인한 크로마 코딩 유닛들에 대한 기본(default) 최대 계층 깊이에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma는 바이너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 바이너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma 및 상기 크로마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma는 터너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 또는 (현재 픽처만이 슬라이스의 참조 픽처인 경우) P 슬라이스 내의 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 터너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma 및 상기 크로마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
예를 들어, 상술한 신택스 요소들 중 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma, 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slices_luma, 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma, 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma 각각이 나타낼 수 있는 상세한 정보 또는 시맨틱스는 표 2와 같을 수 있다.
Figure PCTKR2020000059-appb-T000002
예를 들어, 상술한 신택스 요소들 중 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma, 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma, 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma 및 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma 각각이 나타낼 수 있는 상세한 정보 또는 시맨틱스는 표 3과 같을 수 있다.
Figure PCTKR2020000059-appb-T000003
예를 들어, 영상 정보 또는 SPS 신택스는 표 4와 같이 신택스 요소들을 포함할 수 있다. 또는, 영상 정보 또는 SPS 신택스는 표 4의 신택스 요소들 중 일부만을 포함할 수도 있다.
Figure PCTKR2020000059-appb-T000004
예를 들어, 표 4의 신택스 요소들이 나타내는 정보 또는 시맨틱스(semantics)는 다음과 같을 수 있다.
신택스 요소 qtbtt_dual_tree_intra_flag, 신택스 요소 log2_ctu_size_minus2, 신택스 요소 log2_min_luma_coding_block_size_minus2, 신택스 요소 partition_constraints_override_enabled_flag, 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma, 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slices_luma, 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma, 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma, 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma, 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma, 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma 및 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma 각각은 표 1과 함께 설명한 신택스 요소들과 동일한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma는 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최소 사이즈의 밑이 2인 로그 값 및 B 슬라이스 또는 P 슬라이스 내의 루마 CU들에 대한 (루마 샘플들 내의) 최소 루마 코딩 블록 사이즈의 밑이 2인 로그 값 간의 기본 차이에 대한 정보를 나타낼 수 있다. 예를 들어, CTU의 쿼드트리 분할로 인한 루마 리프 블록의 최소 사이즈는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma 및 상기 최소 루마 코딩 블록 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_max_mtt_hierarchy_depth_inter_slices_luma는 B 슬라이스 또는 P 슬라이스 내의 쿼드트리 리프의 멀티타입 분할로 인한 코딩 유닛들에 대한 기본(default) 최대 계층 깊이에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma는 바이너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 B 슬라이스 또는 P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 바이너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma 및 상기 루마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma는 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 B 또는 P 슬라이스 내의 CTU의 쿼드트리 분할로 인한 루마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 터너리 분할을 이용하여 분할될 수 있는 루마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma 및 상기 루마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma는 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 (루마 샘플들 내의) 최소 사이즈의 밑이 2인 로그 값 및 I 슬라이스 내의 듀얼 트리를 가지는 크로마 CU들에 대한 (루마 샘플들 내의) 최소 코딩 블록 사이즈의 밑이 2인 로그 값 간의 기본 차이에 대한 정보를 나타낼 수 있다. 예를 들어, 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 최소 사이즈는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma 및 상기 크로마 CU들에 대한 최소 코딩 블록 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma는 I 슬라이스 내의 듀얼 트리를 가지는 크로마 쿼드트리 리프의 멀티타입 분할로 인한 크로마 코딩 유닛들에 대한 기본(default) 최대 계층 깊이에 대한 정보를 나타낼 수 있다.
신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma는 바이너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 (루마 샘플들 내의) 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 내의 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 (루마 샘플들 내의) 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 바이너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma 및 상기 크로마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma는 터너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 루마 샘플들 내의 최대 사이즈의 밑이 2인 로그 값 및 I 슬라이스 내의 듀얼 트리를 가지는 크로마 CTU의 쿼드트리 분할로 인한 크로마 리프 블록의 루마 샘플들 내의 최대 사이즈(의 밑이 2인 로그 값) 간의 기본(default) 차이에 대한 정보를 나타낼 수 있다. 여기서, 사이즈는 너비 또는 높이를 나타낼 수 있다. 예를 들어, 터너리 분할을 이용하여 분할될 수 있는 크로마 코딩 블록의 최대 사이즈는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma 및 상기 크로마 리프 블록의 최대 사이즈를 기반으로 도출될 수 있다.
예를 들어, 상술한 신택스 요소들 중 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma, 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slices_luma, 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma, 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma 각각이 나타낼 수 있는 상세한 정보 또는 시맨틱스(semantics)는 표 5와 같을 수 있다.
Figure PCTKR2020000059-appb-T000005
예를 들어, 상술한 신택스 요소들 중 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma, 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma, 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma 및 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma 각각이 나타낼 수 있는 상세한 정보 또는 시맨틱스(semantics)는 표 6과 같을 수 있다.
Figure PCTKR2020000059-appb-T000006
즉, 일 실시예에 따르면, 현재 블록이 듀얼 트리 구조를 가지고, IBC 예측 모드인 경우, 루마 블록의 크기에 대한 정보와 별도의 크로마 블록의 크기에 대한 정보를 이용할 수 있으며, 이를 통해 압축 효율을 향샹시킬 수 있다. 또는 인터 예측 모드에서 이용되는 블록의 크기 정보를 이용하여 IBC 예측 모드에서 현재 픽처의 최대 쿼드트리 분할 크기 및 최소 쿼드트리 분할 크기를 도출할 수 있으며, 이를 통해 압축 효율을 향상시킬 수 있다.
일 실시예는 상술한 신택스 요소 또는 정보를 기반으로 루마 블록 및/또는 크로마 블록에 관한 정보(또는 크기에 대한 정보)를 나타낼 수 있으며, 이를 기반으로 (IBC) 예측을 수행할 수 있다. 또는 일 실시예는 상술한 신택스 요소 또는 정보를 기반으로 루마 블록 및 크로마 블록에 대하여 개별적으로 블록 크기에 대한 정보를 나타낼 수 있으며, 이를 기반으로 효율적으로 (IBC) 예측을 수행할 수 있다. 또는 일 실시예는 상술한 신택스 요소 또는 정보를 기반으로 루마 블록 및 크로마 블록에 대하여 개별적으로 블록 크기에 대한 정보를 나타낼 수 있으며, 이를 기반으로 루마 블록 및 크로마 블록에 대하여 개별적으로 블록 분할 또는 블록 파티셔닝을 수행할 수 있으며, 분할된 또는 파티셔닝된 루마 블록 및 크로마 블록을 기반으로 (IBC) 예측을 수행할 수 있다.
상술한 실시예에 따른 신택스 요소 또는 정보는 비트스트림 형태로 시그널링될 수 있다. 또는 상술한 실시예에 따른 신택스 요소 또는 정보는 SPS 신택스에 포함되어 비트스트림 형태로 시그널링될 수 있다. 또는 상술한 실시예에 따른 신택스 요소 또는 정보는 인코딩 장치에서 인코딩되어 비트스트림으로 디코딩 장치에게 시그널링될 수 있으며, 디코딩 장치에서 상기 비트스트림이 디코딩되어 상기 신택스 요소 또는 정보가 획득될 수 있다.
도 7 및 도 8은 본 문서의 실시예(들)에 따른 비디오/영상 인코딩 방법 및 관련 컴포넌트의 일 예를 개략적으로 나타낸다. 도 7에서 개시된 방법은 도 2에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 7의 S700 내지 S720은 도 8에서 상기 인코딩 장치의 예측부(220)에 의하여 수행될 수 있고, 도 7의 S730은 도 8에서 상기 인코딩 장치의 레지듀얼 처리부(230)에 의하여 수행될 수 있고, 도 7의 S740은 도 8에서 상기 인코딩 장치의 엔트로피 인코딩부(240)에 의하여 수행될 수 있다. 도 7에서 개시된 방법은 본 문서에서 상술한 실시예들을 포함할 수 있다.
도 7을 참조하면, 인코딩 장치는 현재 블록의 예측 모드를 IBC 예측 모드로 도출할 수 있다(S700). 예를 들어, IBC 예측 모드는 CPR(Current Picture Referencing)을 수행하는 예측 모드를 나타낼 수 있다. 즉, IBC 예측 모드는 현재 블록이 포함된 현재 픽처 내에서 움직임 보상을 수행하는 예측 모드를 나타낼 수 있다. 예를 들어, 현재 블록의 예측 모드가 인터 예측 모드인 경우, 예측을 수행하기 위해 현재 픽처와 다른 참조 픽처를 기반으로 움직임 벡터 및 움직임 벡터 차분을 도출할 수 있으나, 현재 블록의 예측 모드가 IBC 예측 모드인 경우, 예측을 수행하기 위해 현재 픽처를 기반으로 블록 벡터 및 블록 벡터 차분을 도출할 수 있다.
인코딩 장치는 IBC 예측 모드를 기반으로 현재 블록에 대한 블록 벡터를 도출할 수 있다(S710). 예를 들어, 인코딩 장치는 지금까지 코딩되어진 현재 픽처 내의 영역 중 미리 정해진 영역에서 현재 블록과 가장 유사한 블록을 찾을 수 있으며, 가장 유사한 블록 및 상기 현재 블록을 기반으로 블록 벡터를 도출할 수 있다. 예를 들어, 블록 벡터는 상기 현재 블록으로부터 상기 가장 유사한 블록까지의 정보를 나타낼 수 있다. 예를 들어, 가장 유사한 블록은 참조 블록으로 이용될 수 있다. 예를 들어, 미리 정해진 영역은 현재 코딩 유닛을 포함하는 현재 최대 코딩 유닛 또는 현재 코딩 트리 유닛(CTU:Coding Tree Unit)을 포함할 수 있다. 또는 미리 정해진 영역은 상기 현재 최대 코딩 유닛을 기준으로 +1 또는 +2 만큼 오른쪽의 최대 코딩 유닛을 포함할 수 있다.
인코딩 장치는 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 현재 블록의 예측 샘플들을 생성할 수 있다(S720). 예를 들어, 인코딩 장치는 상기 현재 픽처 내의 복원 샘플들(또는 복원 블록)을 참조 샘플들(또는 참조 블록)로 이용하여 상기 예측 샘플들(또는 예측된 블록)을 생성할 수 있다. 예를 들어, 복원 샘플들은 현재 픽처 내에 미리 복호화된 또는 복원된 샘플들을 나타낼 수 있으며, 상기 블록 벡터에 의해 상기 현재 블록으로부터의 상대적 위치가 결정될 수 있다.
인코딩 장치는 예측 샘플들을 기반으로 현재 블록의 레지듀얼 샘플들을 도출할 수 있다(S730). 예를 들어, 인코딩 장치는 상기 현재 블록에 대한 원본 샘플들과 예측 샘플들(또는 예측된 블록)을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들(또는 레지듀얼 블록)을 도출할 수 있다. 또는 인코딩 장치는 도시하지 않았으나, 상기 예측 샘플들(또는 예측된 블록)에 레지듀얼 샘플들(또는 레지듀얼 블록)을 더하여 복원 샘플들(또는 복원 블록)을 생성할 수도 있다.
인코딩 장치는 IBC 예측 모드에 관한 예측 모드 정보 및 레지듀얼 샘플들에 관한 정보를 포함하는 영상 정보를 인코딩할 수 있다(S740). 예를 들어, 인코딩 장치는 상기 레지듀얼 샘플들(또는 레지듀얼 샘플 어레이)에 관한 정보를 포함하는 레지듀얼에 관한 정보를 생성할 수 있으며, 상기 영상 정보는 레지듀얼에 관한 정보를 포함할 수 있다.레지듀얼 샘플들에 관한 정보 또는 레지듀얼에 관한 정보는 상기 레지듀얼 샘플들에 관한 변환 계수에 관한 정보를 포함할 수 있다.
예를 들어, 인코딩 장치는 상기 현재 블록의 IBC 예측 모드에 관한 예측 모드 정보를 생성할 수 있으며, 상기 영상 정보는 상기 예측 모드 정보를 포함할 수 있다. 예를 들어, 예측 모드 정보는 IBC 플래그를 포함할 수 있다. 또는 예측 모드 정보는 비교를 위한 현재 픽처의 POC(Picture Order Count)에 대한 정보 및 참조 (대상) 픽처의 POC에 대한 정보를 포함할 수 있다. 또는 예측 모드 정보는 현재 픽처를 기반으로 움직임 보상을 수행하는 정보를 포함할 수 있다. 또는 예측 모드 정보는 현재 블록의 예측과 관련된 다양한 정보들을 포함할 수도 있다.
도 7에는 도시하지 않았으나, 예를 들어, 상기 영상 정보는 블록 파티셔닝에 관한 정보를 더 포함할 수 있고, 인코딩 장치는 블록 파티셔닝에 관한 정보를 더 포함하는 상기 영상 정보를 인코딩할 수 있다. 또는 SPS(Sequence Parameter Set) 신택스가 상기 블록 파티셔닝에 관한 정보를 포함할 수 있고, 상기 영상 정보는 상기 SPS 신택스를 포함할 수 있다. 또한, 인코딩 장치는 SPS 신택스를 포함하는 상기 영상 정보를 인코딩할 수 있다.
예를 들어, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝 또는 분할된 블록일 수 있다. 또는 상기 현재 블록은 예측 모드에 따라 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝 또는 분할된 블록일 수 있다.
예를 들어, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함할 수 있다. 상기 루마 블록은 루마 성분의 블록 또는 상기 현재 블록의 루마 성분을 나타낼 수 있고, 크로마 블록은 크로마 성분의 블록 또는 상기 현재 블록의 크로마 성분을 나타낼 수 있다. 예를 들어, 크로마 블록은 루마 블록 또는 루마 성분에 관련된 크로마 블록 또는 크로마 성분일 수 있다. 또는 크로마 블록은 루마 블록 또는 루마 성분에 대응하는 크로마 블록 또는 크로마 성분일 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 루마 블록의 크기에 관한 정보 및 크로마 블록의 크기에 관한 정보를 (개별적으로) 포함할 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 I 슬라이스 또는 상기 IBC 예측 모드에 기반한 P 슬라이스에 적용되는 인트라 슬라이스 신택스 요소들을 포함할 수 있고, 상기 루마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 제1 인트라 슬라이스 신택스 요소를 기반으로 도출될 수 있고, 상기 크로마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 상기 제1 인트라 슬라이스 신택스 요소와 다른 제2 인트라 슬라이스 신택스 요소를 기반으로 도출될 수 있다.
예를 들어, 상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 1 내지 3을 참조하면, 상기 루마 코딩 블록이 최소 사이즈에 관한 정보는 신택스 요소 log2_min_luma_coding_block_size_minus2에 의해 나타낼 수 있다. 또는 상기 신택스 요소 log2_min_luma_coding_block_size_minus2를 포함할 수 있다. 상기 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma를 포함할 수 있다.
예를 들어, 상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고,
상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 1 내지 3을 참조하면, 상기 크로마 코딩 블록의 최소 사이즈에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보를 기반으로 도출될 수 있다. 또는 별도의 신택스 요소에 의해 시그널링될 수 있다. 상기 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma를 포함할 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 B 슬라이스 또는 P 슬라이스에 적용되는 인터 슬라이스 신택스 요소들을 포함할 수 있고, 상기 루마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 제1 인터 슬라이스 신택스 요소를 기반으로 도출될 수 있고, 상기 크로마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 상기 제1 인터 슬라이스 신택스 요소와 다른 제2 인터 슬라이스 신택스 요소를 기반으로 도출될 수 있다. 여기서, 상기 제2 인터 슬라이스 신택스 요소는 I 슬라이스에 관한 정보를 기반으로 도출될 수 있다.
예를 들어, 상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 4 내지 6을 참조하면, 상기 루마 코딩 블록이 최소 사이즈에 관한 정보는 신택스 요소 log2_min_luma_coding_block_size_minus2에 의해 나타낼 수 있다. 또는 상기 신택스 요소 log2_min_luma_coding_block_size_minus2를 포함할 수 있다. 상기 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma를 포함할 수 있다.
예를 들어, 상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 4 내지 6을 참조하면, 상기 크로마 코딩 블록의 최소 사이즈에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보를 기반으로 도출될 수 있다. 또는 별도의 신택스 요소에 의해 시그널링될 수 있다. 상기 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma를 포함할 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보 및/또는 상기 루마 리프 블록의 최대 사이즈에 관한 정보를 더 포함할 수 있다. 또는, 상기 블록 파티셔닝에 관한 정보는 표 1 내지 6과 같이 다른 정보들 또는 다른 신택스 요소들 중 일부 또는 전부가 더 포함할 수 있다. 또는, 상기 블록 파티셔닝에 관한 정보는 상술한 정보 또는 신택스 요소 외에도 다른 신택스 요소(들)도 더 포함할 수 있다.
인코딩 장치는 상술한 정보들(또는 신택스 요소들) 모두 또는 일부를 포함하는 영상 정보를 인코딩하여 비트스트림을 생성할 수 있다. 또는 비트스트림 형태로 출력할 수 있다. 또한, 상기 비트스트림은 네트워크 또는 저장매체를 통하여 디코딩 장치로 전송될 수 있다. 또는, 상기 비트스트림은 컴퓨터 판독 가능한 저장 매체에 저장될 수 있다.
도 9 및 도 10은 본 문서의 실시예(들)에 따른 비디오/영상 인코딩 방법 및 관련 컴포넌트의 일 예를 개략적으로 나타낸다. 도 9에서 개시된 방법은 도 3에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 9의 S900은 도 10에서 상기 디코딩 장치의 엔트로피 디코딩부(310)에 의하여 수행될 수 있고, 도 9의 S910 내지 S930은 도 10에서 상기 디코딩 장치의 예측부(330)에 의하여 수행될 수 있다. 또한, 도 9에서 도시하지 않았으나, 도 10에서 상기 디코딩 장치의 엔트로피 디코딩부(310)에 의하여 비트스트림으로부터 레지듀얼 정보를 획득할 수 있고, 레지듀얼 처리부(320)에 의하여 레지듀얼 정보를 기반으로 레지듀얼 샘플들을 도출할 수 있고, 가산부(340)에 의하여 예측 샘플들 및 레지듀얼 샘플들을 기반으로 복원 샘플들(또는 복원 블록)을 생성할 수 있다. 도 9에서 개시된 방법은 본 문서에서 상술한 실시예들을 포함할 수 있다.
도 9를 참조하면, 디코딩 장치는 비트스트림으로부터 블록 파티셔닝(partitioning)에 관한 정보 및 현재 블록에 대한 예측 모드 정보를 획득할 수 있다(S900). 또는 디코딩 장치는 비트스트림을 (엔트로피) 디코딩하여 예측 모드 정보 및 블록 파티셔닝에 관한 정보를 도출할 수 있다.
예를 들어, 상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝 또는 분할된 블록일 수 있다. 또는 상기 현재 블록은 예측 모드에 따라 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝 또는 분할된 블록일 수 있다.
예를 들어, 상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함할 수 있다. 상기 루마 블록은 루마 성분의 블록 또는 상기 현재 블록의 루마 성분을 나타낼 수 있고, 크로마 블록은 크로마 성분의 블록 또는 상기 현재 블록의 크로마 성분을 나타낼 수 있다. 예를 들어, 크로마 블록은 루마 블록 또는 루마 성분에 관련된 크로마 블록 또는 크로마 성분일 수 있다. 또는 크로마 블록은 루마 블록 또는 루마 성분에 대응하는 크로마 블록 또는 크로마 성분일 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 루마 블록의 크기에 관한 정보 및 크로마 블록의 크기에 관한 정보를 (개별적으로) 포함할 수 있다.
예를 들어, 블록 파티셔닝에 관한 정보는 SPS(Sequence Parameter Set) 신택스에 포함될 수 있고, 디코딩 장치는 비트스트림으로부터 상기 SPS 신택스를 획득할 수 있다.
예를 들어, 블록 파티셔닝에 관한 정보는 I 슬라이스 또는 상기 IBC 예측 모드에 기반한 P 슬라이스에 적용되는 인트라 슬라이스 신택스 요소들을 포함할 수 있고, 상기 루마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 제1 인트라 슬라이스 신택스 요소를 기반으로 도출될 수 있고, 상기 크로마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 상기 제1 인트라 슬라이스 신택스 요소와 다른 제2 인트라 슬라이스 신택스 요소를 기반으로 도출될 수 있다.
예를 들어, 상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 1 내지 3을 참조하면, 상기 루마 코딩 블록이 최소 사이즈에 관한 정보는 신택스 요소 log2_min_luma_coding_block_size_minus2에 의해 나타낼 수 있다. 또는 상기 신택스 요소 log2_min_luma_coding_block_size_minus2를 포함할 수 있다. 상기 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_luma를 포함할 수 있다.
예를 들어, 상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고,
상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 1 내지 3을 참조하면, 상기 크로마 코딩 블록의 최소 사이즈에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보를 기반으로 도출될 수 있다. 또는 별도의 신택스 요소에 의해 시그널링될 수 있다. 상기 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_intra_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_intra_slice_chroma를 포함할 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 B 슬라이스 또는 P 슬라이스에 적용되는 인터 슬라이스 신택스 요소들을 포함할 수 있고, 상기 루마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 제1 인터 슬라이스 신택스 요소를 기반으로 도출될 수 있고, 상기 크로마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 상기 제1 인터 슬라이스 신택스 요소와 다른 제2 인터 슬라이스 신택스 요소를 기반으로 도출될 수 있다. 여기서, 상기 제2 인터 슬라이스 신택스 요소는 I 슬라이스에 관한 정보를 기반으로 도출될 수 있다.
예를 들어, 상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 표 4 내지 6을 참조하면, 상기 루마 코딩 블록이 최소 사이즈에 관한 정보는 신택스 요소 log2_min_luma_coding_block_size_minus2에 의해 나타낼 수 있다. 또는 상기 신택스 요소 log2_min_luma_coding_block_size_minus2를 포함할 수 있다. 상기 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_luma를 포함할 수 있다. 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_luma를 포함할 수 있다.
예를 들어, 상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함할 수 있고, 상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출될 수 있고, 상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함할 수 있다.
예를 들어, 상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있고, 상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함할 수 있다.
예를 들어, 예를 들어, 표 4 내지 6을 참조하면, 상기 크로마 코딩 블록의 최소 사이즈에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보를 기반으로 도출될 수 있다. 또는 별도의 신택스 요소에 의해 시그널링될 수 있다. 상기 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_min_qt_min_cb_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보는 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_max_mtt_hierarchy_depth_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_bt_min_qt_inter_slice_chroma를 포함할 수 있다. 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보는 신택스 요소 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma에 의해 나타낼 수 있다. 또는 상기 신택스 요소 sps_log2_diff_max_tt_min_qt_inter_slice_chroma를 포함할 수 있다.
예를 들어, 상기 블록 파티셔닝에 관한 정보는 상기 루마 코딩 블록의 최소 사이즈에 관한 정보 및/또는 상기 루마 리프 블록의 최대 사이즈에 관한 정보를 더 포함할 수 있다. 또는, 상기 블록 파티셔닝에 관한 정보는 표 1 내지 6과 같이 다른 정보들 또는 다른 신택스 요소들 중 일부 또는 전부가 더 포함할 수 있다. 또는, 상기 블록 파티셔닝에 관한 정보는 상술한 정보 또는 신택스 요소 외에도 다른 신택스 요소(들)도 더 포함할 수 있다.
예를 들어, 예측 모드 정보는 IBC 플래그를 포함할 수 있다. 또는 예측 모드 정보는 현재 픽처의 POC(Picture Order Count)에 대한 정보 및 참조 (대상) 픽처의 POC에 대한 정보를 포함할 수 있다. 또는 예측 모드 정보는 현재 픽처를 기반으로 움직임 보상을 수행하는 정보를 포함할 수 있다. 또는 예측 모드 정보는 현재 블록의 예측과 관련된 다양한 정보들을 포함할 수도 있다.
디코딩 장치는 예측 모드 정보를 기반으로 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출할 수 있다(S910). 예를 들어, IBC 예측 모드는 CPR(Current Picture Referencing)을 수행하는 예측 모드를 나타낼 수 있다. 즉, IBC 예측 모드는 현재 블록이 포함된 현재 픽처 내에서 움직임 보상을 수행하는 예측 모드를 나타낼 수 있다. 예를 들어, 현재 블록의 예측 모드가 인터 예측 모드인 경우, 예측을 수행하기 위해 현재 픽처와 다른 참조 픽처를 기반으로 움직임 벡터 및 움직임 벡터 차분을 도출할 수 있으나, 현재 블록의 예측 모드가 IBC 예측 모드인 경우, 예측을 수행하기 위해 현재 픽처를 기반으로 블록 벡터 및 블록 벡터 차분을 도출할 수 있다.
예를 들어, 예측 모드 정보가 IBC 플래그를 포함하는 경우, 디코딩 장치는 IBC 플래그를 기반으로 현재 블록의 예측 모드를 IBC 예측 모드로 도출할 수 있다. 또는 예측 모드 정보가 현재 픽처의 POC(Picture Order Count)에 대한 정보 및 참조 (대상) 픽처의 POC에 대한 정보를 포함하는 경우, 디코딩 장치는 현재 픽처의 POC 및 참조 픽처의 POC간의 차이를 기반으로 현재 블록의 예측 모드를 IBC 예측 모드로 도출할 수 있다. 또는 예측 모드 정보는 현재 픽처를 기반으로 움직임 보상을 수행하는 정보를 포함할 수 있으며, 이를 기반으로 IBC 예측 모드를 도출할 수도 있다.
디코딩 장치는 IBC 예측 모드를 기반으로 현재 블록의 블록 벡터를 도출할 수 있다(S920). 예를 들어, 디코딩 장치는 지금까지 코딩되어진 현재 픽처 내의 영역 중 미리 정해진 영역에서 현재 블록과 가장 유사한 블록을 찾을 수 있으며, 가장 유사한 블록 및 상기 현재 블록을 기반으로 블록 벡터를 도출할 수 있다. 예를 들어, 블록 벡터는 상기 현재 블록으로부터 상기 가장 유사한 블록까지의 정보를 나타낼 수 있다. 예를 들어, 가장 유사한 블록은 참조 블록으로 이용될 수 있다. 예를 들어, 미리 정해진 영역은 현재 코딩 유닛을 포함하는 현재 최대 코딩 유닛 또는 현재 코딩 트리 유닛(CTU:Coding Tree Unit)을 포함할 수 있다. 또는 미리 정해진 영역은 상기 현재 최대 코딩 유닛을 기준으로 +1 또는 +2 만큼 오른쪽의 최대 코딩 유닛을 포함할 수 있다.
디코딩 장치는 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 현재 블록의 예측 샘플들을 생성할 수 있다(S930). 예를 들어, 디코딩 장치는 상기 현재 픽처 내의 복원 샘플들(또는 복원 블록)을 참조 샘플들(또는 참조 블록)로 이용하여 상기 예측 샘플들(또는 예측된 블록)을 생성할 수 있다. 예를 들어, 복원 샘플들은 현재 픽처 내에 미리 복호화된 또는 복원된 샘플들을 나타낼 수 있으며, 상기 블록 벡터에 의해 상기 현재 블록으로부터의 상대적 위치가 결정될 수 있다.
예를 들어, 도 9에서는 도시하지 않았으나, 디코딩 장치는 비트스트림으로부터 상기 레지듀얼 샘플들(또는 레지듀얼 샘플 어레이)에 관한 정보를 포함하는 레지듀얼에 관한 정보를 획득할 수 있으며, 레지듀얼 샘플들에 관한 정보 또는 레지듀얼에 관한 정보는 상기 레지듀얼 샘플들에 관한 변환 계수에 관한 정보를 포함할 수 있다. 또는 디코딩 장치는 비트스트림으로부터 상기 현재 블록의 예측과 관련된 다양한 정보들을 획득할 수도 있다.
디코딩 장치는 레지듀얼 샘플들에 관한 정보를 기반으로 레지듀얼 샘플들을 도출할 수 있으며, 상기 예측 샘플들 및 상기 레지듀얼 샘플들을 기반으로 복원 샘플들을 생성할 수 있고, 상기 복원 샘플들을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.
디코딩 장치는 비트스트림을 디코딩하여 상술한 정보들(또는 신택스 요소들) 모두 또는 일부를 포함하는 영상 정보를 획득할 수 있다. 또한, 상기 비트스트림은 컴퓨터 판독 가능한 디지털 저장 매체에 저장될 수 있으며, 상술한 디코딩 방법이 수행되도록 야기할 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 문서는 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 문서의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 본 문서에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 문서에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 문서에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.
도 11은 컨텐츠 스트리밍 시스템 구조를 개략적으로 나타낸다.
즉, 본 문서에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.
또한, 본 문서가 적용되는 디코딩 장치 및 인코딩 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recorder) 등을 포함할 수 있다.
또한, 본 문서가 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 문서에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다. 또한, 본 문서의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 문서의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독 가능한 캐리어 상에 저장될 수 있다.
또한, 본 문서가 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다. 상기 비트스트림은 본 문서가 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(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, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다. 상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.

Claims (15)

  1. 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,
    비트스트림으로부터 현재 블록에 대한 예측 모드 정보 및 블록 파티셔닝(partitioning)에 관한 정보를 획득하는 단계;
    상기 예측 모드 정보를 기반으로 상기 현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하는 단계;
    상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하는 단계; 및
    상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 단계를 포함하고,
    상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고,
    상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고,
    상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하고,
    상기 블록 파티셔닝에 관한 정보는 SPS(Sequence Parameter Set) 신택스에 포함되는 것을 특징으로 하는, 디코딩 방법.
  2. 제1항에 있어서,
    상기 블록 파티셔닝에 관한 정보는 I 슬라이스 또는 상기 IBC 예측 모드에 기반한 P 슬라이스에 적용되는 인트라 슬라이스 신택스 요소들을 포함하고,
    상기 루마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 제1 인트라 슬라이스 신택스 요소를 기반으로 도출되고,
    상기 크로마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 상기 제1 인트라 슬라이스 신택스 요소와 다른 제2 인트라 슬라이스 신택스 요소를 기반으로 도출되는 것을 특징으로 하는, 디코딩 방법.
  3. 제2항에 있어서,
    상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함하고,
    상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출되고,
    상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함하는 것을 특징으로 하는, 디코딩 방법.
  4. 제3항에 있어서,
    상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하는 것을 특징으로 하는, 디코딩 방법.
  5. 제2항에 있어서,
    상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함하고,
    상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출되고,
    상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함하는 것을 특징으로 하는, 디코딩 방법.
  6. 제5항에 있어서,
    상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하는 것을 특징으로 하는, 디코딩 방법.
  7. 제1항에 있어서,
    상기 블록 파티셔닝에 관한 정보는 B 슬라이스 또는 P 슬라이스에 적용되는 인터 슬라이스 신택스 요소들을 포함하고,
    상기 루마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 제1 인터 슬라이스 신택스 요소를 기반으로 도출되고,
    상기 크로마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 상기 제1 인터 슬라이스 신택스 요소와 다른 제2 인터 슬라이스 신택스 요소를 기반으로 도출되는 것을 특징으로 하고,
    상기 제2 인터 슬라이스 신택스 요소는 I 슬라이스에 관한 정보를 기반으로 도출되는 것을 특징으로 하는, 디코딩 방법.
  8. 제7항에 있어서,
    상기 루마 블록의 크기에 관한 정보는 루마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 루마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 루마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 루마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 루마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 루마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함하고,
    상기 루마 리프 블록은 루마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출되고,
    상기 루마 코딩 트리 블록은 상기 루마 코딩 블록을 포함하는 것을 특징으로 하는, 디코딩 방법.
  9. 제8항에 있어서,
    상기 루마 리프 블록의 최소 사이즈에 관한 정보는 상기 루마 리프 블록의 최소 사이즈 및 상기 루마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 루마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 루마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 루마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하는 것을 특징으로 하는, 디코딩 방법.
  10. 제7항에 있어서,
    상기 크로마 블록의 크기에 관한 정보는 크로마 코딩(coding) 블록의 최소 사이즈에 관한 정보, 크로마 리프(leaf) 블록의 최소 사이즈에 관한 정보, 상기 크로마 코딩 블록의 바이너리(binary) 분할이 가능한 최대 사이즈에 관한 정보, 상기 크로마 코딩 블록의 터너리(ternary) 분할이 가능한 최대 사이즈에 관한 정보 및 상기 크로마 코딩 블록의 바이너리 또는 터너리 분할이 가능한 최대 사이즈로부터 멀티트리 분할이 가능한 크로마 코딩 블록의 최대 뎁스(depth)에 관한 정보를 포함하고,
    상기 크로마 리프 블록은 크로마 코딩 트리 블록으로부터 쿼드트리(quadtree) 분할에 의해 도출되고,
    상기 크로마 코딩 트리 블록은 상기 크로마 코딩 블록을 포함하는 것을 특징으로 하는, 디코딩 방법.
  11. 제10항에 있어서,
    상기 크로마 리프 블록의 최소 사이즈에 관한 정보는 상기 크로마 리프 블록의 최소 사이즈 및 상기 크로마 코딩 블록의 최소 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 크로마 코딩 블록의 바이너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 바이너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하고,
    상기 크로마 코딩 블록의 터너리 분할이 가능한 최대 사이즈에 관한 정보는 상기 터너리 분할이 가능한 최대 사이즈 및 상기 크로마 리프 블록의 최대 사이즈 간의 차이에 대한 정보를 포함하는 것을 특징으로 하는, 디코딩 방법.
  12. 인코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,
    현재 블록의 예측 모드를 IBC(Intra Block Copy) 예측 모드로 도출하는 단계;
    상기 IBC 예측 모드를 기반으로 상기 현재 블록의 블록 벡터를 도출하는 단계;
    상기 블록 벡터가 가리키는 현재 픽처 내의 복원 샘플들을 기반으로 상기 현재 블록의 예측 샘플들을 생성하는 단계;
    상기 예측 샘플들을 기반으로 상기 현재 블록의 레지듀얼 샘플들을 도출하는 단계; 및
    상기 IBC 예측 모드에 관한 예측 모드 정보 및 상기 레지듀얼 샘플들에 관한 정보를 포함하는 영상 정보를 인코딩하는 단계를 포함하고,
    상기 영상 정보는 블록 파티셔닝에 관한 정보를 포함하는 SPS(Sequence Parameter Set) 신택스를 더 포함하고,
    상기 현재 블록은 상기 블록 파티셔닝에 관한 정보를 기반으로 파티셔닝된 블록이고,
    상기 현재 블록은 루마(luma) 블록 또는 상기 루마 블록에 관련된 크로마(chroma) 블록을 포함하고,
    상기 블록 파티셔닝에 관한 정보는 상기 루마 블록의 크기에 관한 정보 및 상기 크로마 블록의 크기에 관한 정보를 개별적으로 포함하는 것을 특징으로 하는, 인코딩 방법.
  13. 제12항에 있어서,
    상기 블록 파티셔닝에 관한 정보는 I 슬라이스 또는 상기 IBC 예측 모드에 기반한 P 슬라이스에 적용되는 인트라 슬라이스 신택스 요소들을 포함하고,
    상기 루마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 제1 인트라 슬라이스 신택스 요소를 기반으로 도출되고,
    상기 크로마 블록의 크기에 관한 정보는 상기 인트라 슬라이스 신택스 요소들 중 상기 제1 인트라 슬라이스 신택스 요소와 다른 제2 인트라 슬라이스 신택스 요소를 기반으로 도출되는 것을 특징으로 하는, 인코딩 방법.
  14. 제12항에 있어서,
    상기 블록 파티셔닝에 관한 정보는 B 슬라이스 또는 P 슬라이스에 적용되는 인터 슬라이스 신택스 요소들을 포함하고,
    상기 루마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 제1 인터 슬라이스 신택스 요소를 기반으로 도출되고,
    상기 크로마 블록의 크기에 관한 정보는 상기 인터 슬라이스 신택스 요소들 중 상기 제1 인터 슬라이스 신택스 요소와 다른 제2 인터 슬라이스 신택스 요소를 기반으로 도출되는 것을 특징으로 하고,
    상기 제2 인터 슬라이스 신택스 요소는 I 슬라이스에 관한 정보를 기반으로 도출되는 것을 특징으로 하는, 인코딩 방법.
  15. 컴퓨터 판독 가능한 디지털 저장 매체로서, 제1항에 기재된 영상 디코딩 방법을 수행하도록 야기하는 비트스트림이 저장되는 것을 특징으로 하는, 컴퓨터 판독 가능한 저장 매체.
PCT/KR2020/000059 2019-01-02 2020-01-02 인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치 WO2020141906A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962787751P 2019-01-02 2019-01-02
US62/787,751 2019-01-02

Publications (1)

Publication Number Publication Date
WO2020141906A1 true WO2020141906A1 (ko) 2020-07-09

Family

ID=71406579

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/000059 WO2020141906A1 (ko) 2019-01-02 2020-01-02 인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치

Country Status (1)

Country Link
WO (1) WO2020141906A1 (ko)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140130171A (ko) * 2012-05-29 2014-11-07 미디어텍 인크. 샘플 어댑티브 오프셋 정보를 부호화하는 방법 및 장치
US20170134724A1 (en) * 2014-07-07 2017-05-11 Hfi Innovation Inc. Method of Intra Block Copy Search and Compensation Range
KR20170068466A (ko) * 2014-10-07 2017-06-19 퀄컴 인코포레이티드 인트라 bc 및 인터 단일화

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140130171A (ko) * 2012-05-29 2014-11-07 미디어텍 인크. 샘플 어댑티브 오프셋 정보를 부호화하는 방법 및 장치
US20170134724A1 (en) * 2014-07-07 2017-05-11 Hfi Innovation Inc. Method of Intra Block Copy Search and Compensation Range
KR20170068466A (ko) * 2014-10-07 2017-06-19 퀄컴 인코포레이티드 인트라 bc 및 인터 단일화

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AN, JICHENG ET AL.: "CE1-related: Flexible Luma and Chroma Block Partitioning Trees Separation", JVET-L0184-V4. JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-TSG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 . 12TH MEETING, 6 October 2018 (2018-10-06), Macao, CN, pages 1 - 8 *
HUANG, YU-WEN ET AL.: "CE1-reiated: On maximum/minimum allowed QT/BT/TT sizes for chroma", JVET_L0548_V2. JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 W P 3 AND ISO/IEC JTC 1/SC 29/WG 11. 12TH MEETING, 3 October 2018 (2018-10-03), Macao, CN, pages 1 - 6 *

Similar Documents

Publication Publication Date Title
WO2020071829A1 (ko) 히스토리 기반 영상 코딩 방법 및 그 장치
WO2020071830A1 (ko) 히스토리 기반 움직임 정보를 이용한 영상 코딩 방법 및 그 장치
WO2019190181A1 (ko) 인트라 예측 기반 영상/비디오 코딩 방법 및 그 장치
WO2020197236A1 (ko) 서브 픽처 핸들링 구조 기반 영상 또는 비디오 코딩
WO2020171632A1 (ko) Mpm 리스트 기반 인트라 예측 방법 및 장치
WO2020189960A1 (ko) 크로마 포맷에 대한 정보를 시그널링 하는 방법 및 장치
WO2021137597A1 (ko) Ols에 대한 dpb 파라미터를 사용하는 영상 디코딩 방법 및 그 장치
WO2020145604A1 (ko) Mpm 리스트를 사용하는 인트라 예측 기반 영상 코딩 방법 및 장치
WO2020149630A1 (ko) 영상 코딩 시스템에서 cclm 예측 기반 영상 디코딩 방법 및 그 장치
WO2020005002A1 (ko) 영상 코딩 시스템에서 인터 예측에 따른 템플릿 영역 도출 방법 및 장치
WO2020141886A1 (ko) Sbtmvp 기반 인터 예측 방법 및 장치
WO2020076066A1 (ko) 신택스 디자인 방법 및 신택스를 이용하여 코딩을 수행하는 장치
WO2020141932A1 (ko) Cpr 기반 mmvd를 이용하는 인터 예측 방법 및 장치
WO2020180100A1 (ko) 인트라 블록 코딩 기반 비디오 또는 영상 코딩
WO2020141831A2 (ko) 인트라 블록 카피 예측을 이용한 영상 코딩 방법 및 장치
WO2020184821A1 (ko) Mpm 리스트를 구성하는 방법 및 장치
WO2021133060A1 (ko) 서브픽처 기반 영상 코딩 장치 및 방법
WO2021091256A1 (ko) 영상/비디오 코딩 방법 및 장치
WO2021118293A1 (ko) 필터링 기반 영상 코딩 장치 및 방법
WO2020251270A1 (ko) 서브블록 단위의 시간적 움직임 정보 기반 영상 또는 비디오 코딩
WO2020251338A1 (ko) 비디오 또는 영상 코딩 시스템에서의 인터 예측
WO2020141884A1 (ko) Cpr 기반 mmvd를 사용하는 영상 코딩 방법 및 장치
WO2020197031A1 (ko) 영상 코딩 시스템에서 다중 참조 라인 기반의 인트라 예측 방법 및 장치
WO2019225932A1 (ko) 영상 코딩 시스템에서 dmvr을 사용하는 영상 디코딩 방법 및 그 장치
WO2021107622A1 (ko) 영상/비디오 코딩 방법 및 장치

Legal Events

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

Ref document number: 20735876

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

Country of ref document: EP

Kind code of ref document: A1