WO2021006661A1 - Method and device for image encoding/decoding using bdpcm of residual signal and method for transmitting bitstream - Google Patents

Method and device for image encoding/decoding using bdpcm of residual signal and method for transmitting bitstream Download PDF

Info

Publication number
WO2021006661A1
WO2021006661A1 PCT/KR2020/009013 KR2020009013W WO2021006661A1 WO 2021006661 A1 WO2021006661 A1 WO 2021006661A1 KR 2020009013 W KR2020009013 W KR 2020009013W WO 2021006661 A1 WO2021006661 A1 WO 2021006661A1
Authority
WO
WIPO (PCT)
Prior art keywords
bdpcm
block
current block
prediction
information
Prior art date
Application number
PCT/KR2020/009013
Other languages
French (fr)
Korean (ko)
Inventor
유선미
최정아
최장원
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2021006661A1 publication Critical patent/WO2021006661A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • 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

  • the second information may include information indicating whether BDPCM is available for an intra-predicted block and information indicating whether BDPCM is available for an inter-predicted block.
  • a method and apparatus for encoding/decoding an image using BDPCM of a residual signal may be provided.
  • an image encoding/decoding method and apparatus for performing BDPCM on an intra predicted block and/or an inter/IBC predicted block may be provided.
  • an image encoding/decoding method and apparatus for efficiently signaling whether a residual signal of a BDPCM block exists or not can be provided.
  • a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
  • a recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
  • a recording medium may be provided that stores a bitstream that is received and decoded by the image decoding apparatus according to the present disclosure and used for image restoration.
  • FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
  • FIG. 4 is a schematic flowchart of a video decoding procedure applicable to an embodiment according to the present disclosure.
  • FIG. 5 is a schematic flowchart of an image encoding procedure applicable to an embodiment according to the present disclosure.
  • FIG. 6 is a flowchart illustrating a video/video encoding method based on intra prediction.
  • FIG. 7 is a diagram illustrating an exemplary configuration of an intra prediction unit 185 according to the present disclosure.
  • FIG. 8 is a flowchart illustrating a video/video decoding method based on intra prediction.
  • FIG. 10 is a diagram illustrating an intra prediction direction according to an embodiment of the present disclosure.
  • FIG. 11 is a diagram illustrating an intra prediction direction according to another embodiment of the present disclosure.
  • FIG. 13 shows a modified quantized residual block generated by performing BDPCM of the present disclosure.
  • 15 is a flowchart illustrating a procedure for restoring a current block by applying BDPCM in an image decoding apparatus.
  • 16 is a diagram schematically showing information on BDPCM included in the syntax structure of the current block.
  • 17 is a diagram for describing a method of encoding a syntax element of a higher level according to an embodiment of the present disclosure.
  • 20 is a diagram for describing a method of decoding a high-level syntax element according to another embodiment of the present disclosure.
  • 21 is a diagram for describing a method of encoding a syntax element at a block level according to another embodiment of the present disclosure.
  • FIG. 23 is a diagram for describing a method of encoding information indicating whether a residual signal exists in a current block according to another embodiment of the present disclosure.
  • 25 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
  • components that are distinguished from each other are intended to clearly describe each feature, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to be formed in one hardware or software unit, or one component may be distributed in a plurality of hardware or software units. Therefore, even if not stated otherwise, such integrated or distributed embodiments are also included in the scope of the present disclosure.
  • unit may represent a basic unit of image processing.
  • the unit may include at least one of a specific area of a picture and information related to the corresponding area.
  • the unit may be used interchangeably with terms such as “sample array”, “block”, or “area” depending on the case.
  • the MxN block may include samples (or sample arrays) consisting of M columns and N rows, or a set (or array) of transform coefficients.
  • current block may mean “a luma block of the current block” unless explicitly stated as a chroma block.
  • the "chroma block of the current block” may be expressed by including an explicit description of a chroma block, such as “chroma block” or "current chroma block”.
  • FIG. 1 shows a video coding system according to this disclosure.
  • a video coding system may include an encoding device 10 and a decoding device 20.
  • the encoding device 10 may transmit the encoded video and/or image information or data in a file or streaming format to the decoding device 20 through a digital storage medium or a network.
  • the encoding apparatus 10 may include a video source generator 11, an encoder 12, and a transmission unit 13.
  • the decoding apparatus 20 may include a receiving unit 21, a decoding unit 22, and a rendering unit 23.
  • the encoder 12 may be referred to as a video/image encoder, and the decoder 22 may be referred to as a video/image decoder.
  • the transmission unit 13 may be included in the encoding unit 12.
  • the receiving unit 21 may be included in the decoding unit 22.
  • the rendering unit 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source generator 11 may acquire a video/image through a process of capturing, synthesizing, or generating a video/image.
  • the video source generator 11 may include a video/image capturing device and/or a video/image generating 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 capturing process may be substituted as a process of generating related data.
  • the encoder 12 may encode an input video/image.
  • the encoder 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and encoding efficiency.
  • the encoder 12 may output encoded data (coded video/image information) in a bitstream format.
  • the decoder 22 may decode the video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoder 12.
  • the rendering unit 23 may render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • FIG. 2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
  • the image encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse transform unit ( 150), an addition unit 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190.
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a “prediction unit”.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115.
  • the image dividing unit 110 may divide an input image (or picture, frame) input to the image encoding apparatus 100 into one or more processing units.
  • the processing unit may be referred to as a coding unit (CU).
  • the coding unit is a coding tree unit (CTU) or a largest coding unit (LCU) recursively according to a QT/BT/TT (Quad-tree/binary-tree/ternary-tree) structure ( It can be obtained by dividing recursively.
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and/or a ternary tree structure.
  • a quad tree structure may be applied first, and a binary tree structure and/or a ternary tree structure may be applied later.
  • the coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer divided.
  • the largest coding unit may be directly used as the final coding unit, or a coding unit of a lower depth obtained by dividing the largest coding unit may be used as the final cornet unit.
  • the coding procedure may include a procedure such as prediction, transformation, and/or restoration described later.
  • the processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU).
  • Each of the prediction unit and the transform unit may be divided or partitioned from the final coding unit.
  • the prediction unit may be a unit of sample prediction
  • the transform unit may be a unit for inducing a transform coefficient and/or a unit for inducing a residual signal from the transform coefficient.
  • the prediction unit (inter prediction unit 180 or intra prediction unit 185) performs prediction on a block to be processed (current block), and generates a predicted block including prediction samples for the current block. Can be generated.
  • the prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU.
  • the prediction unit may generate various information on prediction of the current block and transmit it to the entropy encoding unit 190.
  • the information on prediction may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra prediction unit 185 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in a neighborhood of the current block or may be located away from each other according to an intra prediction mode and/or an intra prediction technique.
  • the intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 185 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on a correlation between motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing 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 from each other.
  • the temporal neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), or the like.
  • a reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive a motion vector and/or a reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes.
  • the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block.
  • a residual signal may not be transmitted.
  • motion vector prediction (MVP) mode motion vectors of neighboring blocks are used as motion vector predictors, and indicators for motion vector difference and motion vector predictors ( indicator) to signal the motion vector of the current block.
  • the motion vector difference may mean a difference between a motion vector of a current block and a motion vector predictor.
  • the prediction unit may generate a prediction signal based on various prediction methods and/or prediction techniques to be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of the current block, and may simultaneously apply intra prediction and inter prediction. A prediction method in which intra prediction and inter prediction are applied simultaneously for prediction of a current block may be called combined inter and intra prediction (CIIP). Also, the prediction unit may perform intra block copy (IBC) for prediction of the current block. The intra block copy may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC). IBC is a method of predicting a current block by using a reference block in a current picture at a distance from the current block by a predetermined distance.
  • CIIP combined inter and intra prediction
  • IBC intra block copy
  • the intra block copy may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC).
  • IBC is a method of predicting a current block by using a reference
  • the position of the reference block in the current picture may be encoded as a vector (block vector) corresponding to the predetermined distance.
  • IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.
  • 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 subtraction unit 115 subtracts the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array), and subtracts a residual signal (remaining block, residual sample array). ) Can be created.
  • the generated residual signal may be transmitted to the converter 120.
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • the transformation technique uses at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform).
  • DCT Discrete Cosine Transform
  • DST Discrete Sine Transform
  • KLT Kerhunen-Loeve Transform
  • GBT Graph-Based Transform
  • CNT Supplementally Non-linear Transform
  • GBT refers to the transformation obtained from this graph when the relationship information between pixels is expressed in a graph.
  • CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels.
  • the conversion process may be applied to a block of pixels having the same size of a square, or may be applied to a block of a variable size other than a square.
  • the quantization unit 130 may quantize the transform coefficients and transmit the quantization to the entropy encoding unit 190.
  • the entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream.
  • the information on the quantized transform coefficients may be called residual information.
  • the quantization unit 130 may rearrange the quantized transform coefficients in the form of a block into a one-dimensional vector form based on a coefficient scan order, and the quantized transform coefficients in the form of the one-dimensional vector It is also possible to generate information about transform coefficients.
  • the entropy encoding unit 190 may perform various encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode together or separately information necessary for video/image restoration (eg, values of syntax elements) in addition to quantized transform coefficients.
  • the encoded information (eg, encoded video/video information) may be transmitted or stored in a bitstream format in units of network abstraction layer (NAL) units.
  • the video/video information may further include information on 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 bitstream may be transmitted through a network or may be stored in a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • a transmission unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and/or a storage unit (not shown) for storing may be provided as an inner/outer element of the image encoding apparatus 100, or transmission The unit may be provided as a component of the entropy encoding unit 190.
  • the addition unit 155 adds the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 to obtain a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array). Can be generated.
  • a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array).
  • the predicted block may be used as a reconstructed block.
  • the addition unit 155 may be referred to as a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
  • the filtering unit 160 may apply filtering to the reconstructed signal to improve subjective/objective image quality.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 170, specifically, the DPB of the memory 170. Can be saved on.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the filtering unit 160 may generate a variety of filtering information and transmit it to the entropy encoding unit 190 as described later in the description of each filtering method.
  • the filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180.
  • the image encoding apparatus 100 may avoid prediction mismatch between the image encoding apparatus 100 and the image decoding apparatus, and may improve encoding efficiency.
  • the DPB in the memory 170 may store a reconstructed picture modified to be used as a reference picture in the inter prediction unit 180.
  • the memory 170 may store motion information of a block from which motion information in a current picture is derived (or encoded) and/or motion information of blocks in a picture that have already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of spatial neighboring blocks or motion information of temporal neighboring blocks.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185.
  • the image decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, and a memory 250. ), an inter prediction unit 260 and an intra prediction unit 265 may be included.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a “prediction unit”.
  • the inverse quantization unit 220 and the inverse transform unit 230 may be included in the residual processing unit.
  • All or at least some of the plurality of constituent units constituting the image decoding apparatus 200 may be implemented as one hardware component (eg, a decoder or a processor) according to embodiments.
  • the memory 170 may include a DPB and may be implemented by a digital storage medium.
  • the image decoding apparatus 200 may receive a signal output from the image encoding apparatus of FIG. 2 in the form of a bitstream.
  • the received signal may be decoded through the entropy decoding unit 210.
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/video information) necessary for image restoration (or picture restoration).
  • the video/video information may further include information on 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 image decoding apparatus may additionally use information on the parameter set and/or the general restriction information to decode an image.
  • the signaling information, received information and/or syntax elements mentioned in the present disclosure may be obtained from the bitstream by being decoded through the decoding procedure.
  • the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and a value of a syntax element required for image restoration, a quantized value of a transform coefficient related to a residual. Can be printed.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and includes information on the syntax element to be decoded, information on decoding information of a neighboring block and a block to be decoded, or information on a symbol/bin decoded in a previous step
  • the context model is determined by using and, according to the determined context model, the probability of occurrence of bins is predicted to perform arithmetic decoding of bins to generate symbols corresponding to the values of each syntax element. I can.
  • the CABAC entropy decoding method may update the context model using information of the decoded symbol/bin for the context model of the next symbol/bin after the context model is determined.
  • the entropy decoding unit 210 Among the information decoded by the entropy decoding unit 210, information on prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the register on which entropy decoding is performed by the entropy decoding unit 210 Dual values, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. In addition, information about filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
  • a receiving unit for receiving a signal output from the image encoding device may be additionally provided as an inner/outer element of the image decoding device 200, or the receiving unit is provided as a component of the entropy decoding unit 210 It could be.
  • the video decoding apparatus may include an information decoder (video/video/picture information decoder) and/or a sample decoder (video/video/picture sample decoder).
  • the information decoder may include an entropy decoding unit 210, and the sample decoder includes an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, a memory 250, It may include at least one of the inter prediction unit 260 and the intra prediction unit 265.
  • the inverse quantization unit 220 may inverse quantize the quantized transform coefficients and output transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients into a two-dimensional block shape. In this case, the rearrangement may be performed based on a coefficient scan order performed by the image encoding apparatus.
  • the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients by using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
  • a quantization parameter eg, quantization step size information
  • the inverse transform unit 230 may inverse transform transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the prediction information output from the entropy decoding unit 210, and determine a specific intra/inter prediction mode (prediction technique). I can.
  • the prediction unit can generate the prediction signal based on various prediction methods (techniques) described later.
  • the intra prediction unit 265 may predict the current block by referring to samples in the current picture.
  • the description of the intra prediction unit 185 may be equally applied to the intra prediction unit 265.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information.
  • Inter prediction may be performed based on various prediction modes (techniques), and the information about the prediction may include information indicating a mode (technique) of inter prediction for the current block.
  • the addition unit 235 is reconstructed by adding the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265). Signals (restored pictures, reconstructed blocks, reconstructed sample arrays) can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the description of the addition unit 155 may be equally applied to the addition unit 235.
  • the addition unit 235 may be referred to as a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
  • the filtering unit 240 may apply filtering to the reconstructed signal to improve subjective/objective image quality.
  • the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 250, specifically the DPB of the memory 250. Can be saved on.
  • the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
  • the (modified) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260.
  • the memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that have 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 250 may store reconstructed samples of reconstructed blocks in the current picture, and may be transmitted to the intra prediction unit 265.
  • embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the image encoding apparatus 100 are respectively the filtering unit 240 of the image decoding apparatus 200, The same or corresponding to the inter prediction unit 260 and the intra prediction unit 265 may be applied.
  • pictures constituting the video/video may be encoded/decoded according to a series of decoding orders.
  • a picture order corresponding to an output order of a decoded picture may be set differently from the decoding order, and based on this, not only forward prediction but also backward prediction may be performed during inter prediction.
  • FIG. 4 is a schematic flowchart of a video decoding procedure applicable to an embodiment according to the present disclosure.
  • step S410 may be performed by the entropy decoding unit 210 of the image decoding apparatus
  • step S420 may be performed by the prediction units 260 and 265
  • step S430 may be performed by the residual processing units 220 and 230
  • step S440 may be performed by the adding unit 235
  • step S450 may be performed by the filtering unit 240.
  • Step S410 may include the information decoding (parsing) procedure described in the present disclosure
  • step S420 may include the inter/intra prediction procedure described in the present disclosure
  • step S430 may include the residual processing described in the present disclosure.
  • a procedure may be included, and step S440 may include a block/picture restoration procedure described in the present disclosure, and step S450 may include an in-loop filtering procedure described in the present disclosure.
  • the image decoding procedure is schematically a procedure for obtaining image/video information (through decoding) from a bitstream (S410), an image (picture) restoration procedure (S420 to S440), and a reconstructed image (picture). It may include an in-loop filtering procedure (S450) for.
  • the image restoration procedure is based on prediction samples obtained through inter/intra prediction (S420) and residual samples obtained through a residual processing (S430, inverse quantization and/or inverse transformation of a quantized transform coefficient). Can be done.
  • a modified reconstructed picture may be generated through an in-loop filtering procedure (S450) for the reconstructed picture generated through the image restoration procedure, and the modified reconstructed picture may be output as a decoded picture.
  • the in-loop filtering procedure includes a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and/or a bi-lateral filter procedure, as described above.
  • the deblocking filtering procedure may be sequentially applied, or all of them may be sequentially applied. It can also be applied.
  • the SAO procedure may be performed after the deblocking filtering procedure is applied to the reconstructed picture.
  • the ALF procedure may be performed. This can be similarly performed in an image encoding apparatus.
  • FIG. 5 is a schematic flowchart of an image encoding procedure applicable to an embodiment according to the present disclosure.
  • step S510 may be performed by the prediction units 180 and 185 of the image encoding apparatus
  • step S520 may be performed by the residual processing units 115, 120 and 130
  • step S530 may be performed by the entropy encoding unit. It can be done at 190.
  • Step S510 may include the inter/intra prediction procedure described in this disclosure
  • step S520 may include the residual processing procedure described in this disclosure
  • step S530 includes the information encoding procedure described in this disclosure can do.
  • the image encoding procedure is not only a procedure of encoding information for picture restoration (ex. prediction information, residual information, partitioning information, etc.) and outputting it in a bitstream format, as well as a reconstructed picture for a current picture.
  • a procedure of generating and applying in-loop filtering to a reconstructed picture may be included.
  • the image encoding apparatus may derive (modified) residual samples from the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150, and prediction samples that are outputs of step S510 and the (modified) A reconstructed picture may be generated based on the residual samples.
  • the reconstructed picture generated in this way may be the same as the reconstructed picture generated by the above-described video decoding apparatus.
  • a modified reconstructed picture can be generated through an in-loop filtering procedure for the reconstructed picture, which can be stored in a decoded picture buffer (DPB) 170 or a memory, and, as in the case of a video decoding apparatus, a subsequent picture It can be used as a reference picture in an inter prediction procedure upon encoding of. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted.
  • DPB decoded picture buffer
  • (in-loop) filtering-related information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream, and the image decoding apparatus
  • the in-loop filtering procedure may be performed in the same way as the image encoding apparatus.
  • a reference sample line having the highest prediction accuracy among the neighboring multi-reference sample lines of the current block may be selected, and a prediction sample may be derived using a reference sample positioned in the prediction direction from the corresponding line.
  • information on the used reference sample line eg, intra_luma_ref_idx
  • MRL multi-reference line intra prediction
  • reference samples may be derived from a reference sample line directly adjacent to the current block, and in this case, information about the reference sample line may not be signaled.
  • FIG. 6 is a flowchart illustrating a video/video encoding method based on intra prediction.
  • the image encoding apparatus may generate a reconstructed picture (including reconstructed samples and a reconstructed block). To this end, the image encoding apparatus may perform inverse quantization/inverse transformation on the quantized transform coefficients again to derive (modified) residual samples. The reason why the residual samples are transformed/quantized and then inverse quantized/inverse transformed is performed to derive residual samples identical to the residual samples derived from the image decoding apparatus.
  • the image encoding apparatus may generate a reconstructed block including reconstructed samples for the current block based on the prediction samples and the (modified) residual samples. A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
  • the image encoding apparatus may encode a modified quantized residual block including the modified quantized residual samples, and transmit the coded to the image decoding apparatus.
  • transformation is not performed on the modified quantized residual block.
  • FIG. 14 is a flowchart illustrating a procedure for encoding a current block by applying BDPCM in an image encoding apparatus.
  • the BDPCM operation in the image encoding apparatus described with reference to FIGS. 12 to 14 may be reversely performed in the image decoding apparatus.
  • a prediction block of the current block may be generated after the residual block of the current block is generated.
  • the residual block of the current block and the prediction block of the current block may be simultaneously generated.
  • the image decoding apparatus may generate a residual block of the current block by parsing the residual information of the current block from the bitstream (S1530).
  • the residual block generated in step S1530 may be a modified quantized residual block shown in FIG. 13.
  • the image decoding apparatus may generate the quantized residual block of FIG. 12 by performing BDPCM prediction on the modified quantized residual block of FIG. 13 (S1540).
  • the BDPCM prediction of step S1540 is a procedure of generating the quantized residual block of FIG. 12 from the modified quantized residual block of FIG. 13, and thus may correspond to the reverse process of step S1450 performed by the image encoding apparatus.
  • Equation 4 is a reverse process corresponding to Equation 1.
  • the value Q(r 0, j ) of the quantized residual sample of the (0, j) coordinate is the value of the modified quantized residual sample of the (0, j) coordinate r'0 , j Is induced by
  • the Q(r i, j ) of other (i, j) coordinates is the quantized value of the modified quantized residual sample of (i, j) coordinates r'i , j and (i-1, j) coordinates. It is derived from the sum of the residual samples Q(r i-1, j ).
  • the value Q(r i, j ) of the quantized residual sample of the (i, j) coordinate is modified quantized from the (i, 0) coordinate to the (i, j) coordinate. It can be calculated by summing the values of the residual samples.
  • the value Q(r i, j ) of the quantized residual sample of the (i, j) coordinate may be calculated using Equation 6 instead of Equation 5 above.
  • the quantized residual sample value Q() is summed by summing the difference values r'i and j using the quantized residual sample value Q(r i, j-1 ) of the (i, j-1) coordinate as a predicted value.
  • r i, j can be derived.
  • Equation 5 and 6 are determinants for M rows x N columns, i in Equation 5 or Equation 6 is an index for a row (corresponding to the y coordinate), and j May mean an index for a column (corresponding to the x coordinate). Therefore, Q(r i, j ) means the value of the quantized residual sample of the (j, i) coordinate, and r'i, j is the value of the modified quantized residual sample of the (j, i) coordinate Can mean That is, when the prediction direction of the BDPCM is in the horizontal direction, a determinant for generating a quantized residual block from the modified quantized residual block may be expressed as Equation 5 or 6 above.
  • the image decoding apparatus When a quantized residual block composed of quantized residual samples is generated by performing step S1540 according to the above method, the image decoding apparatus performs inverse quantization on the quantized residual block (S1550), You can create a residual block.
  • S1550 quantized residual block
  • the image decoding apparatus may reconstruct the current block based on the prediction block generated in step S1520 and the residual block generated in step S1550 (S1560). For example, the image decoding apparatus may reconstruct the current block (the value of the restored sample) by adding the prediction block (the value of the predicted sample) and the residual block (the value of the residual sample).
  • 16 is a diagram schematically showing information on BDPCM included in the syntax structure of the current block.
  • transform coding means transforming an input signal into a signal of another domain.
  • transformation in the video compression field refers to converting a signal in a spatial domain into a signal in a frequency domain.
  • the reason for performing the transformation in the video compression field is that when a signal in the spatial domain is converted to a signal in the frequency domain, information is concentrated in the low-frequency region and the high-frequency region has little information, enabling efficient compression. .
  • the compression efficiency is higher when no conversion is performed, and in this case, the conversion can be skipped.
  • the BDPCM uses the distribution characteristic of residual coefficients of the intra skip coded block or the inter-predicted block as described above.
  • BDPCM is applied, as described above, instead of encoding (quantized) residual coefficients, a difference value generated by performing line-by-line prediction between residual coefficients in a row or column direction is encoded.
  • the size of the level of the dual coefficient becomes smaller. That is, when BDPCM is applied, since the level of the coefficients reduced as described above is encoded, the occurrence of context coded bins required for encoding can be reduced, which can improve the throughput of the decoder. You can contribute.
  • the residual signal may be encoded/decoded using a grammar for transform skip or lossless coding.
  • whether BDPCM is available for an intra predicted block, an inter predicted block, and/or an IBC predicted block may be controlled at a higher level of the block.
  • the BDPCM can be extended and applied not only to the intra-predicted block, but also to a block predicted in another prediction mode.
  • the syntax table described in the present disclosure may be configured and encoded by an image encoding apparatus.
  • the encoded syntax table may be transmitted to an image decoding apparatus through a bitstream.
  • the image decoding apparatus may parse/decode information included in the syntax table in the form of a syntax element.
  • One or more embodiments described in the present disclosure may be implemented in combination with each other.
  • the video encoding apparatus may generate information on BDPCM by encoding a current image (picture) using BDPCM.
  • the video decoding apparatus may decode the current image (picture) based on the information on the BDPCM.
  • whether BDPCM is available for an intra predicted block, an inter predicted block, and/or an IBC predicted block may be controlled at a higher level.
  • the higher level may be a sequence parameter set (SPS).
  • SPS sequence parameter set according to an embodiment of the present disclosure may be expressed as shown in Table 2.
  • the syntax element sps_transform_skip_enabled_flag may be information indicating whether transform skip is available for the corresponding sequence.
  • sps_transform_skip_enabled_flag has a first value (e.g.,'true' or '1')
  • sps_transform_skip_enabled_flag has a second value (e.g.,'false' or '0')
  • the transformation is omitted May indicate that this is not available.
  • information indicating whether or not to apply transformation skipping (e.g., transform_skip_flag) may be signaled at the level of the transformation unit.
  • the syntax element sps_bdpcm_enabled_flag may be information indicating whether BDPCM is available for a corresponding sequence. have.
  • sps_bdpcm_enabled_flag has a first value (e.g.,'true' or '1'), it indicates that BDPCM is available, and when it has a second value (e.g.,'false' or '0'), BDPCM is not available Can represent.
  • the syntax elements sps_intra_bdpcm_enabled_flag and/or sps_inter_bdpcm_enabled_flag may be signaled.
  • the syntax element sps_intra_bdpcm_enabled_flag may be information indicating whether BDPCM is available for an intra-predicted block included in a corresponding sequence.
  • sps_intra_bdpcm_enabled_flag has a first value (e.g.,'true' or '1')
  • sps_intra_bdpcm_enabled_flag has a second value (e.g.,'false' or '0').
  • it may indicate that BDPCM is not available for the intra-predicted block.
  • bdpcm_flag information indicating whether to apply BDPCM to the intra predicted block (eg, bdpcm_flag) may be signaled at the level of the coding block. If sps_intra_bdpcm_enabled_flag has a second value, since BDPCM is not applied to the intra-predicted block, bdpcm_flag is not signaled and its value may be inferred as '0'.
  • the syntax element sps_inter_bdpcm_enabled_flag may be information indicating whether BDPCM is available for an inter-predicted block included in a corresponding sequence.
  • sps_inter_bdpcm_enabled_flag has a first value (eg,'true' or '1'), it indicates that BDPCM is available for an inter-predicted block, and sps_inter_bdpcm_enabled_flag sets a second value (eg,'false' or '0'). When present, it may indicate that BDPCM is not available for the inter-predicted block.
  • bdpcm_flag information indicating whether to apply BDPCM to the inter-predicted block
  • sps_inter_bdpcm_enabled_flag has a second value, since BDPCM is not applied to the inter-predicted block, bdpcm_flag is not signaled and its value may be inferred as '0'.
  • IBC prediction can be processed by one of the inter prediction techniques, whether BDPCM is available for the IBC predicted block may be determined by sps_inter_bdpcm_enabled_flag.
  • IBC prediction may be processed as one of intra prediction techniques.
  • whether BDPCM is available for the IBC predicted block may be determined by sps_intra_bdpcm_enabled_flag.
  • a separate syntax element eg, sps_ibc_bdpcm_enabled_flag
  • indicating whether BDPCM is available for the IBC predicted block may be signaled by processing the IBC prediction in a separate prediction mode.
  • Table 2 illustrates SPS as an example of a high-level grammar, but is not limited thereto, and other high-level grammars such as PPS (Picture Parameter Set), DPS (Decoding Parameter Set), APS (Adaptation Parameter Set), and Slice Header May be used.
  • PPS Picture Parameter Set
  • DPS Decoding Parameter Set
  • APS Adaptation Parameter Set
  • Slice Header May be used.
  • the embodiment according to the present disclosure may not have the structure shown in Table 2. May be applicable.
  • 17 is a diagram for describing a method of encoding a syntax element of a higher level according to an embodiment of the present disclosure.
  • the image encoding apparatus may determine whether transform skip is available. When the transformation omission is available, the video encoding apparatus may encode sps_transform_skip_enabled_flag as the first value, and if not, may encode sps_transform_skip_enabled_flag as the second value (S1710).
  • the image encoding apparatus may determine whether or not transformation omission is available. For example, the image encoding apparatus may perform the determination based on the value of sps_transform_skip_enabled_flag (S1720). When it is determined that the transformation omission is not available (S1720-No), the video encoding apparatus may terminate encoding of the BDPCM related information.
  • the video encoding apparatus may determine whether BDPCM is available. When BDPCM is available, the video encoding apparatus may encode sps_bdpcm_enabled_flag as a first value, and if not, may encode sps_bdpcm_enabled_flag as a second value (S1730).
  • the video encoding apparatus may determine whether BDPCM is available. For example, the image encoding apparatus may perform the determination based on the value of sps_bdpcm_enabled_flag (S1740). If it is determined that the BDPCM is not available (S1740-No), the video encoding apparatus may terminate encoding of the BDPCM related information.
  • the video encoding apparatus may determine whether BDPCM is available for a block predicted in a predetermined prediction mode.
  • the predetermined prediction mode may include at least one of an intra prediction mode, an inter prediction mode, or an IBC prediction mode.
  • the IBC prediction mode may be processed as an inter prediction mode or a separate mode.
  • the apparatus for encoding an image may determine whether BDPCM is available for an intra-predicted block.
  • the video encoding apparatus When BDPCM is available for the intra-predicted block, the video encoding apparatus encodes sps_intra_bdpcm_enabled_flag as a first value, and if not, may encode sps_intra_bdpcm_enabled_flag as a second value. Similarly, when BDPCM is available for the inter/IBC predicted block, the video encoding apparatus encodes sps_inter_bdpcm_enabled_flag as a first value, and otherwise, may encode sps_inter_bdpcm_enabled_flag as a second value (S1750).
  • the image encoding apparatus may generate and encode the syntax structure of Table 2 by performing the encoding according to FIG. 17.
  • FIG. 18 is a diagram for describing a method of decoding a high-level syntax element according to an embodiment of the present disclosure.
  • the video decoding apparatus may parse and decode information (eg, sps_transform_skip_enabled_flag) indicating whether or not transform skip is available (S1810).
  • decode information eg, sps_transform_skip_enabled_flag
  • the video decoding apparatus may determine whether or not conversion is available. For example, the image decoding apparatus may perform the determination based on the value of sps_transform_skip_enabled_flag (S1820). If it is determined that the conversion omission is not available (S1820-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
  • the video decoding apparatus may parse and decode information indicating whether the BDPCM is available (eg, sps_bdpcm_enabled_flag) (S1830).
  • the video decoding apparatus may determine whether BDPCM is available. For example, the image decoding apparatus may perform the determination based on the value of sps_bdpcm_enabled_flag (S1840). If it is determined that the BDPCM is not available (S1840-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
  • the syntax structure of a higher level may be changed in consideration of a case where lossless coding is performed.
  • lossless encoding an encoding/decoding process that may cause information loss, such as transform and/or quantization, may be modified or bypassed.
  • technologies that cause information loss such as high frequency zero-out, joint CbCr, and sign data hiding may not be applied.
  • in-loop filtering since the decoded image is the same as the original image, in-loop filtering may not be necessary.
  • the syntax element sps_transquant_bypass_enabled_flag may be transmitted at a higher level (eg, SPS) to indicate whether lossless coding is available, that is, whether or not a processing process causing information loss is bypassed.
  • SPS higher level
  • Table 2 may be modified as shown in Table 3 below.
  • information indicating whether lossless coding is available is a syntax element sps_transquant_bypass_enabled_flag, and when sps_transquant_bypass_enabled_flag has a first value (eg,'true' or '1'), it indicates that lossless coding is available, and sps_transquant_bypass_enabled_flag is second. When it has a value (eg,'false' or '0'), it may indicate that lossless coding is not available. When lossless coding is available, information indicating whether to apply lossless coding (eg, cu_transquant_bypass_flag) may be signaled at the level of the coding unit. Redundant descriptions of the syntax elements commonly included in Tables 2 and 3 are omitted.
  • 19 is a diagram for describing a method of encoding a high-level syntax element according to another embodiment of the present disclosure.
  • the image encoding apparatus may determine whether lossless coding is available. When lossless encoding is available, the video encoding apparatus may encode sps_transquant_bypass_enabled_flag as a first value, and if not, may encode sps_transquant_bypass_enabled_flag as a second value (S1910).
  • the image encoding apparatus may determine whether lossless encoding is available. For example, the image encoding apparatus may perform the determination based on the value of sps_transquant_bypass_enabled_flag (S1920). When it is determined that lossless encoding is available (S1920-Yes), the video encoding apparatus skips encoding information indicating whether or not transformation is available (e.g., sps_transform_skip_enabled_flag), and moves to step S1940 to perform encoding of BDPCM-related information. Can be done. At this time, since sps_transquant_bypass_enabled_flag has a first value, the determination result of step S1940 is always'True'.
  • sps_transquant_bypass_enabled_flag has a first value
  • step S1950 may be changed to determine only whether or not transformation skip is available (sps_transform_skip_enabled_flag).
  • the image encoding apparatus may determine whether transform skip is available. When omitting transformation is available, the video encoding apparatus may encode sps_transform_skip_enabled_flag as a first value, and otherwise, may encode sps_transform_skip_enabled_flag as a second value (S1930).
  • the image encoding apparatus may determine whether lossless encoding is available and/or whether transformation omission is available. For example, the video encoding apparatus may perform the determination based on values of sps_transquant_bypass_enabled_flag and/or sps_transform_skip_enabled_flag (S1940). When it is determined that lossless encoding is not available and it is determined that transformation omission is not available (S1940-No), the video encoding apparatus may terminate encoding of BDPCM-related information.
  • step S1940 is changed to determine only whether the transformation omission is available, it may not be determined whether lossless encoding is available in the above description.
  • the image encoding apparatus may generate and encode the syntax structure of Table 3 by performing the encoding according to FIG. 19.
  • 20 is a diagram for describing a method of decoding a high-level syntax element according to another embodiment of the present disclosure.
  • the video decoding apparatus may parse and decode information indicating whether lossless coding is available (eg, sps_transquant_bypass_enabled_flag) (S2010).
  • the video decoding apparatus may determine whether lossless coding is available. For example, the image decoding apparatus may perform the determination based on the value of sps_transquant_bypass_enabled_flag (S2020). When it is determined that lossless encoding is available (S2020-Yes), the video decoding apparatus skips decoding of information indicating whether or not transformation is available (e.g., sps_transform_skip_enabled_flag), and moves to step S2040 to parse BDPCM-related information and Decryption can be performed. At this time, since sps_transquant_bypass_enabled_flag has a first value, the determination result of step S2040 is always'True'.
  • sps_transquant_bypass_enabled_flag has a first value
  • step S2040 may be changed to determine only whether or not transformation skip is available (sps_transform_skip_enabled_flag).
  • the video decoding apparatus may parse and decode information (e.g., sps_transform_skip_enabled_flag) indicating whether transform skip is available (S2030).
  • decode information e.g., sps_transform_skip_enabled_flag
  • the image decoding apparatus may determine whether lossless encoding is available and/or whether transformation omission is available. For example, the image decoding apparatus may perform the determination based on the values of sps_transquant_bypass_enabled_flag and/or sps_transform_skip_enabled_flag (S2040). When it is determined that lossless encoding is not available and it is determined that the transformation omission is not available (S2040-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
  • the image decoding apparatus may move to step S2050 to parse and decode BDPCM related information. Since the subsequent steps have been described with reference to FIG. 18, duplicate descriptions are omitted.
  • step S2040 is changed to determine only whether the conversion omission is available, it may not be determined whether lossless encoding is available in the above description.
  • the video decoding apparatus may parse and decode the syntax structure of Table 3 by performing the decoding according to FIG. 20.
  • a syntax structure of an encoding unit signaling information related to BDPCM may be changed.
  • Table 4 is an example of a syntax structure of an encoding unit according to another embodiment of the present disclosure.
  • the syntax element bdpcm_flag may indicate whether BDPCM is applied to the current coding unit (current block). For example, when bdpcm_flag has a first value (eg,'true' or '1'), it indicates that BDPCM is applied, and when bdpcm_flag has a second value (eg,'false' or '0'), BDPCM May indicate not applicable. If the syntax element bdpcm_flag does not exist in the bitstream, the value can be inferred as the second value. In Table 4, the syntax element bdpcm_dir_flag may indicate the prediction direction of BDPCM.
  • bdpcm_dir_flag when bdpcm_dir_flag has a first value (eg, '1'), it indicates that the prediction direction of BDPCM is a vertical direction, and when bdpcm_dir_flag has a second value (eg, '0'), the prediction direction of BDPCM is horizontal It can indicate that it is a direction. If the syntax element bdpcm_dir_flag does not exist in the bitstream, the value can be inferred as the second value.
  • bdpcm_dir_flag when bdpcm_dir_flag does not exist in the bitstream, the value can be inferred as the second value.
  • syntax element bdpcm_dir_flag may be signaled through the bitstream only when bdpcm_flag has a first value.
  • the present invention is not limited thereto, and bdpcm_dir_flag may be signaled regardless of bdpcm_flag.
  • BDPCM related information may be signaled based on the size of the current block. According to the embodiment shown in Table 5, BDPCM can be applied not only to intra predicted blocks but also to inter/IBC predicted blocks.
  • 21 is a diagram for describing a method of encoding a syntax element at a block level according to another embodiment of the present disclosure.
  • the video encoding apparatus may determine whether the BDPCM is available (S2110). Availability of BDPCM may be determined based on whether the availability conditions described in Tables 4 and 5 are satisfied, but is not limited thereto.
  • the availability condition of BDPCM may include whether sps_bdpcm_intra_enabled_flag is a first value, whether the current block is an intra-predicted block, or sps_bdpcm_inter_enabled_flag is a first value, and whether the current block is an inter/IBC predicted block.
  • the availability condition of BDPCM may include whether sps_bdpcm_enabled_flag is a first value and cu_skip_flag is 0, regardless of the prediction mode of the current block.
  • the image encoding apparatus may determine whether to apply BDPCM.
  • the video encoding apparatus may encode bdpcm_flag as the first value, and otherwise, may encode bdpcm_flag as the second value (S2120).
  • the video encoding apparatus may determine whether to apply BDPCM. For example, the image encoding apparatus may perform the determination based on the value of bdpcm_flag (S2130). When it is determined that BDPCM is not applied (S2130-No), the video encoding apparatus may terminate encoding of BDPCM-related information.
  • the image encoding apparatus may determine a prediction direction of BDPCM (S2140).
  • the prediction direction of BDPCM is a vertical direction
  • the image encoding apparatus may encode bdpcm_dir_flag as a first value
  • the prediction direction of BDPCM is a horizontal direction
  • the image encoding apparatus may encode bdpcm_dir_flag as the second value (S2140).
  • step S2140 may be performed regardless of step S2130. That is, if BDPCM is available, bdpcm_flag and bdpcm_dir_flag may be determined and encoded.
  • the image encoding apparatus may generate and encode the syntax structure of Table 4 or 5 by performing the encoding according to FIG. 21.
  • 22 is a diagram for describing a method of decoding a syntax element at a block level according to another embodiment of the present disclosure.
  • the video decoding apparatus may determine whether the BDPCM is available (S2210).
  • the availability conditions of step S2210 and BDPCM are the same as described in step S2110 of FIG. 21, and thus will be omitted.
  • the video decoding apparatus may terminate parsing/decoding of BDPCM related information.
  • the video decoding apparatus may parse and decode information indicating whether to apply BDPCM (eg, bdpcm_flag) (S2220).
  • the video decoding apparatus may determine whether to apply BDPCM. For example, the image decoding apparatus may perform the determination based on the value of bdpcm_flag (S2230). If it is determined that BDPCM is not applied (S2230-No), the video decoding apparatus may terminate parsing/decoding of BDPCM related information.
  • the video decoding apparatus may parse and decode information indicating the prediction direction of BDPCM (eg, bdpcm_dir_flag) (S2240).
  • step S2240 may be performed irrespective of step S2230. That is, when BDPCM is available, bdpcm_flag and bdpcm_dir_flag may be parsed and decoded.
  • the image decoding apparatus may parse and decode the syntax structure of Table 4 or 5 by performing the decoding according to FIG. 22.
  • a context model used when CABAC encoding/decoding BDPCM related information may be adaptively selected according to a prediction mode of the current block and/or whether BDPCM is applied to a neighboring block.
  • two different context models may be used depending on whether the prediction mode of the current block is an intra prediction mode or an inter/IBC prediction mode.
  • three different context models may be used depending on whether the prediction mode of the current block is an intra prediction mode, an inter prediction mode, or an IBC prediction mode.
  • a single context model may be used regardless of the prediction mode of the current block.
  • two different context models may be used depending on whether a neighboring block to which BDPCM is applied exists.
  • three different context models may be used depending on whether BDPCM is applied to the left neighboring block and whether BDPCM is applied to the upper neighboring block.
  • a different context model may be used when both neighboring blocks are BDPCM blocks, only one neighboring block is a BDPCM block, and both neighboring blocks are not BDPCM blocks.
  • a single context model may be used regardless of whether or not BDPCM is applied to neighboring blocks.
  • a plurality of different context models may be used according to a combination of a prediction mode of the current block and whether BDPCM is applied to a neighboring block.
  • a context model may be adaptively selected according to a BDPCM prediction direction of a neighboring block.
  • tu_cbf_luma of an inter/IBC predicted block may be efficiently encoded/decoded.
  • the BDPCM can be applied to not only intra-predicted blocks but also inter/IBC-predicted blocks, and improvement of coding efficiency can be expected by using similarity between residual signals.
  • tu_cbf_luma of the corresponding block may have a value of 0.
  • a gain is obtained by signaling only bdpcm_flag and bdpcm_dir_flag instead of signaling information about an intra prediction mode.
  • the intra prediction mode of the current block is a horizontal direction mode and there is no residual signal
  • a first value eg, By signaling only bdpcm_flag having'true' or '1'
  • bdpcm_dir_flag indicating the horizontal direction
  • the syntax element tu_cbf_luma transmitted at the block (transform block) level may indicate whether a non-zero transform coefficient exists in the corresponding block.
  • the corresponding block may include at least one non-zero transform coefficient.
  • tu_cbf_luma has a second value (eg, '0')
  • all transform coefficients of the corresponding block are 0.
  • the syntax element tu_cbf_luma does not exist in the bitstream, its value may be inferred as a first value or a second value based on other syntax elements and/or encoding parameters.
  • FIG. 23 is a diagram for describing a method of encoding information indicating whether a residual signal exists in a current block according to another embodiment of the present disclosure.
  • the image encoding apparatus may determine whether BDPCM is applied to the current block (S2310). For example, the image encoding apparatus may perform the determination based on the value of bdpcm_flag.
  • the image encoding apparatus may determine whether a residual signal exists in the current block. When a residual signal exists in the current block, the image encoding apparatus may encode tu_cbf_luma as the first value, and otherwise, may encode tu_cbf_luma as the second value (S2330).
  • the image encoding apparatus may determine a prediction mode of the current block (S2320). For example, the apparatus for encoding an image may determine whether the prediction mode of the current block is intra prediction, inter prediction, or IBC prediction based on information indicating the prediction mode of the current block.
  • step S2330 When the prediction mode of the current block is intra prediction, the apparatus for encoding an image may perform step S2330.
  • the description of step S2330 is as described above.
  • the apparatus for encoding an image may omit encoding information indicating whether a residual signal exists in the current block (eg, tu_cbf_luma) (S2340). At this time, since the residual signal of the current block exists, tu_cbf_luma may be considered to have a first value.
  • step S2310 and step S2320 may be performed simultaneously, or step S2320 may be performed prior to step S2310.
  • the image encoding apparatus may perform encoding of information indicating whether a residual signal exists in the current block by performing encoding according to FIG. 23.
  • the video decoding apparatus may determine whether BDPCM is applied to the current block (S2410). For example, the image decoding apparatus may perform the determination based on the value of bdpcm_flag.
  • the image decoding apparatus may determine a prediction mode of the current block (S2420). For example, the image decoding apparatus may determine whether the prediction mode of the current block is intra prediction, inter prediction, or IBC prediction based on information indicating the prediction mode of the current block.
  • exemplary methods of the present disclosure are expressed as a series of operations for clarity of description, but this is not intended to limit the order in which steps are performed, and each step may be performed simultaneously or in a different order if necessary.
  • the illustrative steps may include additional steps, other steps may be included excluding some steps, or may include additional other steps excluding some steps.
  • an image encoding apparatus or an image decoding apparatus performing a predetermined operation may perform an operation (step) of confirming an execution condition or situation of the operation (step). For example, when it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding apparatus or the video decoding apparatus performs an operation to check whether the predetermined condition is satisfied, and then performs the predetermined operation. I can.
  • various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof.
  • one or more ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, or the like.
  • the image decoding device and the image encoding device to which the embodiment of the present disclosure is applied include a multimedia broadcasting transmission/reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, and a real-time communication device such as video communication.
  • Mobile streaming devices storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical use. It may be included in a video device or the like, and may be used to process a video signal or a data signal.
  • an 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).
  • DVR digital video recorder
  • the content streaming system to which the embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage device, a user device, and a multimedia input device.
  • the encoding server serves to generate a bitstream by compressing content input from multimedia input devices such as smartphones, cameras, camcorders, etc. into digital data, and transmits it to the streaming server.
  • multimedia input devices such as smartphones, cameras, camcorders, etc. directly generate bitstreams
  • the encoding server may be omitted.
  • the bitstream may be generated by an image encoding method and/or an image encoding apparatus to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in a process of transmitting or receiving the bitstream.
  • 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 digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, and Tablet PC, ultrabook, wearable device, for example, smartwatch, smart glass, head mounted display (HMD)), digital TV, desktop There may be computers, digital signage, etc.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • HMD head mounted display
  • TV desktop
  • desktop There may be computers, digital signage, etc.
  • Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributedly processed.
  • the scope of the present disclosure is software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium (non-transitory computer-readable medium) which stores instructions and the like and is executable on a device or a computer.
  • a non-transitory computer-readable medium non-transitory computer-readable medium
  • An embodiment according to the present disclosure may be used to encode/decode an image.

Landscapes

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

Abstract

A method and a device for image encoding/decoding are provided. An image decoding method according to the present disclosure is an image decoding method performed by an image decoding device, and may comprise the steps of: parsing, from a bitstream, first information indicating whether conversion omission is available; when the first information indicates that conversion omission is available, parsing, from the bitstream, second information indicating that block difference pulse code modulation (BDPCM) is available; when the second information indicates that BDPCM is available, parsing, from the bitstream, third information indicating whether BDPCM is applied to a current block; when the third information indicates that BDPCM is applied to the current block, determining a prediction direction of BDPCM for the current block, and generating a residual block of the current block on the basis of the determined prediction direction of BDPCM; generating a prediction block of the current block by performing prediction on the basis of a prediction mode of the current block; and restoring the current block on the basis of the residual block and the prediction block.

Description

잔차 신호의 BDPCM을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법Image encoding/decoding method, apparatus, and method for transmitting bitstream using BDPCM of residual signal
본 개시는 영상 부호화/복호화 방법 및 장치에 관한 것으로서, 보다 상세하게는, 잔차 신호의 BDPCM(Block Difference Pulse Code Modulation)을 이용하여 영상을 부호화/복호화하는 방법, 장치 및 본 개시의 영상 부호화 방법/장치에 의해 생성된 비트스트림을 전송하는 방법에 관한 것이다.The present disclosure relates to a method and apparatus for encoding/decoding an image, and more particularly, a method and apparatus for encoding/decoding an image using BDPCM (Block Difference Pulse Code Modulation) of a residual signal, and an image encoding method/ It relates to a method of transmitting a bitstream generated by an apparatus.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하게 된다. 전송되는 정보량 또는 비트량의 증가는 전송 비용과 저장 비용의 증가를 초래한다.Recently, demand for high-resolution and high-quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields. As the image data becomes high-resolution and high-quality, the amount of information or bits to be transmitted increases relative to the existing image data. An increase in the amount of information or bits to be transmitted causes an increase in transmission cost and storage cost.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위한 고효율의 영상 압축 기술이 요구된다. Accordingly, there is a need for a highly efficient image compression technology for effectively transmitting, storing, and reproducing information of high-resolution and high-quality images.
본 개시는 부호화/복호화 효율이 향상된 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.An object of the present disclosure is to provide an image encoding/decoding method and apparatus with improved encoding/decoding efficiency.
또한, 본 개시는 잔차 신호의 BDPCM을 이용하여 영상을 부호화/복호화하는 방법 및 장치를 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a method and apparatus for encoding/decoding an image using BDPCM of a residual signal.
또한, 본 개시는 BDPCM 관련 정보를 효율적으로 시그널링하는 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a video encoding/decoding method and apparatus for efficiently signaling BDPCM related information.
또한, 본 개시는 인트라 예측된 블록 및/또는 인터/IBC 예측된 블록에 대해 BDPCM을 수행하는 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a video encoding/decoding method and apparatus for performing BDPCM on an intra predicted block and/or an inter/IBC predicted block.
또한, 본 개시는 BDPCM 블록의 잔차 신호 존재 여부를 효율적으로 시그널링하는 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a video encoding/decoding method and apparatus for efficiently signaling whether a residual signal of a BDPCM block exists.
또한, 본 개시는 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 전송하는 방법을 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure.
또한, 본 개시는 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 저장한 기록 매체를 제공하는 것을 목적으로 한다.Further, an object of the present disclosure is to provide a recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure.
또한, 본 개시는 본 개시에 따른 영상 복호화 장치에 의해 수신되고 복호화되어 영상의 복원에 이용되는 비트스트림을 저장한 기록 매체를 제공하는 것을 목적으로 한다.In addition, an object of the present disclosure is to provide a recording medium storing a bitstream that is received and decoded by an image decoding apparatus according to the present disclosure and used for image restoration.
본 개시에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems that are not mentioned will be clearly understood by those of ordinary skill in the technical field to which the present disclosure belongs from the following description. I will be able to.
본 개시의 일 양상에 따른 영상 복호화 방법은, 변환 생략이 가용한지 여부를 나타내는 제1 정보를 비트스트림으로부터 파싱하는 단계, 상기 제1 정보가 변환 생략이 가용한 것을 나타내는 경우, BDPCM(block difference pulse code modulation)이 가용한지 여부를 나타내는 제2 정보를 상기 비트스트림으로부터 파싱하는 단계, 상기 제2 정보가 BDPCM이 가용한 것을 나타내는 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 상기 비트스트림으로부터 파싱하는 단계, 상기 제3 정보가 상기 현재 블록에 대해 BDPCM이 적용되는 것을 나타내는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하고, 상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하는 단계, 상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하는 단계, 및 상기 레지듀얼 블록과 상기 예측 블록에 기반하여 상기 현재 블록을 복원하는 단계를 포함할 수 있다.In an image decoding method according to an aspect of the present disclosure, the step of parsing from a bitstream first information indicating whether conversion omission is available, and when the first information indicates that conversion omission is available, block difference pulse (BDPCM) parsing second information indicating whether code modulation) is available from the bitstream, and when the second information indicates that BDPCM is available, third information indicating whether BDPCM is applied to the current block is provided. Parsing from the bitstream, when the third information indicates that BDPCM is applied to the current block, determining a prediction direction of BDPCM for the current block, and based on the determined prediction direction of the BDPCM, the current block Generating a residual block of, generating a prediction block of the current block by performing prediction based on the prediction mode of the current block, and generating the current block based on the residual block and the prediction block It may include the step of restoring.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 제1 정보와 상기 제2 정보는 현재 블록의 상위 레벨에서 시그널링될 수 있다.In the video decoding method according to the present disclosure, the first information and the second information may be signaled at a higher level of a current block.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 현재 블록의 상위 레벨은 시퀀스 레벨일 수 있다.In the video decoding method according to the present disclosure, a higher level of the current block may be a sequence level.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 BDPCM의 예측 방향은 상기 비트스트림으로부터 파싱된 제4 정보에 기반하여 결정될 수 있다.In the video decoding method according to the present disclosure, the prediction direction of the BDPCM may be determined based on fourth information parsed from the bitstream.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 현재 블록의 예측 모드가 인트라 예측 모드인 경우, 인트라 예측의 예측 방향은 상기 BDPCM의 예측 방향으로 유도될 수 있다.In the video decoding method according to the present disclosure, when the prediction mode of the current block is an intra prediction mode, the prediction direction of intra prediction may be derived to the prediction direction of the BDPCM.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 제2 정보는 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보와 인터 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보를 포함할 수 있다.In the video decoding method according to the present disclosure, the second information may include information indicating whether BDPCM is available for an intra-predicted block and information indicating whether BDPCM is available for an inter-predicted block.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 영상 복호화 방법은, 무손실 부호화가 가용한지 여부를 나타내는 제5 정보를 파싱하는 단계를 더 포함하고, 상기 제1 정보를 파싱하는 단계는 상기 제5 정보가 무손실 부호화가 가용하지 않음을 나타내는 경우에 수행될 수 있다.In the video decoding method according to the present disclosure, the video decoding method further includes parsing fifth information indicating whether lossless coding is available, and the parsing the first information includes the fifth information It can be performed when it indicates that lossless coding is not available.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 제2 정보를 파싱하는 단계는 상기 제5 정보가 무손실 부호화가 가용함을 나타내는 경우에 수행될 수 있다.In the image decoding method according to the present disclosure, the step of parsing the second information may be performed when the fifth information indicates that lossless encoding is available.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 제3 정보를 파싱하는 단계는, 상기 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보가 가용함을 나타내고 상기 현재 블록이 인트라 예측된 블록인 경우, 또는, 상기 인터 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보가 가용함을 나타내고 상기 현재 블록이 인터 예측된 블록인 경우에 수행될 수 있다.In the video decoding method according to the present disclosure, the parsing of the third information indicates that information indicating whether BDPCM is available for the intra-predicted block is available, and the current block is an intra-predicted block. Or, it may be performed when information indicating whether BDPCM is available for the inter-predicted block is available and the current block is an inter-predicted block.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 제3 정보를 파싱하는 단계는 상기 현재 블록의 예측 모드와는 독립적으로 수행될 수 있다.In the video decoding method according to the present disclosure, the parsing of the third information may be performed independently from the prediction mode of the current block.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 영상 복호화 방법은, 상기 현재 블록에 0이 아닌 잔차 신호가 존재하는지 여부를 나타내는 제6 정보를 복원하는 단계를 포함하고, 상기 현재 블록이 BDPCM이 적용된 블록으로서 인터 예측된 블록인 경우, 상기 제6 정보는 소정의 값으로 복원될 수 있다.In the video decoding method according to the present disclosure, the video decoding method includes restoring sixth information indicating whether a non-zero residual signal exists in the current block, wherein the current block is a block to which BDPCM is applied. In the case of an inter-predicted block, the sixth information may be restored to a predetermined value.
본 개시에 따른 영상 복호화 방법에 있어서, 상기 소정의 값은 상기 현재 블록에 0이 아닌 잔차 신호가 존재함을 나타내는 값일 수 있다.In the image decoding method according to the present disclosure, the predetermined value may be a value indicating that a non-zero residual signal exists in the current block.
본 개시의 다른 양상에 따른 영상 복호화 장치는 메모리 및 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 변환 생략이 가용한지 여부를 나타내는 제1 정보를 비트스트림으로부터 파싱하고, 상기 제1 정보가 변환 생략이 가용한 것을 나타내는 경우, BDPCM이 가용한지 여부를 나타내는 제2 정보를 상기 비트스트림으로부터 파싱하고, 상기 제2 정보가 BDPCM이 가용한 것을 나타내는 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 상기 비트스트림으로부터 파싱하고, 상기 제3 정보가 상기 현재 블록에 대해 BDPCM이 적용되는 것을 나타내는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하고, 상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하고, 상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하고, 상기 레지듀얼 블록과 상기 예측 블록에 기반하여 상기 현재 블록을 복원할 수 있다.An image decoding apparatus according to another aspect of the present disclosure includes a memory and at least one processor, and the at least one processor parses first information indicating whether conversion omission is available from a bitstream, and the first information is When it indicates that the conversion omission is available, second information indicating whether BDPCM is available is parsed from the bitstream, and when the second information indicates that BDPCM is available, whether BDPCM is applied to the current block When the indicated third information is parsed from the bitstream, and the third information indicates that BDPCM is applied to the current block, a prediction direction of BDPCM for the current block is determined, and the prediction direction of the determined BDPCM is A residual block of the current block is generated based on the current block, and prediction is performed based on the prediction mode of the current block to generate a prediction block of the current block, and the current block is generated based on the residual block and the prediction block. Blocks can be restored.
본 개시의 또 다른 양상에 따른 영상 부호화 방법은, 변환 생략이 가용한지 여부를 나타내는 제1 정보를 결정하는 단계, 상기 변환 생략이 가용한 경우, BDPCM이 가용한지 여부를 나타내는 제2 정보를 결정하는 단계, 상기 BDPCM이 가용한 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 결정하는 단계, 상기 현재 블록에 대해 BDPCM이 적용되는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하는 단계, 상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하는 단계, 상기 예측 블록에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하는 단계, 상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 부호화하는 단계, 및 상기 제1 정보, 상기 제2 정보, 상기 제3 정보를 비트스트림에 부호화하는 단계를 포함할 수 있다.In an image encoding method according to another aspect of the present disclosure, the step of determining first information indicating whether or not transformation omission is available, and when the transformation omission is available, determining second information indicating whether or not BDPCM is available. Step, if the BDPCM is available, determining third information indicating whether BDPCM is applied to the current block, and when BDPCM is applied to the current block, determining a prediction direction of BDPCM for the current block Generating a prediction block of the current block by performing prediction based on the prediction mode of the current block, generating a residual block of the current block based on the prediction block, and the determined BDPCM It may include encoding a residual block of the current block based on a prediction direction, and encoding the first information, the second information, and the third information into a bitstream.
본 개시의 또 다른 양상에 따른 전송 방법은, 본 개시의 영상 부호화 장치 또는 영상 부호화 방법에 의해 생성된 비트스트림을 전송할 수 있다.A transmission method according to another aspect of the present disclosure may transmit a bitstream generated by the image encoding apparatus or image encoding method of the present disclosure.
본 개시의 또 다른 양상에 따른 컴퓨터 판독 가능한 기록 매체는, 본 개시의 영상 부호화 방법 또는 영상 부호화 장치에 의해 생성된 비트스트림을 저장할 수 있다.A computer-readable recording medium according to another aspect of the present disclosure may store a bitstream generated by the image encoding method or image encoding apparatus of the present disclosure.
본 개시에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 개시의 상세한 설명의 예시적인 양상일 뿐이며, 본 개시의 범위를 제한하는 것은 아니다.Features briefly summarized above with respect to the present disclosure are only exemplary aspects of the detailed description of the present disclosure described below, and do not limit the scope of the present disclosure.
본 개시에 따르면, 부호화/복호화 효율이 향상된 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.According to the present disclosure, an image encoding/decoding method and apparatus with improved encoding/decoding efficiency may be provided.
또한, 본 개시에 따르면, 잔차 신호의 BDPCM을 이용하여 영상을 부호화/복호화하는 방법 및 장치가 제공될 수 있다.Also, according to the present disclosure, a method and apparatus for encoding/decoding an image using BDPCM of a residual signal may be provided.
또한, 본 개시에 따르면, BDPCM 관련 정보를 효율적으로 시그널링하는 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.Further, according to the present disclosure, an image encoding/decoding method and apparatus for efficiently signaling BDPCM related information may be provided.
또한, 본 개시에 따르면, 인트라 예측된 블록 및/또는 인터/IBC 예측된 블록에 대해 BDPCM을 수행하는 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.In addition, according to the present disclosure, an image encoding/decoding method and apparatus for performing BDPCM on an intra predicted block and/or an inter/IBC predicted block may be provided.
또한, 본 개시에 따르면, BDPCM 블록의 잔차 신호 존재 여부를 효율적으로 시그널링하는 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.Further, according to the present disclosure, an image encoding/decoding method and apparatus for efficiently signaling whether a residual signal of a BDPCM block exists or not can be provided.
또한, 본 개시에 따르면, 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 전송하는 방법이 제공될 수 있다.In addition, according to the present disclosure, a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
또한, 본 개시에 따르면, 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 저장한 기록 매체가 제공될 수 있다.Further, according to the present disclosure, a recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
또한, 본 개시에 따르면, 본 개시에 따른 영상 복호화 장치에 의해 수신되고 복호화되어 영상의 복원에 이용되는 비트스트림을 저장한 기록 매체가 제공될 수 있다.In addition, according to the present disclosure, a recording medium may be provided that stores a bitstream that is received and decoded by the image decoding apparatus according to the present disclosure and used for image restoration.
본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects that can be obtained in the present disclosure are not limited to the effects mentioned above, and other effects not mentioned can be clearly understood by those of ordinary skill in the art from the following description. will be.
도 1은 본 개시에 따른 실시예가 적용될 수 있는 비디오 코딩 시스템을 개략적으로 도시한 도면이다.1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
도 2는 본 개시에 따른 실시예가 적용될 수 있는 영상 부호화 장치를 개략적으로 도시한 도면이다.2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
도 3은 본 개시에 따른 실시예가 적용될 수 있는 영상 복호화 장치를 개략적으로 도시한 도면이다.3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
도 4는 본 개시에 따른 실시예가 적용 가능한 영상 복호화 절차의 개략적인 흐름도이다.4 is a schematic flowchart of a video decoding procedure applicable to an embodiment according to the present disclosure.
도 5는 본 개시에 따른 실시예가 적용 가능한 영상 부호화 절차의 개략적인 흐름도이다.5 is a schematic flowchart of an image encoding procedure applicable to an embodiment according to the present disclosure.
도 6은 인트라 예측 기반 비디오/영상 인코딩 방법을 도시한 흐름도이다.6 is a flowchart illustrating a video/video encoding method based on intra prediction.
도 7은 본 개시에 따른 인트라 예측부(185)의 구성을 예시적으로 도시한 도면이다.7 is a diagram illustrating an exemplary configuration of an intra prediction unit 185 according to the present disclosure.
도 8은 인트라 예측 기반 비디오/영상 디코딩 방법을 도시한 흐름도이다.8 is a flowchart illustrating a video/video decoding method based on intra prediction.
도 9는 본 개시에 따른 인트라 예측부(265)의 구성을 예시적으로 도시한 도면이다.9 is a diagram illustrating an exemplary configuration of an intra prediction unit 265 according to the present disclosure.
도 10은 본 개시의 일 실시예에 따른 인트라 예측 방향을 도시하는 도면이다. 10 is a diagram illustrating an intra prediction direction according to an embodiment of the present disclosure.
도 11은 본 개시의 다른 실시예에 따른 인트라 예측 방향을 도시하는 도면이다.11 is a diagram illustrating an intra prediction direction according to another embodiment of the present disclosure.
도 12는 본 개시에 따른 BDPCM의 레지듀얼 샘플을 부호화하는 방법을 설명하기 위한 도면이다.12 is a diagram illustrating a method of encoding a residual sample of BDPCM according to the present disclosure.
도 13은 본 개시의 BDPCM을 수행하여 생성된 수정된 양자화된 레지듀얼 블록을 나타낸다.13 shows a modified quantized residual block generated by performing BDPCM of the present disclosure.
도 14는 영상 부호화 장치에서 BDPCM을 적용하여 현재 블록을 부호화하는 절차를 도시한 흐름도이다.14 is a flowchart illustrating a procedure for encoding a current block by applying BDPCM in an image encoding apparatus.
도 15는 영상 복호화 장치에서 BDPCM을 적용하여 현재 블록을 복원하는 절차를 도시한 흐름도이다.15 is a flowchart illustrating a procedure for restoring a current block by applying BDPCM in an image decoding apparatus.
도 16은 현재 블록의 신택스 구조에 포함된 BDPCM에 관한 정보를 개략적으로 도시한 도면이다.16 is a diagram schematically showing information on BDPCM included in the syntax structure of the current block.
도 17은 본 개시의 일 실시예에 따라 상위 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.17 is a diagram for describing a method of encoding a syntax element of a higher level according to an embodiment of the present disclosure.
도 18은 본 개시의 일 실시예에 따라 상위 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.18 is a diagram for describing a method of decoding a high-level syntax element according to an embodiment of the present disclosure.
도 19는 본 개시의 다른 실시예에 따라 상위 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.19 is a diagram for describing a method of encoding a high-level syntax element according to another embodiment of the present disclosure.
도 20은 본 개시의 다른 실시예에 따라 상위 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.20 is a diagram for describing a method of decoding a high-level syntax element according to another embodiment of the present disclosure.
도 21은 본 개시의 또 다른 실시예에 따라 블록 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.21 is a diagram for describing a method of encoding a syntax element at a block level according to another embodiment of the present disclosure.
도 22는 본 개시의 또 다른 실시예에 따라 블록 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.22 is a diagram for describing a method of decoding a syntax element at a block level according to another embodiment of the present disclosure.
도 23은 본 개시의 또 다른 실시예에 따라 현재 블록 내 잔차 신호 존재 여부를 나타내는 정보를 부호화하는 방법을 설명하기 위한 도면이다.23 is a diagram for describing a method of encoding information indicating whether a residual signal exists in a current block according to another embodiment of the present disclosure.
도 24는 본 개시의 또 다른 실시예에 따라 현재 블록 내 잔차 신호 존재 여부를 나타내는 정보를 복호화하는 방법을 설명하기 위한 도면이다.24 is a diagram for describing a method of decoding information indicating whether a residual signal exists in a current block, according to another embodiment of the present disclosure.
도 25는 본 개시의 실시예가 적용될 수 있는 컨텐츠 스트리밍 시스템을 예시한 도면이다.25 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
이하에서는 첨부한 도면을 참고로 하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나, 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those of ordinary skill in the art may easily implement the embodiments. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.
본 개시의 실시예를 설명함에 있어서 공지 구성 또는 기능에 대한 구체적인 설명이 본 개시의 요지를 흐릴 수 있다고 판단되는 경우에는 그에 대한 상세한 설명은 생략한다. 그리고, 도면에서 본 개시에 대한 설명과 관계없는 부분은 생략하였으며, 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.In describing an embodiment of the present disclosure, when it is determined that a detailed description of a known configuration or function may obscure the subject matter of the present disclosure, a detailed description thereof will be omitted. In addition, parts not related to the description of the present disclosure in the drawings are omitted, and similar reference numerals are attached to similar parts.
본 개시에 있어서, 어떤 구성요소가 다른 구성요소와 "연결", "결합" 또는 "접속"되어 있다고 할 때, 이는 직접적인 연결관계뿐만 아니라, 그 중간에 또 다른 구성요소가 존재하는 간접적인 연결관계도 포함할 수 있다. 또한 어떤 구성요소가 다른 구성요소를 "포함한다" 또는 "가진다"고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 배제하는 것이 아니라 또 다른 구성요소를 더 포함할 수 있는 것을 의미한다.In the present disclosure, when a component is said to be "connected", "coupled" or "connected" with another component, it is not only a direct connection relationship, but an indirect connection relationship in which another component exists in the middle. It can also include. In addition, when a certain component "includes" or "have" another component, it means that other components may be further included rather than excluding other components unless otherwise stated. .
본 개시에 있어서, 제1, 제2 등의 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용되며, 특별히 언급되지 않는 한 구성요소들간의 순서 또는 중요도 등을 한정하지 않는다. 따라서, 본 개시의 범위 내에서 일 실시예에서의 제1 구성요소는 다른 실시예에서 제2 구성요소라고 칭할 수도 있고, 마찬가지로 일 실시예에서의 제2 구성요소를 다른 실시예에서 제1 구성요소라고 칭할 수도 있다. In the present disclosure, terms such as first and second are used only for the purpose of distinguishing one component from other components, and do not limit the order or importance of the components unless otherwise stated. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment is a first component in another embodiment. It can also be called.
본 개시에 있어서, 서로 구별되는 구성요소들은 각각의 특징을 명확하게 설명하기 위함이며, 구성요소들이 반드시 분리되는 것을 의미하지는 않는다. 즉, 복수의 구성요소가 통합되어 하나의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있고, 하나의 구성요소가 분산되어 복수의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있다. 따라서, 별도로 언급하지 않더라도 이와 같이 통합된 또는 분산된 실시예도 본 개시의 범위에 포함된다. In the present disclosure, components that are distinguished from each other are intended to clearly describe each feature, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to be formed in one hardware or software unit, or one component may be distributed in a plurality of hardware or software units. Therefore, even if not stated otherwise, such integrated or distributed embodiments are also included in the scope of the present disclosure.
본 개시에 있어서, 다양한 실시예에서 설명하는 구성요소들이 반드시 필수적인 구성요소들을 의미하는 것은 아니며, 일부는 선택적인 구성요소일 수 있다. 따라서, 일 실시예에서 설명하는 구성요소들의 부분집합으로 구성되는 실시예도 본 개시의 범위에 포함된다. 또한, 다양한 실시예에서 설명하는 구성요소들에 추가적으로 다른 구성요소를 포함하는 실시예도 본 개시의 범위에 포함된다. In the present disclosure, the components described in various embodiments do not necessarily mean essential components, and some may be optional components. Accordingly, an embodiment consisting of a subset of components described in an embodiment is also included in the scope of the present disclosure. In addition, embodiments including other elements in addition to the elements described in the various embodiments are included in the scope of the present disclosure.
본 개시는 영상의 부호화 및 복호화에 관한 것으로서, 본 개시에서 사용되는 용어는, 본 개시에서 새롭게 정의되지 않는 한 본 개시가 속한 기술 분야에서 통용되는 통상의 의미를 가질 수 있다. The present disclosure relates to encoding and decoding of an image, and terms used in the present disclosure may have a common meaning commonly used in the technical field to which the present disclosure belongs unless newly defined in the present disclosure.
본 개시에서 "픽처(picture)"는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)은 픽처의 일부를 구성하는 부호화 단위로서, 하나의 픽처는 하나 이상의 슬라이스/타일로 구성될 수 있다. 또한, 슬라이스/타일은 하나 이상의 CTU(coding tree unit)를 포함할 수 있다. In the present disclosure, a “picture” generally refers to a unit representing one image in a specific time period, and a slice/tile is a coding unit constituting a part of a picture, and one picture is one It may be composed of more than one slice/tile. In addition, a slice/tile may include one or more coding tree units (CTU).
본 개시에서 "픽셀(pixel)" 또는 "펠(pel)"은 하나의 픽처(또는 영상)를 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 "샘플(sample)"이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 루마(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 크로마(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.In the present disclosure, "pixel" or "pel" may mean a minimum unit constituting one picture (or image). Also, as a term corresponding to a pixel, "sample" may be used. A sample may generally represent a pixel or a value of a pixel, may represent only a pixel/pixel value of a luma component, or may represent only a pixel/pixel value of a chroma component.
본 개시에서 "유닛(unit)"은 영상 처리의 기본 단위를 나타낼 수 있다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 "샘플 어레이", "블록(block)" 또는 "영역(area)" 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들(또는 샘플 어레이) 또는 변환 계수(transform coefficient)들의 집합(또는 어레이)을 포함할 수 있다.In the present disclosure, "unit" may represent a basic unit of image processing. The unit may include at least one of a specific area of a picture and information related to the corresponding area. The unit may be used interchangeably with terms such as "sample array", "block", or "area" depending on the case. In general, the MxN block may include samples (or sample arrays) consisting of M columns and N rows, or a set (or array) of transform coefficients.
본 개시에서 "현재 블록"은 "현재 코딩 블록", "현재 코딩 유닛", "부호화 대상 블록", "복호화 대상 블록" 또는 "처리 대상 블록" 중 하나를 의미할 수 있다. 예측이 수행되는 경우, "현재 블록"은 "현재 예측 블록" 또는 "예측 대상 블록"을 의미할 수 있다. 변환(역변환)/양자화(역양자화)가 수행되는 경우, "현재 블록"은 "현재 변환 블록" 또는 "변환 대상 블록"을 의미할 수 있다. 필터링이 수행되는 경우, "현재 블록"은 "필터링 대상 블록"을 의미할 수 있다.In the present disclosure, "current block" may mean one of "current coding block", "current coding unit", "coding object block", "decoding object block", or "processing object block". When prediction is performed, “current block” may mean “current prediction block” or “prediction target block”. When transformation (inverse transformation)/quantization (inverse quantization) is performed, "current block" may mean "current transform block" or "transform target block". When filtering is performed, “current block” may mean “block to be filtered”.
또한, 본 개시에서 "현재 블록"은 크로마 블록이라는 명시적인 기재가 없는 한 "현재 블록의 루마 블록"을 의미할 수 있다. "현재 블록의 크로마 블록"은 명시적으로 "크로마 블록" 또는 "현재 크로마 블록"과 같이 크로마 블록이라는 명시적인 기재를 포함하여 표현될 수 있다.In addition, in the present disclosure, "current block" may mean "a luma block of the current block" unless explicitly stated as a chroma block. The "chroma block of the current block" may be expressed by including an explicit description of a chroma block, such as "chroma block" or "current chroma block".
본 개시에서 "/"와 ","는 "및/또는"으로 해석될 수 있다. 예를 들어, "A/B"와 "A, B"는 "A 및/또는 B"로 해석될 수 있다. 또한, "A/B/C"와 "A, B, C"는 "A, B 및/또는 C 중 적어도 하나"를 의미할 수 있다.In the present disclosure, "/" and "," may be interpreted as "and/or". For example, "A/B" and "A, B" may be interpreted as "A and/or B". In addition, "A/B/C" and "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)"를 의미할 수 있다.In the present disclosure, "or" may be interpreted as "and/or". For example, "A or B" may mean 1) only "A", 2) only "B", or 3) "A and B". Or, in the present disclosure, "or" may mean "additionally or alternatively".
비디오 코딩 시스템 개요Video coding system overview
도 1은 본 개시에 따른 비디오 코딩 시스템을 도시한다.1 shows a video coding system according to this disclosure.
일 실시예에 따른 비디오 코딩 시스템은 부호화 장치(10) 및 복호화 장치(20)를 포함할 수 있다. 부호화 장치(10)는 부호화된 비디오(video) 및/또는 영상(image) 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 복호화 장치(20)로 전달할 수 있다. A video coding system according to an embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 may transmit the encoded video and/or image information or data in a file or streaming format to the decoding device 20 through a digital storage medium or a network.
일 실시예에 따른 부호화 장치(10)는 비디오 소스 생성부(11), 부호화부(12), 전송부(13)를 포함할 수 있다. 일 실시예에 따른 복호화 장치(20)는 수신부(21), 복호화부(22) 및 렌더링부(23)를 포함할 수 있다. 상기 부호화부(12)는 비디오/영상 부호화부라고 불릴 수 있고, 상기 복호화부(22)는 비디오/영상 복호화부라고 불릴 수 있다. 전송부(13)는 부호화부(12)에 포함될 수 있다. 수신부(21)는 복호화부(22)에 포함될 수 있다. 렌더링부(23)는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다. The encoding apparatus 10 according to an embodiment may include a video source generator 11, an encoder 12, and a transmission unit 13. The decoding apparatus 20 according to an embodiment may include a receiving unit 21, a decoding unit 22, and a rendering unit 23. The encoder 12 may be referred to as a video/image encoder, and the decoder 22 may be referred to as a video/image decoder. The transmission unit 13 may be included in the encoding unit 12. The receiving unit 21 may be included in the decoding unit 22. The rendering unit 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
비디오 소스 생성부(11)는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스 생성부(11)는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.The video source generator 11 may acquire a video/image through a process of capturing, synthesizing, or generating a video/image. The video source generator 11 may include a video/image capturing device and/or a video/image generating 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. For example, a virtual video/image may be generated through a computer or the like, and in this case, a video/image capturing process may be substituted as a process of generating related data.
부호화부(12)는 입력 비디오/영상을 부호화할 수 있다. 부호화부(12)는 압축 및 부호화 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 부호화부(12)는 부호화된 데이터(부호화된 비디오/영상 정보)를 비트스트림(bitstream) 형태로 출력할 수 있다.The encoder 12 may encode an input video/image. The encoder 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and encoding efficiency. The encoder 12 may output encoded data (coded video/image information) in a bitstream format.
전송부(13)는 비트스트림 형태로 출력된 부호화된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 복호화 장치(20)의 수신부(21)로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부(13)는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘리먼트를 포함할 수 있다. 수신부(21)는 상기 저장매체 또는 네트워크로부터 상기 비트스트림을 추출/수신하여 복호화부(22)로 전달할 수 있다.The transmission unit 13 may transmit the encoded video/image information or data output in the form of a bitstream to the receiving unit 21 of the decoding apparatus 20 through a digital storage medium or a network in a file or streaming form. Digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. The transmission unit 13 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 receiving unit 21 may extract/receive the bitstream from the storage medium or network and transmit it to the decoding unit 22.
복호화부(22)는 부호화부(12)의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 복호화할 수 있다. The decoder 22 may decode the video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoder 12.
렌더링부(23)는 복호화된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.The rendering unit 23 may render the decoded video/image. The rendered video/image may be displayed through the display unit.
영상 부호화 장치 개요Video encoding device overview
도 2는 본 개시에 따른 실시예가 적용될 수 있는 영상 부호화 장치를 개략적으로 도시한 도면이다.2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
도 2에 도시된 바와 같이, 영상 부호화 장치(100)는 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 메모리(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함할 수 있다. 인터 예측부(180) 및 인트라 예측부(185)는 합쳐서 "예측부"라고 지칭될 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다. As shown in FIG. 2, the image encoding apparatus 100 includes an image segmentation unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse transform unit ( 150), an addition unit 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a “prediction unit”. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115.
영상 부호화 장치(100)를 구성하는 복수의 구성부들의 전부 또는 적어도 일부는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어, 인코더 또는 프로세서)로 구현될 수 있다. 또한 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구현될 수 있다. All or at least some of the plurality of constituent units constituting the image encoding apparatus 100 may be implemented as one hardware component (eg, an encoder or a processor) according to embodiments. In addition, the memory 170 may include a decoded picture buffer (DPB), and may be implemented by a digital storage medium.
영상 분할부(110)는 영상 부호화 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)을 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)을 QT/BT/TT (Quad-tree/binary-tree/ternary-tree) 구조에 따라 재귀적으로(recursively) 분할함으로써 획득될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 코딩 유닛의 분할을 위해, 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및/또는 터너리 트리 구조가 나중에 적용될 수 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 개시에 따른 코딩 절차가 수행될 수 있다. 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 최대 코딩 유닛을 분할하여 획득한 하위 뎁스의 코딩 유닛이 최종 코닛 유닛으로 사용될 수도 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환 및/또는 복원 등의 절차를 포함할 수 있다. 다른 예로, 상기 코딩 절차의 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)일 수 있다. 상기 예측 유닛 및 상기 변환 유닛은 각각 상기 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image dividing unit 110 may divide an input image (or picture, frame) input to the image encoding apparatus 100 into one or more processing units. For example, the processing unit may be referred to as a coding unit (CU). The coding unit is a coding tree unit (CTU) or a largest coding unit (LCU) recursively according to a QT/BT/TT (Quad-tree/binary-tree/ternary-tree) structure ( It can be obtained by dividing recursively. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and/or a ternary tree structure. For the division of the coding unit, a quad tree structure may be applied first, and a binary tree structure and/or a ternary tree structure may be applied later. The coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer divided. The largest coding unit may be directly used as the final coding unit, or a coding unit of a lower depth obtained by dividing the largest coding unit may be used as the final cornet unit. Here, the coding procedure may include a procedure such as prediction, transformation, and/or restoration described later. As another example, the processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU). Each of the prediction unit and the transform unit may be divided or partitioned from the final coding unit. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for inducing a transform coefficient and/or a unit for inducing a residual signal from the transform coefficient.
예측부(인터 예측부(180) 또는 인트라 예측부(185))는 처리 대상 블록(현재 블록)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 현재 블록의 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The prediction unit (inter prediction unit 180 or intra prediction unit 185) performs prediction on a block to be processed (current block), and generates a predicted block including prediction samples for the current block. Can be generated. The prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit may generate various information on prediction of the current block and transmit it to the entropy encoding unit 190. The information on prediction may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 인트라 예측 모드 및/또는 인트라 예측 기법에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라, 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in a neighborhood of the current block or may be located away from each other according to an intra prediction mode and/or an intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode (Planar mode). The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기반하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 서로 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수 있다. 예를 들어, 인터 예측부(180)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference) 및 움직임 벡터 예측자에 대한 지시자(indicator)를 부호화함으로써 현재 블록의 움직임 벡터를 시그널링할 수 있다. 움직임 벡터 차분은 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 차이를 의미할 수 있다.The inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on a correlation between motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing 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 from each other. The temporal neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), or the like. A reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). For example, the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive a motion vector and/or a reference picture index of the current block. Can be generated. Inter prediction may be performed based on various prediction modes. For example, in the case of a skip mode and a merge mode, the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block. In the case of the skip mode, unlike the merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, motion vectors of neighboring blocks are used as motion vector predictors, and indicators for motion vector difference and motion vector predictors ( indicator) to signal the motion vector of the current block. The motion vector difference may mean a difference between a motion vector of a current block and a motion vector predictor.
예측부는 후술하는 다양한 예측 방법 및/또는 예측 기법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 현재 블록의 예측을 위해 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 현재 블록의 예측을 위해 인트라 예측과 인터 예측을 동시에 적용하는 예측 방법은 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 현재 블록의 예측을 위해 인트라 블록 카피(intra block copy, IBC)를 수행할 수도 있다. 인트라 블록 카피는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 현재 블록으로부터 소정의 거리만큼 떨어진 위치의 현재 픽처 내 기복원된 참조 블록을 이용하여 현재 블록을 예측하는 방법이다. IBC가 적용되는 경우, 현재 픽처 내 참조 블록의 위치는 상기 소정의 거리에 해당하는 벡터(블록 벡터)로서 부호화될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나, 현재 픽처 내에서 참조 블록을 도출하는 점에서, 인터 예측과 유사하게 수행될 수 있다. 즉 IBC는 본 개시에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다.The prediction unit may generate a prediction signal based on various prediction methods and/or prediction techniques to be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of the current block, and may simultaneously apply intra prediction and inter prediction. A prediction method in which intra prediction and inter prediction are applied simultaneously for prediction of a current block may be called combined inter and intra prediction (CIIP). Also, the prediction unit may perform intra block copy (IBC) for prediction of the current block. The intra block copy may be used for content image/movie coding such as games, such as, for example, screen content coding (SCC). IBC is a method of predicting a current block by using a reference block in a current picture at a distance from the current block by a predetermined distance. When IBC is applied, the position of the reference block in the current picture may be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.
예측부를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 감산부(115)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)로부터 예측부에서 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있다. 생성된 레지듀얼 신호는 변환부(120)로 전송될 수 있다. 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 subtraction unit 115 subtracts the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array), and subtracts a residual signal (remaining block, residual sample array). ) Can be created. The generated residual signal may be transmitted to the converter 120.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)을 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)을 이용하여 예측 신호를 생성하고 그에 기반하여 획득되는 변환을 의미한다. 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transformation technique uses at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform). Can include. Here, GBT refers to the transformation obtained from this graph when the relationship information between pixels is expressed in a graph. CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels. The conversion process may be applied to a block of pixels having the same size of a square, or may be applied to a block of a variable size other than a square.
양자화부(130)는 변환 계수들을 양자화하여 엔트로피 인코딩부(190)로 전송할 수 있다. 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. The quantization unit 130 may quantize the transform coefficients and transmit the quantization to the entropy encoding unit 190. The entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream. The information on the quantized transform coefficients may be called residual information. The quantization unit 130 may rearrange the quantized transform coefficients in the form of a block into a one-dimensional vector form based on a coefficient scan order, and the quantized transform coefficients in the form of the one-dimensional vector It is also possible to generate information about transform coefficients.
엔트로피 인코딩부(190)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)를 더 포함할 수 있다. 본 개시에서 영상 부호화 장치에서 영상 복호화 장치로 전달/시그널링되는 정보 및/또는 신택스 요소들은 비디오/영상 정보에 포함될 수 있다. 상기 비디오/영상 정보는 상술한 인코딩 절차를 통하여 인코딩되어 상기 비트스트림에 포함될 수 있다. The entropy encoding unit 190 may perform various encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 190 may encode together or separately information necessary for video/image restoration (eg, values of syntax elements) in addition to quantized transform coefficients. The encoded information (eg, encoded video/video information) may be transmitted or stored in a bitstream format in units of network abstraction layer (NAL) units. The video/video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video/video information may further include general constraint information. In the present disclosure, information and/or syntax elements transmitted/signaled from an image encoding apparatus to an image decoding apparatus may be included in video/image information. The video/video information may be encoded through the above-described encoding procedure and included in the bitstream.
상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호를 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 영상 부호화 장치(100)의 내/외부 엘리먼트로서 구비될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소로서 구비될 수도 있다.The bitstream may be transmitted through a network or may be stored in a digital storage medium. Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. A transmission unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and/or a storage unit (not shown) for storing may be provided as an inner/outer element of the image encoding apparatus 100, or transmission The unit may be provided as a component of the entropy encoding unit 190.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록 or 레지듀얼 샘플들)를 복원할 수 있다. The quantized transform coefficients output from the quantization unit 130 may be used to generate a residual signal. For example, a residual signal (residual block or residual samples) may be restored by applying inverse quantization and inverse transform to the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150.
가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The addition unit 155 adds the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 to obtain a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array). Can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block. The addition unit 155 may be referred to as a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(170), 구체적으로 메모리(170)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(160)는 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may apply filtering to the reconstructed signal to improve subjective/objective image quality. For example, the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 170, specifically, the DPB of the memory 170. Can be saved on. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like. The filtering unit 160 may generate a variety of filtering information and transmit it to the entropy encoding unit 190 as described later in the description of each filtering method. The filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
메모리(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 영상 부호화 장치(100)는 이를 통하여 인터 예측이 적용되는 경우, 영상 부호화 장치(100)와 영상 복호화 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다. The modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180. When inter prediction is applied through this, the image encoding apparatus 100 may avoid prediction mismatch between the image encoding apparatus 100 and the image decoding apparatus, and may improve encoding efficiency.
메모리(170) 내 DPB는 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 수정된 복원 픽처를 저장할 수 있다. 메모리(170)는 현재 픽처 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(180)에 전달될 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(185)에 전달할 수 있다.The DPB in the memory 170 may store a reconstructed picture modified to be used as a reference picture in the inter prediction unit 180. The memory 170 may store motion information of a block from which motion information in a current picture is derived (or encoded) and/or motion information of blocks in a picture that have already been reconstructed. The stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of spatial neighboring blocks or motion information of temporal neighboring blocks. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185.
영상 복호화 장치 개요Overview of video decoding device
도 3은 본 개시에 따른 실시예가 적용될 수 있는 영상 복호화 장치를 개략적으로 도시한 도면이다.3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
도 3에 도시된 바와 같이, 영상 복호화 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)를 합쳐서 "예측부"라고 지칭될 수 있다. 역양자화부(220), 역변환부(230)는 레지듀얼 처리부에 포함될 수 있다. As shown in FIG. 3, the image decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, and a memory 250. ), an inter prediction unit 260 and an intra prediction unit 265 may be included. The inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a “prediction unit”. The inverse quantization unit 220 and the inverse transform unit 230 may be included in the residual processing unit.
영상 복호화 장치(200)를 구성하는 복수의 구성부들의 전부 또는 적어도 일부는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)로 구현될 수 있다. 또한 메모리(170)는 DPB를 포함할 수 있고, 디지털 저장 매체에 의하여 구현될 수 있다. All or at least some of the plurality of constituent units constituting the image decoding apparatus 200 may be implemented as one hardware component (eg, a decoder or a processor) according to embodiments. Also, the memory 170 may include a DPB and may be implemented by a digital storage medium.
비디오/영상 정보를 포함하는 비트스트림을 수신한 영상 복호화 장치(200)는 도 2의 영상 부호화 장치(100)에서 수행된 프로세스에 대응하는 프로세스를 수행하여 영상을 복원할 수 있다. 예를 들어, 영상 복호화 장치(200)는 영상 부호화 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있다. 코딩 유닛은 코딩 트리 유닛이거나 또는 최대 코딩 유닛을 분할하여 획득될 수 있다. 그리고, 영상 복호화 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치(미도시)를 통해 재생될 수 있다.The image decoding apparatus 200 receiving a bitstream including video/image information may reconstruct an image by performing a process corresponding to the process performed by the image encoding apparatus 100 of FIG. 2. For example, the image decoding apparatus 200 may perform decoding using a processing unit applied in the image encoding apparatus. Thus, the processing unit of decoding may be, for example, a coding unit. The coding unit may be a coding tree unit or may be obtained by dividing the largest coding unit. In addition, the reconstructed image signal decoded and output through the image decoding apparatus 200 may be reproduced through a reproduction device (not shown).
영상 복호화 장치(200)는 도 2의 영상 부호화 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있다. 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(예컨대, 비디오/영상 정보)를 도출할 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)를 더 포함할 수 있다. 영상 복호화 장치는 영상을 디코딩하기 위해 상기 파라미터 세트에 관한 정보 및/또는 상기 일반 제한 정보를 추가적으로 이용할 수 있다. 본 개시에서 언급된 시그널링 정보, 수신되는 정보 및/또는 신택스 요소들은 상기 디코딩 절차를 통하여 디코딩됨으로써 상기 비트스트림으로부터 획득될 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 블록 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)을 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)로 제공될 수 있다. 한편, 영상 부호화 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 영상 복호화 장치(200)의 내/외부 엘리먼트로서 추가적으로 구비될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소로서 구비될 수도 있다. The image decoding apparatus 200 may receive a signal output from the image encoding apparatus of FIG. 2 in the form of a bitstream. The received signal may be decoded through the entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/video information) necessary for image restoration (or picture restoration). The video/video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video/video information may further include general constraint information. The image decoding apparatus may additionally use information on the parameter set and/or the general restriction information to decode an image. The signaling information, received information and/or syntax elements mentioned in the present disclosure may be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and a value of a syntax element required for image restoration, a quantized value of a transform coefficient related to a residual. Can be printed. In more detail, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and includes information on the syntax element to be decoded, information on decoding information of a neighboring block and a block to be decoded, or information on a symbol/bin decoded in a previous step The context model is determined by using and, according to the determined context model, the probability of occurrence of bins is predicted to perform arithmetic decoding of bins to generate symbols corresponding to the values of each syntax element. I can. In this case, the CABAC entropy decoding method may update the context model using information of the decoded symbol/bin for the context model of the next symbol/bin after the context model is determined. Among the information decoded by the entropy decoding unit 210, information on prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the register on which entropy decoding is performed by the entropy decoding unit 210 Dual values, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. In addition, information about filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) for receiving a signal output from the image encoding device may be additionally provided as an inner/outer element of the image decoding device 200, or the receiving unit is provided as a component of the entropy decoding unit 210 It could be.
한편, 본 개시에 따른 영상 복호화 장치는 비디오/영상/픽처 복호화 장치라고 불릴 수 있다. 상기 영상 복호화 장치는 정보 디코더(비디오/영상/픽처 정보 디코더) 및/또는 샘플 디코더(비디오/영상/픽처 샘플 디코더)를 포함할 수도 있다. 상기 정보 디코더는 엔트로피 디코딩부(210)를 포함할 수 있고, 상기 샘플 디코더는 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265) 중 적어도 하나를 포함할 수 있다.Meanwhile, the video decoding apparatus according to the present disclosure may be referred to as a video/video/picture decoding apparatus. The video decoding apparatus may include an information decoder (video/video/picture information decoder) and/or a sample decoder (video/video/picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder includes an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, a memory 250, It may include at least one of the inter prediction unit 260 and the intra prediction unit 265.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 영상 부호화 장치에서 수행된 계수 스캔 순서에 기반하여 수행될 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)을 획득할 수 있다. The inverse quantization unit 220 may inverse quantize the quantized transform coefficients and output transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients into a two-dimensional block shape. In this case, the rearrangement may be performed based on a coefficient scan order performed by the image encoding apparatus. The inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients by using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
역변환부(230)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득할 수 있다. The inverse transform unit 230 may inverse transform transform coefficients to obtain a residual signal (residual block, residual sample array).
예측부는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드(예측 기법)를 결정할 수 있다. The prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the prediction information output from the entropy decoding unit 210, and determine a specific intra/inter prediction mode (prediction technique). I can.
예측부가 후술하는 다양한 예측 방법(기법)을 기반으로 예측 신호를 생성할 수 있음은 영상 부호화 장치(100)의 예측부에 대한 설명에서 언급된 바와 동일하다. It is the same as described in the description of the prediction unit of the video encoding apparatus 100 that the prediction unit can generate the prediction signal based on various prediction methods (techniques) described later.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 인트라 예측부(185)에 대한 설명은 인트라 예측부(265)에 대해서도 동일하게 적용될 수 있다.The intra prediction unit 265 may predict the current block by referring to samples in the current picture. The description of the intra prediction unit 185 may be equally applied to the intra prediction unit 265.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기반하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드(기법)를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드(기법)를 지시하는 정보를 포함할 수 있다. The inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on a correlation between motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes (techniques), and the information about the prediction may include information indicating a mode (technique) of inter prediction for the current block.
가산부(235)는 획득된 레지듀얼 신호를 예측부(인터 예측부(260) 및/또는 인트라 예측부(265) 포함)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)에 대한 설명은 가산부(235)에 대해서도 동일하게 적용될 수 있다. 가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.The addition unit 235 is reconstructed by adding the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265). Signals (restored pictures, reconstructed blocks, reconstructed sample arrays) can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block. The description of the addition unit 155 may be equally applied to the addition unit 235. The addition unit 235 may be referred to as a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
필터링부(240)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(250), 구체적으로 메모리(250)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. The filtering unit 240 may apply filtering to the reconstructed signal to improve subjective/objective image quality. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture may be converted to the memory 250, specifically the DPB of the memory 250. Can be saved on. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
메모리(250)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(250)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.The (modified) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260. The memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that have 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 250 may store reconstructed samples of reconstructed blocks in the current picture, and may be transmitted to the intra prediction unit 265.
본 명세서에서, 영상 부호화 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 영상 복호화 장치(200)의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In this specification, embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the image encoding apparatus 100 are respectively the filtering unit 240 of the image decoding apparatus 200, The same or corresponding to the inter prediction unit 260 and the intra prediction unit 265 may be applied.
영상 복호화/부호화 절차의 개요Overview of video decoding/encoding procedure
영상/비디오 코딩에 있어서, 영상/비디오를 구성하는 픽처는 일련의 디코딩 순서(decoding order)에 따라 인코딩/디코딩될 수 있다. 디코딩된 픽처의 출력 순서(output order)에 해당하는 픽처 순서(picture order)는 상기 디코딩 순서와 다르게 설정될 수 있으며, 이를 기반으로 인터 예측시 순방향 예측뿐 아니라 역방향 예측 또한 수행할 수 있다.In video/video coding, pictures constituting the video/video may be encoded/decoded according to a series of decoding orders. A picture order corresponding to an output order of a decoded picture may be set differently from the decoding order, and based on this, not only forward prediction but also backward prediction may be performed during inter prediction.
도 4는 본 개시에 따른 실시예가 적용 가능한 영상 복호화 절차의 개략적인 흐름도이다.4 is a schematic flowchart of a video decoding procedure applicable to an embodiment according to the present disclosure.
도 4에 도시된 각 절차는 도 3의 영상 복호화 장치에 의해 수행될 수 있다. 구체적으로, 예컨대, 단계 S410은 영상 복호화 장치의 엔트로피 디코딩부(210)에서 수행될 수 있고, 단계 S420은 예측부(260, 265)에서 수행될 수 있고, 단계 S430은 레지듀얼 처리부(220, 230)에서 수행될 수 있고, 단계 S440은 가산부(235)에서 수행될 수 있고, 단계 S450은 필터링부(240)에서 수행될 수 있다. 단계 S410은 본 개시에서 설명된 정보 디코딩(파싱) 절차를 포함할 수 있고, 단계 S420은 본 개시에서 설명된 인터/인트라 예측 절차를 포함할 수 있고, 단계 S430은 본 개시에서 설명된 레지듀얼 처리 절차를 포함할 수 있고, 단계 S440은 본 개시에서 설명된 블록/픽처 복원 절차를 포함할 수 있고, 단계 S450은 본 개시에서 설명된 인루프 필터링 절차를 포함할 수 있다.Each procedure shown in FIG. 4 may be performed by the image decoding apparatus of FIG. 3. Specifically, for example, step S410 may be performed by the entropy decoding unit 210 of the image decoding apparatus, step S420 may be performed by the prediction units 260 and 265, and step S430 may be performed by the residual processing units 220 and 230 ), step S440 may be performed by the adding unit 235, and step S450 may be performed by the filtering unit 240. Step S410 may include the information decoding (parsing) procedure described in the present disclosure, step S420 may include the inter/intra prediction procedure described in the present disclosure, and step S430 may include the residual processing described in the present disclosure. A procedure may be included, and step S440 may include a block/picture restoration procedure described in the present disclosure, and step S450 may include an in-loop filtering procedure described in the present disclosure.
도 4를 참조하면, 영상 복호화 절차는 개략적으로 비트스트림으로부터 (디코딩을 통한) 영상/비디오 정보를 획득하는 절차(S410), 영상(픽처) 복원 절차(S420~S440) 및 복원된 영상(픽처)에 대한 인루프 필터링 절차(S450)를 포함할 수 있다. 상기 영상 복원 절차는 인터/인트라 예측(S420)을 거쳐서 획득한 예측 샘플들 및 레지듀얼 처리(S430, 양자화된 변환 계수에 대한 역양자화 및/또는 역변환) 과정을 거쳐서 획득한 레지듀얼 샘플들을 기반으로 수행될 수 있다. 상기 영상 복원 절차를 통하여 생성된 복원 픽처에 대한 인루프 필터링 절차(S450)를 통하여 수정된(modified) 복원 픽처가 생성될 수 있으며, 상기 수정된 복원 픽처가 디코딩된 픽처로서 출력될 수 있고, 또한 영상 복호화 장치의 복호 픽처 버퍼(DPB)(250) 또는 메모리에 저장되어 이후 픽처의 디코딩시 인터 예측 절차에서 참조 픽처로 사용될 수 있다. 경우에 따라서 상기 인루프 필터링 절차는 생략될 수 있으며, 이 경우 상기 복원 픽처가 디코딩된 픽처로서 출력될 수 있고, 또한 영상 복호화 장치의 복호 픽처 버퍼(250) 또는 메모리에 저장되어 이후 픽처의 디코딩시 인터 예측 절차에서 참조 픽처로 사용될 수 있다. 상기 인루프 필터링 절차(S450)는 상술한 바와 같이 디블록킹 필터링 절차, SAO(sample adaptive offset) 절차, ALF(adaptive loop filter) 절차 및/또는 바이래터럴 필터(bi-lateral filter) 절차 등을 포함할 수 있고, 그 일부 또는 전부가 생략될 수 있다. 또한, 상기 디블록킹 필터링 절차, SAO(sample adaptive offset) 절차, ALF(adaptive loop filter) 절차 및 바이래터럴 필터(bi-lateral filter) 절차들 중 하나 또는 일부가 순차적으로 적용될 수 있고, 또는 모두가 순차적으로 적용될 수도 있다. 예를 들어, 복원 픽처에 대하여 디블록킹 필터링 절차가 적용된 후 SAO 절차가 수행될 수 있다. 또는 예를 들어 복원 픽처에 대하여 디블록킹 필터링 절차가 적용된 후 ALF 절차가 수행될 수 있다. 이는 영상 부호화 장치에서도 마찬가지로 수행될 수 있다. Referring to FIG. 4, the image decoding procedure is schematically a procedure for obtaining image/video information (through decoding) from a bitstream (S410), an image (picture) restoration procedure (S420 to S440), and a reconstructed image (picture). It may include an in-loop filtering procedure (S450) for. The image restoration procedure is based on prediction samples obtained through inter/intra prediction (S420) and residual samples obtained through a residual processing (S430, inverse quantization and/or inverse transformation of a quantized transform coefficient). Can be done. A modified reconstructed picture may be generated through an in-loop filtering procedure (S450) for the reconstructed picture generated through the image restoration procedure, and the modified reconstructed picture may be output as a decoded picture. It may be stored in the decoded picture buffer (DPB) 250 of the video decoding apparatus or a memory, and used as a reference picture in an inter prediction procedure when decoding a picture later. In some cases, the in-loop filtering procedure may be omitted, and in this case, the reconstructed picture may be output as a decoded picture, and is also stored in the decoded picture buffer 250 of the video decoding apparatus or in a memory to decode a subsequent picture. It can be used as a reference picture in the inter prediction procedure. The in-loop filtering procedure (S450) includes a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and/or a bi-lateral filter procedure, as described above. May be, and some or all of them may be omitted. In addition, one or some of the deblocking filtering procedure, sample adaptive offset (SAO) procedure, adaptive loop filter (ALF) procedure, and bi-lateral filter procedure may be sequentially applied, or all of them may be sequentially applied. It can also be applied. For example, the SAO procedure may be performed after the deblocking filtering procedure is applied to the reconstructed picture. Alternatively, for example, after the deblocking filtering procedure is applied to the reconstructed picture, the ALF procedure may be performed. This can be similarly performed in an image encoding apparatus.
도 5는 본 개시에 따른 실시예가 적용 가능한 영상 부호화 절차의 개략적인 흐름도이다.5 is a schematic flowchart of an image encoding procedure applicable to an embodiment according to the present disclosure.
도 4에 도시된 각 절차는 도 2의 영상 부호화 장치에 의해 수행될 수 있다. 구체적으로, 예컨대, 단계 S510은 영상 부호화 장치의 예측부(180, 185)에서 수행될 수 있고, 단계 S520은 레지듀얼 처리부(115, 120, 130)에서 수행될 수 있고, 단계 S530은 엔트로피 인코딩부(190)에서 수행될 수 있다. 단계 S510은 본 개시에서 설명된 인터/인트라 예측 절차를 포함할 수 있고, 단계 S520은 본 개시에서 설명된 레지듀얼 처리 절차를 포함할 수 있고, 단계 S530은 본 개시에서 설명된 정보 인코딩 절차를 포함할 수 있다. Each procedure shown in FIG. 4 may be performed by the image encoding apparatus of FIG. 2. Specifically, for example, step S510 may be performed by the prediction units 180 and 185 of the image encoding apparatus, step S520 may be performed by the residual processing units 115, 120 and 130, and step S530 may be performed by the entropy encoding unit. It can be done at 190. Step S510 may include the inter/intra prediction procedure described in this disclosure, step S520 may include the residual processing procedure described in this disclosure, and step S530 includes the information encoding procedure described in this disclosure can do.
도 5를 참조하면, 영상 부호화 절차는 개략적으로 픽처 복원을 위한 정보(ex. 예측 정보, 레지듀얼 정보, 파티셔닝 정보 등)를 인코딩하여 비트스트림 형태로 출력하는 절차뿐 아니라, 현재 픽처에 대한 복원 픽처를 생성하는 절차 및 복원 픽처에 인루프 필터링을 적용하는 절차(optional)를 포함할 수 있다. 영상 부호화 장치는 역양자화부(140) 및 역변환부(150)를 통하여 양자화된 변환 계수로부터 (수정된) 레지듀얼 샘플들을 도출할 수 있으며, 단계 S510의 출력인 예측 샘플들과 상기 (수정된) 레지듀얼 샘플들을 기반으로 복원 픽처를 생성할 수 있다. 이렇게 생성된 복원 픽처는 상술한 영상 복호화 장치에서 생성한 복원 픽처와 동일할 수 있다. 상기 복원 픽처에 대한 인루프 필터링 절차를 통하여 수정된 복원 픽처가 생성될 수 있으며, 이는 복호 픽처 버퍼(DPB)(170) 또는 메모리에 저장될 수 있으며, 영상 복호화 장치에서의 경우와 마찬가지로, 이후 픽처의 인코딩시 인터 예측 절차에서 참조 픽처로 사용될 수 있다. 상술한 바와 같이 경우에 따라서 상기 인루프 필터링 절차의 일부 또는 전부는 생략될 수 있다. 상기 인루프 필터링 절차가 수행되는 경우, (인루프) 필터링 관련 정보(파라미터)가 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있고, 영상 복호화 장치는 상기 필터링 관련 정보를 기반으로 영상 부호화 장치와 동일한 방법으로 인루프 필터링 절차를 수행할 수 있다. Referring to FIG. 5, the image encoding procedure is not only a procedure of encoding information for picture restoration (ex. prediction information, residual information, partitioning information, etc.) and outputting it in a bitstream format, as well as a reconstructed picture for a current picture. A procedure of generating and applying in-loop filtering to a reconstructed picture (optional) may be included. The image encoding apparatus may derive (modified) residual samples from the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150, and prediction samples that are outputs of step S510 and the (modified) A reconstructed picture may be generated based on the residual samples. The reconstructed picture generated in this way may be the same as the reconstructed picture generated by the above-described video decoding apparatus. A modified reconstructed picture can be generated through an in-loop filtering procedure for the reconstructed picture, which can be stored in a decoded picture buffer (DPB) 170 or a memory, and, as in the case of a video decoding apparatus, a subsequent picture It can be used as a reference picture in an inter prediction procedure upon encoding of. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, (in-loop) filtering-related information (parameters) may be encoded by the entropy encoding unit 190 and output in the form of a bitstream, and the image decoding apparatus The in-loop filtering procedure may be performed in the same way as the image encoding apparatus.
이러한 인루프 필터링 절차를 통하여 블록킹 아티팩트(artifact) 및 링잉(ringing) 아티팩트 등 영상/동영상 코딩시 발생하는 노이즈를 줄일 수 있으며, 주관적/객관적 비주얼 퀄리티를 높일 수 있다. 또한, 영상 부호화 장치와 영상 복호화 장치에서 둘 다 인루프 필터링 절차를 수행함으로서, 영상 부호화 장치와 영상 복호화 장치는 동일한 예측 결과를 도출할 수 있으며, 픽처 코딩의 신뢰성을 높이고, 픽처 코딩을 위하여 전송되어야 하는 데이터량을 줄일 수 있다. Through such an in-loop filtering procedure, noise generated during video/video coding such as blocking artifacts and ringing artifacts can be reduced, and subjective/objective visual quality can be improved. In addition, by performing the in-loop filtering procedure in both the image encoding device and the image decoding device, the image encoding device and the image decoding device can derive the same prediction result, increase the reliability of picture coding, and must be transmitted for picture coding. You can reduce the amount of data you need.
상술한 바와 같이 영상 복호화 장치 뿐 아니라 영상 부호화 장치에서도 영상(픽처) 복원 절차가 수행될 수 있다. 각 블록 단위로 인트라 예측/인터 예측에 기반하여 복원 블록이 생성될 수 있으며, 복원 블록들을 포함하는 복원 픽처가 생성될 수 있다. 현재 픽처/슬라이스/타일 그룹이 I 픽처/슬라이스/타일 그룹인 경우 상기 현재 픽처/슬라이스/타일 그룹에 포함되는 블록들은 인트라 예측만을 기반으로 복원될 수 있다. 한편, 현재 픽처/슬라이스/타일 그룹이 P 또는 B 픽처/슬라이스/타일 그룹인 경우 상기 현재 픽처/슬라이스/타일 그룹에 포함되는 블록들은 인트라 예측 또는 인터 예측을 기반으로 복원될 수 있다. 이 경우 현재 픽처/슬라이스/타일 그룹 내 일부 블록들에 대하여는 인터 예측이 적용되고, 나머지 일부 블록들에 대하여는 인트라 예측이 적용될 수도 있다. 픽처의 컬러 성분은 루마 성분 및 크로마 성분을 포함할 수 있으며, 본 개시에서 명시적으로 제한하지 않으면 본 개시에 따른 방법들 및 실시예들은 루마 성분 및 크로마 성분에 적용될 수 있다.As described above, not only the image decoding apparatus but also the image encoding apparatus may perform an image (picture) restoration procedure. A reconstructed block may be generated based on intra prediction/inter prediction for each block, and a reconstructed picture including the reconstructed blocks may be generated. When the current picture/slice/tile group is an I picture/slice/tile group, blocks included in the current picture/slice/tile group may be reconstructed based only on intra prediction. Meanwhile, when the current picture/slice/tile group is a P or B picture/slice/tile group, blocks included in the current picture/slice/tile group may be reconstructed based on intra prediction or inter prediction. In this case, inter prediction may be applied to some blocks in the current picture/slice/tile group, and intra prediction may be applied to the remaining blocks. The color component of a picture may include a luma component and a chroma component, and methods and embodiments according to the present disclosure may be applied to the luma component and the chroma component unless explicitly limited in the present disclosure.
인트라 예측의 개요Overview of intra prediction
이하, 본 개시에 따른 인트라 예측에 대해 설명한다.Hereinafter, intra prediction according to the present disclosure will be described.
인트라 예측은 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 참조 샘플들을 기반으로 현재 블록에 대한 예측 샘플들을 생성하는 예측을 나타낼 수 있다. 현재 블록에 인트라 예측이 적용되는 경우, 현재 블록의 인트라 예측에 사용할 주변 참조 샘플들이 도출될 수 있다. 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 좌측(left) 경계에 인접한 샘플 및 좌하측(bottom-left)에 이웃하는 총 2xnH 개의 샘플들, 현재 블록의 상측(top) 경계에 인접한 샘플 및 우상측(top-right)에 이웃하는 총 2xnW 개의 샘플들 및 현재 블록의 좌상측(top-left)에 이웃하는 1개의 샘플을 포함할 수 있다. 또는, 상기 현재 블록의 주변 참조 샘플들은 복수열의 상측 주변 샘플들 및 복수행의 좌측 주변 샘플들을 포함할 수도 있다. 또한, 상기 현재 블록의 주변 참조 샘플들은 nWxnH 크기의 현재 블록의 우측(right) 경계에 인접한 총 nH 개의 샘플들, 현재 블록의 하측(bottom) 경계에 인접한 총 nW 개의 샘플들 및 현재 블록의 우하측(bottom-right)에 이웃하는 1개의 샘플을 포함할 수도 있다. Intra prediction may indicate prediction of generating prediction samples for a current block based on reference samples in a picture (hereinafter, referred to as a current picture) to which the current block belongs. When intra prediction is applied to the current block, surrounding reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block are a sample adjacent to the left boundary of the current block of size nWxnH, a total of 2xnH samples adjacent to the bottom-left, and a sample adjacent to the top boundary of the current block. And a total of 2xnW samples adjacent to the top-right side and one sample adjacent to the top-left side of the current block. Alternatively, the peripheral reference samples of the current block may include a plurality of columns of upper peripheral samples and a plurality of rows of left peripheral samples. In addition, the neighboring reference samples of the current block are a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block, and the lower right side of the current block. It may include one sample adjacent to (bottom-right).
다만, 현재 블록의 주변 참조 샘플들 중 일부는 아직 디코딩되지 않았거나, 이용 가능하지 않을 수 있다. 이 경우, 디코더는 이용 가능한 샘플들로 이용 가능하지 않은 샘플들을 대체(substitution)하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다. 또는, 이용 가능한 샘플들의 보간(interpolation)을 통하여 예측에 사용할 주변 참조 샘플들을 구성할 수 있다.However, some of the neighboring reference samples of the current block have not yet been decoded or may not be available. In this case, the decoder may construct neighboring reference samples to be used for prediction by substituting samples that are not available with available samples. Alternatively, surrounding reference samples to be used for prediction may be configured through interpolation of available samples.
주변 참조 샘플들이 도출된 경우, (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. When neighboring reference samples are derived, (i) a prediction sample can be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) neighboring reference samples of the current block Among them, the prediction sample may be derived based on a reference sample existing in a specific (prediction) direction for the prediction sample. In the case of (i), it may be called a non-directional mode or a non-angular mode, and in the case of (ii), it may be called a directional mode or an angular mode.
또한, 상기 주변 참조 샘플들 중 상기 현재 블록의 예측 대상 샘플을 기준으로 상기 현재 블록의 인트라 예측 모드의 예측 방향에 위치하는 제1 주변 샘플과 그 반대 방향에 위치하는 제2 주변 샘플과의 보간을 통하여 상기 예측 샘플이 생성될 수도 있다. 상술한 경우는 선형 보간 인트라 예측(Linear interpolation intra prediction, LIP) 이라고 불릴 수 있다. In addition, interpolation between a first surrounding sample located in the prediction direction of the intra prediction mode of the current block and a second surrounding sample located in the opposite direction based on the prediction target sample of the current block among the surrounding reference samples Through this, the prediction sample may be generated. The above-described case may be referred to as linear interpolation intra prediction (LIP).
또한, 선형 모델(linear model)을 이용하여 루마 샘플들을 기반으로 크로마 예측 샘플들이 생성될 수도 있다. 이 경우는 LM(Linear Model) 모드라고 불릴 수 있다. Further, chroma prediction samples may be generated based on luma samples using a linear model. This case may be referred to as LM (Linear Model) mode.
또한, 필터링된 주변 참조 샘플들을 기반으로 상기 현재 블록의 임시 예측 샘플을 도출하고, 상기 기존의 주변 참조 샘플들, 즉, 필터링되지 않은 주변 참조 샘플들 중 상기 인트라 예측 모드에 따라 도출된 적어도 하나의 참조 샘플과 상기 임시 예측 샘플을 가중합(weighted sum)하여 상기 현재 블록의 예측 샘플을 도출할 수도 있다. 이 경우는 PDPC(Position dependent intra prediction) 라고 불릴 수 있다. In addition, a temporary prediction sample of the current block is derived based on the filtered surrounding reference samples, and at least one of the existing surrounding reference samples, that is, unfiltered surrounding reference samples, derived according to the intra prediction mode. A prediction sample of the current block may be derived by weighted sum of a reference sample and the temporary prediction sample. This case may be called PDPC (Position dependent intra prediction).
또한, 현재 블록의 주변 다중 참조 샘플 라인 중 가장 예측 정확도가 높은 참조 샘플 라인을 선택하여 해당 라인에서 예측 방향에 위치하는 참조 샘플을 이용하여 예측 샘플을 도출할 수 있다. 이 때, 사용된 참조 샘플 라인에 관한 정보(예컨대, intra_luma_ref_idx)는 비트스트림에 부호화되어 시그널링될 수 있다. 이 경우는 multi-reference line intra prediction (MRL) 또는 MRL 기반 인트라 예측이라고 불릴 수 있다. MRL이 적용되지 않는 경우, 현재 블록에 직접 인접한 참조 샘플 라인으로부터 참조 샘플들이 도출될 수 있고, 이 경우, 참조 샘플 라인에 관한 정보는 시그널링되지 않을 수 있다.In addition, a reference sample line having the highest prediction accuracy among the neighboring multi-reference sample lines of the current block may be selected, and a prediction sample may be derived using a reference sample positioned in the prediction direction from the corresponding line. In this case, information on the used reference sample line (eg, intra_luma_ref_idx) may be encoded in the bitstream and signaled. This case may be referred to as multi-reference line intra prediction (MRL) or MRL-based intra prediction. When MRL is not applied, reference samples may be derived from a reference sample line directly adjacent to the current block, and in this case, information about the reference sample line may not be signaled.
또한, 현재 블록을 수직 또는 수평의 서브파티션들로 분할하고, 각 서브파티션에 대해 동일한 인트라 예측 모드를 기반으로 인트라 예측을 수행할 수 있다. 이 때, 인트라 예측의 주변 참조 샘플들은 각 서브파티션 단위로 도출될 수 있다. 즉, 부호화/복호화 순서 상 이전 서브파티션의 복원된 샘플이 현재 서브파티션의 주변 참조 샘플로서 이용될 수 있다. 이 경우 현재 블록에 대한 인트라 예측 모드가 상기 서브파티션들에 동일하게 적용되되, 상기 서브파티션 단위로 주변 참조 샘플을 도출하여 이용함으로써 경우에 따라 인트라 예측 성능을 높일 수 있다. 이러한 예측 방법은 intra sub-partitions (ISP) 또는 ISP 기반 인트라 예측이라고 불릴 수 있다. In addition, the current block may be divided into vertical or horizontal subpartitions, and intra prediction may be performed for each subpartition based on the same intra prediction mode. In this case, neighboring reference samples of intra prediction may be derived for each subpartition. That is, the reconstructed sample of the previous sub-partition in the encoding/decoding order may be used as a neighboring reference sample of the current sub-partition. In this case, the intra prediction mode for the current block is equally applied to the subpartitions, but by deriving and using neighboring reference samples in units of the subpartitions, intra prediction performance may be improved in some cases. This prediction method may be referred to as intra sub-partitions (ISP) or ISP-based intra prediction.
전술한 인트라 예측 기법들은 방향성 또는 비방향성의 인트라 예측 모드와 구분하여 인트라 예측 타입 또는 부가 인트라 예측 모드 등 다양한 용어로 불릴 수 있다. 예를 들어 상기 인트라 예측 기법(인트라 예측 타입 또는 부가 인트라 예측 모드 등)은 상술한 LIP, LM, PDPC, MRL, ISP 중 적어도 하나를 포함할 수 있다. 상기 LIP, LM, PDPC, MRL, ISP 등의 특정 인트라 예측 타입을 제외한 일반 인트라 예측 방법은 노멀 인트라 예측 타입이라고 불릴 수 있다. 노멀 인트라 예측 타입은 상기와 같은 특정 인트라 예측 타입이 적용되지 않는 경우 일반적으로 적용될 수 있으며, 전술한 인트라 예측 모드를 기반으로 예측이 수행될 수 있다. 한편, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링이 수행될 수도 있다. The above-described intra prediction techniques may be referred to in various terms such as an intra prediction type or an additional intra prediction mode in distinction from a directional or non-directional intra prediction mode. For example, the intra prediction technique (intra prediction type or additional intra prediction mode, etc.) may include at least one of the aforementioned LIP, LM, PDPC, MRL, and ISP. The general intra prediction method excluding specific intra prediction types such as LIP, LM, PDPC, MRL, and ISP may be referred to as a normal intra prediction type. The normal intra prediction type may be generally applied when the specific intra prediction type as described above is not applied, and prediction may be performed based on the aforementioned intra prediction mode. Meanwhile, post-processing filtering may be performed on the derived prediction samples as necessary.
구체적으로, 인트라 예측 절차는 인트라 예측 모드/타입 결정 단계, 주변 참조 샘플 도출 단계, 인트라 예측 모드/타입 기반 예측 샘플 도출 단계를 포함할 수 있다. 또한, 필요에 따라서 도출된 예측 샘플에 대한 후처리 필터링(post-filtering) 단계가 수행될 수도 있다.Specifically, the intra prediction procedure may include determining an intra prediction mode/type, deriving a neighboring reference sample, and deriving an intra prediction mode/type based prediction sample. Also, a post-filtering step may be performed on the derived prediction samples as necessary.
도 6은 인트라 예측 기반 비디오/영상 인코딩 방법을 도시한 흐름도이다.6 is a flowchart illustrating a video/video encoding method based on intra prediction.
도 6의 인코딩 방법은 도 2의 영상 부호화 장치에 의해 수행될 수 있다. 구체적으로, 단계 S610은 인트라 예측부(185)에 의하여 수행될 수 있고, 단계 S620은 레지듀얼 처리부에 의하여 수행될 수 있다. 구체적으로 단계 S620은 감산부(115)에 의하여 수행될 수 있다. 단계 S630은 엔트로피 인코딩부(190)에 의하여 수행될 수 있다. 단계 S630의 예측 정보는 인트라 예측부(185)에 의하여 도출되고, 단계 S630의 레지듀얼 정보는 레지듀얼 처리부에 의하여 도출될 수 있다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 관한 정보이다. 상기 레지듀얼 정보는 상기 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다. 전술한 바와 같이 상기 레지듀얼 샘플들은 영상 부호화 장치의 변환부(120)를 통하여 변환 계수들로 도출되고, 상기 변환 계수들은 양자화부(130)를 통하여 양자화된 변환 계수들로 도출될 수 있다. 상기 양자화된 변환 계수들에 관한 정보가 레지듀얼 코딩 절차를 통하여 엔트로피 인코딩부(190)에서 인코딩될 수 있다. The encoding method of FIG. 6 may be performed by the video encoding apparatus of FIG. 2. Specifically, step S610 may be performed by the intra prediction unit 185, and step S620 may be performed by the residual processing unit. Specifically, step S620 may be performed by the subtraction unit 115. Step S630 may be performed by the entropy encoding unit 190. The prediction information of step S630 may be derived by the intra prediction unit 185, and the residual information of step S630 may be derived by the residual processing unit. The residual information is information on the residual samples. The residual information may include information on quantized transform coefficients for the residual samples. As described above, the residual samples may be derived as transform coefficients through the transform unit 120 of the image encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through the quantization unit 130. Information about the quantized transform coefficients may be encoded by the entropy encoding unit 190 through a residual coding procedure.
영상 부호화 장치는 현재 블록에 대한 인트라 예측을 수행할 수 있다(S610). 영상 부호화 장치는 현재 블록에 대한 인트라 예측 모드/타입을 결정하고, 현재 블록의 주변 참조 샘플들을 도출한 후, 상기 인트라 예측 모드/타입 및 상기 주변 참조 샘플들을 기반으로 상기 현재 블록 내 예측 샘플들을 생성할 수 있다. 여기서 인트라 예측 모드/타입 결정, 주변 참조 샘플들 도출 및 예측 샘플들 생성 절차는 동시에 수행될 수도 있고, 어느 한 절차가 다른 절차보다 먼저 수행될 수도 있다. The image encoding apparatus may perform intra prediction on the current block (S610). The video encoding apparatus determines an intra prediction mode/type for the current block, derives neighboring reference samples of the current block, and then generates prediction samples in the current block based on the intra prediction mode/type and the neighboring reference samples. can do. Here, the procedure of determining the intra prediction mode/type, deriving neighboring reference samples, and generating prediction samples may be simultaneously performed, or one procedure may be performed before the other procedure.
도 7은 본 개시에 따른 인트라 예측부(185)의 구성을 예시적으로 도시한 도면이다.7 is a diagram illustrating an exemplary configuration of an intra prediction unit 185 according to the present disclosure.
도 7에 도시된 바와 같이, 영상 부호화 장치의 인트라 예측부(185)는 인트라 예측 모드/타입 결정부(186), 참조 샘플 도출부(187) 및/또는 예측 샘플 도출부(188)를 포함할 수 있다. 인트라 예측 모드/타입 결정부(186)는 상기 현재 블록에 대한 인트라 예측 모드/타입을 결정할 수 있다. 참조 샘플 도출부(187)는 상기 현재 블록의 주변 참조 샘플들을 도출할 수 있다. 예측 샘플 도출부(188)는 상기 현재 블록의 예측 샘플들을 도출할 수 있다. 한편, 비록 도시되지는 않았지만, 후술하는 예측 샘플 필터링 절차가 수행되는 경우, 인트라 예측부(185)는 예측 샘플 필터부(미도시)를 더 포함할 수도 있다. As shown in FIG. 7, the intra prediction unit 185 of the video encoding apparatus may include an intra prediction mode/type determination unit 186, a reference sample derivation unit 187 and/or a prediction sample derivation unit 188. I can. The intra prediction mode/type determiner 186 may determine an intra prediction mode/type for the current block. The reference sample derivation unit 187 may derive neighboring reference samples of the current block. The prediction sample derivation unit 188 may derive prediction samples of the current block. Meanwhile, although not shown, when a prediction sample filtering procedure described later is performed, the intra prediction unit 185 may further include a prediction sample filter unit (not shown).
영상 부호화 장치는 복수의 인트라 예측 모드/타입들 중 상기 현재 블록에 대하여 적용되는 모드/타입을 결정할 수 있다. 영상 부호화 장치는 상기 인트라 예측 모드/타입들에 대한 율왜곡 비용(RD cost)을 비교하고 상기 현재 블록에 대한 최적의 인트라 예측 모드/타입을 결정할 수 있다. The image encoding apparatus may determine a mode/type applied to the current block from among a plurality of intra prediction modes/types. The video encoding apparatus may compare RD costs for the intra prediction modes/types and determine an optimal intra prediction mode/type for the current block.
한편, 영상 부호화 장치는 예측 샘플 필터링 절차를 수행할 수도 있다. 예측 샘플 필터링은 포스트 필터링이라 불릴 수 있다. 상기 예측 샘플 필터링 절차에 의하여 상기 예측 샘플들 중 일부 또는 전부가 필터링될 수 있다. 경우에 따라 상기 예측 샘플 필터링 절차는 생략될 수 있다. Meanwhile, the image encoding apparatus may perform a prediction sample filtering procedure. Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
다시 도 6을 참조하여, 영상 부호화 장치는 예측 샘플들 또는 필터링된 예측 샘플들을 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성할 수 있다(S620). 영상 부호화 장치는 현재 블록의 원본 샘플들로부터 상기 예측 샘플들을 감산하여 상기 레지듀얼 샘플들을 도출할 수 있다. 즉, 영상 부호화 장치는 원본 샘플값으로부터 대응하는 예측 샘플값을 감산함으로써, 레지듀얼 샘플값을 도출할 수 있다.Referring back to FIG. 6, the apparatus for encoding an image may generate residual samples for the current block based on prediction samples or filtered prediction samples (S620). The image encoding apparatus may derive the residual samples by subtracting the prediction samples from original samples of the current block. That is, the image encoding apparatus may derive the residual sample value by subtracting the corresponding predicted sample value from the original sample value.
영상 부호화 장치는 상기 인트라 예측에 관한 정보(예측 정보) 및 상기 레지듀얼 샘플들에 관한 레지듀얼 정보를 포함하는 영상 정보를 인코딩할 수 있다(S630). 상기 예측 정보는 상기 인트라 예측 모드 정보 및/또는 상기 인트라 예측 기법 정보를 포함할 수 있다. 영상 부호화 장치는 인코딩된 영상 정보를 비트스트림 형태로 출력할 수 있다. 출력된 비트스트림은 저장 매체 또는 네트워크를 통하여 영상 복호화 장치로 전달될 수 있다. The image encoding apparatus may encode image information including information about the intra prediction (prediction information) and residual information about the residual samples (S630). The prediction information may include the intra prediction mode information and/or the intra prediction technique information. The image encoding apparatus may output the encoded image information in the form of a bitstream. The output bitstream may be delivered to an image decoding apparatus through a storage medium or a network.
상기 레지듀얼 정보는 후술하는 레지듀얼 코딩 신택스를 포함할 수 있다. 영상 부호화 장치는 상기 레지듀얼 샘플들을 변환/양자화하여 양자화된 변환 계수들을 도출할 수 있다. 상기 레지듀얼 정보는 상기 양자화된 변환 계수들에 대한 정보를 포함할 수 있다. The residual information may include a residual coding syntax to be described later. The image encoding apparatus may transform/quantize the residual samples to derive quantized transform coefficients. The residual information may include information on the quantized transform coefficients.
한편, 전술한 바와 같이 영상 부호화 장치는 복원 픽처(복원 샘플들 및 복원 블록 포함)를 생성할 수 있다. 이를 위하여 영상 부호화 장치는 상기 양자화된 변환 계수들을 다시 역양자화/역변환 처리하여 (수정된) 레지듀얼 샘플들을 도출할 수 있다. 이와 같이 레지듀얼 샘플들을 변환/양자화 후 다시 역양자화/역변환을 수행하는 이유는 영상 복호화 장치에서 도출되는 레지듀얼 샘플들과 동일한 레지듀얼 샘플들을 도출하기 위함이다. 영상 부호화 장치는 상기 예측 샘플들과 상기 (수정된) 레지듀얼 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 포함하는 복원 블록을 생성할 수 있다. 상기 복원 블록을 기반으로 상기 현재 픽처에 대한 복원 픽처가 생성될 수 있다. 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 전술한 바와 같다.Meanwhile, as described above, the image encoding apparatus may generate a reconstructed picture (including reconstructed samples and a reconstructed block). To this end, the image encoding apparatus may perform inverse quantization/inverse transformation on the quantized transform coefficients again to derive (modified) residual samples. The reason why the residual samples are transformed/quantized and then inverse quantized/inverse transformed is performed to derive residual samples identical to the residual samples derived from the image decoding apparatus. The image encoding apparatus may generate a reconstructed block including reconstructed samples for the current block based on the prediction samples and the (modified) residual samples. A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
도 8은 인트라 예측 기반 비디오/영상 디코딩 방법을 도시한 흐름도이다.8 is a flowchart illustrating a video/video decoding method based on intra prediction.
영상 복호화 장치는 상기 영상 부호화 장치에서 수행된 동작과 대응되는 동작을 수행할 수 있다. The image decoding apparatus may perform an operation corresponding to an operation performed by the image encoding apparatus.
도 8의 디코딩 방법은 도 3의 영상 복호화 장치에 의해 수행될 수 있다. 딘계 S810 내지 S830은 인트라 예측부(265)에 의하여 수행될 수 있고, 단계 S810의 예측 정보 및 단계 S840의 레지듀얼 정보는 엔트로피 디코딩부(210)에 의하여 비트스트림으로부터 획득될 수 있다. 영상 복호화 장치의 레지듀얼 처리부는 상기 레지듀얼 정보를 기반으로 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다(S840). 구체적으로 상기 레지듀얼 처리부의 역양자화부(220)는 상기 레지듀얼 정보를 기반으로 도출된 양자화된 변환 계수들을 기반으로, 역양자화를 수행하여 변환 계수들을 도출하고, 상기 레지듀얼 처리부의 역변환부(230)는 상기 변환 계수들에 대한 역변환을 수행하여 상기 현재 블록에 대한 레지듀얼 샘플들을 도출할 수 있다. 단계 S850은 가산부(235) 또는 복원부에 의하여 수행될 수 있다. The decoding method of FIG. 8 may be performed by the video decoding apparatus of FIG. 3. Dean systems S810 to S830 may be performed by the intra prediction unit 265, and the prediction information of step S810 and the residual information of step S840 may be obtained from the bitstream by the entropy decoding unit 210. The residual processing unit of the image decoding apparatus may derive residual samples for the current block based on the residual information (S840). Specifically, the inverse quantization unit 220 of the residual processing unit derives transform coefficients by performing inverse quantization based on the quantized transform coefficients derived based on the residual information, and the inverse transform unit of the residual processing unit ( 230) may derive residual samples for the current block by performing inverse transform on the transform coefficients. Step S850 may be performed by the addition unit 235 or the restoration unit.
구체적으로 영상 복호화 장치는 수신된 예측 정보(인트라 예측 모드/타입 정보)를 기반으로 현재 블록에 대한 인트라 예측 모드/타입을 도출할 수 있다(S810). 또한, 영상 복호화 장치는 상기 현재 블록의 주변 참조 샘플들을 도출할 수 있다(S820). 영상 복호화 장치는 상기 인트라 예측 모드/타입 및 상기 주변 참조 샘플들을 기반으로 상기 현재 블록 내 예측 샘플들을 생성할 수 있다(S830). 이 경우 영상 복호화 장치는 예측 샘플 필터링 절차를 수행할 수 있다. 예측 샘플 필터링은 포스트 필터링이라 불릴 수 있다. 상기 예측 샘플 필터링 절차에 의하여 상기 예측 샘플들 중 일부 또는 전부가 필터링될 수 있다. 경우에 따라 예측 샘플 필터링 절차는 생략될 수 있다. In more detail, the image decoding apparatus may derive an intra prediction mode/type for the current block based on the received prediction information (intra prediction mode/type information) (S810). In addition, the image decoding apparatus may derive neighboring reference samples of the current block (S820). The image decoding apparatus may generate prediction samples in the current block based on the intra prediction mode/type and the neighboring reference samples (S830). In this case, the image decoding apparatus may perform a prediction sample filtering procedure. Predictive sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
영상 복호화 장치는 수신된 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성할 수 있다(S840). 영상 복호화 장치는 상기 예측 샘플들 및 상기 레지듀얼 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하고, 상기 복원 샘플들을 포함하는 복원 블록을 도출할 수 있다(S850). 상기 복원 블록을 기반으로 상기 현재 픽처에 대한 복원 픽처가 생성될 수 있다. 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 전술한 바와 같다.The image decoding apparatus may generate residual samples for the current block based on the received residual information (S840). The image decoding apparatus may generate reconstructed samples for the current block based on the prediction samples and the residual samples, and derive a reconstructed block including the reconstructed samples (S850). A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
도 9는 본 개시에 따른 인트라 예측부(265)의 구성을 예시적으로 도시한 도면이다.9 is a diagram illustrating an exemplary configuration of an intra prediction unit 265 according to the present disclosure.
도 9에 도시된 바와 같이, 영상 복호화 장치의 인트라 예측부(265)는 인트라 예측 모드/타입 결정부(266), 참조 샘플 도출부(267), 예측 샘플 도출부(268)를 포함할 수 있다. 인트라 예측 모드/타입 결정부(266)는 영상 부호화 장치의 인트라 예측 모드/타입 결정부(186)에서 생성되어 시그널링된 인트라 예측 모드/타입 정보를 기반으로 상기 현재 블록에 대한 인트라 예측 모드/타입을 결정하고, 참조 샘플 도출부(266)는 현재 픽처 내 복원된 참조 영역으로부터 상기 현재 블록의 주변 참조 샘플들을 도출할 수 있다. 예측 샘플 도출부(268)는 상기 현재 블록의 예측 샘플들을 도출할 수 있다. 한편, 비록 도시되지는 않았지만, 전술한 예측 샘플 필터링 절차가 수행되는 경우, 인트라 예측부(265)는 예측 샘플 필터부(미도시)를 더 포함할 수도 있다.9, the intra prediction unit 265 of the image decoding apparatus may include an intra prediction mode/type determination unit 266, a reference sample derivation unit 267, and a prediction sample derivation unit 268. . The intra prediction mode/type determiner 266 determines an intra prediction mode/type for the current block based on intra prediction mode/type information generated and signaled by the intra prediction mode/type determiner 186 of the image encoding apparatus. After determining, the reference sample deriving unit 266 may derive neighboring reference samples of the current block from the reconstructed reference region in the current picture. The prediction sample derivation unit 268 may derive prediction samples of the current block. Meanwhile, although not shown, when the above-described prediction sample filtering procedure is performed, the intra prediction unit 265 may further include a prediction sample filter unit (not shown).
상기 인트라 예측 모드 정보는 예를 들어 MPM(most probable mode)가 상기 현재 블록에 적용되는지 아니면 리메이닝 모드(remaining mode)가 적용되는지 여부를 나타내는 플래그 정보(ex. intra_luma_mpm_flag)를 포함할 수 있고, 상기 MPM이 상기 현재 블록에 적용되는 경우 상기 인트라 예측 모드 정보는 상기 인트라 예측 모드 후보들(MPM 후보들) 중 하나를 가리키는 인덱스 정보(ex. intra_luma_mpm_idx)를 더 포함할 수 있다. 상기 인트라 예측 모드 후보들(MPM 후보들)은 MPM 후보 리스트 또는 MPM 리스트로 구성될 수 있다. 또한, 상기 MPM이 상기 현재 블록에 적용되지 않는 경우, 상기 인트라 예측 모드 정보는 상기 인트라 예측 모드 후보들(MPM 후보들)을 제외한 나머지 인트라 예측 모드들 중 하나를 가리키는 리메이닝 모드 정보(ex. intra_luma_mpm_remainder)를 더 포함할 수 있다. 영상 복호화 장치는 상기 인트라 예측 모드 정보를 기반으로 상기 현재 블록의 인트라 예측 모드를 결정할 수 있다. MPM 후보 모드들은 현재 블록의 주변 블록(예컨대, 좌측 주변 블록 및 상측 주변 블록)의 인트라 예측 모드 및 추가적인 후보 모드들을 포함할 수 있다.The intra prediction mode information may include, for example, flag information (ex. intra_luma_mpm_flag) indicating whether a most probable mode (MPM) is applied to the current block or a remaining mode is applied, and the When MPM is applied to the current block, the intra prediction mode information may further include index information (ex. intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the intra prediction mode information includes remaining mode information (ex. intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). It may contain more. The image decoding apparatus may determine an intra prediction mode of the current block based on the intra prediction mode information. The MPM candidate modes may include an intra prediction mode and additional candidate modes of a neighboring block (eg, a left neighboring block and an upper neighboring block) of the current block.
또한, 상기 인트라 예측 기법 정보는 다양한 형태로 구현될 수 있다. 일 예로, 상기 인트라 예측 기법 정보는 상기 인트라 예측 기법들 중 하나를 지시하는 인트라 예측 기법 인덱스 정보를 포함할 수 있다. 다른 예로, 상기 인트라 예측 기법 정보는 상기 MRL이 상기 현재 블록에 적용되는지 및 적용되는 경우에는 몇번째 참조 샘플 라인이 이용되는지 여부를 나타내는 참조 샘플 라인 정보(ex. intra_luma_ref_idx), 상기 ISP가 상기 현재 블록에 적용되는지를 나타내는 ISP 플래그 정보(ex. intra_subpartitions_mode_flag), 상기 ISP가 적용되는 경우에 서브파티션들의 분할 타입을 지시하는 ISP 타입 정보 (ex. intra_subpartitions_split_flag), PDPC의 적용 여부를 나타내는 플래그 정보 또는 LIP의 적용 여부를 나타내는 플래그 정보 중 적어도 하나를 포함할 수 있다. 본 개시에서 ISP 플래그 정보는 ISP 적용 지시자로 불릴 수 있다. In addition, the intra prediction technique information may be implemented in various forms. As an example, the intra prediction technique information may include intra prediction technique index information indicating one of the intra prediction techniques. As another example, the intra prediction method information includes reference sample line information (ex. intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if applied, a reference sample line (eg, intra_luma_ref_idx), and the ISP is the current block. ISP flag information indicating whether it is applied to (ex. intra_subpartitions_mode_flag), ISP type information indicating the split type of subpartitions when the ISP is applied (ex. intra_subpartitions_split_flag), flag information indicating whether PDPC is applied, or LIP application It may include at least one of flag information indicating whether or not. In this disclosure, ISP flag information may be referred to as an ISP application indicator.
상기 인트라 예측 모드 정보 및/또는 상기 인트라 예측 기법 정보는 본 개시에서 설명된 코딩 방법을 통하여 인코딩/디코딩될 수 있다. 예를 들어, 상기 인트라 예측 모드 정보 및/또는 상기 인트라 예측 기법 정보는 truncated (rice) binary code를 기반으로 엔트로피 코딩(ex. CABAC, CAVLC)을 통하여 인코딩/디코딩될 수 있다.The intra prediction mode information and/or the intra prediction technique information may be encoded/decoded through the coding method described in this disclosure. For example, the intra prediction mode information and/or the intra prediction method information may be encoded/decoded through entropy coding (ex. CABAC, CAVLC) based on a truncated (rice) binary code.
도 10은 본 개시의 일 실시예에 따른 인트라 예측 방향을 도시하는 도면이다. 10 is a diagram illustrating an intra prediction direction according to an embodiment of the present disclosure.
인트라 예측 모드는 일 예로 2개의 비방향성 인트라 예측 모드들과 33개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너(planar) 인트라 예측 모드 및 DC 인트라 예측 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 34번 인트라 예측 모드들을 포함할 수 있다. 상기 플래너 인트라 예측 모드는 플래너 모드라고 불릴 수 있고, 상기 DC 인트라 예측 모드는 DC 모드라고 불릴 수 있다. As an example, the intra prediction mode may include two non-directional intra prediction modes and 33 directional intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include 2 to 34 intra prediction modes. The planar intra prediction mode may be referred to as a planner mode, and the DC intra prediction mode may be referred to as a DC mode.
또는, 자연 영상(natural video)에서 제시된 임의의 에지 방향(edge direction)을 캡쳐하기 위하여, 도 10에 도시된 바와 같이 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 65개의 확장된 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너 모드 및 DC 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 66번 인트라 예측 모드들을 포함할 수 있다. 상기 확장된 인트라 예측 모드들은 모든 사이즈의 블록들에 적용될 수 있고, 루마 성분(루마 블록) 및 크로마 성분(크로마 블록) 모두에 적용될 수 있다.Alternatively, in order to capture an arbitrary edge direction presented in a natural video, as shown in FIG. 10, the intra prediction mode includes two non-directional intra prediction modes and 65 extended directional intra prediction. It can include modes. The non-directional intra prediction modes may include a planar mode and a DC mode, and the directional intra prediction modes may include 2 to 66 intra prediction modes. The extended intra prediction modes can be applied to blocks of all sizes, and can be applied to both a luma component (a luma block) and a chroma component (a chroma block).
또는, 상기 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드들과 129개의 방향성 인트라 예측 모드들을 포함할 수 있다. 상기 비방향성 인트라 예측 모드들은 플래너 모드 및 DC 모드를 포함할 수 있고, 상기 방향성 인트라 예측 모드들은 2번 내지 130번 인트라 예측 모드들을 포함할 수 있다.Alternatively, the intra prediction mode may include two non-directional intra prediction modes and 129 directional intra prediction modes. The non-directional intra prediction modes may include a planar mode and a DC mode, and the directional intra prediction modes may include 2 to 130 intra prediction modes.
한편, 상기 인트라 예측 모드는 전술한 인트라 예측 모드들 외에도 크로마 샘플을 위한 CCLM(cross-component linear model) 모드를 더 포함할 수 있다. CCLM 모드는 LM 파라미터 도출을 위하여 좌측 샘플들을 고려하는지, 상측 샘플들을 고려하는지, 둘 다를 고려하는지에 따라 L_CCLM, T_CCLM, LT_CCLM으로 나누어질 수 있으며, 크로마 성분에 대하여만 적용될 수 있다. Meanwhile, the intra prediction mode may further include a cross-component linear model (CCLM) mode for chroma samples in addition to the aforementioned intra prediction modes. The CCLM mode can be divided into L_CCLM, T_CCLM, and LT_CCLM, depending on whether left samples are considered, upper samples are considered, or both for LM parameter derivation, and can be applied only to a chroma component.
인트라 예측 모드는 예를 들어 아래 표 1과 같이 인덱싱될 수 있다.The intra prediction mode may be indexed, for example, as shown in Table 1 below.
Figure PCTKR2020009013-appb-T000001
Figure PCTKR2020009013-appb-T000001
도 11은 본 개시의 다른 실시예에 따른 인트라 예측 방향을 도시하는 도면이다. 도 11에서, 점선 방향은 정사각형이 아닌 블록에만 적용되는 광각(wide angle) 모드를 도시한다. 도 11에 도시된 바와 같이, 자연 영상(natural video)에서 제시된 임의의 에지 방향(edge direction)을 캡쳐하기 위하여, 일 실시예에 따른 인트라 예측 모드는 2개의 비방향성 인트라 예측 모드와 함께 93개의 방향성 인트라 예측 모드를 포함할 수 있다. 비방향성 인트라 예측 모드들은 플래너 모드 및 DC 모드를 포함할 수 있다. 방향성 인트라 예측 모드는 도 11의 화살표로 나타낸 바와 같이 2번 내지 80번과 -1번 내지 -14번으로 구성되는 인트라 예측 모드를 포함할 수 있다. 상기 플래너 모드는 INTRA_PLANAR로 표기될 수 있고, DC 모드는 INTRA_DC로 표기될 수 있다. 그리고 방향성 인트라 예측 모드는 INTRA_ANGULAR-14 내지 INTRA_ANGULAR-1 및 INTRA_ANGULAR2 내지 INTRA_ANGULAR80과 같이 표기될 수 있다.11 is a diagram illustrating an intra prediction direction according to another embodiment of the present disclosure. In Fig. 11, the dotted line direction shows a wide angle mode that is applied only to blocks that are not square. As shown in FIG. 11, in order to capture an arbitrary edge direction presented in a natural video, an intra prediction mode according to an embodiment includes 93 directional directions along with two non-directional intra prediction modes. It may include an intra prediction mode. Non-directional intra prediction modes may include planar mode and DC mode. The directional intra prediction mode may include an intra prediction mode composed of 2 to 80 and -1 to -14 as indicated by the arrow of FIG. 11. The planner mode may be indicated as INTRA_PLANAR, and the DC mode may be indicated as INTRA_DC. In addition, the directional intra prediction mode may be expressed as INTRA_ANGULAR-14 to INTRA_ANGULAR-1 and INTRA_ANGULAR2 to INTRA_ANGULAR80.
Block difference pulse code modulation(BDPCM)의 개요Overview of block difference pulse code modulation (BDPCM)
본 개시에 따른 BDPCM은 양자화된 레지듀얼 도메인(quantized residual domain)에서 수행될 수 있다. 양자화된 레지듀얼 도메인은 양자화된 레지듀얼 신호(또는 양자화된 레지듀얼 계수들)를 포함할 수 있으며, BDPCM을 적용하는 경우, 양자화된 레지듀얼 신호에 대한 변환은 스킵된다. 즉, BDPCM을 적용하는 경우, 레지듀얼 샘플들에 대해 변환은 스킵되고 양자화는 적용된다. 또는 양자화된 레지듀얼 도메인은 양자화된 변환 계수들을 포함할 수 있다.BDPCM according to the present disclosure may be performed in a quantized residual domain. The quantized residual domain may include a quantized residual signal (or quantized residual coefficients), and when BDPCM is applied, the transform of the quantized residual signal is skipped. That is, when BDPCM is applied, the transform is skipped and quantization is applied to residual samples. Alternatively, the quantized residual domain may include quantized transform coefficients.
현재 블록에 BDPCM이 적용되는 경우, 현재 블록의 예측된 샘플들을 포함하는 예측된 블록(예측 블록)은 인트라 예측에 의해 생성될 수 있다. 이 때, 인트라 예측을 수행하기 위한 인트라 예측 모드는 비트스트림을 통해 시그널링될 수도 있고, 후술하는 BDPCM의 예측 방향에 기반하여 유도될 수도 있다. 또한, 이 때 인트라 예측 모드는 수직 예측 방향 모드 또는 수평 예측 방향 모드 중 하나로 결정될 수 있다. 예컨대, BDPCM의 예측 방향이 수평 방향인 경우, 인트라 예측 모드는 수평 예측 방향 모드로 결정되고, 현재 블록의 예측 블록은 수평 방향의 인트라 예측에 의해 생성될 수 있다. 또는, BDPCM의 예측 방향이 수직 방향인 경우, 인트라 예측 모드는 수직 예측 방향 모드로 결정되고, 현재 블록의 예측 블록은 수직 방향의 인트라 예측에 의해 생성될 수 있다. 수평 방향의 인트라 예측이 적용되는 경우, 현재 블록의 좌측에 인접한 픽셀의 값이 현재 블록의 해당 로우(row)에 포함된 샘플들의 예측된 샘플 값으로 결정될 수 있다. 수직 방향의 인트라 예측이 적용되는 경우, 현재 블록의 상단에 인접한 픽셀의 값이 현재 블록의 해당 칼럼(column)에 포함된 샘플들의 예측 샘플 값으로 결정될 수 있다. 현재 블록에 BDPCM이 적용되는 경우, 현재 블록의 예측 블록을 생성하는 방법은 영상 부호화 장치 및 영상 복호화 장치에서 동일하게 수행될 수 있다.When BDPCM is applied to the current block, a predicted block (prediction block) including predicted samples of the current block may be generated by intra prediction. In this case, an intra prediction mode for performing intra prediction may be signaled through a bitstream or may be derived based on a prediction direction of BDPCM, which will be described later. In addition, in this case, the intra prediction mode may be determined as either a vertical prediction direction mode or a horizontal prediction direction mode. For example, when the prediction direction of the BDPCM is the horizontal direction, the intra prediction mode is determined as the horizontal prediction direction mode, and the prediction block of the current block may be generated by intra prediction in the horizontal direction. Alternatively, when the prediction direction of the BDPCM is the vertical direction, the intra prediction mode is determined as the vertical prediction direction mode, and the prediction block of the current block may be generated by intra prediction in the vertical direction. When intra prediction in the horizontal direction is applied, a value of a pixel adjacent to the left of the current block may be determined as a predicted sample value of samples included in a corresponding row of the current block. When intra prediction in the vertical direction is applied, a value of a pixel adjacent to the top of the current block may be determined as a predicted sample value of samples included in a corresponding column of the current block. When BDPCM is applied to the current block, a method of generating a prediction block of the current block may be performed in the same manner in an image encoding apparatus and an image decoding apparatus.
현재 블록에 BDPCM이 적용되는 경우, 영상 부호화 장치는 현재 블록으로부터 상기 예측 블록을 감산함으로써 현재 블록의 레지듀얼 샘플들을 포함하는 레지듀얼 블록을 생성할 수 있다. 영상 부호화 장치는 상기 레지듀얼 블록을 양자화한 후, 양자화된 레지듀얼 샘플과 해당 양자화된 레지듀얼 샘플의 예측자(predictor)와의 차이값(difference 또는 delta)을 부호화할 수 있다. 영상 복호화 장치는 비트스트림으로부터 복원된 차이값과 예측자에 기반하여 현재 블록의 양자화된 레지듀얼 샘플을 획득함으로써 현재 블록의 양자화된 레지듀얼 블록을 생성할 수 있다. 이후, 영상 복호화 장치는 양자화된 레지듀얼 블록을 역양자화한 후, 상기 예측 블록과 더함으로서 현재 블록을 복원할 수 있다.When BDPCM is applied to the current block, the apparatus for encoding an image may generate a residual block including residual samples of the current block by subtracting the prediction block from the current block. After quantizing the residual block, the image encoding apparatus may encode a difference value (difference or delta) between the quantized residual sample and a predictor of the quantized residual sample. The image decoding apparatus may generate a quantized residual block of the current block by obtaining a quantized residual sample of the current block based on a predictor and a difference value reconstructed from the bitstream. Thereafter, the image decoding apparatus may reconstruct the current block by inverse quantizing the quantized residual block and adding it to the prediction block.
도 12는 본 개시에 따른 BDPCM의 레지듀얼 샘플을 부호화하는 방법을 설명하기 위한 도면이다.12 is a diagram illustrating a method of encoding a residual sample of BDPCM according to the present disclosure.
도 12의 레지듀얼 블록(residual block)은 영상 부호화 장치에서 현재 블록으로부터 예측 블록을 감산함으로써 생성될 수 있다. 도 12의 양자화된 레지듀얼 블록(quantized residual block)은 상기 레지듀얼 블록을 양자화함으로써 생성될 수 있다. 도 12에 있어서, ri, j는 현재 블록내 (i, j) 좌표의 레지듀얼 샘플의 값을 나타낸다. 현재 블록의 크기가 MxN 일 때, i값은 0 이상 M-1 이하일 수 있다. 또한, j값은 0 이상 N-1 이하일 수 있다. 예컨대, ri, j는 현재 블록내 (i, j) 좌표의 원본 샘플의 값으로부터 예측 샘플의 값을 차감함으로써 도출될 수 있다. 도 12에 있어서, Q(ri, j)는 현재 블록내 (i, j) 좌표의 양자화된 레지듀얼 샘플의 값을 나타낸다. BDPCM의 예측은 도 12의 양자화된 레지듀얼 샘플들에 대해 수행되어, 수정된 양자화된 레지듀얼 샘플들(modified quantized residual samples)을 포함하는 MxN 크기의 수정된 양자화된 레지듀얼 블록(modified quantized residual block)이 생성될 수 있다. The residual block of FIG. 12 may be generated by subtracting a prediction block from a current block in an image encoding apparatus. The quantized residual block of FIG. 12 may be generated by quantizing the residual block. In FIG. 12, r i and j denote values of residual samples of (i, j) coordinates in the current block. When the size of the current block is MxN, the value i may be 0 or more and M-1 or less. In addition, the j value may be 0 or more and N-1 or less. For example, r i, j can be derived by subtracting the value of the predicted sample from the value of the original sample of the coordinates in the current block (i, j). In FIG. 12, Q(r i, j ) represents a value of a quantized residual sample of (i, j) coordinates in the current block. The prediction of BDPCM is performed on the quantized residual samples of FIG. 12, and a modified quantized residual block of MxN size including modified quantized residual samples is performed. ) Can be created.
BDPCM의 예측 방향이 수평 방향일 때, 현재 블록내 (i, j) 좌표의 수정된 양자화된 레지듀얼 샘플의 값(r'i, j)은 수학식 1과 같이 계산될 수 있다.When the prediction direction of the BDPCM is the horizontal direction, the values (r' i, j ) of the modified quantized residual sample of the coordinates (i, j) in the current block may be calculated as in Equation 1.
Figure PCTKR2020009013-appb-M000001
Figure PCTKR2020009013-appb-M000001
상기 수학식 1과 같이, BDPCM의 예측 방향이 수평 방향일 때, (0, j) 좌표의 r'0, j 값은 양자화된 레지듀얼 샘플의 값 Q(r0, j)이 그대로 할당된다. 그 밖의 (i, j) 좌표의 r'i, j 값은 (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)과 (i-1, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri-1, j)의 차이값으로 유도된다. 즉, (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)을 부호화하는 대신에 (i-1, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri-1, j)을 예측값으로 이용하여 계산된 차이값을 수정된 양자화된 레지듀얼 샘플 값(r'i, j)으로 유도한 후, r'i, j 값을 부호화한다.As shown in Equation (1), when the prediction direction of BDPCM one horizontal direction, r '0, j the value of the coordinates (0, j) is the value Q (r 0, j) of the quantized residual samples it is directly assigned. Other values of r'i and j of (i, j) coordinates are quantized residual values of Q(r i, j ) and (i-1, j) coordinates of quantized residual samples of (i, j) coordinates. It is derived as the difference value of the dual sample value Q(r i-1, j ). That is, instead of encoding the quantized residual sample value Q(r i, j ) of the (i, j) coordinate, the quantized residual sample value Q(r i-1 ) of the (i-1, j) coordinate The difference value calculated using , j ) as a predicted value is derived as the modified quantized residual sample values (r' i, j ), and then the values r'i and j are encoded.
BDPCM의 예측 방향이 수직 방향일 때, 현재 블록내 (i, j) 좌표의 수정된 양자화된 레지듀얼 샘플의 값(r'i, j)은 수학식 2와 같이 계산될 수 있다.When the prediction direction of the BDPCM is the vertical direction, the values (r' i, j ) of the modified quantized residual sample of the coordinates (i, j) in the current block can be calculated as in Equation 2.
Figure PCTKR2020009013-appb-M000002
Figure PCTKR2020009013-appb-M000002
상기 수학식 2와 같이, BDPCM의 예측 방향이 수직 방향일 때, (i, 0) 좌표의 r'i, 0 값은 양자화된 레지듀얼 샘플의 값 Q(ri, 0)이 그대로 할당된다. 그 밖의 (i, j) 좌표의 r'i, j 값은 (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)과 (i, j-1) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j-1)의 차이값으로 유도된다. 즉, (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)을 부호화하는 대신에 (i, j-1) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j-1)을 예측값으로 이용하여 계산된 차이값을 수정된 양자화된 레지듀얼 샘플 값(r'i, j)으로 유도한 후, r'i, j 값을 부호화한다. As it is shown in Equation (2), when the prediction direction of BDPCM perpendicular direction, (i, 0) r ' i, 0 values of the coordinates is the value Q (r i, 0) of the quantized residual samples are still assigned. Other values of r'i, j of (i, j) coordinates are quantized residual values of Q(r i, j ) and (i, j-1) coordinates of quantized residual samples of (i, j) coordinates. It is derived as the difference value of the dual sample value Q(r i, j-1 ). That is, (i, j) the value Q of the quantized residual samples of the coordinate (r i, j) for encoding instead of the (i, j-1) the value Q of the quantized residual samples of the coordinate (r i, j that The difference value calculated by using -1 ) as a predicted value is derived as the modified quantized residual sample values (r' i, j ), and then the values of r'i and j are encoded.
전술한 바와 같이, 인접한 양자화된 레지듀얼 샘플 값을 예측값으로 이용하여 현재 양자화된 레지듀얼 샘플 값을 수정하는 과정을 BDPCM 예측이라고 호칭할 수 있다.As described above, a process of modifying a current quantized residual sample value by using an adjacent quantized residual sample value as a prediction value may be referred to as BDPCM prediction.
최종적으로, 영상 부호화 장치는 수정된 양자화된 레지듀얼 샘플들을 포함하는 수정된 양자화된 레지듀얼 블록을 부호화하여 영상 복호화 장치에 전송할 수 있다. 이 때, 전술한 바와 같이, 수정된 양자화된 레지듀얼 블록에 대한 변환은 수행되지 않는다.Finally, the image encoding apparatus may encode a modified quantized residual block including the modified quantized residual samples, and transmit the coded to the image decoding apparatus. In this case, as described above, transformation is not performed on the modified quantized residual block.
도 13은 본 개시의 BDPCM을 수행하여 생성된 수정된 양자화된 레지듀얼 블록을 나타낸다.13 shows a modified quantized residual block generated by performing BDPCM of the present disclosure.
도 13에서 Horizontal BDPCM은 BDPCM의 예측 방향이 수평 방향일 때, 상기 수학식 1에 따라 생성된 수정된 양자화된 레지듀얼 블록을 나타낸다. 또한, Vertical BDPCM은 BDPCM의 예측 방향이 수직 방향일 때, 상기 수학식 2에 따라 생성된 수정된 양자화된 레지듀얼 블록을 나타낸다.In FIG. 13, horizontal BDPCM represents a modified quantized residual block generated according to Equation 1 when the prediction direction of the BDPCM is in the horizontal direction. Further, the vertical BDPCM represents a modified quantized residual block generated according to Equation 2 when the prediction direction of the BDPCM is a vertical direction.
도 14는 영상 부호화 장치에서 BDPCM을 적용하여 현재 블록을 부호화하는 절차를 도시한 흐름도이다.14 is a flowchart illustrating a procedure for encoding a current block by applying BDPCM in an image encoding apparatus.
먼저 부호화 대상 블록인 현재 블록이 입력되면(S1410), 현재 블록에 대해 예측을 수행하여 예측 블록을 생성할 수 있다(S1420). 단계 S1420의 예측 블록은 인트라 예측된 블록일 수 있으며, 인트라 예측 모드는 전술한 바와 같이 결정될 수 있다. 단계 S1420에서 생성된 예측 블록에 기반하여 현재 블록의 레지듀얼 블록을 생성할 수 있다(S1430). 예컨대, 영상 부호화 장치는 현재 블록(원본 샘플의 값)으로부터 예측 블록(예측된 샘플의 값)을 차감함으로써 레지듀얼 블록(레지듀얼 샘플의 값)을 생성할 수 있다. 예컨대, 단계 S1430의 수행에 의해, 도 12의 레지듀얼 블록이 생성될 수 있다. 단계 S1430에서 생성된 레지듀얼 블록에 대해 양자화를 수행하여(S1440), 양자화된 레지듀얼 블록이 생성되고, 양자화된 레지듀얼 블록에 대해 BDPCM 예측이 수행될 수 있다(S1450). 단계 S1440의 수행 결과 생성된 양자화된 레지듀얼 블록은 도 12의 양자화된 레지듀얼 블록일 수 있으며, 단계 S1450의 BDPCM 예측 결과, 예측 방향에 따라 도 13의 수정된 양자화된 레지듀얼 블록이 생성될 수 있다. 단계 S1450의 BDPCM 예측은 도 12 내지 도 13을 참조하여 설명하였으므로, 구체적인 설명은 생략한다. 이후 영상 부호화 장치는 수정된 양자화된 레지듀얼 블록을 부호화하여(S1460) 비트스트림을 생성할 수 있다. 이 때, 수정된 양자화된 레지듀얼 블록에 대한 변환은 스킵될 수 있다.First, when a current block, which is an encoding target block, is input (S1410), prediction may be performed on the current block to generate a prediction block (S1420). The prediction block of step S1420 may be an intra prediction block, and the intra prediction mode may be determined as described above. A residual block of the current block may be generated based on the prediction block generated in step S1420 (S1430). For example, the apparatus for encoding an image may generate a residual block (a value of a residual sample) by subtracting a prediction block (a value of a predicted sample) from a current block (a value of an original sample). For example, by performing step S1430, the residual block of FIG. 12 may be generated. Quantization is performed on the residual block generated in step S1430 (S1440), a quantized residual block is generated, and BDPCM prediction may be performed on the quantized residual block (S1450). The quantized residual block generated as a result of performing step S1440 may be a quantized residual block of FIG. 12, and a modified quantized residual block of FIG. 13 may be generated according to a BDPCM prediction result of step S1450 and a prediction direction. have. Since the BDPCM prediction in step S1450 has been described with reference to FIGS. 12 to 13, detailed descriptions are omitted. Thereafter, the image encoding apparatus may generate a bitstream by encoding the modified quantized residual block (S1460). In this case, the transform for the modified quantized residual block may be skipped.
도 12 내지 도 14를 참조하여 설명된 영상 부호화 장치에서의 BDPCM 동작은 영상 복호화 장치에서 역으로 수행될 수 있다.The BDPCM operation in the image encoding apparatus described with reference to FIGS. 12 to 14 may be reversely performed in the image decoding apparatus.
도 15는 영상 복호화 장치에서 BDPCM을 적용하여 현재 블록을 복원하는 절차를 도시한 흐름도이다.15 is a flowchart illustrating a procedure for restoring a current block by applying BDPCM in an image decoding apparatus.
영상 복호화 장치는 비트스트림으로부터 현재 블록의 복원에 필요한 정보(영상 정보)를 획득할 수 있다(S1510). 현재 블록의 복원에 필요한 정보는 현재 블록의 예측에 관한 정보(예측 정보), 현재 블록의 레지듀얼에 관한 정보(레지듀얼 정보) 등을 포함할 수 있다. 영상 복호화 장치는 현재 블록에 대한 정보에 기반하여 현재 블록에 대해 예측을 수행하고, 예측 블록을 생성할 수 있다(S1520). 현재 블록에 대한 예측은 인트라 예측일 수 있으며, 구체적인 설명은 도 14를 참조하여 설명한 바와 동일하다. 도 15에서 현재 블록에 대한 예측 블록을 생성하는 단계(S1520)는 현재 블록의 레지듀얼 블록을 생성하는 단계 S1530 내지 S1550에 선행하여 수행되는 것으로 도시되었다. 그러나 이에 한정되지 않으며, 현재 블록의 레지듀얼 블록이 생성된 이후에 현재 블록의 예측 블록이 생성될 수도 있다. 또는 현재 블록의 레지듀얼 블록과 현재 블록의 예측 블록은 동시에 생성될 수도 있다. 영상 복호화 장치는 비트스트림으로부터 현재 블록의 레지듀얼 정보를 파싱함으로써, 현재 블록의 레지듀얼 블록을 생성할 수 있다(S1530). 단계 S1530에서 생성된 레지듀얼 블록은 도 13에 도시된 수정된 양자화된 레지듀얼 블록일 수 있다. 영상 복호화 장치는 도 13의 수정된 양자화된 레지듀얼 블록에 대해 BDPCM 예측을 수행하여(S1540) 도 12의 양자화된 레지듀얼 블록을 생성할 수 있다. 단계 S1540의 BDPCM 예측은 도 13의 수정된 양자화된 레지듀얼 블록으로부터 도 12의 양자화된 레지듀얼 블록을 생성하는 절차이므로, 영상 부호화 장치에서 수행되는 단계 S1450의 역과정에 대응될 수 있다. The image decoding apparatus may obtain information (image information) necessary for reconstructing the current block from the bitstream (S1510). Information necessary for reconstructing the current block may include information on prediction of the current block (prediction information), information on a residual of the current block (residual information), and the like. The image decoding apparatus may perform prediction on a current block based on information on the current block and generate a prediction block (S1520). The prediction for the current block may be intra prediction, and a detailed description is the same as described with reference to FIG. 14. In FIG. 15, the step of generating a prediction block for the current block (S1520) is shown to be performed prior to steps S1530 to S1550 of generating a residual block of the current block. However, the present invention is not limited thereto, and a prediction block of the current block may be generated after the residual block of the current block is generated. Alternatively, the residual block of the current block and the prediction block of the current block may be simultaneously generated. The image decoding apparatus may generate a residual block of the current block by parsing the residual information of the current block from the bitstream (S1530). The residual block generated in step S1530 may be a modified quantized residual block shown in FIG. 13. The image decoding apparatus may generate the quantized residual block of FIG. 12 by performing BDPCM prediction on the modified quantized residual block of FIG. 13 (S1540). The BDPCM prediction of step S1540 is a procedure of generating the quantized residual block of FIG. 12 from the modified quantized residual block of FIG. 13, and thus may correspond to the reverse process of step S1450 performed by the image encoding apparatus.
영상 복호화 장치에서 수행되는 단계 S1540의 BDPCM 예측에 대해 아래에서 보다 상세히 설명한다.The BDPCM prediction in step S1540 performed by the video decoding apparatus will be described in more detail below.
BDPCM의 예측 방향이 수평 방향일 때, 영상 복호화 장치는 수학식 3을 이용하여 수정된 양자화된 레지듀얼 블록으로부터 양자화된 레지듀얼 블록을 생성할 수 있다.When the prediction direction of the BDPCM is in the horizontal direction, the image decoding apparatus may generate a quantized residual block from the modified quantized residual block using Equation (3).
Figure PCTKR2020009013-appb-M000003
Figure PCTKR2020009013-appb-M000003
수학식 3에 규정된 바와 같이, (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)은 (0, j) 좌표부터 (i, j) 좌표까지의 수정된 양자화된 레지듀얼 샘플들의 값들을 합산함으로써 계산될 수 있다.또는, 상기 수학식 3 대신에 수학식 4를 이용하여 (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)을 계산할 수 있다.As specified in Equation 3, the value Q(r i, j ) of the quantized residual sample of the (i, j) coordinate is modified quantized from the (0, j) coordinate to the (i, j) coordinate. It can be calculated by summing the values of the residual samples. Alternatively, the quantized residual sample value Q(r i, j ) of the (i, j) coordinate can be calculated using Equation 4 instead of Equation 3 above. I can.
Figure PCTKR2020009013-appb-M000004
Figure PCTKR2020009013-appb-M000004
상기 수학식 4는 수학식 1에 대응되는 역과정이다. 상기 수학식 4에 따르면, (0, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(r0, j)은 (0, j) 좌표의 수정된 양자화된 레지듀얼 샘플의 값 r'0, j으로 유도된다. 그 밖의 (i, j) 좌표의 Q(ri, j)은 (i, j) 좌표의 수정된 양자화된 레지듀얼 샘플의 값 r'i, j과 (i-1, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri-1, j)의 합으로 유도된다. 즉, (i-1, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri-1, j)을 예측값으로 이용하여 차이값 r'i, j을 합산함으로써 양자화된 레지듀얼 샘플 값 Q(ri, j)가 유도될 수 있다. Equation 4 is a reverse process corresponding to Equation 1. According to Equation 4, the value Q(r 0, j ) of the quantized residual sample of the (0, j) coordinate is the value of the modified quantized residual sample of the (0, j) coordinate r'0 , j Is induced by The Q(r i, j ) of other (i, j) coordinates is the quantized value of the modified quantized residual sample of (i, j) coordinates r'i , j and (i-1, j) coordinates. It is derived from the sum of the residual samples Q(r i-1, j ). That is, (i-1, j) coordinates quantized by the sum of the value of Q of the quantized residual samples (r i-1, j) by using the predicted value difference value r 'i, j residual sample values of the Q ( r i, j ) can be derived.
상기 수학식 3 및 수학식 4가 M 행(row) x N 열(column)에 대한 행렬식인 경우, 상기 수학식 3 또는 수학식 4의 i는 행에 대한 인덱스(y 좌표에 대응)이고, j는 열에 대한 인덱스(x 좌표에 대응)를 의미할 수 있다. 따라서, Q(ri, j)는 (j, i) 좌표의 양자화된 레지듀얼 샘플의 값을 의미하고, r'i, j는 (j, i) 좌표의 수정된 양자화된 레지듀얼 샘플의 값을 의미할 수 있다. 즉, BDPCM의 예측 방향이 수직 방향일 때, 수정된 양자화된 레지듀얼 블록으로부터 양자화된 레지듀얼 블록을 생성하기 위한 행렬식은 상기 수학식 3 또는 수학식 4와 같이 표현될 수 있다.When Equations 3 and 4 are determinants for M rows x N columns, i in Equation 3 or 4 is an index for a row (corresponding to the y coordinate), and j May mean an index for a column (corresponding to the x coordinate). Therefore, Q(r i, j ) means the value of the quantized residual sample of the (j, i) coordinate, and r'i, j is the value of the modified quantized residual sample of the (j, i) coordinate Can mean That is, when the prediction direction of the BDPCM is in the vertical direction, a determinant for generating a quantized residual block from a modified quantized residual block may be expressed as Equation 3 or 4 above.
BDPCM의 예측 방향이 수직 방향일 때, 영상 복호화 장치는 수학식 5를 이용하여 수정된 양자화된 레지듀얼 블록으로부터 양자화된 레지듀얼 블록을 생성할 수 있다.When the prediction direction of the BDPCM is a vertical direction, the image decoding apparatus may generate a quantized residual block from the modified quantized residual block using Equation (5).
Figure PCTKR2020009013-appb-M000005
Figure PCTKR2020009013-appb-M000005
수학식 5에 규정된 바와 같이, (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)은 (i, 0) 좌표부터 (i, j) 좌표까지의 수정된 양자화된 레지듀얼 샘플들의 값들을 합산함으로써 계산될 수 있다.As specified in Equation 5, the value Q(r i, j ) of the quantized residual sample of the (i, j) coordinate is modified quantized from the (i, 0) coordinate to the (i, j) coordinate. It can be calculated by summing the values of the residual samples.
또는, 상기 수학식 5 대신에 수학식 6을 이용하여 (i, j) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j)을 계산할 수 있다.Alternatively, the value Q(r i, j ) of the quantized residual sample of the (i, j) coordinate may be calculated using Equation 6 instead of Equation 5 above.
Figure PCTKR2020009013-appb-M000006
Figure PCTKR2020009013-appb-M000006
상기 수학식 6은 수학식 2에 대응되는 역과정이다. 상기 수학식 6에 따르면, (i, 0) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, 0)은 (i, 0) 좌표의 수정된 양자화된 레지듀얼 샘플의 값 r'i, 0으로 유도된다. 그 밖의 (i, j) 좌표의 Q(ri, j)은 (i, j) 좌표의 수정된 양자화된 레지듀얼 샘플의 값 r'i, j과 (i, j-1) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j-1)의 합으로 유도된다. 즉, (i, j-1) 좌표의 양자화된 레지듀얼 샘플의 값 Q(ri, j-1)을 예측값으로 이용하여 차이값 r'i, j을 합산함으로써 양자화된 레지듀얼 샘플 값 Q(ri, j)가 유도될 수 있다.Equation 6 is a reverse process corresponding to Equation 2. According to Equation 6, (i, 0) a value Q of the quantized residual samples of the coordinate (r i, 0) is (i, 0) value of the modified quantized residual samples of coordinates r 'i, 0 Is induced by The Q(r i, j ) of the other (i, j) coordinates is the value of the modified quantized residual sample of the (i, j) coordinates r'i , j and the quantized of the (i, j-1) coordinates. It is derived as the sum of the residual samples Q(r i, j-1 ). That is, the quantized residual sample value Q() is summed by summing the difference values r'i and j using the quantized residual sample value Q(r i, j-1 ) of the (i, j-1) coordinate as a predicted value. r i, j ) can be derived.
상기 수학식 5 및 수학식 6이 M 행(row) x N 열(column)에 대한 행렬식인 경우, 상기 수학식 5 또는 수학식 6의 i는 행에 대한 인덱스(y 좌표에 대응)이고, j는 열에 대한 인덱스(x 좌표에 대응)를 의미할 수 있다. 따라서, Q(ri, j)는 (j, i) 좌표의 양자화된 레지듀얼 샘플의 값을 의미하고, r'i, j는 (j, i) 좌표의 수정된 양자화된 레지듀얼 샘플의 값을 의미할 수 있다. 즉, BDPCM의 예측 방향이 수평 방향일 때, 수정된 양자화된 레지듀얼 블록으로부터 양자화된 레지듀얼 블록을 생성하기 위한 행렬식은 상기 수학식 5 또는 수학식 6과 같이 표현될 수 있다.When Equations 5 and 6 are determinants for M rows x N columns, i in Equation 5 or Equation 6 is an index for a row (corresponding to the y coordinate), and j May mean an index for a column (corresponding to the x coordinate). Therefore, Q(r i, j ) means the value of the quantized residual sample of the (j, i) coordinate, and r'i, j is the value of the modified quantized residual sample of the (j, i) coordinate Can mean That is, when the prediction direction of the BDPCM is in the horizontal direction, a determinant for generating a quantized residual block from the modified quantized residual block may be expressed as Equation 5 or 6 above.
전술한 방법에 의해 단계 S1540을 수행하여 양자화된 레지듀얼 샘플들로 구성된 양자화된 레지듀얼 블록이 생성되면, 영상 복호화 장치는 양자화된 레지듀얼 블록에 대해 역양자화를 수행함으로써(S1550), 현재 블록의 레지듀얼 블록을 생성할 수 있다. BDPCM이 적용되는 경우, 전술한 바와 같이 현재 블록에 대한 변환은 스킵되므로, 역양자화된 레지듀얼 블록에 대한 역변환은 스킵될 수 있다. When a quantized residual block composed of quantized residual samples is generated by performing step S1540 according to the above method, the image decoding apparatus performs inverse quantization on the quantized residual block (S1550), You can create a residual block. When BDPCM is applied, since the transformation for the current block is skipped as described above, the inverse transformation for the inverse quantized residual block may be skipped.
이후, 영상 복호화 장치는 단계 S1520에서 생성된 예측 블록과 단계 S1550에서 생성된 레지듀얼 블록에 기반하여 현재 블록을 복원할 수 있다(S1560). 예컨대, 영상 복호화 장치는 예측 블록(예측된 샘플의 값)과 레지듀얼 블록(레지듀얼 샘플의 값)을 더함으로써 현재 블록(복원 샘플의 값)을 복원할 수 있다.Thereafter, the image decoding apparatus may reconstruct the current block based on the prediction block generated in step S1520 and the residual block generated in step S1550 (S1560). For example, the image decoding apparatus may reconstruct the current block (the value of the restored sample) by adding the prediction block (the value of the predicted sample) and the residual block (the value of the residual sample).
현재 블록에 BDPCM이 적용되는지 여부를 지시하는 제1 정보가 비트스트림을 통해 시그널링될 수 있다. 또한, 현재 블록에 BDPCM이 적용되는 경우, BDPCM의 예측 방향을 지시하는 제2 정보가 비트스트림을 통해 시그널링될 수 있다. 현재 블록에 BDPCM이 적용되지 않는 경우, 상기 제2 정보는 시그널링되지 않을 수 있다. First information indicating whether BDPCM is applied to the current block may be signaled through a bitstream. In addition, when BDPCM is applied to the current block, second information indicating a prediction direction of BDPCM may be signaled through a bitstream. When BDPCM is not applied to the current block, the second information may not be signaled.
도 16은 현재 블록의 신택스 구조에 포함된 BDPCM에 관한 정보를 개략적으로 도시한 도면이다.16 is a diagram schematically showing information on BDPCM included in the syntax structure of the current block.
도 16에 도시된 coding_unit()의 신택스 구조(신택스 테이블)의 예에서, intra_bdpcm_flag는 현재 블록에 BDPCM이 적용되는지 여부를 지시하는 제1 정보에 해당한다. BDPCM은 현재 블록이 인트라 예측된 경우에만 허용 가능하므로, intra_bdpcm_flag는 현재 블록의 예측 모드가 MODE_INTRA일 때에만 시그널링될 수 있다. 또한, BDPCM은 루마 성분 신호(treeType == SINGLE_TREE or DUAL_TREE_LUMA)에 대해서만 가용하며, 현재 블록의 크기(너비 및 높이)가 소정 크기(MaxTsSize) 이하일 경우에만 가용할 수 있다. 그러나, BDPCM의 가용 조건은 상기 예로 한정되지 않으며, 루마 성분 신호뿐만 아니라 크로마 성분 신호에 대해서도 가용할 수 있다. 또는, BDPCM은 인트라 예측된 블록뿐만 아니라, 인터 예측된 블록 또는 IBC 예측된 블록에 대해서도 가용할 수 있다. 또한, 현재 블록의 상위 레벨(시퀀스 레벨, 픽처 레벨, 슬라이스 레벨 등)에서 BDPCM의 가용 여부를 지시하는 정보가 명시적으로 시그널링될 수 있다.In the example of the syntax structure (syntax table) of coding_unit() shown in FIG. 16, intra_bdpcm_flag corresponds to first information indicating whether BDPCM is applied to the current block. Since BDPCM is allowed only when the current block is intra-predicted, intra_bdpcm_flag can be signaled only when the prediction mode of the current block is MODE_INTRA. In addition, BDPCM is available only for a luma component signal (treeType == SINGLE_TREE or DUAL_TREE_LUMA), and can be used only when the size (width and height) of the current block is less than or equal to a predetermined size (MaxTsSize). However, the availability condition of the BDPCM is not limited to the above example, and may be available for a chroma component signal as well as a luma component signal. Alternatively, BDPCM may be used not only for intra-predicted blocks, but also inter-predicted blocks or IBC-predicted blocks. In addition, information indicating whether BDPCM is available or not at a higher level (sequence level, picture level, slice level, etc.) of the current block may be explicitly signaled.
intra_bdpcm_flag가 현재 블록에 BDPCM이 적용되는 것을 지시하는 경우에만 BDPCM의 예측 방향을 지시하는 제2 정보(예컨대, intra_bdpcm_dir_flag)가 시그널링될 수 있다. 상기 제2 정보가 제1 값(예컨대, '1')일 때, BDPCM의 예측 방향은 수직 방향을 지시하고 상기 제2 정보가 제2 값(예컨대, '0')일 때, BDPCM의 예측 방향은 수평 방향을 지시할 수 있다. Second information (eg, intra_bdpcm_dir_flag) indicating the prediction direction of BDPCM may be signaled only when intra_bdpcm_flag indicates that BDPCM is applied to the current block. When the second information is a first value (eg, '1'), the prediction direction of the BDPCM indicates a vertical direction, and when the second information is a second value (eg, '0'), the prediction direction of BDPCM Can indicate the horizontal direction.
신호 처리에서 변환 부호화(transform coding)란 입력 신호를 다른 도메인의 신호로 변환하는 것을 의미한다. 구체적으로 비디오 압축 분야에서의 변환은 공간 도메인(spatial domain)의 신호를 주파수 도메인(frequency domain)의 신호로 변경하는 것을 의미한다. 비디오 압축 분야에서 변환을 수행하는 이유는 공간 도메인의 신호를 주파수 도메인의 신호로 변경했을 때, 저주파 영역으로 정보가 집중되고 고주파 영역은 거의 정보를 갖지 않는 성질을 이용하여 효율적인 압축이 가능하기 때문이다. 그러나, 신호의 특성에 따라 변환을 수행하지 않는 경우의 압축 효율이 보다 높은 경우가 있으며, 이런 경우에는 변환을 스킵할 수 있다. In signal processing, transform coding means transforming an input signal into a signal of another domain. Specifically, transformation in the video compression field refers to converting a signal in a spatial domain into a signal in a frequency domain. The reason for performing the transformation in the video compression field is that when a signal in the spatial domain is converted to a signal in the frequency domain, information is concentrated in the low-frequency region and the high-frequency region has little information, enabling efficient compression. . However, depending on the characteristics of the signal, there are cases where the compression efficiency is higher when no conversion is performed, and in this case, the conversion can be skipped.
전술한 바와 같이, BDPCM은 변환(또는 양자화)이 스킵된 레지듀얼 블록을 부호화하는 과정에서 적용될 수 있다. 변환이 스킵된 경우, 전술한 바와 같이, 레지듀얼 정보가 블록 내에서 고르게 분포할 수 있다. 또한, 블록내 임의의 레지듀얼 계수 값은 그 주변의 레지듀얼 계수 값과 유사할 확률이 매우 높다. 또한, 인트라 예측된 변환 스킵 블록의 경우, 참조 샘플과의 거리로 인하여 블록의 우하단에 발생하는 레지듀얼 계수의 레벨이 좌상단에 발생하는 레지듀얼 계수의 레벨보다 클 확률이 높다. 이러한 현상은 블록의 크기가 커질수록 더 두드러질 수 있다. 마찬가지로, 인터 예측된 블록의 잔차 신호도 또한 블록 내의 같은 객체(object)를 표현하는 픽셀 간의 레지듀얼 계수 값이 유사할 확률이 크다. BDPCM은 상기와 같은 인트라 스킵 코딩된 블록 또는 인터 예측된 블록의 레지듀얼 계수의 분포 특성을 이용한 것이다. BDPCM이 적용되는 경우, 전술한 바와 같이, (양자화된) 레지듀얼 계수를 부호화하는 대신, 행 또는 열 방향으로 라인 단위의 레지듀얼 계수 간 예측을 수행함으로써 발생하는 차이값을 부호화하므로, 부호화 대상 레지듀얼 계수의 레벨의 크기가 작아진다. 즉, BDPCM이 적용되는 경우, 상기와 같이 작아진 계수의 레벨을 부호화하게 되므로, 부호화하는 데 필요한 문맥 부호화 빈(context coded bin)의 발생을 감소시킬 수 있으며 이는 복호화기의 쓰루풋 (throughput) 향상에 기여할 수 있다. As described above, BDPCM can be applied in a process of encoding a skipped residual block by transform (or quantization). When the transformation is skipped, as described above, residual information can be evenly distributed within the block. In addition, there is a very high probability that an arbitrary residual coefficient value in a block is similar to a residual coefficient value around it. In addition, in the case of an intra-predicted transform skip block, a residual coefficient level occurring at the lower right of the block has a higher probability than a residual coefficient level occurring at the upper left due to the distance from the reference sample. This phenomenon may be more pronounced as the block size increases. Likewise, the residual signal of the inter-predicted block also has a high probability that residual coefficient values between pixels representing the same object in the block are similar. The BDPCM uses the distribution characteristic of residual coefficients of the intra skip coded block or the inter-predicted block as described above. When BDPCM is applied, as described above, instead of encoding (quantized) residual coefficients, a difference value generated by performing line-by-line prediction between residual coefficients in a row or column direction is encoded. The size of the level of the dual coefficient becomes smaller. That is, when BDPCM is applied, since the level of the coefficients reduced as described above is encoded, the occurrence of context coded bins required for encoding can be reduced, which can improve the throughput of the decoder. You can contribute.
잔차 신호는 변환 스킵 또는 무손실 부호화(lossless coding)를 위한 문법을 이용하여 부호화/복호화될 수 있다. 본 개시에 따르면, 인트라 예측된 블록, 인터 예측된 블록 및/또는 IBC 예측된 블록에 대해 BDPCM이 가용한지 여부를 블록의 상위 레벨에서 제어할 수 있다. 본 개시에 따르면, BDPCM을 인트라 예측된 블록뿐만 아니라 다른 예측 모드로 예측된 블록에까지 확장하여 적용시킬 수 있다.The residual signal may be encoded/decoded using a grammar for transform skip or lossless coding. According to the present disclosure, whether BDPCM is available for an intra predicted block, an inter predicted block, and/or an IBC predicted block may be controlled at a higher level of the block. According to the present disclosure, the BDPCM can be extended and applied not only to the intra-predicted block, but also to a block predicted in another prediction mode.
본 개시에 기재된 신택스 테이블은 영상 부호화 장치에 의해 구성되고 부호화될 수 있다. 부호화된 신택스 테이블은 비트스트림을 통해 영상 복호화 장치에 전송될 수 있다. 영상 복호화 장치는 신택스 테이블에 신택스 요소의 형태로 포함된 정보를 파싱/디코딩할 수 있다. 본 개시에 기재된 하나 이상의 실시예들은 서로 조합된 형태로 구현될 수 있다. 영상 부호화 장치는 BDPCM을 이용하여 현재 이미지(픽처)를 부호화함으로써 BDPCM에 관한 정보를 생성할 수 있다. 영상 복호화 장치는 BDPCM에 관한 정보에 기반하여 현재 이미지(픽처)를 복호화할 수 있다.The syntax table described in the present disclosure may be configured and encoded by an image encoding apparatus. The encoded syntax table may be transmitted to an image decoding apparatus through a bitstream. The image decoding apparatus may parse/decode information included in the syntax table in the form of a syntax element. One or more embodiments described in the present disclosure may be implemented in combination with each other. The video encoding apparatus may generate information on BDPCM by encoding a current image (picture) using BDPCM. The video decoding apparatus may decode the current image (picture) based on the information on the BDPCM.
본 개시의 일 실시예에 따르면, 인트라 예측된 블록, 인터 예측된 블록 및/또는 IBC 예측된 블록에 대해 BDPCM이 가용한지 여부가 상위 레벨에서 제어될 수 있다. 예컨대, 상위 레벨은 시퀀스 파라미터 셋(SPS, Sequence Parameter Set)일 수 있다. 본 개시의 일 실시예에 따른 SPS는 표 2와 같이 표현될 수 있다.According to an embodiment of the present disclosure, whether BDPCM is available for an intra predicted block, an inter predicted block, and/or an IBC predicted block may be controlled at a higher level. For example, the higher level may be a sequence parameter set (SPS). SPS according to an embodiment of the present disclosure may be expressed as shown in Table 2.
seq_parameter_set_rbsp( ) {seq_parameter_set_rbsp( ) { DescriptorDescriptor
......
sps_transform_skip_enabled_flagsps_transform_skip_enabled_flag u(1)u(1)
if( sps_transform_skip_enabled_flag )if( sps_transform_skip_enabled_flag)
sps_bdpcm_enabled_flagsps_bdpcm_enabled_flag u(1)u(1)
if ( sps_bdpcm_enabled_flag ) {if (sps_bdpcm_enabled_flag) {
sps_intra_bdpcm_enabled_flagsps_intra_bdpcm_enabled_flag u(1)u(1)
sps_inter_bdpcm_enabled_flagsps_inter_bdpcm_enabled_flag u(1)u(1)
}}
......
}}
상기 표 2에서, 신택스 요소 sps_transform_skip_enabled_flag는 해당 시퀀스에 대해 변환 생략(transform skip)이 가용한지 여부를 나타내는 정보일 수 있다. sps_transform_skip_enabled_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, 변환 생략이 가용함을 나타내고, sps_transform_skip_enabled_flag가 제2 값(예컨대, 'false' 또는 '0')을 가질 때, 변환 생략이 가용하지 않음을 나타낼 수 있다. 변환 생략이 가용한 경우, 변환 생략을 적용할지 여부를 나타내는 정보(예컨대, transform_skip_flag)가 변환 유닛의 레벨에서 시그널링될 수 있다.신택스 요소 sps_bdpcm_enabled_flag는 해당 시퀀스에 대해 BDPCM이 가용한지 여부를 나타내는 정보일 수 있다. sps_bdpcm_enabled_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, BDPCM이 가용함을 나타내고, 제2 값(예컨대, 'false' 또는 '0')을 가질 때, BDPCM이 가용하지 않음을 나타낼 수 있다. BDPCM이 가용한 경우, 신택스 요소 sps_intra_bdpcm_enabled_flag 및/또는 sps_inter_bdpcm_enabled_flag가 시그널링될 수 있다.In Table 2, the syntax element sps_transform_skip_enabled_flag may be information indicating whether transform skip is available for the corresponding sequence. When sps_transform_skip_enabled_flag has a first value (e.g.,'true' or '1'), it indicates that the omission of transformation is available, and when sps_transform_skip_enabled_flag has a second value (e.g.,'false' or '0'), the transformation is omitted May indicate that this is not available. When omitting transformation is available, information indicating whether or not to apply transformation skipping (e.g., transform_skip_flag) may be signaled at the level of the transformation unit. The syntax element sps_bdpcm_enabled_flag may be information indicating whether BDPCM is available for a corresponding sequence. have. When sps_bdpcm_enabled_flag has a first value (e.g.,'true' or '1'), it indicates that BDPCM is available, and when it has a second value (e.g.,'false' or '0'), BDPCM is not available Can represent. When BDPCM is available, the syntax elements sps_intra_bdpcm_enabled_flag and/or sps_inter_bdpcm_enabled_flag may be signaled.
신택스 요소 sps_intra_bdpcm_enabled_flag는 해당 시퀀스에 포함된 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보일 수 있다. sps_intra_bdpcm_enabled_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, 인트라 예측된 블록에 대해 BDPCM이 가용함을 나타내고, sps_intra_bdpcm_enabled_flag가 제2 값(예컨대, 'false' 또는 '0')을 가질 때, 인트라 예측된 블록에 대해 BDPCM이 가용하지 않음을 나타낼 수 있다. 인트라 예측된 블록에 대해 BDPCM이 가용한 경우, 인트라 예측된 블록에 대해 BDPCM을 적용할지 여부를 나타내는 정보(예컨대, bdpcm_flag)가 부호화 블록의 레벨에서 시그널링될 수 있다. sps_intra_bdpcm_enabled_flag가 제2 값을 가지면, 인트라 예측된 블록에 대해 BDPCM이 적용되지 않으므로, bdpcm_flag는 시그널링되지 않고 그 값은 '0'으로 추론(infer)될 수 있다.The syntax element sps_intra_bdpcm_enabled_flag may be information indicating whether BDPCM is available for an intra-predicted block included in a corresponding sequence. When sps_intra_bdpcm_enabled_flag has a first value (e.g.,'true' or '1'), it indicates that BDPCM is available for an intra-predicted block, and sps_intra_bdpcm_enabled_flag has a second value (e.g.,'false' or '0'). When having, it may indicate that BDPCM is not available for the intra-predicted block. When BDPCM is available for the intra predicted block, information indicating whether to apply BDPCM to the intra predicted block (eg, bdpcm_flag) may be signaled at the level of the coding block. If sps_intra_bdpcm_enabled_flag has a second value, since BDPCM is not applied to the intra-predicted block, bdpcm_flag is not signaled and its value may be inferred as '0'.
유사하게, 신택스 요소 sps_inter_bdpcm_enabled_flag는 해당 시퀀스에 포함된 인터 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보일 수 있다. sps_inter_bdpcm_enabled_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, 인터 예측된 블록에 대해 BDPCM이 가용함을 나타내고, sps_inter_bdpcm_enabled_flag가 제2 값(예컨대, 'false' 또는 '0')을 가질 때, 인터 예측된 블록에 대해 BDPCM이 가용하지 않음을 나타낼 수 있다. 인터 예측된 블록에 대해 BDPCM이 가용한 경우, 인터 예측된 블록에 대해 BDPCM을 적용할지 여부를 나타내는 정보(예컨대, bdpcm_flag)가 부호화 블록의 레벨에서 시그널링될 수 있다. sps_inter_bdpcm_enabled_flag가 제2 값을 가지면, 인터 예측된 블록에 대해 BDPCM이 적용되지 않으므로, bdpcm_flag는 시그널링되지 않고 그 값은 '0'으로 추론(infer)될 수 있다.Similarly, the syntax element sps_inter_bdpcm_enabled_flag may be information indicating whether BDPCM is available for an inter-predicted block included in a corresponding sequence. When sps_inter_bdpcm_enabled_flag has a first value (eg,'true' or '1'), it indicates that BDPCM is available for an inter-predicted block, and sps_inter_bdpcm_enabled_flag sets a second value (eg,'false' or '0'). When present, it may indicate that BDPCM is not available for the inter-predicted block. When BDPCM is available for the inter-predicted block, information indicating whether to apply BDPCM to the inter-predicted block (eg, bdpcm_flag) may be signaled at the level of the coding block. If sps_inter_bdpcm_enabled_flag has a second value, since BDPCM is not applied to the inter-predicted block, bdpcm_flag is not signaled and its value may be inferred as '0'.
IBC 예측은 인터 예측 기법들 중 하나로 처리될 수 있으므로, IBC 예측된 블록에 대해 BDPCM이 가용한지 여부는 sps_inter_bdpcm_enabled_flag에 의해 판단될 수 있다. 그러나, 이에 한정되지 않으며, IBC 예측을 인트라 예측의 기법들 중 하나로 처리할 수도 있고 이 경우, IBC 예측된 블록에 대해 BDPCM이 가용한지 여부는 sps_intra_bdpcm_enabled_flag에 의해 판단될 수 있다. 또는 IBC 예측을 별개의 예측 모드로 처리하여, IBC 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 별개의 신택스 요소(예컨대, sps_ibc_bdpcm_enabled_flag)를 시그널링할 수도 있다.Since IBC prediction can be processed by one of the inter prediction techniques, whether BDPCM is available for the IBC predicted block may be determined by sps_inter_bdpcm_enabled_flag. However, the present invention is not limited thereto, and IBC prediction may be processed as one of intra prediction techniques. In this case, whether BDPCM is available for the IBC predicted block may be determined by sps_intra_bdpcm_enabled_flag. Alternatively, a separate syntax element (eg, sps_ibc_bdpcm_enabled_flag) indicating whether BDPCM is available for the IBC predicted block may be signaled by processing the IBC prediction in a separate prediction mode.
표 2에서는 상위 레벨의 문법의 예로서, SPS를 예시하였으나, 이에 한정되지 않으며, PPS(Picture Parameter Set), DPS(Decoding Parameter Set), APS(Adaptation Parameter Set), 슬라이스 헤더 등 다른 상위 레벨의 문법이 이용될 수도 있다. 또한, 인트라 예측된 블록 및/또는 인터/IBC 예측된 블록의 잔차 신호에 대해 BDPCM이 가용한지 여부를 상위 레벨에서 시그널링하는 방법이라면 표 2에 표현된 형태의 구조가 아니더라도 본 개시에 따른 실시예에 해당될 수 있다. 예컨대, 표 2에서는 신택스 요소 sps_bdpcm_enabled_flag를 파싱하고 그 값에 따라 신택스 요소 sps_intra_bdpcm_enabled_flag 및 sps_inter_bdpcm_enabled_flag를 파싱하는 형태로 표현되었다. 그러나, sps_bdpcm_enabled_flag의 파싱 또는 그 값과는 상관없이 신택스 요소 sps_intra_bdpcm_enabled_flag 및 sps_inter_bdpcm_enabled_flag를 파싱함으로써 인트라 예측된 블록 및/또는 인터/IBC 예측된 블록에 대해 BDPCM이 가용한지 여부를 시그널링할 수도 있다.Table 2 illustrates SPS as an example of a high-level grammar, but is not limited thereto, and other high-level grammars such as PPS (Picture Parameter Set), DPS (Decoding Parameter Set), APS (Adaptation Parameter Set), and Slice Header May be used. In addition, if a method for signaling at a higher level whether BDPCM is available for the residual signal of the intra-predicted block and/or the inter/IBC-predicted block, the embodiment according to the present disclosure may not have the structure shown in Table 2. May be applicable. For example, in Table 2, the syntax element sps_bdpcm_enabled_flag is parsed, and the syntax elements sps_intra_bdpcm_enabled_flag and sps_inter_bdpcm_enabled_flag are parsed according to the value. However, by parsing sps_bdpcm_enabled_flag or parsing the syntax elements sps_intra_bdpcm_enabled_flag and sps_inter_bdpcm_enabled_flag irrespective of their value, whether BDPCM is available for intra-predicted blocks and/or inter/IBC predicted blocks may be signaled.
표 2를 참조하여 설명된 실시예에 따르면, 인트라 예측된 블록뿐만 아니라 인터/IBC 예측된 블록에 대해 BDPCM을 적용하는 경우를 효율적으로 제어할 수 있다.According to the embodiment described with reference to Table 2, it is possible to efficiently control the case of applying BDPCM to not only intra-predicted blocks but also inter/IBC-predicted blocks.
도 17은 본 개시의 일 실시예에 따라 상위 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.17 is a diagram for describing a method of encoding a syntax element of a higher level according to an embodiment of the present disclosure.
영상 부호화 장치는 변환 생략(transform skip)이 가용한지 여부를 결정할 수 있다. 변환 생략이 가용한 경우, 영상 부호화 장치는 sps_transform_skip_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_transform_skip_enabled_flag를 제2 값으로 부호화할 수 있다(S1710).The image encoding apparatus may determine whether transform skip is available. When the transformation omission is available, the video encoding apparatus may encode sps_transform_skip_enabled_flag as the first value, and if not, may encode sps_transform_skip_enabled_flag as the second value (S1710).
영상 부호화 장치는 변환 생략이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 부호화 장치는 sps_transform_skip_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1720). 영상 부호화 장치는 변환 생략이 가용하지 않은 것으로 판단된 경우(S1720-No), BDPCM 관련 정보의 부호화를 종료할 수 있다.The image encoding apparatus may determine whether or not transformation omission is available. For example, the image encoding apparatus may perform the determination based on the value of sps_transform_skip_enabled_flag (S1720). When it is determined that the transformation omission is not available (S1720-No), the video encoding apparatus may terminate encoding of the BDPCM related information.
변환 생략이 가용한 것으로 판단된 경우(S1720-Yes), 영상 부호화 장치는 BDPCM의 가용 여부를 결정할 수 있다. BDPCM이 가용한 경우, 영상 부호화 장치는 sps_bdpcm_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_bdpcm_enabled_flag를 제2 값으로 부호화할 수 있다(S1730). When it is determined that the conversion omission is available (S1720-Yes), the video encoding apparatus may determine whether BDPCM is available. When BDPCM is available, the video encoding apparatus may encode sps_bdpcm_enabled_flag as a first value, and if not, may encode sps_bdpcm_enabled_flag as a second value (S1730).
영상 부호화 장치는 BDPCM이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 부호화 장치는 sps_bdpcm_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1740). BDPCM이 가용하지 않은 것으로 판단된 경우(S1740-No), 영상 부호화 장치는 BDPCM 관련 정보의 부호화를 종료할 수 있다.The video encoding apparatus may determine whether BDPCM is available. For example, the image encoding apparatus may perform the determination based on the value of sps_bdpcm_enabled_flag (S1740). If it is determined that the BDPCM is not available (S1740-No), the video encoding apparatus may terminate encoding of the BDPCM related information.
BDPCM이 가용한 것으로 판단된 경우(S1740-Yes), 영상 부호화 장치는 소정의 예측 모드로 예측된 블록에 대해 BDPCM이 가용한지 여부를 결정할 수 있다. 상기 소정의 예측 모드는 전술한 바와 같이 인트라 예측 모드, 인터 예측 모드 또는 IBC 예측 모드 중 적어도 하나를 포함할 수 있다. 이 때, IBC 예측 모드는 인터 예측 모드로 처리될 수도 있고 별개의 모드로 처리될 수도 있다. 예컨대, 영상 부호화 장치는 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 결정할 수 있다. 인트라 예측된 블록에 대해 BDPCM이 가용한 경우, 영상 부호화 장치는 sps_intra_bdpcm_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_intra_bdpcm_enabled_flag를 제2 값으로 부호화할 수 있다. 유사하게, 인터/IBC 예측된 블록에 대해 BDPCM이 가용한 경우, 영상 부호화 장치는 sps_inter_bdpcm_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_inter_bdpcm_enabled_flag를 제2 값으로 부호화할 수 있다(S1750).When it is determined that BDPCM is available (S1740-Yes), the video encoding apparatus may determine whether BDPCM is available for a block predicted in a predetermined prediction mode. As described above, the predetermined prediction mode may include at least one of an intra prediction mode, an inter prediction mode, or an IBC prediction mode. In this case, the IBC prediction mode may be processed as an inter prediction mode or a separate mode. For example, the apparatus for encoding an image may determine whether BDPCM is available for an intra-predicted block. When BDPCM is available for the intra-predicted block, the video encoding apparatus encodes sps_intra_bdpcm_enabled_flag as a first value, and if not, may encode sps_intra_bdpcm_enabled_flag as a second value. Similarly, when BDPCM is available for the inter/IBC predicted block, the video encoding apparatus encodes sps_inter_bdpcm_enabled_flag as a first value, and otherwise, may encode sps_inter_bdpcm_enabled_flag as a second value (S1750).
영상 부호화 장치는 도 17에 따른 부호화를 수행함으로써, 표 2의 신택스 구조를 생성하고 부호화할 수 있다.The image encoding apparatus may generate and encode the syntax structure of Table 2 by performing the encoding according to FIG. 17.
도 18은 본 개시의 일 실시예에 따라 상위 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.18 is a diagram for describing a method of decoding a high-level syntax element according to an embodiment of the present disclosure.
영상 복호화 장치는 변환 생략(transform skip)이 가용한지 여부를 나타내는 정보(예컨대, sps_transform_skip_enabled_flag)를 파싱하고 복호화할 수 있다(S1810).The video decoding apparatus may parse and decode information (eg, sps_transform_skip_enabled_flag) indicating whether or not transform skip is available (S1810).
영상 복호화 장치는 변환 생략이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 복호화 장치는 sps_transform_skip_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1820). 변환 생략이 가용하지 않은 것으로 판단된 경우(S1820-No), 영상 복호화 장치는 BDPCM 관련 정보의 파싱/복호화를 종료할 수 있다.The video decoding apparatus may determine whether or not conversion is available. For example, the image decoding apparatus may perform the determination based on the value of sps_transform_skip_enabled_flag (S1820). If it is determined that the conversion omission is not available (S1820-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
변환 생략이 가용한 것으로 판단된 경우(S1820-Yes), 영상 복호화 장치는 BDPCM의 가용 여부를 나타내는 정보(예컨대, sps_bdpcm_enabled_flag)를 파싱하고 복호화할 수 있다(S1830). When it is determined that the conversion omission is available (S1820-Yes), the video decoding apparatus may parse and decode information indicating whether the BDPCM is available (eg, sps_bdpcm_enabled_flag) (S1830).
영상 복호화 장치는 BDPCM이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 복호화 장치는 sps_bdpcm_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1840). BDPCM이 가용하지 않은 것으로 판단된 경우(S1840-No), 영상 복호화 장치는 BDPCM 관련 정보의 파싱/복호화를 종료할 수 있다.The video decoding apparatus may determine whether BDPCM is available. For example, the image decoding apparatus may perform the determination based on the value of sps_bdpcm_enabled_flag (S1840). If it is determined that the BDPCM is not available (S1840-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
BDPCM이 가용한 것으로 판단된 경우(S1840-Yes), 영상 복호화 장치는 소정의 예측 모드로 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보를 파싱하고 복호화할 수 있다(S1850). 상기 소정의 예측 모드는 전술한 바와 같이 인트라 예측 모드, 인터 예측 모드 또는 IBC 예측 모드 중 적어도 하나를 포함할 수 있다. 이 때, IBC 예측 모드는 인터 예측 모드로 처리될 수도 있고 별개의 모드로 처리될 수도 있다. 예컨대, 영상 복호화 장치는 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보(예컨대, sps_intra_bdpcm_enabled_flag)를 파싱하고 복호화할 수 있다. 유사하게, 영상 복호화 장치는 인터/IBC 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보(예컨대, sps_inter_bdpcm_enabled_flag)를 파싱하고 복호화할 수 있다(S1850).When it is determined that the BDPCM is available (S1840-Yes), the video decoding apparatus may parse and decode information indicating whether the BDPCM is available for a block predicted in a predetermined prediction mode (S1850). As described above, the predetermined prediction mode may include at least one of an intra prediction mode, an inter prediction mode, and an IBC prediction mode. In this case, the IBC prediction mode may be processed as an inter prediction mode or a separate mode. For example, the video decoding apparatus may parse and decode information indicating whether BDPCM is available for the intra-predicted block (eg, sps_intra_bdpcm_enabled_flag). Similarly, the video decoding apparatus may parse and decode information indicating whether BDPCM is available for the inter/IBC predicted block (eg, sps_inter_bdpcm_enabled_flag) (S1850).
영상 복호화 장치는 도 18에 따른 복호화를 수행함으로써, 표 2의 신택스 구조를 파싱하고 복호화할 수 있다.The video decoding apparatus may parse and decode the syntax structure of Table 2 by performing the decoding according to FIG. 18.
본 개시의 다른 실시예에 따르면, 무손실 부호화가 수행되는 경우를 고려하여 상위 레벨의 신택스 구조가 변경될 수 있다. 무손실 부호화가 수행되는 경우, 변환 및/또는 양자화와 같이, 정보 손실을 야기할 수 있는 부호화/복호화 처리 과정이 수정되거나 우회될 수 있다. 또한, 정보 손실을 야기하는 기술인 high frequency zero-out, joint CbCr, sign data hiding 등은 적용되지 않을 수 있다. 또한, 복호화된 영상은 원본 영상과 동일하므로 인루프 필터링은 필요하지 않을 수 있다.According to another embodiment of the present disclosure, the syntax structure of a higher level may be changed in consideration of a case where lossless coding is performed. When lossless encoding is performed, an encoding/decoding process that may cause information loss, such as transform and/or quantization, may be modified or bypassed. In addition, technologies that cause information loss such as high frequency zero-out, joint CbCr, and sign data hiding may not be applied. In addition, since the decoded image is the same as the original image, in-loop filtering may not be necessary.
무손실 부호화의 가용 여부, 즉, 정보 손실을 유발하는 처리 과정의 우회 여부를 나타내기 위해 신택스 요소 sps_transquant_bypass_enabled_flag가 상위 레벨(예컨대, SPS)에서 전송될 수 있다. 무손실 부호화의 가용 여부를 나타내는 정보의 전송과 관련하여, 표 2는 아래 표 3과 같이 수정될 수 있다.The syntax element sps_transquant_bypass_enabled_flag may be transmitted at a higher level (eg, SPS) to indicate whether lossless coding is available, that is, whether or not a processing process causing information loss is bypassed. With regard to transmission of information indicating whether lossless coding is available, Table 2 may be modified as shown in Table 3 below.
seq_parameter_set_rbsp( ) {seq_parameter_set_rbsp( ) { DescriptorDescriptor
......
sps_transquant_bypass_enabled_flagsps_transquant_bypass_enabled_flag u(1)u(1)
if(!sps_transquant_bypass_enabled_flag) if(!sps_transquant_bypass_enabled_flag)
sps_transform_skip_enabled_flagsps_transform_skip_enabled_flag u(1)u(1)
if( sps_transquant_bypass_enabled_flag || sps_transform_skip_enabled_flag )if( sps_transquant_bypass_enabled_flag || sps_transform_skip_enabled_flag)
sps_bdpcm_enabled_flagsps_bdpcm_enabled_flag u(1)u(1)
if ( sps_bdpcm_enabled_flag ) {if (sps_bdpcm_enabled_flag) {
sps_intra_bdpcm_enabled_flagsps_intra_bdpcm_enabled_flag u(1)u(1)
sps_inter_bdpcm_enabled_flagsps_inter_bdpcm_enabled_flag u(1)u(1)
}}
......
}}
표 3에서, 무손실 부호화의 가용 여부를 나타내는 정보는 신택스 요소 sps_transquant_bypass_enabled_flag이며, sps_transquant_bypass_enabled_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, 무손실 부호화가 가용함을 나타내고, sps_transquant_bypass_enabled_flag가 제2 값(예컨대, 'false' 또는 '0')을 가질 때, 무손실 부호화가 가용하지 않음을 나타낼 수 있다. 무손실 부호화가 가용한 경우, 무손실 부호화를 적용할지 여부를 나타내는 정보(예컨대, cu_transquant_bypass_flag)가 부호화 유닛의 레벨에서 시그널링될 수 있다. 표 2와 표 3에 공통으로 포함된 신택스 요소에 대한 중복적인 설명은 생략한다.In Table 3, information indicating whether lossless coding is available is a syntax element sps_transquant_bypass_enabled_flag, and when sps_transquant_bypass_enabled_flag has a first value (eg,'true' or '1'), it indicates that lossless coding is available, and sps_transquant_bypass_enabled_flag is second. When it has a value (eg,'false' or '0'), it may indicate that lossless coding is not available. When lossless coding is available, information indicating whether to apply lossless coding (eg, cu_transquant_bypass_flag) may be signaled at the level of the coding unit. Redundant descriptions of the syntax elements commonly included in Tables 2 and 3 are omitted.
무손실 부호화가 수행되는 경우, 손실을 야기할 수 있는 변환 생략은 적용되지 않는다. 따라서, 표 3에 나타낸 바와 같이, 변환 생략의 가용 여부를 나타내는 sps_transform_skip_enabled_flag는 전송될 필요가 없다. 또한, 변환 생략의 경우에 적용되는 BDPCM은 무손실 부호화의 경우에도 적용될 수 있다. 무손실 부호화의 경우, 잔차 성분이 많으므로, BDPCM을 적용하여 잔차 성분의 에너지 총량을 효과적으로 줄일 수 있다. 다시 말해, 변환 생략의 경우뿐만 아니라 무손실 부호화의 경우에도 BDPCM을 적용할 수 있으며, 이를 고려하여, 표 3에 나타낸 바와 같이 상위 레벨의 신택스 구조가 변경될 수 있다.When lossless coding is performed, the transformation omission that may cause loss is not applied. Accordingly, as shown in Table 3, sps_transform_skip_enabled_flag indicating whether or not transformation skip is available does not need to be transmitted. In addition, the BDPCM applied in the case of omitting the transformation can also be applied in the case of lossless coding. In the case of lossless coding, since there are many residual components, the total amount of energy of the residual components can be effectively reduced by applying BDPCM. In other words, BDPCM can be applied not only in the case of omitting transformation but also in the case of lossless encoding, and taking this into account, the syntax structure of a higher level may be changed as shown in Table 3.
표 3을 참조하여 설명된 실시예에 따르면, 변환 생략의 경우뿐만 아니라 무손실 부호화가 수행되는 경우에도 BDPCM을 적용하는 경우를 효율적으로 제어할 수 있다.According to the embodiment described with reference to Table 3, it is possible to efficiently control the case of applying BDPCM not only in case of omitting transformation but also in case of performing lossless encoding.
도 19는 본 개시의 다른 실시예에 따라 상위 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.19 is a diagram for describing a method of encoding a high-level syntax element according to another embodiment of the present disclosure.
영상 부호화 장치는 무손실 부호화(lossless coding)가 가용한지 여부를 결정할 수 있다. 무손실 부호화가 가용한 경우, 영상 부호화 장치는 sps_transquant_bypass_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_transquant_bypass_enabled_flag를 제2 값으로 부호화할 수 있다(S1910).The image encoding apparatus may determine whether lossless coding is available. When lossless encoding is available, the video encoding apparatus may encode sps_transquant_bypass_enabled_flag as a first value, and if not, may encode sps_transquant_bypass_enabled_flag as a second value (S1910).
영상 부호화 장치는 무손실 부호화가 가용한지 여부를 판단할 수 있다. 예컨대, 영상 부호화 장치는 sps_transquant_bypass_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1920). 무손실 부호화가 가용한 것으로 판단된 경우(S1920-Yes), 영상 부호화 장치는 변환 생략이 가용한지 여부를 나타내는 정보(예컨대, sps_transform_skip_enabled_flag)의 부호화를 생략하고, 단계 S1940으로 이동하여 BDPCM 관련 정보의 부호화를 수행할 수 있다. 이 때, sps_transquant_bypass_enabled_flag는 제1 값을 가지므로, 단계 S1940의 판단 결과는 항상 'True'가 된다. 따라서, 무손실 부호화가 가용한 것으로 판단된 경우(S1920-Yes), 영상 부호화 장치는 단계 S1950으로 분기할 수도 있다. 이 때, 단계 S1940은 변환 생략이 가용한지 여부(sps_transform_skip_enabled_flag)만을 판단하도록 변경될 수 있다.The image encoding apparatus may determine whether lossless encoding is available. For example, the image encoding apparatus may perform the determination based on the value of sps_transquant_bypass_enabled_flag (S1920). When it is determined that lossless encoding is available (S1920-Yes), the video encoding apparatus skips encoding information indicating whether or not transformation is available (e.g., sps_transform_skip_enabled_flag), and moves to step S1940 to perform encoding of BDPCM-related information. Can be done. At this time, since sps_transquant_bypass_enabled_flag has a first value, the determination result of step S1940 is always'True'. Accordingly, when it is determined that lossless encoding is available (S1920-Yes), the image encoding apparatus may branch to step S1950. In this case, step S1940 may be changed to determine only whether or not transformation skip is available (sps_transform_skip_enabled_flag).
무손실 부호화가 가용하지 않은 것으로 판단된 경우(S1920-No), 영상 부호화 장치는 변환 생략(transform skip)이 가용한지 여부를 결정할 수 있다. 변환 생략이 가용한 경우, 영상 부호화 장치는 sps_transform_skip_enabled_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, sps_transform_skip_enabled_flag를 제2 값으로 부호화할 수 있다(S1930).When it is determined that lossless encoding is not available (S1920-No), the image encoding apparatus may determine whether transform skip is available. When omitting transformation is available, the video encoding apparatus may encode sps_transform_skip_enabled_flag as a first value, and otherwise, may encode sps_transform_skip_enabled_flag as a second value (S1930).
영상 부호화 장치는 무손실 부호화가 가용한지 여부 및/또는 변환 생략이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 부호화 장치는 sps_transquant_bypass_enabled_flag 및/또는 sps_transform_skip_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S1940). 무손실 부호화가 가용하지 않고 변환 생략이 가용하지 않은 것으로 판단된 경우(S1940-No), 영상 부호화 장치는 BDPCM 관련 정보의 부호화를 종료할 수 있다.The image encoding apparatus may determine whether lossless encoding is available and/or whether transformation omission is available. For example, the video encoding apparatus may perform the determination based on values of sps_transquant_bypass_enabled_flag and/or sps_transform_skip_enabled_flag (S1940). When it is determined that lossless encoding is not available and it is determined that transformation omission is not available (S1940-No), the video encoding apparatus may terminate encoding of BDPCM-related information.
무손실 부호화 또는 변환 생략이 가용한 것으로 판단된 경우(S1940-Yes), 영상 부호화 장치는 단계 S1950으로 이동하여 BDPCM 관련 정보의 부호화를 수행할 수 있다. 이후의 단계는 도 17을 참조하여 설명하였으므로, 중복된 설명은 생략한다. When it is determined that lossless encoding or omitting transformation is available (S1940-Yes), the image encoding apparatus may move to step S1950 and perform encoding of BDPCM-related information. Since the subsequent steps have been described with reference to FIG. 17, duplicate descriptions are omitted.
단계 S1940이 변환 생략이 가용한지 여부만을 판단하도록 변경되는 경우, 상기 설명에서 무손실 부호화의 가용 여부는 판단되지 않을 수 있다. In the case where step S1940 is changed to determine only whether the transformation omission is available, it may not be determined whether lossless encoding is available in the above description.
영상 부호화 장치는 도 19에 따른 부호화를 수행함으로써, 표 3의 신택스 구조를 생성하고 부호화할 수 있다.The image encoding apparatus may generate and encode the syntax structure of Table 3 by performing the encoding according to FIG. 19.
도 20은 본 개시의 다른 실시예에 따라 상위 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.20 is a diagram for describing a method of decoding a high-level syntax element according to another embodiment of the present disclosure.
영상 복호화 장치는 무손실 부호화가 가용한지 여부를 나타내는 정보(예컨대, sps_transquant_bypass_enabled_flag)를 파싱하고 복호화할 수 있다(S2010).The video decoding apparatus may parse and decode information indicating whether lossless coding is available (eg, sps_transquant_bypass_enabled_flag) (S2010).
영상 복호화 장치는 무손실 부호화가 가용한지 여부를 판단할 수 있다. 예컨대, 영상 복호화 장치는 sps_transquant_bypass_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S2020). 무손실 부호화가 가용한 것으로 판단된 경우(S2020-Yes), 영상 복호화 장치는 변환 생략이 가용한지 여부를 나타내는 정보(예컨대, sps_transform_skip_enabled_flag)의 복호화를 생략하고, 단계 S2040으로 이동하여 BDPCM 관련 정보의 파싱 및 복호화를 수행할 수 있다. 이 때, sps_transquant_bypass_enabled_flag는 제1 값을 가지므로, 단계 S2040의 판단 결과는 항상 'True'가 된다. 따라서, 무손실 부호화가 가용한 것으로 판단된 경우(S2020-Yes), 영상 복호화 장치는 단계 S2050으로 분기할 수도 있다. 이 때, 단계 S2040은 변환 생략이 가용한지 여부(sps_transform_skip_enabled_flag)만을 판단하도록 변경될 수 있다.The video decoding apparatus may determine whether lossless coding is available. For example, the image decoding apparatus may perform the determination based on the value of sps_transquant_bypass_enabled_flag (S2020). When it is determined that lossless encoding is available (S2020-Yes), the video decoding apparatus skips decoding of information indicating whether or not transformation is available (e.g., sps_transform_skip_enabled_flag), and moves to step S2040 to parse BDPCM-related information and Decryption can be performed. At this time, since sps_transquant_bypass_enabled_flag has a first value, the determination result of step S2040 is always'True'. Accordingly, when it is determined that lossless encoding is available (S2020-Yes), the video decoding apparatus may branch to step S2050. In this case, step S2040 may be changed to determine only whether or not transformation skip is available (sps_transform_skip_enabled_flag).
무손실 부호화가 가용하지 않은 것으로 판단된 경우(S2020-No), 영상 복호화 장치는 변환 생략(transform skip)이 가용한지 여부를 나타내는 정보(예컨대, sps_transform_skip_enabled_flag)를 파싱하고 복호화할 수 있다(S2030).When it is determined that lossless encoding is not available (S2020-No), the video decoding apparatus may parse and decode information (e.g., sps_transform_skip_enabled_flag) indicating whether transform skip is available (S2030).
영상 복호화 장치는 무손실 부호화가 가용한지 여부 및/또는 변환 생략이 가용한지 여부를 판단할 수 있다. 예컨대, 영상 복호화 장치는 sps_transquant_bypass_enabled_flag 및/또는 sps_transform_skip_enabled_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S2040). 무손실 부호화가 가용하지 않고 변환 생략이 가용하지 않은 것으로 판단된 경우(S2040-No), 영상 복호화 장치는 BDPCM 관련 정보의 파싱/복호화를 종료할 수 있다.The image decoding apparatus may determine whether lossless encoding is available and/or whether transformation omission is available. For example, the image decoding apparatus may perform the determination based on the values of sps_transquant_bypass_enabled_flag and/or sps_transform_skip_enabled_flag (S2040). When it is determined that lossless encoding is not available and it is determined that the transformation omission is not available (S2040-No), the video decoding apparatus may finish parsing/decoding the BDPCM related information.
무손실 부호화 또는 변환 생략이 가용한 것으로 판단된 경우(S2040-Yes), 영상 복호화 장치는 단계 S2050으로 이동하여 BDPCM 관련 정보의 파싱 및 복호화를 수행할 수 있다. 이후의 단계는 도 18을 참조하여 설명하였으므로, 중복된 설명은 생략한다. When it is determined that lossless encoding or omitting of transformation is available (S2040-Yes), the image decoding apparatus may move to step S2050 to parse and decode BDPCM related information. Since the subsequent steps have been described with reference to FIG. 18, duplicate descriptions are omitted.
단계 S2040이 변환 생략이 가용한지 여부만을 판단하도록 변경되는 경우, 상기 설명에서 무손실 부호화의 가용 여부는 판단되지 않을 수 있다. In the case where step S2040 is changed to determine only whether the conversion omission is available, it may not be determined whether lossless encoding is available in the above description.
영상 복호화 장치는 도 20에 따른 복호화를 수행함으로써, 표 3의 신택스 구조를 파싱하고 복호화할 수 있다.The video decoding apparatus may parse and decode the syntax structure of Table 3 by performing the decoding according to FIG. 20.
본 개시의 또 다른 실시예에 따르면, BDPCM과 관련된 정보를 시그널링하는 부호화 유닛의 신택스 구조가 변경될 수 있다. 표 4는 본 개시의 또 다른 실시예에 따른 부호화 유닛의 신택스 구조의 일 예이다.According to another embodiment of the present disclosure, a syntax structure of an encoding unit signaling information related to BDPCM may be changed. Table 4 is an example of a syntax structure of an encoding unit according to another embodiment of the present disclosure.
coding_unit( x0, y0, cbWidth, cbHeight, treeType ) {coding_unit( x0, y0, cbWidth, cbHeight, treeType ) { DescriptorDescriptor
......
if ( ( ( sps_bdpcm_intra_enabled_flag && CuPredMode[ x0 ][ y0 ] = = MODE_INTRA ) | |if (((sps_bdpcm_intra_enabled_flag && CuPredMode[ x0 ][ y0] = = MODE_INTRA) | | ( sps_bdpcm_inter_enabled_flag && cu_skip_flag[ x0 ][ y0 ] = = 0 && ( CuPredMode[ x0 ][ y0 ] = = MODE_INTER | | CuPredMode[ x0 ][ y0 ] = = MODE_IBC ) ) ) && cbWidth < = MaxTsSize && cbHeight <= MaxTsSize ) {(sps_bdpcm_inter_enabled_flag && cu_skip_flag[ x0 ][ y0] = = 0 && (CuPredMode[ x0 ][ y0] = = MODE_INTER | | CuPredMode[ x0 ][ y0] = = MODE_IBC))) && cbWidth <= MaxTsSize && cbHeight ) {
bdpcm_flagbdpcm_flag ae(v)ae(v)
if ( bdpcm_flag )if (bdpcm_flag)
bdpcm_dir_flagbdpcm_dir_flag ae(v)ae(v)
}}
......
}}
상기 표 4에서 신택스 요소 bdpcm_flag는 현재 부호화 유닛(현재 블록)에 대해 BDPCM이 적용되는지 여부를 나타낼 수 있다. 예컨대, bdpcm_flag가 제1 값(예컨대, 'true' 또는 '1')을 가질 때, BDPCM이 적용됨을 나타내고, bdpcm_flag가 제2 값(예컨대, 'false' 또는 '0')을 가질 때, BDPCM이 적용되지 않음을 나타낼 수 있다. 신택스 요소 bdpcm_flag가 비트스트림에 존재하지 않는 경우, 그 값은 제2 값으로 추론될 수 있다. 상기 표 4에서 신택스 요소 bdpcm_dir_flag는 BDPCM의 예측 방향을 나타낼 수 있다. 예컨대, bdpcm_dir_flag가 제1 값(예컨대, '1')을 가질 때, BDPCM의 예측 방향이 수직 방향임을 나타내고, bdpcm_dir_flag가 제2 값(예컨대, '0')을 가질 때, BDPCM의 예측 방향이 수평 방향임을 나타낼 수 있다. 신택스 요소 bdpcm_dir_flag가 비트스트림에 존재하지 않는 경우, 그 값은 제2 값으로 추론될 수 있다. In Table 4, the syntax element bdpcm_flag may indicate whether BDPCM is applied to the current coding unit (current block). For example, when bdpcm_flag has a first value (eg,'true' or '1'), it indicates that BDPCM is applied, and when bdpcm_flag has a second value (eg,'false' or '0'), BDPCM May indicate not applicable. If the syntax element bdpcm_flag does not exist in the bitstream, the value can be inferred as the second value. In Table 4, the syntax element bdpcm_dir_flag may indicate the prediction direction of BDPCM. For example, when bdpcm_dir_flag has a first value (eg, '1'), it indicates that the prediction direction of BDPCM is a vertical direction, and when bdpcm_dir_flag has a second value (eg, '0'), the prediction direction of BDPCM is horizontal It can indicate that it is a direction. If the syntax element bdpcm_dir_flag does not exist in the bitstream, the value can be inferred as the second value.
현재 블록이 인트라 예측된 블록일 때, 현재 블록의 인트라 예측 모드는 bdpcm_dir_flag에 의해 특정될 수 있다. 즉, bdpcm_dir_flag가 제1 값을 가질 때, 현재 블록의 인트라 예측 모드는 수직 방향 모드로 결정되고, bdpcm_dir_flag가 제2 값을 가질 때, 현재 블록의 인트라 예측 모드는 수평 방향 모드로 결정될 수 있다. 이 경우, 현재 블록의 인트라 예측 모드를 유도하기 위한 정보의 시그널링이 생략될 수 있다.When the current block is an intra-predicted block, the intra prediction mode of the current block may be specified by bdpcm_dir_flag. That is, when bdpcm_dir_flag has a first value, the intra prediction mode of the current block is determined as a vertical direction mode, and when bdpcm_dir_flag has a second value, the intra prediction mode of the current block may be determined as a horizontal direction mode. In this case, signaling of information for inducing the intra prediction mode of the current block may be omitted.
상기 표 4에 나타낸 바와 같이, 본 개시의 일 실시예에 따르면, BDPCM은 인트라 예측된 블록뿐만 아니라 인터/IBC 예측된 블록에 대해서도 적용될 수 있다. 따라서, bdpcm_flag가 시그널링되는 조건은 아래의 2가지 경우를 포함할 수 있다.As shown in Table 4, according to an embodiment of the present disclosure, BDPCM can be applied not only to an intra predicted block but also to an inter/IBC predicted block. Accordingly, the condition in which the bdpcm_flag is signaled may include the following two cases.
- sps_bdpcm_intra_enabled_flag가 true이고, 현재 블록의 예측 모드가 인트라 예측인 경우-When sps_bdpcm_intra_enabled_flag is true and the prediction mode of the current block is intra prediction
- sps_bdpcm_inter_enabled_flag가 true이고, cu_skip_flag가 0이고, 현재 블록의 예측 모드가 인터/IBC 예측인 경우-If sps_bdpcm_inter_enabled_flag is true, cu_skip_flag is 0, and the prediction mode of the current block is inter/IBC prediction
또한, 신택스 요소 bdpcm_dir_flag는 bdpcm_flag가 제1 값을 가질 때에만 비트스트림을 통해 시그널링될 수 있다. 그러나 이에 한정되지 않으며, bdpcm_flag와는 무관하게 bdpcm_dir_flag가 시그널링될 수도 있다.Also, the syntax element bdpcm_dir_flag may be signaled through the bitstream only when bdpcm_flag has a first value. However, the present invention is not limited thereto, and bdpcm_dir_flag may be signaled regardless of bdpcm_flag.
본 개시의 또 다른 실시예에 따르면, BDPCM과 관련된 정보를 시그널링하는 부호화 유닛의 신택스 구조가 변경될 수 있다. 표 5는 본 개시의 또 다른 실시예에 따른 부호화 유닛의 신택스 구조의 일 예이다.According to another embodiment of the present disclosure, a syntax structure of an encoding unit signaling information related to BDPCM may be changed. Table 5 is an example of a syntax structure of an encoding unit according to another embodiment of the present disclosure.
coding_unit( x0, y0, cbWidth, cbHeight, treeType ) {coding_unit( x0, y0, cbWidth, cbHeight, treeType ) { DescriptorDescriptor
......
if ( sps_bdpcm_enabled_flag && cu_skip_flag[ x0 ][ y0 ] = = 0 && cbWidth <= MaxTsSize && cbHeight <= MaxTsSize ) {if (sps_bdpcm_enabled_flag && cu_skip_flag[ x0 ][ y0] = = 0 && cbWidth <= MaxTsSize && cbHeight <= MaxTsSize) {
bdpcm_flagbdpcm_flag ae(v)ae(v)
if (bdpcm_flag)if (bdpcm_flag)
bdpcm_dir_flagbdpcm_dir_flag ae(v)ae(v)
}}
......
}}
상기 표 5에서 신택스 요소 bdpcm_flag 및 bdpcm_dir_flag에 관한 설명은 표 4를 참조하여 설명한 바와 동일하다.상기 표 5에 나타낸 실시예에 따르면, 현재 블록의 예측 모드가 인트라 예측 모드인지, 인터/IBC 예측 모드인지와 무관하게, BDPCM이 가용한지 여부(sps_bdpcm_enabled_flag), cu_skip_flag가 0인지 여부와 현재 블록의 크기에 기초하여 BDPCM 관련 정보가 시그널링될 수 있다. 상기 표 5에 나타낸 실시예에 따르면, BDPCM은 인트라 예측된 블록뿐만 아니라 인터/IBC 예측된 블록에 대해서도 적용될 수 있다.In Table 5, the description of the syntax elements bdpcm_flag and bdpcm_dir_flag is the same as described with reference to Table 4. According to the embodiment shown in Table 5, whether the prediction mode of the current block is an intra prediction mode or an inter/IBC prediction mode. Regardless of whether BDPCM is available (sps_bdpcm_enabled_flag), whether cu_skip_flag is 0, BDPCM related information may be signaled based on the size of the current block. According to the embodiment shown in Table 5, BDPCM can be applied not only to intra predicted blocks but also to inter/IBC predicted blocks.
도 21은 본 개시의 또 다른 실시예에 따라 블록 레벨의 신택스 요소를 부호화하는 방법을 설명하기 위한 도면이다.21 is a diagram for describing a method of encoding a syntax element at a block level according to another embodiment of the present disclosure.
영상 부호화 장치는 BDPCM이 가용한지 여부를 판단할 수 있다(S2110). BDPCM의 가용 여부는 표 4 및 표 5에 기재된 가용 조건의 만족 여부에 따라 판단될 수 있으나 이에 한정되지 않는다.The video encoding apparatus may determine whether the BDPCM is available (S2110). Availability of BDPCM may be determined based on whether the availability conditions described in Tables 4 and 5 are satisfied, but is not limited thereto.
예컨대, BDPCM의 가용 조건은, sps_bdpcm_intra_enabled_flag가 제1 값이고, 현재 블록이 인트라 예측된 블록인지 여부 또는 sps_bdpcm_inter_enabled_flag가 제1 값이고, 현재 블록이 인터/IBC 예측된 블록인지 여부를 포함할 수 있다. For example, the availability condition of BDPCM may include whether sps_bdpcm_intra_enabled_flag is a first value, whether the current block is an intra-predicted block, or sps_bdpcm_inter_enabled_flag is a first value, and whether the current block is an inter/IBC predicted block.
또는, BDPCM의 가용 조건은, 현재 블록의 예측 모드와 관계없이, sps_bdpcm_enabled_flag가 제1 값이고, cu_skip_flag가 0인지 여부를 포함할 수 있다.Alternatively, the availability condition of BDPCM may include whether sps_bdpcm_enabled_flag is a first value and cu_skip_flag is 0, regardless of the prediction mode of the current block.
또는, BDPCM의 가용 조건은, 현재 블록의 너비 및 높이가 최대 변환 스킵 크기(MaxTsSize) 이하인지 여부를 포함할 수 있다. 여기서, 최대 변환 스킵 크기란 변환스킵이 가능한 블록의 최대 크기를 나타낸다. 최대 변환 스킵 크기는 변환 커널의 크기에 따라 결정될 수 있다. 또는 최대 변환 크기는 비트스트림을 통해 시그널링되거나, 영상 부호화 장치와 영상 복호화 장치 간에 기정의될 수 있다.Alternatively, the availability condition of the BDPCM may include whether the width and height of the current block are less than or equal to the maximum transform skip size (MaxTsSize). Here, the maximum transform skip size indicates the maximum size of a block in which transform skip is possible. The maximum transform skip size may be determined according to the size of the transform kernel. Alternatively, the maximum transform size may be signaled through a bitstream or may be predefined between the image encoding apparatus and the image decoding apparatus.
BDPCM이 가용하지 않은 경우(S2110-No), 영상 부호화 장치는 BDPCM 관련 정보의 부호화를 종료할 수 있다.When the BDPCM is not available (S2110-No), the video encoding apparatus may terminate encoding of the BDPCM related information.
BDPCM이 가용한 경우(S2110-Yes), 영상 부호화 장치는 BDPCM 적용 여부를 결정할 수 있다. BDPCM이 적용되는 경우, 영상 부호화 장치는 bdpcm_flag를 제1 값으로 부호화하고, 그렇지 않은 경우, bdpcm_flag를 제2 값으로 부호화할 수 있다(S2120).When BDPCM is available (S2110-Yes), the image encoding apparatus may determine whether to apply BDPCM. When BDPCM is applied, the video encoding apparatus may encode bdpcm_flag as the first value, and otherwise, may encode bdpcm_flag as the second value (S2120).
영상 부호화 장치는 BDPCM 적용 여부를 판단할 수 있다. 예컨대, 영상 부호화 장치는 bdpcm_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S2130). BDPCM이 적용되지 않는 것으로 판단된 경우(S2130-No), 영상 부호화 장치는 BDPCM 관련 정보의 부호화를 종료할 수 있다.The video encoding apparatus may determine whether to apply BDPCM. For example, the image encoding apparatus may perform the determination based on the value of bdpcm_flag (S2130). When it is determined that BDPCM is not applied (S2130-No), the video encoding apparatus may terminate encoding of BDPCM-related information.
BDPCM이 적용되는 것으로 판단된 경우(S2130-Yes), 영상 부호화 장치는 BDPCM의 예측 방향을 결정할 수 있다(S2140). BDPCM의 예측 방향이 수직 방향인 경우, 영상 부호화 장치는 bdpcm_dir_flag를 제1 값으로 부호화하고, BDPCM의 예측 방향이 수평 방향인 경우, 영상 부호화 장치는 bdpcm_dir_flag를 제2 값으로 부호화할 수 있다(S2140). 이 때, 단계 S2140은 단계 S2130과 무관하게 수행될 수도 있다. 즉, BDPCM이 가용한 경우, bdpcm_flag와 bdpcm_dir_flag가 결정되고 부호화될 수도 있다.When it is determined that BDPCM is applied (S2130-Yes), the image encoding apparatus may determine a prediction direction of BDPCM (S2140). When the prediction direction of BDPCM is a vertical direction, the image encoding apparatus may encode bdpcm_dir_flag as a first value, and when the prediction direction of BDPCM is a horizontal direction, the image encoding apparatus may encode bdpcm_dir_flag as the second value (S2140). . In this case, step S2140 may be performed regardless of step S2130. That is, if BDPCM is available, bdpcm_flag and bdpcm_dir_flag may be determined and encoded.
영상 부호화 장치는 도 21에 따른 부호화를 수행함으로써, 표 4 또는 표 5의 신택스 구조를 생성하고 부호화할 수 있다.The image encoding apparatus may generate and encode the syntax structure of Table 4 or 5 by performing the encoding according to FIG. 21.
도 22는 본 개시의 또 다른 실시예에 따라 블록 레벨의 신택스 요소를 복호화하는 방법을 설명하기 위한 도면이다.22 is a diagram for describing a method of decoding a syntax element at a block level according to another embodiment of the present disclosure.
영상 복호화 장치는 BDPCM이 가용한지 여부를 판단할 수 있다(S2210). 단계 S2210 및 BDPCM의 가용 조건은 도 21의 단계 S2110에서 설명한 바와 동일하므로 이하 생략한다.The video decoding apparatus may determine whether the BDPCM is available (S2210). The availability conditions of step S2210 and BDPCM are the same as described in step S2110 of FIG. 21, and thus will be omitted.
BDPCM이 가용하지 않은 경우(S2210-No), 영상 복호화 장치는 BDPCM 관련 정보의 파싱/복호화를 종료할 수 있다.If BDPCM is not available (S2210-No), the video decoding apparatus may terminate parsing/decoding of BDPCM related information.
BDPCM이 가용한 경우(S2210-Yes), 영상 복호화 장치는 BDPCM 적용 여부를 나타내는 정보(예컨대, bdpcm_flag)를 파싱하고 복호화할 수 있다(S2220).When BDPCM is available (S2210-Yes), the video decoding apparatus may parse and decode information indicating whether to apply BDPCM (eg, bdpcm_flag) (S2220).
영상 복호화 장치는 BDPCM 적용 여부를 판단할 수 있다. 예컨대, 영상 복호화 장치는 bdpcm_flag의 값에 기초하여 상기 판단을 수행할 수 있다(S2230). BDPCM이 적용되지 않는 것으로 판단된 경우(S2230-No), 영상 복호화 장치는 BDPCM 관련 정보의 파싱/복호화를 종료할 수 있다.The video decoding apparatus may determine whether to apply BDPCM. For example, the image decoding apparatus may perform the determination based on the value of bdpcm_flag (S2230). If it is determined that BDPCM is not applied (S2230-No), the video decoding apparatus may terminate parsing/decoding of BDPCM related information.
BDPCM이 적용되는 것으로 판단된 경우(S2230-Yes), 영상 복호화 장치는 BDPCM의 예측 방향을 나타내는 정보(예컨대, bdpcm_dir_flag)를 파싱하고 복호화할 수 있다(S2240). 이 때, 단계 S2240은 단계 S2230과 무관하게 수행될 수도 있다. 즉, BDPCM이 가용한 경우, bdpcm_flag와 bdpcm_dir_flag가 파싱되고 복호화될 수도 있다.When it is determined that the BDPCM is applied (S2230-Yes), the video decoding apparatus may parse and decode information indicating the prediction direction of BDPCM (eg, bdpcm_dir_flag) (S2240). In this case, step S2240 may be performed irrespective of step S2230. That is, when BDPCM is available, bdpcm_flag and bdpcm_dir_flag may be parsed and decoded.
영상 복호화 장치는 도 22에 따른 복호화를 수행함으로써, 표 4 또는 표 5의 신택스 구조를 파싱하고 복호화할 수 있다.The image decoding apparatus may parse and decode the syntax structure of Table 4 or 5 by performing the decoding according to FIG. 22.
BDPCM 관련 정보(bdpcm_flag 및/또는 bdpcm_dir_flag)를 CABAC 부호화/복호화할 때 사용되는 문맥 모델(context model)은 현재 블록의 예측 모드 및/또는 주변 블록의 BDPCM 적용 여부에 따라 적응적으로 선택될 수 있다. A context model used when CABAC encoding/decoding BDPCM related information (bdpcm_flag and/or bdpcm_dir_flag) may be adaptively selected according to a prediction mode of the current block and/or whether BDPCM is applied to a neighboring block.
예컨대, bdpcm_flag 및/또는 bdpcm_dir_flag의 CABAC 부호화/복호화를 위해, 현재 블록의 예측 모드가 인트라 예측 모드인지 또는 인터/IBC 예측 모드인지에 따라 2개의 서로 다른 문맥 모델을 사용할 수 있다. 또는 현재 블록의 예측 모드가 인트라 예측 모드인지, 인터 예측 모드인지 또는 IBC 예측 모드인지에 따라 3개의 서로 다른 문맥 모델을 사용할 수 있다. 또는 현재 블록의 예측 모드와 무관하게 단일 문맥 모델을 사용할 수도 있다.For example, for CABAC encoding/decoding of bdpcm_flag and/or bdpcm_dir_flag, two different context models may be used depending on whether the prediction mode of the current block is an intra prediction mode or an inter/IBC prediction mode. Alternatively, three different context models may be used depending on whether the prediction mode of the current block is an intra prediction mode, an inter prediction mode, or an IBC prediction mode. Alternatively, a single context model may be used regardless of the prediction mode of the current block.
다른 예로, bdpcm_flag 및/또는 bdpcm_dir_flag의 CABAC 부호화/복호화를 위해, BDPCM이 적용된 주변 블록이 존재하는지 여부에 따라 2개의 서로 다른 문맥 모델을 사용할 수 있다. 또는, 좌측 주변 블록의 BDPCM 적용 여부와 상단 주변 블록의 BDPCM 적용 여부에 따라 3개의 서로 다른 문맥 모델을 사용할 수 있다. 예컨대, 두 개의 주변 블록 모두 BDPCM 블록인 경우, 한 개의 주변 블록만이 BDPCM 블록인 경우, 두 개의 주변 블록 모두 BDPCM 블록이 아닌 경우의 각각에 대해 상이한 문맥 모델을 사용할 수 있다. 또는 주변 블록의 BDPCM 적용 여부와 무관하게 단일 문맥 모델을 사용할 수도 있다.As another example, for CABAC encoding/decoding of bdpcm_flag and/or bdpcm_dir_flag, two different context models may be used depending on whether a neighboring block to which BDPCM is applied exists. Alternatively, three different context models may be used depending on whether BDPCM is applied to the left neighboring block and whether BDPCM is applied to the upper neighboring block. For example, when both neighboring blocks are BDPCM blocks, only one neighboring block is a BDPCM block, and both neighboring blocks are not BDPCM blocks, a different context model may be used. Alternatively, a single context model may be used regardless of whether or not BDPCM is applied to neighboring blocks.
다른 예로, bdpcm_flag 및/또는 bdpcm_dir_flag의 CABAC 부호화/복호화를 위해 상기 현재 블록의 예측 모드와 주변 블록의 BDPCM 적용 여부의 조합에 따라 복수의 서로 다른 문맥 모델을 사용할 수 있다.As another example, for CABAC encoding/decoding of bdpcm_flag and/or bdpcm_dir_flag, a plurality of different context models may be used according to a combination of a prediction mode of the current block and whether BDPCM is applied to a neighboring block.
또 다른 예로, bdpcm_dir_flag의 CABAC 부호화/복호화를 위해 주변 블록의 BDPCM 예측 방향에 따라 문맥 모델이 적응적으로 선택될 수 있다.As another example, for CABAC encoding/decoding of bdpcm_dir_flag, a context model may be adaptively selected according to a BDPCM prediction direction of a neighboring block.
본 개시의 또 다른 실시예에 따르면, 인터/IBC 예측된 블록의 tu_cbf_luma를 효율적으로 부호화/복호화할 수 있다. 전술한 바와 같이, BDPCM은 인트라 예측된 블록뿐만 아니라 인터/IBC 예측된 블록에 대해서도 적용 가능하며, 잔차 신호 간 유사성을 이용하여 부호화 효율의 향상을 기대할 수 있다.According to another embodiment of the present disclosure, tu_cbf_luma of an inter/IBC predicted block may be efficiently encoded/decoded. As described above, the BDPCM can be applied to not only intra-predicted blocks but also inter/IBC-predicted blocks, and improvement of coding efficiency can be expected by using similarity between residual signals.
인트라 예측된 블록에 BDPCM이 적용되는 경우, 해당 블록의 tu_cbf_luma가 0의 값을 가질 수 있다. 예컨대, 해당 블록에 잔차 신호가 존재하지 않지만 인트라 예측 모드에 관한 정보를 시그널링하는 대신 bdpcm_flag 및 bdpcm_dir_flag만 시그널링함으로써 이득을 얻는 경우가 존재할 수 있다. 보다 구체적으로, 현재 블록의 화면내 예측 모드가 수평 방향 모드이고 잔차 신호는 존재하지 않는 경우, 인트라 예측 모드에 관한 정보(ex, mpm_flag, isp_flag, mip_flag 등)를 시그널링하는 대신 제1 값(예컨대, 'true' 또는 '1')을 갖는 bdpcm_flag와 수평 방향을 나타내는 bdpcm_dir_flag만 시그널링함으로써 관련 정보의 전송에 필요한 비트수를 절약할 수 있다. When BDPCM is applied to the intra-predicted block, tu_cbf_luma of the corresponding block may have a value of 0. For example, there may be a case in which a residual signal does not exist in the corresponding block, but a gain is obtained by signaling only bdpcm_flag and bdpcm_dir_flag instead of signaling information about an intra prediction mode. More specifically, when the intra prediction mode of the current block is a horizontal direction mode and there is no residual signal, instead of signaling information about the intra prediction mode (ex, mpm_flag, isp_flag, mip_flag, etc.), a first value (eg, By signaling only bdpcm_flag having'true' or '1') and bdpcm_dir_flag indicating the horizontal direction, the number of bits required for transmission of related information can be saved.
그러나 인터 예측된 블록 또는 IBC 예측된 블록의 경우에는 BDPCM이 적용된 블록이더라도 여전히 움직임 정보(또는 블록 벡터)를 전송해야 하므로, 상기와 같이 예측 모드의 시그널링에 있어서의 전송되는 정보의 절약을 기대할 수 없다. 즉, 인터 예측된 블록 또는 IBC 예측된 블록이 BDPCM이 적용된 블록이라면 항상 잔차 신호가 존재한다. 따라서, 인터/IBC 예측된 블록이면서 bdpcm_flag가 제1 값(예컨대, '1')인 경우, 해당 블록은 잔차 신호가 존재하므로, 해당 블록에 대한 tu_cbf_luma를 전송하지 않고 제1 값(예컨대, '1')으로 추론할 수 있다. However, in the case of an inter-predicted block or an IBC-predicted block, even if a block to which BDPCM is applied, motion information (or block vector) must still be transmitted, so it is not possible to expect the saving of transmitted information in the signaling of the prediction mode as described above. . That is, if the inter predicted block or the IBC predicted block is a block to which BDPCM is applied, a residual signal always exists. Therefore, if the bdpcm_flag is the first value (e.g., '1') while being an inter/IBC predicted block, since the residual signal is present in the corresponding block, the first value (e.g., '1' without transmitting tu_cbf_luma for the corresponding block) ').
예컨대, 블록(변환 블록) 레벨에서 전송되는 신택스 요소 tu_cbf_luma는 해당 블록에 0이 아닌 변환 계수(non-zero transform coefficient)가 존재하는지 여부를 나타낼 수 있다. 예컨대, tu_cbf_luma가 제1 값(예컨대, '1')을 가질 때, 해당 블록은 적어도 하나 이상의 0이 아닌 변환 계수를 포함할 수 있다. tu_cbf_luma가 제2 값(예컨대, '0')을 가질 때, 해당 블록의 변환 계수는 모두 0이다. 신택스 요소 tu_cbf_luma가 비트스트림에 존재하지 않는 경우, 그 값은 다른 신택스 요소 및/또는 부호화 파라미터에 기초하여 제1 값 또는 제2 값으로 추론될 수 있다. 본 개시에 따른 실시예에 있어서, 현재 블록이 BDPCM이 적용된 블록이고(예컨대, 현재 블록의 bdpcm_flag가 제1 값), 현재 블록의 예측 모드가 인터 예측 또는 IBC 예측인 경우(예컨대, CuPredMode is equal to MODE_INTER or MODE_IBC), tu_cbf_luma는 제1 값으로 추론될 수 있다.For example, the syntax element tu_cbf_luma transmitted at the block (transform block) level may indicate whether a non-zero transform coefficient exists in the corresponding block. For example, when tu_cbf_luma has a first value (eg, '1'), the corresponding block may include at least one non-zero transform coefficient. When tu_cbf_luma has a second value (eg, '0'), all transform coefficients of the corresponding block are 0. When the syntax element tu_cbf_luma does not exist in the bitstream, its value may be inferred as a first value or a second value based on other syntax elements and/or encoding parameters. In the embodiment according to the present disclosure, when the current block is a block to which BDPCM is applied (eg, bdpcm_flag of the current block is a first value), and the prediction mode of the current block is inter prediction or IBC prediction (eg, CuPredMode is equal to MODE_INTER or MODE_IBC), tu_cbf_luma may be inferred as a first value.
본 개시의 일 실시예에 따르면, tu_cbf_luma의 시맨틱을 통해 그 값을 추론하였으나, 상기 서술한 내용을 신택스에서 tu_cbf_luma의 파싱 조건으로 정의할 수도 있다. 예컨대, bdpcm_flag가 제1 값이고, CuPredMode가 인터/IBC 예측 모드를 나타낼 때 tu_cbf_luma가 제1 값으로 추론되는 방법이라면 본 개시의 실시예에 포함될 수 있다. 또한, 본 개시의 일 실시예에서, 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 신택스 요소로서 tu_cbf_luma를 설명하였으나, 구체적인 신택스의 명칭은 이에 한정되지 않는다. 즉, 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보라면 상기 실시예의 tu_cbf_luma를 대체할 수 있다.According to an embodiment of the present disclosure, the value is inferred through the semantics of tu_cbf_luma, but the above-described content may be defined as a parsing condition of tu_cbf_luma in the syntax. For example, if bdpcm_flag is a first value and a method in which tu_cbf_luma is inferred as the first value when CuPredMode indicates an inter/IBC prediction mode, it may be included in an embodiment of the present disclosure. In addition, in an embodiment of the present disclosure, tu_cbf_luma has been described as a syntax element indicating whether a residual signal exists in a current block, but a specific syntax name is not limited thereto. That is, if information indicating whether a residual signal exists in the current block, tu_cbf_luma of the above embodiment may be substituted.
도 23은 본 개시의 또 다른 실시예에 따라 현재 블록 내 잔차 신호 존재 여부를 나타내는 정보를 부호화하는 방법을 설명하기 위한 도면이다.23 is a diagram for describing a method of encoding information indicating whether a residual signal exists in a current block according to another embodiment of the present disclosure.
영상 부호화 장치는 현재 블록에 BDPCM이 적용되는지 여부를 판단할 수 있다(S2310). 예컨대, 영상 부호화 장치는 bdpcm_flag의 값에 기초하여 상기 판단을 수행할 수 있다. The image encoding apparatus may determine whether BDPCM is applied to the current block (S2310). For example, the image encoding apparatus may perform the determination based on the value of bdpcm_flag.
현재 블록에 BDPCM이 적용되지 않는 것으로 판단된 경우(S2310-No), 영상 부호화 장치는 현재 블록에 잔차 신호가 존재하는지 여부를 결정할 수 있다. 현재 블록에 잔차 신호가 존재하는 경우, 영상 부호화 장치는 tu_cbf_luma를 제1 값으로 부호화하고, 그렇지 않은 경우, tu_cbf_luma를 제2값으로 부호화할 수 있다(S2330).When it is determined that BDPCM is not applied to the current block (S2310-No), the image encoding apparatus may determine whether a residual signal exists in the current block. When a residual signal exists in the current block, the image encoding apparatus may encode tu_cbf_luma as the first value, and otherwise, may encode tu_cbf_luma as the second value (S2330).
현재 블록에 BDPCM이 적용되는 것으로 판단된 경우(S2310-Yes), 영상 부호화 장치는 현재 블록의 예측 모드를 판단할 수 있다(S2320). 예컨대, 영상 부호화 장치는 현재 블록의 예측 모드를 나타내는 정보에 기초하여 현재 블록의 예측 모드가 인트라 예측인지 인터 예측인지 IBC 예측인지를 판단할 수 있다.When it is determined that BDPCM is applied to the current block (S2310-Yes), the image encoding apparatus may determine a prediction mode of the current block (S2320). For example, the apparatus for encoding an image may determine whether the prediction mode of the current block is intra prediction, inter prediction, or IBC prediction based on information indicating the prediction mode of the current block.
현재 블록의 예측 모드가 인트라 예측인 경우, 영상 부호화 장치는 단계 S2330을 수행할 수 있다. 단계 S2330에 대한 설명은 전술한 바와 같다.When the prediction mode of the current block is intra prediction, the apparatus for encoding an image may perform step S2330. The description of step S2330 is as described above.
현재 블록의 예측 모드가 인터/IBC 예측인 경우, 영상 부호화 장치는 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보(예컨대, tu_cbf_luma)의 부호화를 생략할 수 있다(S2340). 이 때, 현재 블록의 잔차 신호가 존재하므로, tu_cbf_luma는 제1 값을 갖는 것으로 간주될 수 있다.When the prediction mode of the current block is inter/IBC prediction, the apparatus for encoding an image may omit encoding information indicating whether a residual signal exists in the current block (eg, tu_cbf_luma) (S2340). At this time, since the residual signal of the current block exists, tu_cbf_luma may be considered to have a first value.
도 23의 방법에 있어서, 단계 S2310과 단계 S2320은 동시에 수행될 수도 있고, 단계 S2320이 단계 S2310에 선행하여 수행될 수도 있다. In the method of FIG. 23, step S2310 and step S2320 may be performed simultaneously, or step S2320 may be performed prior to step S2310.
영상 부호화 장치는 도 23에 따른 부호화를 수행함으로써, 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보의 부호화를 수행할 수 있다.The image encoding apparatus may perform encoding of information indicating whether a residual signal exists in the current block by performing encoding according to FIG. 23.
도 23의 방법에 따르면, 인터/IBC 예측된 BDPCM 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보를 시그널링하지 않음으로써, 전송되는 비트수를 절약할 수 있다.According to the method of FIG. 23, information indicating whether a residual signal is present in the inter/IBC predicted BDPCM block is not signaled, thereby saving the number of transmitted bits.
도 24는 본 개시의 또 다른 실시예에 따라 현재 블록 내 잔차 신호 존재 여부를 나타내는 정보를 복호화하는 방법을 설명하기 위한 도면이다.24 is a diagram for describing a method of decoding information indicating whether a residual signal exists in a current block, according to another embodiment of the present disclosure.
영상 복호화 장치는 현재 블록에 BDPCM이 적용되는지 여부를 판단할 수 있다(S2410). 예컨대, 영상 복호화 장치는 bdpcm_flag의 값에 기초하여 상기 판단을 수행할 수 있다. The video decoding apparatus may determine whether BDPCM is applied to the current block (S2410). For example, the image decoding apparatus may perform the determination based on the value of bdpcm_flag.
현재 블록에 BDPCM이 적용되지 않는 것으로 판단된 경우(S2410-No), 영상 복호화 장치는 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보(예컨대, tu_cbf_luma)를 파싱하고 복호화할 수 있다(S2430).When it is determined that BDPCM is not applied to the current block (S2410-No), the video decoding apparatus may parse and decode information (eg, tu_cbf_luma) indicating whether a residual signal exists in the current block (S2430).
현재 블록에 BDPCM이 적용되는 것으로 판단된 경우(S2410-Yes), 영상 복호화 장치는 현재 블록의 예측 모드를 판단할 수 있다(S2420). 예컨대, 영상 복호화 장치는 현재 블록의 예측 모드를 나타내는 정보에 기초하여 현재 블록의 예측 모드가 인트라 예측인지 인터 예측인지 IBC 예측인지를 판단할 수 있다.When it is determined that the BDPCM is applied to the current block (S2410-Yes), the image decoding apparatus may determine a prediction mode of the current block (S2420). For example, the image decoding apparatus may determine whether the prediction mode of the current block is intra prediction, inter prediction, or IBC prediction based on information indicating the prediction mode of the current block.
현재 블록의 예측 모드가 인트라 예측인 경우, 영상 복호화 장치는 단계 S2430을 수행할 수 있다. 단계 S2430에 대한 설명은 전술한 바와 같다.When the prediction mode of the current block is intra prediction, the video decoding apparatus may perform step S2430. The description of step S2430 is as described above.
현재 블록의 예측 모드가 인터/IBC 예측인 경우, 영상 복호화 장치는 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보(예컨대, tu_cbf_luma)의 파싱/복호화를 생략할 수 있다(S2440). 이 때, 현재 블록의 잔차 신호가 존재하므로, tu_cbf_luma는 제1 값을 갖는 것으로 추론될 수 있다.When the prediction mode of the current block is inter/IBC prediction, the image decoding apparatus may omit parsing/decoding of information (eg, tu_cbf_luma) indicating whether a residual signal exists in the current block (S2440). At this time, since the residual signal of the current block exists, it can be inferred that tu_cbf_luma has a first value.
도 24의 방법에 있어서, 단계 S2410과 단계 S2420은 동시에 수행될 수도 있고, 단계 S2420이 단계 S2410에 선행하여 수행될 수도 있다. In the method of FIG. 24, step S2410 and step S2420 may be performed simultaneously, or step S2420 may be performed prior to step S2410.
영상 복호화 장치는 도 24에 따른 복호화를 수행함으로써, 현재 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보의 파싱/복호화를 수행할 수 있다.The image decoding apparatus may parse/decode information indicating whether a residual signal exists in the current block by performing the decoding according to FIG. 24.
도 24의 방법에 따르면, 인터/IBC 예측된 BDPCM 블록에 잔차 신호가 존재하는지 여부를 나타내는 정보를 시그널링하지 않음으로써, 전송되는 비트수를 절약할 수 있다.According to the method of FIG. 24, information indicating whether a residual signal is present in the inter/IBC predicted BDPCM block is not signaled, so that the number of transmitted bits can be saved.
본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.The exemplary methods of the present disclosure are expressed as a series of operations for clarity of description, but this is not intended to limit the order in which steps are performed, and each step may be performed simultaneously or in a different order if necessary. In order to implement the method according to the present disclosure, the illustrative steps may include additional steps, other steps may be included excluding some steps, or may include additional other steps excluding some steps.
본 개시에 있어서, 소정의 동작(단계)을 수행하는 영상 부호화 장치 또는 영상 복호화 장치는 해당 동작(단계)의 수행 조건이나 상황을 확인하는 동작(단계)을 수행할 수 있다. 예컨대, 소정의 조건이 만족되는 경우 소정의 동작을 수행한다고 기재된 경우, 영상 부호화 장치 또는 영상 복호화 장치는 상기 소정의 조건이 만족되는지 여부를 확인하는 동작을 수행한 후, 상기 소정의 동작을 수행할 수 있다.In the present disclosure, an image encoding apparatus or an image decoding apparatus performing a predetermined operation (step) may perform an operation (step) of confirming an execution condition or situation of the operation (step). For example, when it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding apparatus or the video decoding apparatus performs an operation to check whether the predetermined condition is satisfied, and then performs the predetermined operation. I can.
본 개시의 다양한 실시예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.Various embodiments of the present disclosure are not intended to list all possible combinations, but to describe representative aspects of the present disclosure, and matters described in the various embodiments may be applied independently or may be applied in combination of two or more.
또한, 본 개시의 다양한 실시예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. For implementation by hardware, one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, or the like.
또한, 본 개시의 실시예가 적용된 영상 복호화 장치 및 영상 부호화 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.In addition, the image decoding device and the image encoding device to which the embodiment of the present disclosure is applied include a multimedia broadcasting transmission/reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, and a real-time communication device such as video communication. , Mobile streaming devices, storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical use. It may be included in a video device or the like, and may be used to process a video signal or a data signal. For example, an 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).
도 25는 본 개시의 실시예가 적용될 수 있는 컨텐츠 스트리밍 시스템을 예시한 도면이다.25 is a diagram illustrating a content streaming system to which an embodiment of the present disclosure can be applied.
도 25에 도시된 바와 같이, 본 개시의 실시예가 적용된 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.As shown in FIG. 25, the content streaming system to which the embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage device, a user device, and a multimedia input device.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.The encoding server serves to generate a bitstream by compressing content input from multimedia input devices such as smartphones, cameras, camcorders, etc. into digital data, and transmits it to the streaming server. As another example, when multimedia input devices such as smartphones, cameras, camcorders, etc. directly generate bitstreams, the encoding server may be omitted.
상기 비트스트림은 본 개시의 실시예가 적용된 영상 부호화 방법 및/또는 영상 부호화 장치에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.The bitstream may be generated by an image encoding method and/or an image encoding apparatus to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in a process of transmitting or receiving the bitstream.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기반하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 할 수 있다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송할 수 있다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 수행할 수 있다.The streaming server may transmit multimedia data to a user device based on a user request through a web server, and the web server may serve as an intermediary for notifying the user of a service. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server may transmit multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server may play a role of controlling a command/response between devices in the content streaming system.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server may receive content from a media storage and/or encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, and Tablet PC, ultrabook, wearable device, for example, smartwatch, smart glass, head mounted display (HMD)), digital TV, desktop There may be computers, digital signage, etc.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributedly processed.
본 개시의 범위는 다양한 실시예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.The scope of the present disclosure is software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium (non-transitory computer-readable medium) which stores instructions and the like and is executable on a device or a computer.
본 개시에 따른 실시예는 영상을 부호화/복호화하는데 이용될 수 있다.An embodiment according to the present disclosure may be used to encode/decode an image.

Claims (15)

  1. 영상 복호화 장치에 의해 수행되는 영상 복호화 방법으로서,An image decoding method performed by an image decoding apparatus, comprising:
    변환 생략이 가용한지 여부를 나타내는 제1 정보를 비트스트림으로부터 파싱하는 단계;Parsing from the bitstream first information indicating whether conversion omission is available;
    상기 제1 정보가 변환 생략이 가용한 것을 나타내는 경우, BDPCM(block difference pulse code modulation)이 가용한지 여부를 나타내는 제2 정보를 상기 비트스트림으로부터 파싱하는 단계;Parsing from the bitstream second information indicating whether block difference pulse code modulation (BDPCM) is available when the first information indicates that conversion omission is available;
    상기 제2 정보가 BDPCM이 가용한 것을 나타내는 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 상기 비트스트림으로부터 파싱하는 단계; Parsing, from the bitstream, third information indicating whether BDPCM is applied to a current block when the second information indicates that BDPCM is available;
    상기 제3 정보가 상기 현재 블록에 대해 BDPCM이 적용되는 것을 나타내는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하고, 상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하는 단계;When the third information indicates that BDPCM is applied to the current block, determining a prediction direction of BDPCM for the current block, and generating a residual block of the current block based on the determined prediction direction of the BDPCM. step;
    상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하는 단계; 및Generating a prediction block of the current block by performing prediction based on the prediction mode of the current block; And
    상기 레지듀얼 블록과 상기 예측 블록에 기반하여 상기 현재 블록을 복원하는 단계를 포함하는 영상 복호화 방법.And reconstructing the current block based on the residual block and the prediction block.
  2. 제1항에 있어서,The method of claim 1,
    상기 제1 정보와 상기 제2 정보는 현재 블록의 상위 레벨에서 시그널링되는 영상 복호화 방법.The first information and the second information are signaled at a higher level of a current block.
  3. 제2항에 있어서,The method of claim 2,
    상기 현재 블록의 상위 레벨은 시퀀스 레벨인 영상 복호화 방법. The upper level of the current block is a sequence level.
  4. 제1항에 있어서,The method of claim 1,
    상기 BDPCM의 예측 방향은 상기 비트스트림으로부터 파싱된 제4 정보에 기반하여 결정되는 영상 복호화 방법.The prediction direction of the BDPCM is determined based on fourth information parsed from the bitstream.
  5. 제1항에 있어서,The method of claim 1,
    상기 현재 블록의 예측 모드가 인트라 예측 모드인 경우, 인트라 예측의 예측 방향은 상기 BDPCM의 예측 방향으로 유도되는 영상 복호화 방법.When the prediction mode of the current block is an intra prediction mode, a prediction direction of intra prediction is derived to a prediction direction of the BDPCM.
  6. 제1항에 있어서,The method of claim 1,
    상기 제2 정보는 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보와 인터 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보를 포함하는 영상 복호화 방법.The second information includes information indicating whether BDPCM is available for the intra-predicted block and information indicating whether BDPCM is available for the inter-predicted block.
  7. 제1항에 있어서, 상기 영상 복호화 방법은,The method of claim 1, wherein the video decoding method comprises:
    무손실 부호화가 가용한지 여부를 나타내는 제5 정보를 파싱하는 단계를 더 포함하고,Parsing fifth information indicating whether lossless coding is available,
    상기 제1 정보를 파싱하는 단계는 상기 제5 정보가 무손실 부호화가 가용하지 않음을 나타내는 경우에 수행되는 영상 복호화 방법.The parsing of the first information is performed when the fifth information indicates that lossless coding is not available.
  8. 제7항에 있어서,The method of claim 7,
    상기 제2 정보를 파싱하는 단계는 상기 제5 정보가 무손실 부호화가 가용함을 나타내는 경우에 수행되는 영상 복호화 방법.The parsing of the second information is performed when the fifth information indicates that lossless coding is available.
  9. 제6항에 있어서,The method of claim 6,
    상기 제3 정보를 파싱하는 단계는, Parsing the third information,
    상기 인트라 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보가 가용함을 나타내고 상기 현재 블록이 인트라 예측된 블록인 경우, 또는, 상기 인터 예측된 블록에 대해 BDPCM이 가용한지 여부를 나타내는 정보가 가용함을 나타내고 상기 현재 블록이 인터 예측된 블록인 경우에 수행되는 영상 복호화 방법.Information indicating whether BDPCM is available for the intra-predicted block is available, and information indicating whether BDPCM is available for the inter-predicted block is available when the current block is an intra-predicted block And the image decoding method performed when the current block is an inter-predicted block.
  10. 제1항에 있어서,The method of claim 1,
    상기 제3 정보를 파싱하는 단계는 상기 현재 블록의 예측 모드와는 독립적으로 수행되는 영상 복호화 방법.The parsing of the third information is performed independently of the prediction mode of the current block.
  11. 제1항에 있어서, 상기 영상 복호화 방법은,The method of claim 1, wherein the video decoding method comprises:
    상기 현재 블록에 0이 아닌 잔차 신호가 존재하는지 여부를 나타내는 제6 정보를 복원하는 단계를 포함하고,And restoring sixth information indicating whether a non-zero residual signal exists in the current block,
    상기 현재 블록이 BDPCM이 적용된 블록으로서 인터 예측된 블록인 경우, 상기 제6 정보는 소정의 값으로 복원되는 영상 복호화 방법.When the current block is an inter-predicted block as a block to which BDPCM is applied, the sixth information is reconstructed to a predetermined value.
  12. 제11항에 있어서,The method of claim 11,
    상기 소정의 값은 상기 현재 블록에 0이 아닌 잔차 신호가 존재함을 나타내는 값인 영상 복호화 방법. The predetermined value is a value indicating that a non-zero residual signal exists in the current block.
  13. 메모리 및 적어도 하나의 프로세서를 포함하는 영상 복호화 장치로서,An image decoding apparatus comprising a memory and at least one processor,
    상기 적어도 하나의 프로세서는The at least one processor
    변환 생략이 가용한지 여부를 나타내는 제1 정보를 비트스트림으로부터 파싱하고,Parsing from the bitstream first information indicating whether conversion omission is available,
    상기 제1 정보가 변환 생략이 가용한 것을 나타내는 경우, BDPCM이 가용한지 여부를 나타내는 제2 정보를 상기 비트스트림으로부터 파싱하고,When the first information indicates that conversion omission is available, second information indicating whether BDPCM is available is parsed from the bitstream,
    상기 제2 정보가 BDPCM이 가용한 것을 나타내는 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 상기 비트스트림으로부터 파싱하고, When the second information indicates that BDPCM is available, third information indicating whether BDPCM is applied to the current block is parsed from the bitstream,
    상기 제3 정보가 상기 현재 블록에 대해 BDPCM이 적용되는 것을 나타내는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하고, 상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하고,When the third information indicates that BDPCM is applied to the current block, a prediction direction of BDPCM for the current block is determined, and a residual block of the current block is generated based on the determined prediction direction of the BDPCM. ,
    상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하고,Generates a prediction block of the current block by performing prediction based on the prediction mode of the current block,
    상기 레지듀얼 블록과 상기 예측 블록에 기반하여 상기 현재 블록을 복원하는 영상 복호화 장치.An image decoding apparatus for reconstructing the current block based on the residual block and the prediction block.
  14. 영상 부호화 장치에 의해 수행되는 영상 부호화 방법으로서,An image encoding method performed by an image encoding apparatus, comprising:
    변환 생략이 가용한지 여부를 나타내는 제1 정보를 결정하는 단계;Determining first information indicating whether conversion omission is available;
    상기 변환 생략이 가용한 경우, BDPCM이 가용한지 여부를 나타내는 제2 정보를 결정하는 단계;If the conversion omission is available, determining second information indicating whether BDPCM is available;
    상기 BDPCM이 가용한 경우, 현재 블록에 대해 BDPCM이 적용되는지 여부를 나타내는 제3 정보를 결정하는 단계; If the BDPCM is available, determining third information indicating whether BDPCM is applied to the current block;
    상기 현재 블록에 대해 BDPCM이 적용되는 경우, 상기 현재 블록에 대한 BDPCM의 예측 방향을 결정하는 단계;If BDPCM is applied to the current block, determining a prediction direction of BDPCM for the current block;
    상기 현재 블록의 예측 모드에 기반하여, 예측을 수행함으로써 상기 현재 블록의 예측 블록을 생성하는 단계;Generating a prediction block of the current block by performing prediction based on the prediction mode of the current block;
    상기 예측 블록에 기반하여 상기 현재 블록의 레지듀얼 블록을 생성하는 단계;Generating a residual block of the current block based on the prediction block;
    상기 결정된 BDPCM의 예측 방향에 기반하여 상기 현재 블록의 레지듀얼 블록을 부호화하는 단계; 및Encoding a residual block of the current block based on the determined prediction direction of the BDPCM; And
    상기 제1 정보, 상기 제2 정보, 상기 제3 정보를 비트스트림에 부호화하는 단계를 포함하는 영상 부호화 방법.Encoding the first information, the second information, and the third information into a bitstream.
  15. 제14항의 영상 부호화 방법에 의해 생성된 비트스트림을 전송하는 방법.A method of transmitting a bitstream generated by the video encoding method of claim 14.
PCT/KR2020/009013 2019-07-09 2020-07-09 Method and device for image encoding/decoding using bdpcm of residual signal and method for transmitting bitstream WO2021006661A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201962871734P 2019-07-09 2019-07-09
US62/871,734 2019-07-09
US201962873142P 2019-07-11 2019-07-11
US62/873,142 2019-07-11

Publications (1)

Publication Number Publication Date
WO2021006661A1 true WO2021006661A1 (en) 2021-01-14

Family

ID=74115063

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/009013 WO2021006661A1 (en) 2019-07-09 2020-07-09 Method and device for image encoding/decoding using bdpcm of residual signal and method for transmitting bitstream

Country Status (1)

Country Link
WO (1) WO2021006661A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084284A1 (en) * 2016-09-22 2018-03-22 Canon Kabushiki Kaisha Method, apparatus and system for encoding and decoding video data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084284A1 (en) * 2016-09-22 2018-03-22 Canon Kabushiki Kaisha Method, apparatus and system for encoding and decoding video data

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BROSS, B. et al. Non-CE8: Unified Transform Type Signalling and Residual Coding for Transform Skip. JVET-M0464-v4. Joint Video Experts Team (JVET) of ITU- T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 13th Meeting: Marrakech. 15 January 2019. [Retrieved on 22 September 2020]. Retrieved from <URL: http://phenix.it-sudparis.eu/jvet/doc_end_user/current_document.php?id=5273>. See pages 1-6. *
BROSS, Benjamin et al. Versatile Video Coding (Draft 5). JVET-N1001-v10. Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 14th Meeting: Geneva. 02 July 2019. [Retrieved on 22 September 2020]. Retrieved from <URL: http://phenix.it-sudparis.eu/jvet/doc_end_user/current_document.php?id=6640>. See sections 7.3.2.3-7.3.2.4, 7.3.7.5, 7.4.8.5, 8.4-8.6, and 8.8.3-8.8.4. *
KARCZEWICZ, Marta et al. CE8-related: Quantized residual BDPCM. JVET-N0413. Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/ WG 11 14th Meeting: Geneva. 26 March 2019. [Retrieved on 22 September 2020]. Retrieved from <URL: http://phenix.it-sudparis.eu/jvet/doc_end_user/current_document.php?id=6135>. See pages 1-2. *
YOO, Sunmi et al. CE8-related: Unified condition between BDPCM and transform skip. JVET-O0206_v1. Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 15th Meeting: Gothenburg. 05 July 2019. [Retrieved on 22 September 2020]. Retrieved from <URL: http://phenix.it-sudparis.eu/jvet/doc_end_user/current_document.php?id=6811>. See pages 1-2. *

Similar Documents

Publication Publication Date Title
WO2020226424A1 (en) Image encoding/decoding method and device for performing mip and lfnst, and method for transmitting bitstream
WO2020050678A1 (en) Intra prediction-based image coding method using mpm list and apparatus therefor
WO2020251330A1 (en) Image encoding/decoding method and device for utilizing simplified mpm list generation method, and method for transmitting bitstream
WO2020055107A1 (en) Affine motion prediction-based image decoding method and apparatus using affine mvp candidate list in image coding system
WO2020213946A1 (en) Image coding using transform index
WO2020246805A1 (en) Matrix-based intra prediction device and method
WO2020246803A1 (en) Matrix-based intra prediction device and method
WO2020213976A1 (en) Video encoding/decoding method and device using bdpcm, and method for transmitting bitstream
WO2021101203A1 (en) Filtering-based image coding device and method
WO2021040487A1 (en) Image decoding method for residual data coding in image coding system, and apparatus therefor
WO2020256454A1 (en) Image decoding method for performing inter-prediction when prediction mode for current block ultimately cannot be selected, and device for same
WO2020185047A1 (en) Image encoding/decoding method and apparatus for performing intra prediction, and method for transmitting bitstream
WO2021054807A1 (en) Image encoding/decoding method and device using reference sample filtering, and method for transmitting bitstream
WO2021040410A1 (en) Method for decoding video for residual coding and device therefor
WO2021006579A1 (en) Video encoding/decoding method and device for deriving weight index for bidirectional prediction of merge candidate, and method for transmitting bitstream
WO2020231144A1 (en) Image encoding/decoding method and device using affine tmvp, and method for transmitting bit stream
WO2019245228A1 (en) Method and device for processing video signal using affine motion prediction
WO2022182174A1 (en) Intra prediction method and device based on intra prediction mode derivation
WO2021241963A1 (en) Image coding method based on poc information and non-reference picture flag in video or image coding system
WO2021182802A1 (en) Image coding method based on information related to tile and information related to slice in video or image coding system
WO2021049865A1 (en) Image encoding/decoding method and device for performing bdof, and method for transmitting bitstream
WO2021006576A1 (en) Image encoding/decoding method and apparatus for performing bi-directional prediction, and method for transmitting bitstream
WO2021045491A1 (en) Video encoding/decoding method and apparatus for performing intra prediction of chroma component, and method for transmitting bitstream
WO2020185045A1 (en) Video encoding/decoding method and device using segmentation limitation for chroma block, and method for transmitting bitstream
WO2021040406A1 (en) Video or image coding method and device therefor

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20836302

Country of ref document: EP

Kind code of ref document: A1