EP3896969A1 - Video signal processing method and device using current picture reference - Google Patents

Video signal processing method and device using current picture reference Download PDF

Info

Publication number
EP3896969A1
EP3896969A1 EP19895005.7A EP19895005A EP3896969A1 EP 3896969 A1 EP3896969 A1 EP 3896969A1 EP 19895005 A EP19895005 A EP 19895005A EP 3896969 A1 EP3896969 A1 EP 3896969A1
Authority
EP
European Patent Office
Prior art keywords
mode
current block
prediction mode
flag
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
EP19895005.7A
Other languages
German (de)
French (fr)
Other versions
EP3896969A4 (en
Inventor
Geonjung KO
Dongcheol Kim
Juhyung Son
Jaehong Jung
Jinsam Kwak
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Humax Co Ltd
Original Assignee
Humax Co Ltd
Wilus Institute of Standards and Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Humax Co Ltd, Wilus Institute of Standards and Technology Inc filed Critical Humax Co Ltd
Priority to EP24167363.1A priority Critical patent/EP4383703A1/en
Publication of EP3896969A1 publication Critical patent/EP3896969A1/en
Publication of EP3896969A4 publication Critical patent/EP3896969A4/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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
    • 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/174Methods 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 slice, e.g. a line of blocks or a group of blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • 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
    • 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
    • H04N19/51Motion estimation or motion compensation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Definitions

  • the present disclosure relates to a method and an apparatus for processing a video signal and, more particularly, to a video signal processing method and apparatus for encoding and decoding a video signal.
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing information in a form suitable for a storage medium.
  • An object of compression encoding includes objects such as voice, video, and text, and in particular, a technique for performing compression encoding on an image is referred to as video compression.
  • Compression coding for a video signal is performed by removing excess information in consideration of spatial correlation, temporal correlation, and stochastic correlation.
  • a more efficient video signal processing method and apparatus are required.
  • An aspect of the present disclosure is to increase coding efficiency of a video signal.
  • the present disclosure provides a video signal processing apparatus and a video signal processing method.
  • a method of processing a video signal includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, decoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • BC Block Copy
  • a method of processing a video signal includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode in which a current picture is referred to, generating a bitstream for encoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode in which at least one picture is referred to, generating a bitstream for encoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • BC Block Copy
  • an apparatus for processing a video signal includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, decode the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which the current picture is referred to, and decode the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • BC Block Copy
  • an apparatus for processing a video signal includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, generate a bitstream for encoding the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which a current picture is referred to, and generate a bitstream for encoding the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • BC Block Copy
  • a computer-readable recording medium storing a bitstream for processing a video signal.
  • the bitstream contains prediction mode information of a target block, and includes a bitstream for encoding the target block, based on a Block Copy (BC) prediction mode when a prediction mode of the target block is the BC prediction mode in which a target picture is referred to and a bitstream for encoding the target block, based on an inter prediction mode when the prediction mode of the target block is the inter prediction mode in which at least one picture is referred to, wherein sets of spatial neighbor locations referred to for encoding the target block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the target block in the inter prediction mode.
  • BC Block Copy
  • the present disclosure provides a video signal processing apparatus and a video signal processing method.
  • a method of processing a video signal includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, decoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode includes some of sets of locations of spatial neighbors referred to for decoding the current block in the inter prediction mode.
  • the BC prediction mode may be named an Intra Block Copy (IBC) prediction mode or a Current Picture Referencing (CPR) prediction mode.
  • Sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode may include a location of (xCb - 1, yCb -1) when an uppermost leftmost location of the current block is (xCb, yCb), and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may not include the location of (xCb - 1, yCb -1) when the uppermost leftmost location of the current block is (xCb, yCb).
  • Sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may include at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1) when the uppermost leftmost location of the current block is (xCb, yCb), and cbWidth may be a width of the current block and cbHeight may be a height of the current block.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream and an operation of determining the prediction mode of the current block as the BC prediction mode, based on the BC mode parameter.
  • the BC mode parameter may be indicated by pred_mode_ibc_flag when the BC mode is named an IBC mode.
  • a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture and signaling information (sps_bc_enabled_flag) at a higher level than the current block indicates that the BC prediction mode is available
  • a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used.
  • the signaling information (sps_bc_enabled_flag) at the higher level may be indicated by sps_ibc_enabled_flag when the BC mode is named the IBC mode.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream.
  • a prediction mode parameter pred_mode_flag
  • the prediction mode parameter When the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating an intra prediction mode.
  • the prediction mode parameter When the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating the inter prediction mode.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream.
  • a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream.
  • coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component
  • a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring a prediction mode parameter indicating the prediction mode of the current block from a bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a size of the current block does not correspond to a block size preset as a block size in which inter prediction is limited and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating inter prediction.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream, and when the BC mode parameter is not acquired from the bitstream, if a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode and a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used.
  • the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode
  • the size of the current block does not correspond to the block size in which inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture
  • the value of the BC mode parameter may be determined as a value indicating that the BC is not used.
  • the operation of determining the prediction mode of the current block may include an operation of acquiring the prediction mode parameter indicating the prediction mode of the current block from a bitstream before acquiring the BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if the size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, the prediction mode parameter may be determined as a value indicating intra prediction.
  • the operation of decoding the current block, based on the inter prediction mode may include an operation of acquiring an inter prediction type parameter inter_pred_idc) indicating an inter prediction type of the current block from a bitstream and an operation of determining a reference list of the current block, based on the size of the current block and the inter prediction type parameter, and the inter prediction type parameter may indicate at least one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is larger than 12, and indicate one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is 12.
  • bit signaling 00 of the inter prediction type parameter may indicate reference list L0
  • bit signaling 01 may indicate reference list L1
  • bit signaling 1 may indicate reference list L0 and reference list L1.
  • a method of processing a video signal includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode in which a current picture is referred to, generating a bitstream for encoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode in which at least one picture is referred to, generating a bitstream for encoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • BC Block Copy
  • an apparatus for processing a video signal includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, decode the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which the current picture is referred to, and decode the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • BC Block Copy
  • Sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode may include a location of (xCb - 1, yCb -1) when an uppermost leftmost location of the current block is (xCb, yCb), and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may not include the location of (xCb - 1, yCb -1) when the uppermost leftmost location of the current block is (xCb, yCb).
  • Sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may include at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1) when the uppermost leftmost location of the current block is (xCb, yCb), and cbWidth may be a width of the current block and cbHeight may be a height of the current block.
  • the processor may be configured to acquire a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream and determine the prediction mode of the current block as the BC prediction mode, based on the BC mode parameter.
  • a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, and signaling information (sps_bc_enabled_flag) at a higher level than the current block indicates that the BC prediction mode is available, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the processor may be configured to acquire a prediction mode parameter indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating an intra prediction mode and when the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating the inter prediction mode
  • the processor may be configured to acquire a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream.
  • a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream.
  • coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component
  • a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • the processor may be configured to acquire the prediction mode parameter indicating the prediction mode of the current block from the bitstream.
  • the prediction mode parameter When the prediction mode parameter is not acquired from the bitstream, a size of the current block does not correspond to a block size preset as a block size in which inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating inter prediction.
  • the processor may be configured to acquire the BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the BC mode parameter is not acquired from the bitstream, a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode, and a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, a value of the BC mode parameter is determined as a value indicating that the BC prediction mode is used.
  • the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode
  • the size of the current block does not correspond to the block size in which inter prediction is limited
  • a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture
  • the value of the BC mode parameter may be determined as a value indicating that the BC is not used.
  • an apparatus for processing a video signal includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, generate a bitstream for encoding the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which a current picture is referred to, and generate a bitstream for encoding the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • BC Block Copy
  • the processor may be configured to acquire a prediction mode parameter indicting the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, the prediction mode parameter may be determined as a value indicating intra prediction.
  • the processor may be configured to acquire an inter prediction type parameter indicating an inter prediction type of the current block from the bitstream and determine a reference list of the current block, based on a size of the current block and the inter prediction type parameter, and the inter prediction type parameter may indicate at least one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is larger than 12, and indicate one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is 12.
  • bit signaling 00 of the inter prediction type parameter may indicate reference list L0
  • bit signaling 01 may indicate reference list L1
  • bit signaling 1 may indicate reference list L0 and reference list L1.
  • a computer-readable recording medium storing a bitstream for processing a video signal.
  • the bitstream may contain prediction mode information of a target block, and include a bitstream for encoding the target block, based on a Block Copy (BC) prediction mode when a prediction mode of the target block is the BC prediction mode in which a target picture is referred to and a bitstream for encoding the target block, based on an inter prediction mode when the prediction mode of the target block is the inter prediction mode in which at least one picture is referred to, wherein sets of spatial neighbor locations referred to for encoding the target block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the target block in the inter prediction mode.
  • BC Block Copy
  • Coding may be interpreted as encoding or decoding in some cases.
  • an apparatus for generating a video signal bitstream by performing encoding (coding) of a video signal is referred to as an encoding apparatus or an encoder
  • an apparatus that performs decoding (decoding) of a video signal bitstream to reconstruct a video signal is referred to as a decoding apparatus or decoder.
  • the video signal processing apparatus is used as a term of a concept including both an encoder and a decoder.
  • Information is a term including all values, parameters, coefficients, elements, etc. In some cases, the meaning is interpreted differently, so the present invention is not limited thereto.
  • 'Unit' is used as a meaning to refer to a basic unit of image processing or a specific position of a picture, and refers to an image region including both a luma component and a chroma component.
  • 'block' refers to an image region including a specific component among luma components and chroma components (i.e., Cb and Cr).
  • terms such as 'unit', 'block', 'partition' and 'region' may be used interchangeably.
  • a unit may be used as a concept including all of a coding unit, a prediction unit, and a transform unit.
  • the picture indicates a field or frame, and according to an embodiment, the terms may be used interchangeably.
  • FIG. 1 is a schematic block diagram of a video signal encoding apparatus according to an embodiment of the present invention.
  • the encoding apparatus 100 of the present invention includes a transformation unit 110, a quantization unit 115, an inverse quantization unit 120, an inverse transformation unit 125, a filtering unit 130, a prediction unit 150, and an entropy coding unit 160.
  • the transformation unit 110 obtains a value of a transform coefficient by transforming a residual signal, which is a difference between the inputted video signal and the predicted signal generated by the prediction unit 150.
  • a Discrete Cosine Transform DCT
  • DST Discrete Sine Transform
  • Wavelet Transform a Discrete Cosine Transform
  • the DCT and DST perform transformation by splitting the input picture signal into blocks. In the transformation, coding efficiency may vary according to the distribution and characteristics of values in the transformation region.
  • the quantization unit 115 quantizes the value of the transform coefficient value outputted from the transformation unit 110.
  • a method of predicting a picture using a region already coded through the prediction unit 150 and obtaining a reconstructed picture by adding a residual value between the original picture and the predicted picture to the predicted picture is used.
  • information that may be used in the decoder should be used when performing prediction in the encoder.
  • the encoder performs a process of reconstructing the encoded current block again.
  • the inverse quantization unit 120 inverse-quantizes the value of the transform coefficient, and the inverse transformation unit 125 reconstructs the residual value using the inverse quantized transform coefficient value.
  • the filtering unit 130 performs filtering operations to improve the quality of the reconstructed picture and to improve the coding efficiency.
  • a deblocking filter For example, a sample adaptive offset (SAO), and an adaptive loop filter may be included.
  • the filtered picture is outputted or stored in a decoded picture buffer (DPB) 156 for use as a reference picture.
  • DPB decoded picture buffer
  • the prediction unit 150 includes an intra prediction unit 152 and an inter prediction unit 154.
  • the intra prediction unit 152 performs intra prediction in the current picture
  • the inter prediction unit 154 performs inter prediction to predict the current picture by using the reference picture stored in the DBP 156.
  • the intra prediction unit 152 performs intra prediction from reconstructed samples in the current picture, and transfers intra encoding information to the entropy coding unit 160.
  • the intra encoding information may include at least one of an intra prediction mode, a most probable mode (MPM) flag, and an MPM index.
  • the inter prediction unit 154 may include the motion estimation unit 154a and the motion compensation unit 154b.
  • the motion estimation unit 154a obtains a motion vector value of the current region by referring to a specific region of the reconstructed reference picture.
  • the motion estimation unit 154a transfers a motion information (reference picture index, motion vector information, etc.) for the reference region to the entropy coding unit 160.
  • the motion compensation unit 154b performs motion compensation by using the motion vector value transferred from the motion estimation unit 154a.
  • the inter prediction unit 154 transfers inter encoding information including motion information on the reference region to the entropy coding unit 160.
  • the transformation unit 110 transforms a residual value between the original picture and the predicted picture to obtain a transform coefficient value.
  • the transformation may be performed in a specific block unit within a picture, and the size of a specific block may be varied within a preset range.
  • the quantization unit 115 quantizes the transform coefficient value generated in the transformation unit 110 and transmits it to the entropy coding unit 160.
  • the entropy coding unit 160 a quantized transform coefficient, intra-encoding information, inter-encoding information, and the like to generate a video signal bitstream.
  • a variable length coding (VLC) scheme may be used in the entropy coding unit 160.
  • the variable length coding (VLC) scheme includes transforming input symbols into consecutive codewords, and a length of a codeword may be variable. For example, frequently occurring symbols are represented by a short codeword, and infrequently occurring symbols are represented by a long codeword.
  • a context-based adaptive variable length coding (CAVLC) scheme may be used as a variable length coding scheme.
  • Arithmetic coding may transform continuous data symbols into a single prime number, wherein arithmetic coding may obtain an optimal bit required for representing each symbol.
  • a context-based adaptive binary arithmetic code (CABAC) may be used as arithmetic coding.
  • the generated bitstream is encapsulated using a network abstraction layer (NAL) unit as a basic unit.
  • NAL network abstraction layer
  • the NAL unit includes an integer number of coded coding tree units.
  • RBSP Raw Byte Sequence Payload
  • PPS Picture Parameter Set
  • SPS Sequence Parameter Set
  • VPS Video Parameter Set
  • FIG. 1 shows an encoding apparatus 100 according to an embodiment of the present invention, and separately displayed blocks logically distinguish and show the elements of the encoding apparatus 100.
  • the elements of the above-described encoding apparatus 100 may be mounted as one chip or as a plurality of chips depending on the design of the device.
  • the operation of each element of the above-described encoding apparatus 100 may be performed by a processor (not shown).
  • FIG. 2 is a schematic block diagram of a video signal decoding apparatus 200 according to an embodiment of the present invention.
  • the decoding apparatus 200 of the present invention includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transformation unit 225, a filtering unit 230, and a prediction unit 250.
  • the entropy decoding unit 210 entropy-decodes a video signal bitstream to extract transform coefficient information, intra encoding information, inter encoding information, and the like for each region.
  • the entropy decoding unit 210 obtains a quantized transform coefficient by inverse-binarizing a binary code.
  • the inverse quantization unit 220 inverse-quantizes the quantized transform coefficient, and the inverse transformation unit 225 reconstructs a residual value by using the inverse-quantized transform coefficient.
  • the video signal processing device 200 reconstructs an original pixel value by summing the residual value obtained by the inverse transformation unit 225 with a prediction value obtained by the prediction unit 250.
  • the filtering unit 230 performs filtering on a picture to improve image quality. This may include a deblocking filter for reducing block distortion and/or an adaptive loop filter for removing distortion of the entire picture.
  • the filtered picture is outputted or stored in the DPB 256 for use as a reference picture for the next picture.
  • the prediction unit 250 includes an intra prediction unit 252 and an inter prediction unit 254.
  • the prediction unit 250 generates a prediction picture by using the encoding type decoded through the entropy decoding unit 210 described above, transform coefficients for each region, and intra/inter encoding information.
  • a decoded region of the current picture or other pictures including the current block may be used.
  • a current picture that is, a picture (or, tile/slice) that performs intra prediction
  • I picture or, tile/slice
  • inter prediction is called an inter picture (or, tile/slice).
  • a picture (or, tile/slice) using up to one motion vector and a reference picture index is called a predictive picture or P picture (or, tile/slice)
  • a picture (or tile/slice) using up to two motion vectors and a reference picture index is called a bi-predictive picture or a B picture (or tile / slice).
  • the P picture (or, tile/slice) uses up to one motion information set to predict each block
  • the B picture (or, tile/slice) uses up to two motion information sets to predict each block.
  • the motion information set includes one or more motion vectors and one reference picture index.
  • the intra prediction unit 252 generates a prediction block using the intra encoding information and reconstructed samples in the current picture.
  • the intra encoding information may include at least one of an intra prediction mode, a Most Probable Mode (MPM) flag, and an MPM index.
  • the intra prediction unit 252 predicts the pixel values of the current block by using the reconstructed pixels located on the left and/or upper side of the current block as reference pixels.
  • reference pixels may be pixels adjacent to a left boundary and/or an upper boundary of a current block.
  • reference pixels may be adjacent pixels within a preset distance from the left boundary of the current block and/or adjacent pixels within a preset distance from the upper boundary of the current block among pixels of neighboring blocks of the current block.
  • the neighboring blocks of the current block may include at least one of a left (L) block, an above (A) block, a below left (BL) block, an above right (AR) block, or an above left (AL) block adjacent to the current block.
  • the inter prediction unit 254 generates a prediction block using reference pictures and inter encoding information stored in the DPB 256.
  • the inter coding information may include motion information set (reference picture index, motion vector information, etc.) of the current block for the reference block.
  • Inter prediction may include L0 prediction, L1 prediction, and bi-prediction.
  • L0 prediction means prediction using one reference picture included in the L0 picture list
  • L1 prediction means prediction using one reference picture included in the L1 picture list.
  • one set of motion information e.g., motion vector and reference picture index
  • up to two reference regions may be used, and the two reference regions may exist in the same reference picture or may exist in different pictures.
  • up to two sets of motion information may be used and two motion vectors may correspond to the same reference picture index or different reference picture indexes.
  • the reference pictures may be displayed (or outputted) both before and after the current picture in time aspect.
  • the inter prediction unit 254 may obtain a reference block of the current block using a motion vector and a reference picture index.
  • the reference block is in a reference picture corresponding to a reference picture index.
  • a pixel value of a block specified by a motion vector or an interpolated value thereof may be used as a predictor of the current block.
  • an 8-tap interpolation filter for a luma signal and a 4-tap interpolation filter for a chroma signal may be used.
  • the interpolation filter for motion prediction in sub-pel units is not limited thereto. In this way, the inter prediction unit 254 performs motion compensation to predict the texture of the current unit from motion pictures reconstructed previously.
  • the reconstructed video picture is generated by adding the predict value outputted from the intra prediction unit 252 or the inter prediction unit 254 and the residual value outputted from the inverse transformation unit 225. That is, the video signal decoding apparatus 200 reconstructs the current block using the prediction block generated by the prediction unit 250 and the residual obtained from the inverse transformation unit 225.
  • FIG. 2 shows a decoding apparatus 200 according to an embodiment of the present invention, and separately displayed blocks logically distinguish and show the elements of the decoding apparatus 200.
  • the elements of the above-described decoding apparatus 200 may be mounted as one chip or as a plurality of chips depending on the design of the device.
  • the operation of each element of the above-described decoding apparatus 200 may be performed by a processor (not shown).
  • FIG. 3 illustrates an embodiment in which a coding tree unit (CTU) is split into coding units (CUs) in a picture.
  • a picture may be split into a sequence of coding tree units (CTUs).
  • the coding tree unit is composed of an NXN block of luma samples and two blocks of chroma samples corresponding thereto.
  • the coding tree unit may be split into a plurality of coding units.
  • the coding unit refers to a basic unit for processing a picture in the process of processing the video signal described above, that is, intra/inter prediction, transformation, quantization, and/or entropy coding.
  • the size and shape of the coding unit in one picture may not be constant.
  • the coding unit may have a square or rectangular shape.
  • the rectangular coding unit (or rectangular block) includes a vertical coding unit (or vertical block) and a horizontal coding unit (or horizontal block).
  • the vertical block is a block whose height is greater than the width
  • the horizontal block is a block whose width is greater than the height.
  • a non-square block may refer to a rectangular block, but the present invention is not limited thereto.
  • the coding tree unit is first split into a quad tree (QT) structure. That is, one node having a 2NX2N size in a quad tree structure may be split into four nodes having an NXN size.
  • the quad tree may also be referred to as a quaternary tree. Quad tree split may be performed recursively, and not all nodes need to be split with the same depth.
  • the leaf node of the above-described quad tree may be further split into a multi-type tree (MTT) structure.
  • MTT multi-type tree
  • one node in a multi-type tree structure, one node may be split into a binary or ternary tree structure of horizontal or vertical division. That is, in the multi-type tree structure, there are four split structures such as vertical binary split, horizontal binary split, vertical ternary split, and horizontal ternary split.
  • the width and height of the nodes may all have powers of 2.
  • a node of a 2NX2N size may be split into two NX2N nodes by vertical binary split, and split into two 2NXN nodes by horizontal binary split.
  • a node of a 2NX2N size is split into (N/ 2)X2N, NX2N, and (N/2)X2N nodes by vertical ternary split, and split into 2NX(N/2), 2NXN, and 2NX(N/2) nodes by horizontal binary split.
  • This multi-type tree split may be performed recursively.
  • the leaf node of the multi-type tree may be a coding unit. If the coding unit is not large for the maximum transform length, the coding unit is used as a unit of prediction and transform without further division. On the other hand, at least one of the following parameters in the above-described quad tree and multi-type tree may be predefined or transmitted through a high level set of RBSPs such as PPS, SPS, VPS, and the like.
  • CTU size root node size of quad tree
  • minimum QT size MinQtSize minimum allowed QT leaf node size
  • maximum BT size MaxBtSize maximum allowed BT root node size
  • Maximum TT size MaxTtSize maximum allowed TT root node size
  • Maximum MTT depth MaxMttDepth maximum allowed depth of MTT split from QT's leaf node
  • Minimum BT size MinBtSize minimum allowed BT leaf node size
  • Minimum TT size MinTtSize minimum allowed TT leaf node size.
  • FIG. 4 shows an embodiment of a method for signaling the split of a quad tree and a multi-type tree.
  • Preset flags may be used to signal the split of the above-described quad tree and multi-type tree.
  • the coding tree unit is a root node of a quad tree, and may be first split into a quad tree structure.
  • 'qt_split_flag' is signaled for each node 'QT_node'. If the value of 'qt_split_flag' is 1, the node is split into 4 square nodes, and if the value of 'qt_split_flag' is 0, the corresponding node becomes the leaf node 'QT_leaf_node' of the quad tree.
  • Each quad tree leaf node 'QT_leaf_node' may be further split into a multi-type tree structure.
  • 'mtt_split_flag' is signaled for each node 'MTT_node'.
  • the corresponding node is split into a plurality of rectangular nodes, and when the value of 'mtt_split_flag' is 0, the corresponding node is a leaf node 'MTT_leaf_node' of the multi-type tree.
  • 'mtt_split_vertical_flag' When the multi-type tree node 'MTT_node' is split into a plurality of rectangular nodes (i.e., when the value of 'mtt_split_flag' is 1), 'mtt_split_vertical_flag' and 'mtt_split_binary_flag' for the node 'MTT_node' may be additionally signaled.
  • the value of 'mtt_split_vertical_flag' When the value of 'mtt_split_vertical_flag' is 1, vertical split of node 'MTT_node' is indicated, and when the value of 'mtt_split_vertical_flag' is 0, horizontal split of node 'MTT_node' is indicated.
  • FIGS. 5 and 6 more specifically illustrate an intra prediction method according to an embodiment of the present invention.
  • the intra prediction unit predicts the pixel values of the current block by using the reconstructed pixels located on the left and/or upper side of the current block as reference samples.
  • FIG. 5 illustrates an embodiment of reference samples used for predicting the current block in an intra prediction mode.
  • reference pixels may be pixels adjacent to a left boundary and/or an upper boundary of a current block.
  • reference pixels may be configured using a maximum of 2W+2H+1 adjacent pixels located in the left side and/or the upper side of the current block.
  • pixels of multiple reference lines may be used for intra prediction of the current block.
  • the multiple reference lines may include n lines located within a preset range from the current block.
  • an intra predictor may acquire reference pixels through a reference sample padding process according to a preset rule.
  • the intra predictor may perform a reference sample filtering process to reduce an error in intra prediction. That is, reference pixels may be acquired by filtering adjacent pixels and/or pixels acquired through the reference sample padding process. The intra predictor predicts pixels of the current block using the acquired reference pixels.
  • FIG. 6 shows an embodiment of prediction modes used for intra prediction.
  • intra prediction mode information indicating an intra prediction direction may be signaled.
  • the intra prediction mode information indicates one of a plurality of intra prediction modes included in the intra prediction mode set.
  • the decoder receives intra prediction mode information of the current block from the bitstream.
  • the intra prediction unit of the decoder performs intra prediction on the current block based on the extracted intra prediction mode information.
  • the intra prediction mode set may include all intra prediction modes used in intra prediction (e.g., a total of 67 intra prediction modes). More specifically, the intra prediction mode set may include a planar mode, a DC mode, and a plurality (e.g., 65) of angle modes (i.e., directional modes). Each intra prediction mode may be indicated through a preset index (i.e., intra prediction mode index). For example, as shown in FIG. 6 , the intra prediction mode index 0 indicates a planar mode, and the intra prediction mode index 1 indicates a DC mode. Also, the intra prediction mode indexes 2 to 66 may indicate different angle modes, respectively. The angle modes respectively indicate angles which are different from each other within a preset angle range.
  • the angle mode may indicate an angle within an angle range (i.e., a first angular range) between 45 degrees and -135 degrees clockwise.
  • the angle mode may be defined based on the 12 o'clock direction.
  • the intra prediction mode index 2 indicates a horizontal diagonal (HDIA) mode
  • the intra prediction mode index 18 indicates a horizontal (Horizontal, HOR) mode
  • the intra prediction mode index 34 indicates a diagonal (DIA) mode
  • the intra prediction mode index 50 indicates a vertical (VER) mode
  • the intra prediction mode index 66 indicates a vertical diagonal (VDIA) mode.
  • a preset angle range may be differently configured according to a shape of the current block.
  • a wide angle mode indicating an angle larger than 45 degrees and smaller than -135 degrees in a clockwise direction may be additionally used.
  • an angle mode may indicate an angle within an angle range (that is, a second angle range) between (45+offsetl) degrees and (-135+offset1) degrees in a clockwise direction.
  • angle modes 67 to 76 out of a first angle range may be additionally used.
  • an angle mode may indicate an angle within an angle range (that is, a third angle range) between (45-offset2) degrees and (-135-offset2) degrees in a clockwise direction.
  • angle modes -10 to - 1 out of a first angle range may be additionally used.
  • values of offset1 and offset2 may be determined to be different from each other according to a ratio between the width and the height of the rectangular block. Further, offset1 and offset2 may be positive numbers.
  • a plurality of angle modes included in an intra prediction mode set may include a basic angle mode and an expanded angle mode.
  • the expanded angle mode may be determined on the basis of the basic angle mode.
  • the basic angle mode may be a mode corresponding to an angle used in intra prediction of the convention High Efficiency Video Coding (HEVC) standard
  • the expanded angle mode may be a mode corresponding to an angle newly added to intra prediction of a next-generation video codec standard.
  • the basic angle mode may be an angle mode corresponding to one of intra prediction modes ⁇ 2, 4, 6, ..., 66 ⁇
  • the expanded angle mode may be an angle mode corresponding to one of intra prediction modes ⁇ 3, 5, 7, ..., 65 ⁇ . That is, the expanded angle mode may be an angle mode between basic angle modes within the first angle range. Accordingly, an angle indicated by the expanded angle mode may be determined on the basis of an angle indicated by the basic angle mode.
  • the basic angle mode may be a mode corresponding to an angle within the preset first angle range
  • the expanded angle mode may be a wide angle mode out of the first angle range. That is, the basic angle mode may be an angle mode corresponding to one of intra prediction modes ⁇ 2, 3, 4, ..., 66 ⁇ , and the expanded angle mode may be an angle mode corresponding to one of intra prediction modes ⁇ -10, -9, ..., -1 ⁇ and ⁇ 67, 68, ..., 76 ⁇ .
  • the angle indicated by the expanded angle mode may be determined as an angle opposite to the angle indicated by the basic angle mode. Accordingly, an angle indicated by the expanded angle mode may be determined on the basis of an angle indicated by the basic angle mode.
  • the number of expanded angle modes is not limited thereto, and additional expanded angles may be defined according to the size and/or shape of the current block.
  • the expanded angle mode may be defined as an angle mode corresponding to one of intra prediction modes ⁇ -14, -13, ..., -1 ⁇ and ⁇ 67, 68, ..., 80 ⁇ .
  • a total number of intra prediction modes included in the intra prediction mode set may vary depending on the configuration of the basic angle mode and the expanded angle mode.
  • the interval between the expanded angle modes may be configured on the basis of the interval between the basic angle modes.
  • the interval between the expanded angle modes ⁇ 3, 5, 7, ..., 65 ⁇ may be configured on the basis of the interval between the basic angle modes ⁇ 2, 4, 6, ..., 66 ⁇ .
  • the interval between the expanded angle modes ⁇ -10, -9, ..., -1 ⁇ may be determined on the basis of the interval between the corresponding basic angle modes ⁇ 56, 57, ..., 65 ⁇ on the opposite side
  • the interval between the expanded angle modes ⁇ 67, 68, ..., 76 ⁇ may be determined on the basis of the interval between the corresponding basic angle modes ⁇ 3, 4, ..., 12 ⁇ on the opposite side.
  • the angle interval between the expanded angle modes may be configured to be the same as the angle interval between the basic angle modes.
  • the number of expanded angle modes in the intra prediction mode set may be configured to be equal to or smaller than the number of basic angle modes.
  • the expanded angle mode may be signaled on the basis of the basic angle mode.
  • the wide angle mode that is, the expanded angle mode
  • the replaced basic angle mode may be an angle mode corresponding to the opposite side of the wide angle mode. That is, the replaced basic angle mode may be an angle mode corresponding to an angle in a direction opposite to the angle indicated by the wide angle mode or corresponding to an angle having a difference by a preset offset index from the angle in the opposite direction.
  • the preset offset index is 1.
  • An intra prediction mode index corresponding to the replaced basic angle mode may be mapped to the wide angle mode again and signal the corresponding wide angle mode.
  • wide angle modes ⁇ -10, -9, ..., -1 ⁇ may be signaled by intra prediction mode indexes ⁇ 57, 58, ..., 66 ⁇
  • wide angle modes ⁇ 67, 68, ..., 76 ⁇ may be signaled by intra prediction mode indexes ⁇ 2, 3, ..., 11 ⁇ .
  • the prediction mode indexes for the basic angle modes signal the expanded angle modes
  • the prediction mode indexes in the same set may be used for signaling intra prediction modes even though configurations of the angle modes used for intra prediction of blocks are different from each other. Accordingly, it is possible to minimize signaling overhead according to a change in the configuration of the intra prediction mode.
  • whether to use the expanded angle mode may be determined on the basis of at least one of the shape and the size of the current block.
  • the expanded angle mode when the size of the current block is larger than a preset size, the expanded angle mode may be used for intra prediction of the current block. Otherwise, only the basic angle mode may be used for intra prediction of the current block.
  • the expanded angle mode when the current block is not a rectangular block, the expanded angle mode may be used for intra prediction of the current block. When the current block is a rectangular block, only the basic angle mode may be used for intra prediction of the current block.
  • the intra predictor determines reference pixels and/or interpolated reference pixels to be used for intra prediction of the current block on the basis of intra prediction mode information of the current block.
  • the intra prediction mode index indicates a specific angle mode
  • a reference pixel or an interpolated reference pixel corresponding to the specific angle from the current pixel of the current block may be used for prediction of the current pixel.
  • reference pixels and/or interpolated reference pixels in different sets may be used for intra prediction according to the intra prediction mode.
  • a decoder reconstructs pixel values of the current block by adding a residual signal of the current block acquired from an inverse converter to an intra prediction value of the current block.
  • FIG. 7 illustrates inter prediction according to an embodiment of the present disclosure.
  • prediction may be performed from another picture or block. That is, encoding or decoding may be performed on the basis of similarity with another picture or block. A part similar to another picture or block may be encoded or decoded through omitted signaling in the current picture or block, which is described below in more detail. Prediction in units of blocks is possible.
  • the current picture or some of the current picture may be predicted using similarity with the reference picture or some of the reference picture.
  • a rectangle indicated by solid lines within the current picture of FIG. 7 is a block to be currently encoded or decoded
  • the current block may be predicted from a rectangle indicated by dotted lines of the reference picture.
  • Information indicating the block to which the current block should refer may include a motion vector.
  • the motion vector may be a vector indicating a relative location between the current block and the reference block within the picture.
  • a vector indicating how to move the current block to the block to which the current block should refer may be a motion vector. That is, the block appearing when the current block moves according to the motion vector may be a part indicated by dotted lines in the current picture of FIG. 7 , and the location of the part indicated by the dotted lines in the picture may be the same as the location of the reference block of the reference picture.
  • Information indicating the block to which the current block should refer may include information indicating the reference picture.
  • the information indicating the reference picture may include a reference picture list and a reference picture index.
  • the reference picture list is a list indicating reference pictures, and a reference block may be used in a reference picture included in the reference picture list. That is, the current block may be predicted from the reference picture included in the reference picture list.
  • a reference picture index may be an index indicating a reference picture to be used.
  • FIG. 8 illustrates a motion vector signaling method according to an embodiment of the present disclosure.
  • a Motion Vector may be generated on the basis of a Motion Vector Predictor (MVP).
  • MVP Motion Vector Predictor
  • MVP may become a motion vector as shown below.
  • the motion vector may be based on a Motion Vector Difference (MVD) as shown below.
  • the MVD may be added to the MVP in order to indicate an accurate motion vector.
  • MV MVP + MVD
  • Motion vector information determined by an encoder in video coding may be transmitted to a decoder, and the decoder may generate a motion vector from the received motion vector information and determine a predicted block.
  • the motion vector information may include information on the MVP and the MVD.
  • elements of the motion vector information may vary depending on a mode. For example in a merge mode, the motion vector information may include information on the MVP but may not include the MVD.
  • the motion vector information may include information on the MVP and the MVD.
  • AMVP Advanced Motion Vector Prediction
  • the encoder and the decoder may generate MVP candidates through the same method. For example, the encoder and the decoder may generate the same MVP candidates in the same order.
  • the encoder may transmit an index indicating a determined MVP among the generated MVP candidates to the decoder, and the decoder may recognize the determined MVP and an MV on the basis of the index.
  • the MVP candidates and the method of generating the MVP candidates may include spatial candidates, temporal candidates, and the like.
  • the spatial candidate may be a motion vector for a block at a predetermined location from the current block.
  • the spatial candidate may be a motion vector corresponding to a block or a location which is adjacent or is not adjacent to the current block.
  • the temporal candidate may be a motion vector corresponding to a block within a picture different from the current picture.
  • the MVP candidates may include an affine motion vector, an ATMVP, an STMVP, a combination of the above-described motion vectors, an average vector of the above-described motion vectors, a zero motion vector, and the like.
  • the information indicating the reference picture may also be transmitted from the encoder to the decoder.
  • motion vector scaling may be performed. Motion vector scaling may be calculation based on a Picture Order Count (POC) of the current picture, a POC of the reference picture of the current block, a POC of the reference picture of the MVP candidate, and the MVP candidate.
  • POC Picture Order Count
  • FIG. 9 illustrates MVD syntax according to an embodiment of the present disclosure.
  • the MVD may be coded while a sign and an absolute value of the MVD are separated. That is, the sign and the absolute value of the MVD may be different syntaxes. Further, the absolute value of the MVD may be directly coded, but may be coded while including a flag indicating whether the absolute value is larger than N as illustrated in FIG. 9 . When the absolute value is larger than N, a value of (absolute value - N) may also be signaled. In the example of FIG. 9 , abs_mvd_greater0_flag may be transmitted, and the flag may indicate whether the absolute value is larger than 0. When abs_mvd_greater0_flag indicates that the absolute value is not larger than 0, it may be determined that the absolute value is 0.
  • abs_mvd_greater0_flag indicates that the absolute value is larger than 0
  • abs_mvd_greater1_flag may exist, and the flag may indicate whether the absolute value is larger than 1.
  • abs_mvd_greater1_flag indicates that the absolute value is not larger than 1, it may be determined that the absolute value is 1.
  • abs_mvd_greater1_flag indicates that the absolute value is larger than 1, additional syntax may exist.
  • abs_mvd_minus2 may exist, and may correspond to a value of (absolute value - 2).
  • abs_mvd_greater0_flag and abs_mvd_greater1_flag it indicates (absolute value - 2).
  • Binarization of abs_mvd_minus2 to a variable length is for signaling with smaller bits. For example, there are variable length binarization methods such as Exp-Golomb, truncated unary, truncated Rice, and the like.
  • mvd_sign_flag may be a flag indicating a sign of the MVD.
  • information other than the MVD may be separated into a sign and an absolute value, and the absolute value may be coded with a flag indicating whether the absolute value is larger than any value and a value obtained by subtracting any value from the absolute value.
  • [0] and [1] may indicate component indexes.
  • [0] and [1] may indicate an x-component and a y-component.
  • cpIdx may indicate a control point index.
  • the control point index may be an index corresponding to a control motion vector index in affine motion prediction.
  • cpIdx may be used as a preset value, for example, 0.
  • FIG. 10 illustrates Adaptive Motion Vector Resolution (AMVR) signaling according to an embodiment of the present disclosure.
  • the resolution may be indicated on the basis of a pixel (pel).
  • the motion vector or the MVD may be signaled in units of 1/4(quarter), 1/2(half), 1(integer), 2, or 4 pixels.
  • valueDetermined resolution * valuePerResolution
  • valueDetermined may be a value, that is, a motion vector or an MVD in the present embodiment.
  • valuePerResolution may be a value indicating valueDetermined in the [/resolution] unit.
  • a value signaled by the motion vector or the MVD when a value signaled by the motion vector or the MVD is not divisible by a resolution, an inaccurate value, which is not the best performance motion vector or MVD, may be transmitted due to rounding or the like.
  • the use of a high resolution may decrease inaccuracy but increase a value to be coded, and thus more bits may be used.
  • the use of a low resolution may increase inaccuracy but decrease a value to be coded, and thus fewer bits may be used.
  • the resolution may be adaptively applied to fit the unit.
  • the resolution may be signaled from the encoder to the decoder. Signaling of the resolution may be the signaling binarized with the variable length. In this case, when the signaling is performed with an index corresponding to the smallest value (the frontmost value), signaling overhead is reduced.
  • signaling indexes may match resolutions in the order from a high resolution (detailed signaling) to a low resolution.
  • FIG. 10 illustrates signaling of three resolutions.
  • the three signals may be 0, 10, and 11, and correspond to resolution 1, resolution 2, and resolution 3, respectively. Since signaling of resolution 1 needs 1 bit and signaling of the remaining resolutions need 2 bits, the signaling of resolution 1 has smaller signaling overhead.
  • resolution 1, resolution 2, and resolution 3 are 1/4, 1, and 4 pels, respectively.
  • the motion vector resolution may mean the resolution of the MVD in the present disclosure.
  • FIG. 11 illustrates inter prediction-related syntax according to an embodiment of the present disclosure.
  • an inter prediction method may include a skip mode, a merge mode, an inter mode, and the like.
  • a residual signal may not be transmitted.
  • an MV determination method which is the same as that in the merge mode may be used. Whether to use the skip mode may be determined according to a skip flag. Referring to FIG. 11 , whether to use the skip mode may be determined according to a value of cu_skip_flag.
  • no MVD may be used in the merge mode.
  • a motion vector may be determined on the basis of a motion candidate index.
  • Whether to use the merge mode may be determined according to a merge flag. Referring to FIG. 11 , whether to use the merge mode may be determined according to a value of the merge_flag. When the skip mode is not used, the merge mode may be used.
  • One candidate may be selectively used among one or more candidate list types in the skip mode or the merge mode.
  • a merge candidate or a subblock merge candidate may be used.
  • the merge candidate may include a spatial neighboring candidate, a temporal neighboring candidate, and the like.
  • the merge candidate may include a candidate using a motion vector for the entire current block (CU). That is, motion vectors of respective subblocks belonging to the current block may include the same candidate.
  • the subblock merge candidate may include a subblock-based temporal MV, an affine merge candidate, and the like.
  • the subblock merge candidate may include a candidate which may use different motion vector for respective subblocks of the current block (CU).
  • the affine merge candidate may be a method made through a scheme of determining a control point motion vector of affine motion prediction without using the MVD.
  • the subblock merge candidate may include methods of determining a motion vector in units of subblocks in the current block.
  • the subblock merge candidate may include a plane MV, a regression-based MV, an STMVP, and the like as well as the subblock-based temporal MV and the affine merge candidate.
  • the MVD may be used in the inter mode.
  • the MVP may be determined on the basis of a motion candidate index, and the motion vector may be determined on the basis of the MVP and the MVD.
  • Whether to use the inter mode may be determined according to information on whether other modes are used or not. In another embodiment, whether to use the inter mode may be determined by a flag.
  • FIG. 11 illustrates an example of using the inter mode in the case in which other modes, such as the skip mode and the merge mode, are not used.
  • the inter mode may include an AMVP mode, an affine inter mode, and the like.
  • the inter mode may be a mode of determining a motion vector on the basis of the MVP and the MVD.
  • the affine inter mode may be a method of using the MVD when determining a control point motion vector of affine motion prediction.
  • merge_subblock_flag indicating whether the subblock merge candidate is used may be parsed.
  • the specific condition may be a condition related to the block size.
  • the specific condition may be a condition related to a width, a height, an area, or the like, or may use a combination thereof.
  • the specific condition may be, for example, a condition in the case in which the width and the height of the current block (CU) are larger than or equal to a specific value.
  • merge_subblock_flag When merge_subblock_flag is parsed, the value may be inferred as 0.
  • merge_subblock_flag When merge_subblock_flag is 1, the subblock merge candidate may be used. When merge_subblock_flag is 0, the merge candidate may be used. merge_subblock_idx corresponding to a candidate index may be parsed when the subblock merge candidate is used, and merge_idx corresponding to a candidate index may be parsed when the merge candidate is used. When a maximum number of candidate lists is 1, no parsing may be performed. When merge_subblock_idx or merge_idx is not parsed, the value may be inferred as 0.
  • FIG. 11 illustrates a function of coding_unit, and the content related to intra prediction may be omitted or FIG. 11 may indicate the case in which inter prediction is determined.
  • FIG. 12 illustrates locations of spatial neighbors according to an embodiment of the present disclosure.
  • locations around the current block may be referred to when prediction is performed. This may mean that motion information corresponding to the locations around the current block is referred to.
  • the MVP or the MV may be configured on the basis of motion information corresponding to locations around the current block.
  • the locations therearound may be preset. When there are a plurality of locations therearound, the order in which the locations are referred to may be preset.
  • the locations therearound may include a spatial neighbor and a temporal neighbor.
  • locations corresponding to A0, A1, B0, B1, and B2 may be preset.
  • the locations may be luma locations.
  • A0, A1, B0, B1, and B2 may be (xCb - 1, yCb + cbHeight), (xCb - 1, yCb + cbHeight - 1), (xCb + cbWidth, yCb - 1), (xCb + cbWidth - 1, yCb - 1), and (xCb - 1, yCb - 1), respectively.
  • cbWidth and cbHeight may be the width and the height of the current block, respectively.
  • the spatial neighbors may be referred to in the order of A1, B1, B0, A0, and B2 in the merge mode.
  • a spatial candidate corresponding to a location of a spatial neighbor may be added to a candidate list.
  • a temporal candidate may be added as well as the spatial candidate, and may be behind the spatial candidate.
  • a motion vector corresponding to the temporal candidate may be called a collocated motion vector.
  • a zero motion vector may be added to the candidate list.
  • the zero motion vector may be a motion vector indicating the current block location.
  • the merge candidate list may include a history-based motion vector prediction candidate, a pairwise average candidate, and the like.
  • the candidates may be located behind the spatial candidate in the candidate list.
  • the history-based motion vector prediction candidate may be stored motion information.
  • the stored motion information may be motion information corresponding to a block decoded (encoded) before the current block.
  • the pairwise average candidate may be a candidate generated on the basis of candidates already added to the candidate list. For example, the pairwise average candidate may be an average of candidates already added to the candidate list.
  • the method of adding the candidates to the candidate list with reference to the locations around the current block may include a vector scaling process.
  • Motion vector scaling may be performed on the basis of a Picture Order Count (POC) of the reference picture of the referred motion information, a POC of a picture including the current block, a POC of the reference picture of the current block, referred motion information, and the like.
  • POC Picture Order Count
  • preset spatial neighbor locations may be grouped.
  • the groups may refer to a preset number of pieces of motion information.
  • group 1 may refer to a preset number of pieces of motion information
  • group 2 may refer to a preset number of pieces of motion information.
  • the preset number may be 1.
  • a reference order within the group may be preset.
  • a candidate addition order between groups may be preset.
  • group 1 may include A0 and A1
  • group 2 may include B0, B1, and B2.
  • candidates may be generated from motion information available in group 1, and candidates may be generated from motion information available in group 2.
  • Candidates from group 1 may be added to the candidate list and candidates from group 2 may be added to the candidate list sequentially.
  • the candidate list may be made as described above in the AMVP mode.
  • a scaled candidate When the candidate list is not full, a scaled candidate, a temporal candidate, a zero motion vector, and the like may be added.
  • FIG. 13 illustrates a current picture reference according to an embodiment of the present disclosure.
  • the reference picture may be a picture including the current block, that is, the current picture. Therefore, the block of the current picture may be referred to when the current block is predicted.
  • Such a technology may be called Current Picture Referencing (CPR).
  • the current block when CPR is used, the current block may be the only reference picture. In this case, inference may be performed without signaling indicating the reference picture.
  • the location of the reference block may be limited.
  • the location of the reference block may be limited on the basis of the location of the current block.
  • the location of the reference block may be limited to the inside of a CTU including the current block.
  • the location of the reference block may be limited to a location including at least some of the CTU including the current block. Limiting the location of the reference block may be to reduce memory load.
  • the signaling may be signaling in the larger unit including the current block. For example, signaling at a slice level or a tile level is possible. For example, signaling at a level at which parallel processing may be performed is possible.
  • CPR when the reference picture to which the current block refers is the current picture, CPR may be used. Alternatively, when the current picture is the only reference picture, CPR may be used. In addition, when the current block is a block which does not use intra prediction, CPR may be used. That is, for example, when a reference picture corresponding to the current block is the current picture, CPR may be used if intra prediction is not used.
  • information indicating that the current picture is the only reference picture may be indicated by a parameter of CurrPicIsOnlyRef.
  • using CPR may mean that the reference picture is the current picture.
  • using CPR may mean that the reference picture is the current picture and intra prediction is not used.
  • motion information when CPR is used, motion information may be indicated using the merge mode, the AMVP mode, and the like.
  • the current slice or tile may be configured as a P slice or a P tile.
  • a flag indicating the use of a dual tree may be configured as a value indicating the use of the dual tree.
  • the dual tree may mean that a tree corresponding to luma and a tree corresponding to chroma are different.
  • the current block indicated by solid lines may be within the current picture.
  • the reference block indicated by dotted lines may exist within the current picture.
  • the arrow may be motion information indicating the location of the reference block.
  • the configuration of a candidate list may become different.
  • a temporal candidate may not be added to the candidate list.
  • motion information referred to from surroundings may not be scaled.
  • FIG. 14 illustrates a spatial neighboring candidate reference method according to an embodiment of the present disclosure.
  • a candidate list configuration method may be different from the case in which no CPR is used.
  • a spatial neighboring candidate addition method may be different from the case in which no CPR is used.
  • motion information at a location beyond the range within which the reference block of CPR may be located may not be referred to.
  • motion information at a location beyond the range based on the range within which the reference block of CPR may be located may not be referred to.
  • the range within which the reference block of CPR may be located may be a CTU range to which the current block belongs.
  • motion information may not be referred to from the location beyond the current CTU.
  • a preset spatial neighbor location may be out of the range within which the reference block may be located.
  • the preset spatial neighbor location of FIG. 12 is referred to, if the current block borders a top boundary or a left boundary of the range within which the reference block may be located, a plurality of preset spatial neighbor locations may escape the range within which the reference block may be located.
  • the location of the reference block may be limited to the inside of the CTU. According to an embodiment, motion from the location beyond the range within which the reference block may be located may not be referred to. For example, when the current block is located at the boundary of the range which the reference block may have, the preset spatial neighbor location may escape the range within which the reference block may be located. In FIG. 14 , preset spatial neighbors around the current block are marked with small dotted rectangles. In this case, it may be determined that the location out of the CTU is not available.
  • motion information at the location has a narrow range in order to prevent the reference block of the current block or the reference block at the referred location from being beyond the limited range.
  • the reference block in the part marked as not available should not be out of the CTU to which the reference block belongs.
  • a y component of the motion information in the referred part of FIG. 14 should be 0.
  • an x component of the motion information in the referred part beyond the boundary should be 0.
  • the reference block is limited to the inside of the current CTU, only the inside of the CTU is used as the reference block, and thus there is little correlation between MVs.
  • a reference block of the current block or a neighboring block exceeds the CTU range if there are both x and y components of the MV in the outside of the CTU.
  • the current block or the neighboring block exceeds the CTU range if there is a y component of the MV of the upper block.
  • the neighboring block also may have used intra or CPR.
  • the neighboring MV may indicate a remote place and thus escape from the CTU. Since the neighboring MV indicates another picture, there may be little correlation.
  • motion information may be referred to.
  • motion information may not be referred to therefrom.
  • motion information at the spatial neighbor location may be referred to after being clipped to a range which a reference block corresponding to the current block may have.
  • a total number of candidates may be reduced.
  • candidate index signaling For example, when a spatial neighboring candidate at a preset location and a zero motion vector may be added to a candidate list or when i) a spatial neighboring candidate at a preset location, ii) a limited number of HMVP candidates or a pairwise average candidate, or iii) a zero motion vector may be added to a candidate list, if the available spatial neighbor location is reduced, a total number of candidates may be reduced.
  • the number of bits may be reduced by binarizing an index through a reduction in a maximum value of a candidate index.
  • a candidate which may be added after the spatial neighbor candidate, may be added to the front of the candidate list, and thus the number of bits corresponding to a candidate index may be reduced when the candidate, which may be added after the spatial neighbor candidate, is used.
  • FIG. 15 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
  • the number of candidates which may refer to motion information at preset locations may be small.
  • available spatial neighbor locations may be reduced.
  • the decoder and the encoder may determine that there are no candidates corresponding to the corresponding spatial neighbor. In this case, the location of a zero MV may be moved forward in the candidate list.
  • a candidate index indicates a zero MV through the candidate index according to an embodiment of the present disclosure. For example, when some of the spatial neighbor locations are excluded according to the current block location and a range in which the spatial neighbor locations may be referred to as neighbors, if the number of indexes is larger than or equal to the number of all of the remaining available candidates, the zero motion vector may be determined. For example, when the zero motion vector is added after the spatial neighbor candidate, if the number of indexes is larger than or equal to the number of available spatial neighbor candidates, the zero motion vector may be determined.
  • the spatial neighbor locations are excluded according to the current block location and a range in which the spatial neighbor locations may be referred to as neighbors
  • the number of remaining spatial neighbor locations is M and a value of an index starting from 0 is M
  • a candidate added after the spatial neighbor candidate may be determined and, if the zero MV comes after the spatial neighbor candidate, the zero MV may be determined.
  • the current block borders the left boundary of the range within which the reference block may be located.
  • the left location of the current block may not be used. Accordingly, only the locations except for the left location may be used.
  • locations A0, A1, and B3 described in FIG. 12 may not be used. Accordingly, only B0 and B1 may be used.
  • both B0 and B1 may be used in the merge mode, and only one of B0 and B1 may be used in the AMVP mode. Accordingly, when an index is 2, starting from 0 in the merge mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. Further, when the index is 1, starting from 0 in the AMVP mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. That is, when the zero MV comes after the spatial neighbor candidate, the zero MV may be determined by the index.
  • the current block borders the upper boundary of the range within which the reference block may be located.
  • the upper location of the current block may not be used. Accordingly, only the locations except for the upper location of the current block may be used.
  • locations B0, B1, and B2 described in FIG. 12 may not be used. Accordingly, only A0 and A1 are available.
  • both A0 and A1 may be used in the merge mode, and only one of A0 and A1 may be used in the AMVP mode. Accordingly, when the index is 2, starting from 0 in the merge mode, it may be determined that the candidate is a candidate which comes after a spatial neighbor candidate. Further, when the index is 1, starting from 0 in the AMVP mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. That is, when a zero MV comes after the spatial neighbor candidate, the zero MV may be determined by the index.
  • the configuration of an AMVP candidate list is illustrated in the case in which the location of the reference block is limited to the current CTU range and motion information at the location out of the current CTU is not referred to.
  • a maximum number of spatial neighbor candidates may be 1, and the remaining candidates may be filled with zero MVs.
  • the location of one of A0 and A1 and the location of one of B0, B1, and B2 may be used as spatial neighbor candidates. Accordingly, when the current block borders the left boundary like the block A in FIG. 15 , the location of one of B0 and B1 may be used as the spatial neighbor candidate.
  • the location of one of A0 and A1 may be used as the spatial neighbor candidate. Accordingly, when the candidate index is 1, it may be determined that the MVP is the zero MV.
  • MVD coding may be changed.
  • a sign of an MVD component may be signaled and determined without any syntax parsing.
  • FIG. 16 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
  • motion information at the location out of a picture may not be referred to. This may include both the case in which the CPR is used and the case in which the CPR is not used.
  • the location which the reference block may have in the CPR may be inside the picture.
  • the location which the reference block may have in the CPR may be an area including the inside of the picture.
  • spatial neighbor locations may be limited. This is because motion information at the location out of the picture may not be referred to.
  • the current block borders the left boundary of the picture in the case of the block marked with A in FIG. 16
  • the left location of the current block may not be referred to.
  • the upper location of the current block in the case of the block marked with B in FIG. 16 .
  • a temporal candidate, a scaled candidate, or the like may not be used.
  • a maximum number of spatial candidates available when an AMVP candidate list is configured may be 1.
  • a value indicated by a candidate index (a flag if a maximum number of candidates is 2) is 1 (when the candidate index starts from 0)
  • a motion vector corresponding to the candidate index may be determined as a zero motion vector.
  • a maximum number of locations which may be referred to may be 2. Therefore, it may be determined that a motion vector corresponding to the case in which the number of merge candidate indexes is larger than or equal to a maximum number which may be referred to does not come from the spatial neighbor candidates.
  • the zero MV may be determined through the candidate index in the above case.
  • a maximum value of a candidate index corresponding to a variable length may be configured as (the number of available spatial neighbor candidates - 1). Accordingly, the number of bits of any index value may be reduced.
  • a spatial neighbor candidate, an HMVP candidate, a pairwise average candidate, and the like may be included in a candidate list in the merge mode using the CPR.
  • the number of available pairwise average candidates may be reduced. This is because the number of combinations of spatial neighbor candidates may be reduced. If available spatial neighbor candidate locations are 2 in embodiments of FIGs. 12 and 16 , the number of pairwise average candidates may be 1.
  • an HMVP candidate may not be added to the candidate list in the preset part in which the space for storing the history is reset in the HMVP.
  • the maximum number of available candidates may be further reduced. For example, the maximum number of spatial neighbor locations in the left boundary of the picture may be limited to 2, and the space for storing the history in the HMVP may be reset in a start part of the CTU row. In this case, a maximum of two spatial neighbor candidates may be included in the candidate list, and the HMVP candidate may be included.
  • the pairwise average candidate may be added, there is only one combination when the pairwise average is made. Accordingly, when the pairwise average candidate may be added, there may be a maximum of three candidates and a zero motion vector. In an embodiment in which the pairwise average candidate may not be added, there may be a maximum of two candidates and a zero motion vector. Accordingly, it is possible to reduce the maximum value of the candidate index and reduce the number of bits of the index.
  • the pairwise average candidate when the CPR is used, the pairwise average candidate may not be used. This is because useful motion vectors are more limited in the case in which the CPR is used than in the case in which the CPR is not used.
  • the HMVP candidate when the current block is adjacent to the left boundary of the picture, the HMVP candidate may not be used.
  • the HMVP candidate may not be used. If the space for storing the history of the HMVP is reset at the beginning of the CTU row, motion information may not be varied in the history when the CTU in the leftmost side of the picture is coded. Accordingly, in the case of a block adjacent to the left boundary of the picture, an x component of a motion vector should be 0 or positive.
  • a direction of the motion vector stored in the history is limited, and thus a block adjacent to the left boundary may have difficulty in using the same. Accordingly, when the current block is adjacent to the left boundary of the picture, the HMVP candidate may not be used.
  • a maximum of two spatial neighbor candidates, a maximum of one pairwise average candidate, and a zero MV may be added to the merge candidate list.
  • the maximum value of the index may be binarized to 3 (if the index starts from 0) when the zero MV may be added, and the maximum value of the index may be binarized to 2 (if the index starts from 0) when the zero MV may not be added.
  • the current block being adjacent to the left, right, upper, and lower boundaries of the picture may be determined on the basis of coordinates of the current block, the width of the current block, the height of the current block, the width of the current picture, the height of the current picture, and the like.
  • Uppermost leftmost coordinates of the current block may be (x0, y0).
  • the width and the height of the current block may be cbWidth and cbHeight, respectively.
  • FIG. 17 illustrates the use of spatial neighbor candidates according to an embodiment of the present disclosure.
  • the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use intra prediction.
  • the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use inter prediction which may be referred to.
  • the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use inter prediction using the CPR.
  • the AMVP mode among the spatial neighbor locations, all of the left locations or all of the upper locations have passed through intra prediction (except for the part beyond the picture or the location which has not been decoded).
  • the AMVP mode among the spatial neighbor locations, none of the left locations or none of the upper locations have passed through inter prediction which may be referred to (except for the part beyond the picture or the location which has not been decoded). That is, none of the left locations or none of the upper locations may refer to the motion information.
  • the number of available spatial neighbor candidates may be 1, and when an index is 1, a zero MV may be determined.
  • the number of available spatial neighbor candidates may be 0, and when an index is 0, a zero MV may be determined.
  • the number of available spatial neighbor candidates may be 0 and index transmission and parsing may be omitted. Further, the index may be 0 and the zero MV may be inferred.
  • the locations may be excluded in the syntax parsing step and it is possible to change a maximum number of candidates.
  • the case in which the motion information may not be referred to may include the case in which the corresponding location uses intra prediction.
  • the case in which the motion information may not be referred to may include the case in which the corresponding location escapes the picture or has not been decoded in a coding order.
  • the motion information may not be referred to in all of the preset locations in the merge mode, no spatial neighbor candidate may be added to the candidate list. Accordingly, it is possible to use the HMVP candidate, the pairwise average candidate, and the like as candidates. In this case, when the current block is positioned at the location at which the space for storing the history of the HMVP is reset as described before, the HMVP candidate also may not be added. Further, when the pairwise average candidate is ahead of the HMVP candidate or the HMVP candidate may not be added, the pairwise average candidate also may not appear. Accordingly, only the zero MV may remain as the available candidate. However, in the CPR, the zero MV may be meaningless.
  • signaling indicating the merge mode may be omitted (transmission and parsing may be omitted). Further, it may be inferred that the merge mode is not used.
  • signaling indicating the merge mode may be merge_flag.
  • the CPR when the CPR is used, none of the preset spatial neighbor locations around the current block may be used (including the case in which the corresponding locations escape the picture, the case in which the corresponding locations have passed through intra prediction, and the case in which the corresponding locations do not use the CPR), and when the current block is positioned at the location at which the space for storing the history of the HMVP is reset, signaling indicating the merge mode may be omitted and it may be inferred that the merge mode is not used.
  • the location at which the space for storing the history of the HMVP is reset may be the same as a location at which the CTU row starts or a preset location at which the HMVP candidate is not used.
  • the motion information may not be referred to except for one preset spatial neighbor location.
  • the case in which the motion information may not be referred to may include the case in which the corresponding location escapes the picture, the case in which the corresponding location has passed through intra prediction, and the case in which the corresponding location does not use the CPR.
  • pairwise average candidates may not be made. Since the space for storing the history of the HMVP is a reset part, the HMVP candidate may not be included. Accordingly, at such a location, a maximum value of the candidate index may be changed and binarized.
  • the motion information may not be referred to at any of the remaining locations other than one preset spatial neighbor location, and a maximum of one spatial neighbor candidate, a maximum of 0 HMVP candidates, and a maximum of 0 pairwise average candidates may be made in the part in which the space for storing the history of the HMVP is reset.
  • a candidate index may be signaled by a 1-bit flag.
  • transmission and parsing of the candidate index may be omitted, and the index may be inferred as 0.
  • the number of available candidates may be only one, in which case transmission and parsing of the candidate index may be omitted and the index may be inferred as 0.
  • FIG. 18 illustrates a motion vector according to an embodiment of the present disclosure.
  • a value which the motion vector may have may be limited according to a coding order. Further, this may correspond to the case in which the CPR is used.
  • the motion vector may not indicate a lower right direction according to the coding order. This is because a block on the right side or the lower side of the current block has not been decoded according to the coding order.
  • the MVP may be the zero MV.
  • the fact that the MVP is the zero MV may be known during the syntax parsing step.
  • the MV may not correspond to (x component > -(current block width) && y component > (-current block height)). That is, when the zero MV is used as the MVP, the MVD may not correspond to (x component > -(current block width) && y component > (-current block height)).
  • a range of the y component may be restricted according to the x component of the MV or the MVD.
  • the component of the MVD may be separated and coded.
  • the MVD may be coded as illustrated in FIG. 9 .
  • component 1 and component 2 may be separately coded.
  • component 1 and component 2 may be sequentially coded.
  • component 1 and component 2 may be an x component and a y component, respectively.
  • the following embodiments may be a case in which the MVP is the zero MV.
  • component 2 when component 1 is larger than 0, may be smaller than 0. More specifically, when component 1 is larger than 0, an absolute value of component 2 may be larger than or equal to a minimum block size. When component 1 is larger than 0, the absolute value of component 2 may be larger than or equal to a current block height.
  • component 2 when component 1 is 0, component 2 may not be 0. When component 1 is 0, component 2 may be smaller than 0. More specifically, when component 1 is 0, the absolute value of component 2 may be larger than or equal to the minimum block size. When component 1 is 0, the absolute value of component 2 may be larger than or equal to the current block height.
  • component 2 when component 1 is smaller than 0 and the absolute value thereof is smaller than the minimum block size, component 2 may not be 0. Further, in this case, component 2 may be smaller than 0. More specifically, in this case, the absolute value of component 2 may be larger than or equal to the minimum block size. In this case, the absolute value of component 2 may be larger than or equal to the current block height.
  • component 2 when component 1 is smaller than 0 and the absolute value thereof is smaller than the current block width, component 2 may not be 0. Further, in this case, component 2 may be smaller than 0. More specifically, in this case, the absolute value of component 2 may be larger than or equal to the minimum block size. In this case, the absolute value of component 2 may be larger than or equal to the current block height.
  • the x-component value of the MV in the current block may be as illustrated in the drawing.
  • the reference block of the CPR may be within a shaded area in FIG. 18 .
  • a value which the y component may have may be limited. That is, the y-component value may be limited according to the x-component value.
  • FIG. 19 illustrates MVD syntax according to an embodiment of the present disclosure.
  • the MVD may be coded while being separated into the x component and the y component.
  • values corresponding to [0] and [1] may be the x component and the y component, respectively.
  • abs_mvd_greater0_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 0.
  • abs_mvd_greater1_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 1.
  • abs_mvd_minus2 may be a value obtained by subtracting 2 from the absolute value of the corresponding component.
  • mvd_sign_flag may be a flag indicating a sign of the corresponding component. The value of 0 of mvd_sign_flag may indicate positive and the value of 1 of mvd_sign_flag may indicate negative.
  • FIG. 18 may be reflected in MVD coding syntax of FIG. 19 .
  • the condition "zeroMVP" may indicate the case in which the MVP is the zero MV and the CPR is used. That is, in the case in which the MVP is the zero MV and the CPR is used, the zero MVP may be true.
  • the condition indicating that the MVP is the zero MV may follow the embodiments illustrated in FIGs. 14 to 17 . According to the aforementioned embodiments, whether the MVP is the zero MV may be known on the basis of the location of the current block or the candidate index.
  • abs_mvd_greater0_flag[1] may not be parsed. Further, in this case, abs_mvd_greater0_flag[1] may be inferred as a value indicating non zero. In this case, abs_mvd_greater0_flag[1] may be inferred as 1.
  • the absolute value of the y component may be larger than 1. This is because the current block height is larger than 1. Accordingly, in this case, abs_mvd_greater1_flag[1] may not be parsed. Further, in this case, abs_mvd_greater1_flag[1] may be inferred as a value indicating that the absolute value is larger than 1. In this case, abs_mvd_greater1_flag[1] may be inferred as 1. In the conventional MVD coding before the CPR, 0 was inferred when abs_mvd_greater1_flag does not exist.
  • an inferred value may vary depending on a condition. For example, when abs_mvd_greater1_flag[compIdx] does not exist, if abs_mvd_greater0_flag[compIdx] is 0, 0 may be inferred. When abs_mvd_greater1_flag[compIdx] is 1, 1 may be inferred. Alternatively, for example, when abs_mvd_greater1_flag[compIdx] does not exist, if abs_mvd_greater0_flag[compIdx] is 0, 0 may be inferred.
  • the y component in the case of the zero MVP, if the x component is a positive value or 0, the y component may be a negative value. Accordingly, in this case, mvd_sign_flag of the y component may not be parsed. Further in this case, mvd_sign_flag may be inferred as a value indicating a negative value. In this case, mvd_sign_flag may be inferred as 1. Accordingly, in the case of the zero MVP and the case in which mvd_sign_flag[0] is 0, mvd_sign_flag[1] may not be parsed and may be inferred as 1. Accordingly, in the case of the zero MVP and the case in which mvd_sign_flag[0] is 0, mvd_sign_flag[1] may not be parsed and may be inferred as 1.
  • FIG. 20 illustrates a motion vector according to an embodiment of the present disclosure.
  • a value which the motion vector may have may be limited according to a range within which a reference block may be located. Further, this may correspond to the case in which the CPR is used. For example, the motion vector may be configured to not escape the range within which the reference block may be located.
  • the motion vector when the current block is adjacent to the boundary of the range within which the reference block may be located, the motion vector may be a direction opposite to the adjacent boundary. That is, when the current block is adjacent to the left boundary or the right boundary of the range within which the reference block may be located, the x component may be larger than or equal to 0 or equal to or smaller than 0. When the current block is adjacent to the upper boundary or the lower boundary of the range within which the reference block may be located, the y component may be larger than or equal to 0 or smaller than or equal to 0.
  • the range within which the reference block may be located may be a CTU range to which the current block belongs.
  • the MVP may be the zero MV.
  • the fact that the MVP is the zero MV may be known during the syntax parsing step.
  • the above description about the motion vector may be applied to the MVD.
  • the location which the reference block of the CPR may have may be limited within the CTU to which the current block belongs.
  • the x component of the motion vector when the current block is adjacent to the left boundary as indicated by A, the x component of the motion vector may be larger than or equal to 0.
  • the y component of the motion vector when the current block is adjacent to the upper boundary as indicated by B, the y component of the motion vector may be larger than or equal to 0.
  • FIG. 21 illustrates MVD syntax according to an embodiment of the present disclosure.
  • the MVD may be coded while being separated into the x component and the y component.
  • values corresponding o [0] and [1] may be the x component and the y component, respectively.
  • abs_mvd_greater0_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 0.
  • abs_mvd_greater1_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 1.
  • abs_mvd_minus2 may be a value obtained by subtracting 2 from the absolute value of the corresponding component.
  • mvd_sign_flag may be a flag indicating a sign of the corresponding component. The value of 0 of mvd_sign_flag may indicate positive and the value of 1 of mvd_sign_flag may indicate negative.
  • FIG. 20 may be reflected in MVD coding syntax of FIG. 21 .
  • the condition "zeroMVP" may indicate the case in which the MVP is the zero MV and the CPR is used. That is, in the case in which the MVP is the zero MV and the CPR is used, the zero MVP may be true.
  • the condition indicating that the MVP is the zero MV may follow the embodiments illustrated in FIGs. 14 to 17 . According to the aforementioned embodiments, the fact that the MVP is the zero MV may be known on the basis of the location of the current block or the candidate index.
  • the conditions indicating that the current block is adjacent to the left, right, upper, and lower boundaries are expressed as left_boundary, right_boundary, upper_boundary, and lower_boundary, respectively.
  • the fact that the current block is adjacent to the boundary may be determined on the basis of the coordinates of the current block, the width of the current block, the height of the current block, the width of a range available as the location of the reference block, the height of the range available as the location of the reference block, and the like.
  • upper left coordinates of the current block may be (x0, y0).
  • the width and the height of the current block may be cbWidth and cbHeight, respectively.
  • the width and the height of the range available as the location of the reference block may be rWidth and rHeight, respectively.
  • the current block may be adjacent to the left boundary.
  • the current block may be adjacent to the right boundary.
  • the current block may be adjacent to the upper boundary.
  • the current block may be adjacent to the lower boundary.
  • rWidth and rHeight may be the width and the height of the CTU(CTB).
  • the sign of the MVD may be determined.
  • mvd_sign_flag[0] may not be parsed and a value (for example, 0) indicating positive may be inferred.
  • mvd_sign_flag[0] may not be parsed and a value (for example, 1) indicating negative may be inferred.
  • mvd_sign_flag[1] may not be parsed and a value (for example, 0) indicating positive may be inferred.
  • mvd_sign_flag[1] may not be parsed and a value (for example, 1) indicating negative may be inferred.
  • abs_mvd_greater0_flag, abs_mvd_greater1_flag, abs_mvd_minus2, and mvd_sign_flag may be sequentially coded, but if the order is changed, different embodiments may be performed. No syntax may be parsed but may be inferred on the basis of the location of the current block, the zero MVP, the range within which the reference block may be located, another syntax value which is already known, and the like.
  • FIG. 22 illustrates MVD syntax according to an embodiment of the present disclosure.
  • FIG. 22 a combination of the embodiments illustrated in FIGs. 18 to 21 may be implemented. Accordingly, the number of bits required for mvd coding may be reduced.
  • a sign of the MVD may be determined without parsing such that the MVD does not indicate a reference block beyond an available range.
  • the absolute value may be determined before the signal of the MVD is determined as illustrated in the embodiments of FIGs. 9 , 19 , and 21 . If
  • FIG. 23 illustrates the block and the size according to an embodiment of the present disclosure.
  • the width or the height of the current block may be the maximum width or the maximum height.
  • motion information may not be referred to at a preset spatial neighbor location. This may follow the coding order.
  • the width of the current block is the maximum width
  • motion information may not be referred to from the right location of the current block.
  • motion information may not be referred to from B0.
  • the height of the current block is the maximum height
  • motion information may not be referred to from the lower location of the current block.
  • the motion information may not be referred to from A0.
  • the number of spatial neighbor locations at which the motion information may be referred to may be reduced to 1.
  • the motion information may not be referred to from A0, A1, B0, and B2 of FIG. 12 .
  • the motion information may not be referred to from A0, B0, B1, and B2.
  • FIG. 24 illustrates the configuration of a merge candidate list according to an embodiment of the present disclosure.
  • a method of configuring the merge candidate list when the CPR is used may be different from that when the CPR is not used. For example, when the CPR is not used, some of candidates which may be added to the merge candidate list may not be added to the merge candidate list if the CPR is used.
  • the zero MV when the CPR is used, the zero MV may not be used. This is because a reference block indicated by the zero MV within the current picture may be the current block.
  • a temporal MV may not be used. This is because a picture other than the current picture may not be referred to when the CPR is used,
  • the HMVP candidate or the pairwise average candidate may not be used. In this case, it is possible to change index signaling as described in the embodiments of the drawings above.
  • a candidate based on the HMVP candidate or the pairwise average candidate may be used.
  • a subblock merge mode when the CPR is used, a subblock merge mode may not be used.
  • the subblock merge mode may be the same as described above. Accordingly, when the CPR is used, a flag indicating the subblock merge mode may not be parsed and may be inferred.
  • a set of preset spatial neighbor locations when the CPR is used may be different from a set of preset spatial neighbor locations when the CPR is not used.
  • one of B0 and B1 may not be used at the preset location of FIG. 12 .
  • the motion information may not be referred to from the location B0.
  • one of A0 and A1 may not be used at the preset location of FIG. 12 .
  • the motion information may not be referred to from the location A0. This is because the motion information when the CPR is used may not be required to be relatively complex and various. Alternatively, this is because motion information from the close location may be similar when the CPR is used.
  • FIG. 25 illustrates the block location and syntax according to an embodiment of the present disclosure.
  • the zero MV when the CPR is used, the zero MV may not be used as the MVP in the AMVP mode. In this case, through a combination with the embodiment of FIG. 15 , only one spatial candidate may be added to the candidate list according to the location of the current block. When the zero MV is not used as the MVP, only one candidate may exist in the MVP candidate list. In this case, the candidate index may not be parsed. Further, in this case, the candidate index may be inferred as 0.
  • the current block is adjacent to the left boundary or the upper boundary of the range which the reference block may have.
  • motion information from the location beyond the range which the reference block may have may not be referred to.
  • the AMVP mode if the zero MV is not used as the MVP, a maximum number of available MVP candidates may be 1. Accordingly, as illustrated in FIG. 25(b) , mvp_l0_flag and mvp_l1_flag indicating the candidate index may not be parsed. In this case, 0 may be inferred.
  • the case in which the CPR is used is indicated by CurrPicIsOnlyRef. 10 and 11 may indicate reference lists 0 and 1, respectively.
  • the CPR is used, the current picture may be the only reference picture, and thus there may be the MV only for one reference list. In this case, MV-related syntax also may be parsed for only one reference list.
  • FIG. 26 illustrates the resetting of the space for storing the history of the HMVP according to an embodiment of the present disclosure.
  • the space for storing the history of the HMVP at the preset location may be reset.
  • the space for storing the history of the HMVP may be called an HMVP table.
  • the preset location may be different in the case in which the CPR is used and the case in which the CPR is not used.
  • the HMVP table may be reset at the beginning of the CTU row.
  • the HMVP table may be reset at the beginning of a range in which the reference block may exist.
  • the HMVP table may be reset at the beginning of each CTU.
  • more preset locations at which the HMVP table is reset may exist (more frequently) than the case in which the CPR is not used.
  • Each small rectangle in FIG. 26 may indicate a range in which a reference block may exist or a CTU range. Further, a part marked with an X may be a part in which the HMVP table is reset. When the CPR is not used as illustrated in the top side of FIG. 26 , the HMVP table may be reset at the beginning of the CTU row. When the CPR is used as illustrated in the bottom side of FIG. 26 , the HMVP table may be reset at the beginning of the CTU.
  • a method of coding the MVD when the CPR is used may be different from a method of coding the MVD when the CPR is not used.
  • the coding method as illustrated in FIG. 9 may be used. This is because a range of the available MV according to the coding order when the CPR is used may be different from that when the CPR is not used.
  • a scheme of separately coding the x component and the y component may not be used.
  • a coding scheme based on an absolute value and a direction of a vector may be used.
  • a reference point indicated by the MV when the MVP is the zero MV may be different from the conventional vector (vector from the upper left side of the current block).
  • the CPR when the CPR is used, syntax different from that described in FIGs. 9 , 19 , and 21 may be used.
  • a flag indicating whether an absolute value is larger than any value the value may be different in the case in which CPR is used and the case in which CPR is not used. Accordingly, a value obtained by subtracting any value from the absolute value may be signaled.
  • the CPR when the CPR is used, there may be a flag indicating whether the absolute value is larger than the minimum block size.
  • a flag indicating whether the absolute value is larger than the width or the height of the current block may be used.
  • a flag indicating whether the absolute value is larger than the width of the current block may be used for the x component, and a flag indicating whether the absolute value is larger than the height of the current block may be used for the y component.
  • a shared merge list may not be used.
  • the shared merge list may correspond to a technology by which a plurality of blocks (for example, coding units) use the same merge list.
  • the shared merge list may be used to facilitate parallel processing.
  • the CPR when the CPR is used, the current picture is used as the reference block, and thus the corresponding part of the current picture should be reconstructed and facilitation of parallel processing may not be worth much.
  • the CPR if the shared merge list is used, the accuracy may be reduced or the number of available candidates may be too small.
  • a reference of grouping blocks using the same merge list in the shared merge list may be different from that when the CPR is not used.
  • the CPR when the CPR is used, some of the methods used when the CPR is not used may not be used. Alternatively, according to an embodiment of the present disclosure, when the CPR is used, some of the methods used when the CPR is not used may be differently used.
  • the method used when the CPR is not used may include a prediction mode and the like.
  • FIG. 27 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • the CPR may also be called an Intra Block Copy (IBC) or a Block Copy (BC). Accordingly, a CPR mode may be named an IBC mode or a BC mode.
  • IBC Intra Block Copy
  • BC Block Copy
  • the IBC may exist as an independent prediction mode. That is, the intra prediction and the inter prediction may be MODE_INTRA and MODE_INTER, respectively, and there may be M0DE_IBC different from MODE_INTRA and MODE_INTER. Further, as illustrated in the prior figures, MODE_INTRA, MODE_INTER, and MODE_IBC may be indicated by CuPredMode values.
  • a tile group may be a unit higher than a CU, a CTU, a PU, and the like. Further, the tile group may be a unit in which parallel processing is possible.
  • a Bi-predictive (B) tile group may use intra prediction or inter prediction, the IBC, and the like.
  • the B tile group may use a maximum of two motion vectors and a maximum of two reference indexes in the block.
  • the B tile group may use a maximum of one or more motion vectors and a maximum of one or more reference indexes in the block.
  • Intra prediction may be the concept including the IBC scheme. Intra prediction may be a prediction method referring to only the current picture. Inter prediction may be a method of referring to a picture other than the current picture as the reference picture.
  • a Predictive (P) tile group may use intra prediction or inter prediction, the IBC, and the like.
  • the P tile group may use a maximum of one motion vector and a maximum of one reference index in the block.
  • the B tile group may use motion vectors are not larger than two and reference indexes which are not larger than two in the block.
  • An Intra (I) tile group may use intra prediction and the IBC.
  • the I tile group may not refer to a picture other than the current picture as the reference picture.
  • sps_ibc_enabled_flag may be signaling at a higher level indicating whether the IBC is used.
  • sps_ibc_enabled_flag may be signaling in a sequence parameter set indicating whether the IBC is used. The IBC may not be used when sps_ibc_enabled_flag is configured as 0, and may not be used when sps_ibc_enabled_flag is configured as 1.
  • sps_ibc_enabled_flag may be expressed as sps_bc_enabled_flag.
  • pred_mode_flag may be named a prediction mode flag
  • pred_mode_ibc_flag may be named a BC mode flag.
  • tile_group_type may indicate a tile group type.
  • the tile group type may include the I tile group, the P tile group, and the B tile group as described above. Further, I, P, and B of values of tile _group_type may indicate the I tile group, the P tile group, and the B tile group, respectively.
  • cu_skip_flag 1, pred_mode_flag may not be parsed.
  • tile_group_type is 1, pred_mode_flag may not be parsed.
  • pred_mode_ibc_flag may not be parsed. Further, it is possible to parse pred_mode_ibc_flag when sps_ibc_enabled_flag is 1, and it is possible to not parse pred_mode_ibc_flag when sps_ibc_enabled_flag is 0.
  • the block size condition corresponds to the case in which both cbWidth and cbHeight are smaller than 32.
  • CuPredMode when CuPredMode is MODE_INTRA, it is possible to parse an intra prediction-related syntax element.
  • CuPredMode when CuPredMode is MODE_INTRA, it is possible to not parse a motion vector-related syntax element.
  • the IBC-related syntax element may include a motion vector-related syntax element. That is, when CuPredMode is not MODE_IBC, it is possible to parse the IBC-related syntax element.
  • the IBC-related syntax element may include a merge mode-related syntax element and an AMVP-related syntax element.
  • the IBC may have more limited prediction modes and less syntax elements to be parsed than MODE_INTER. For example, in the case of MODE_IBC, it is possible to parse only a syntax element for a reference list L0.
  • some of flags indicating whether modes are used in merge_data may not be parsed.
  • the inter prediction-related syntax element may be parsed. Parsing the IBC-related syntax element may be a case in which syntax for a chroma component is not parsed.
  • the inter prediction-related syntax element may be parsed. Parsing the IBC-related syntax element may be a case in which a tree type (treeType) is not DUAL_TREE_CHROMA.
  • a component for which syntax is parsed by the tree type and a component to be processed it is possible to determine a component for which syntax is parsed by the tree type and a component to be processed.
  • a luma component and a chroma component may share a syntax element value.
  • a luma block and a chroma block may be partitioned through the same method.
  • DUAL_TREE a luma block and a chroma block may be partitioned through different methods.
  • the tree type of DUAL_TREE may include DUAL_TREE_LUMA and DUAL_TREE_CHROMA. It is possible to determine whether to process the luma component or the chroma component according to whether the tree type is DUAL_TREE_LUMA or DUAL_TREE_CHROMA.
  • FIG. 28 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • a prediction mode may be indicated on the basis of pred_mode_flag.
  • CuPredMode may be determined on the basis of pred_mode_flag. Further, it is possible to indicate inter prediction or intra prediction on the basis of pred_mode_flag.
  • CuPredMode when pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. When pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA. According to an embodiment, pred_mode_flag may indicate whether the current CU is an inter prediction mode or an intra prediction mode.
  • pred_mode_flag When pred_mode_flag does not exist, it is possible to infer pred_mode_flag or CuPredMode.
  • pred_mode_flag When pred_mode_flag does not exist, it is possible to infer pred_mode_flag or CuPredMode on the basis of a tile group thereof.
  • CuPredMode may be inferred as MODE_INTRA.
  • P tile group or the B tile group CuPredMode may be inferred as MODE_INTER.
  • a prediction mode may be indicated on the basis of pred_mode_ibc_flag.
  • CuPredMode may be determined on the basis of pred_mode_ibc_flag. Further, it is possible to indicate the IBC mode on the basis of pred_mode_ibc_flag.
  • CuPredMode when pred_mode_ibc_flag is 0, CuPredMode may be configured as MODE_INTER. When pred_mode_ibc_flag is 1, CuPredMode may be configured as MODE_IBC. When pred_mode_ibc_flag is 0, CuPredMode may be configured as a value other than MODE_IBC.
  • pred_mode_ibc_flag When pred_mode_ibc_flag does not exist, it is possible to infer pred_mode_ibc_flag or CuPredMode.
  • pred_mode_ibc_flag When pred_mode_ibc_flag does not exist, it is possible to infer pred_mode_ibc_flag or CuPredMode on the basis of a tile group thereof.
  • CuPredMode may be inferred as MODE_INTRA.
  • P tile group or the B tile group CuPredMode may be inferred as MODE_INTER.
  • the tile group may be replaced with a slice or a unit in which other parallel processing is possible as well as the tile group.
  • the skip mode when the IBC is used, the skip mode may be used.
  • the skip mode when the IBC is used for the I tile group, the skip mode may be used.
  • the skip mode may be used for the CU using the IBC for the I tile group.
  • the syntax and the signaling method described with reference to FIGs. 27 to 28 may not support the same.
  • the IBC mode and the skip mode may be assumed in the I tile group.
  • sps_ibc_enabled_flag may be 1.
  • cu_skip_flag may be parsed.
  • a value of cu_skip_flag may be 1 (a value indicating the use of the skip mode).
  • pred_mode_flag For the value of 1 of cu_skip_flag or the I tile group, pred_mode_flag may not be parsed. In this case, CuPredMode may be inferred as MODE_INTRA for the I tile group. For the I tile group and the value of 1 of cu_skip_flag, pred_mode_ibc_flag may not be parsed. In this case, CuPredMode may be inferred as MODE_INTRA for the I tile group. Accordingly, there may be a situation in which CuPredMode may not be indicated by MODE_IBC even though the IBC is used.
  • FIG. 29 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • pred_mode_flag and pred_mode_ibc_flag of FIG. 29 may refer to FIGs. 27 to 29 .
  • An embodiment of FIG. 29 may be to solve the problem described with reference to FIG. 28 .
  • CuPredMode may be inferred on the basis of cu_skip_flag. Further, CuPredMode may be inferred on the basis of a tile group thereof. For example, in the case of the I tile group, CuPredMode may be inferred on the basis of cu_skip_flag. For example, in the case of the I tile group and the value of 0 of cu_skip_flag, CuPredMode may be inferred as MODE_INTRA. For example, in the case of the I tile group and the value of 1 of cu_skip_flag, CuPredMode may be inferred as MODE_IBC. The values of 0 and 1 of cu_skip_flag may indicate that the skip mode is not used and is used, respectively. The embodiments may be performed when pred_mode_flag or pred_mode_ibc_flag does not exist.
  • CuPredMode may be configured on the basis of cu_skip_flag without any process of configuring CuPredMode as another value. Further, CuPredMode may be configured as MODE_IBC or MODE_INTRA on the basis of cu_skip_flag without any process of configuring CuPredMode as another value. For example, in the case of the I tile group and the value of 1 of cu_skip_flag, CuPredMode may be configured as MODE_IBC. Further, in the case of the I tile group and the value of 0 of cu_skip_flag, CuPredMode may be configured as MODE_INTRA. Similarly, the embodiments may be performed when pred_mode_flag or pred_mode_ibc_flag does not exist.
  • CuPredMode-inferred value configured on the basis of the tile group type and cu_skip_flag
  • CuPredMode-inferred value configured on the basis of the tile group type and not on the basis of cu_skip_flag
  • CuPredMode may be inferred as MODE_INTRA and MODE_IBC on the basis of the tile group type and cu_skip_flag.
  • CuPredMode may be inferred as MODE_INTER on the basis of the tile group type.
  • the conventional intra prediction which is not the IBC may not use the skip mode. Accordingly, when signaling indicating the use of the skip mode is performed, the IBC or inter prediction may be determined. In the case of a tile group in which the use of the skip mode is signaled and only intra prediction (including IBC) is used, the IBC may be determined.
  • CuPredMode when pred_mode_flag does not exist, CuPredMode may be inferred.
  • MODE_INTRA may be inferred.
  • M0DE_IBC may be inferred.
  • MODE_INTER may be inferred.
  • CuPredMode when pred_mode_ibc_flag does not exist, CuPredMode may be inferred.
  • MODE_INTRA In the case of the I tile group and the case in which cu_skip_flag is 0, M0DE_IBC may be inferred.
  • M0DE_IBC In the case of the P tile group or the B tile group, MODE_INTER may be inferred.
  • FIG. 30 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • pred_mode_flag and pred_mode_ibc_flag of FIG. 30 may refer to FIGs. 27 to 29 .
  • An embodiment of FIG. 30 may be to solve the problem described with reference to FIG. 28 .
  • a method of inferring CuPredMode, pred_mode_flag, or pred_mode_ibc_flag may vary depending on sps_ibc_enabled_flag.
  • the inference method illustrated in FIG. 29 may be used.
  • the inference method illustrated in FIG. 28 may be used.
  • CuPredMode may be inferred. For example, when pred_mode_flag or pred_mode_ibc_flag does not exist, CuPredMode may be inferred.
  • CuPredMode may be inferred in the case in which sps_ibc_enabled_flag is 1 and the case of the I tile group.
  • CuPredMode may be inferred on the basis of cu_skip_flag. For example, in the case in which sps_ibc_enabled_flag is 1 and the case of the I tile group, if cu_skip_flag is 0, CuPredMode may be configured as MODE_INTRA.
  • CuPredMode may be configured as MODE_IBC. In the case in which sps_ibc_enabled_flag is 1 and the case of the P tile group or the B tile group, CuPredMode may be configured as MODE_INTER. In the case in which sps_ibc_enabled_flag is 0 and the case of the I tile group, CuPredMode may be configured as MODE_INTRA. In the case in which sps_ibc_enabled_flag is 0 and the case of the P tile group or the B tile group, CuPredMode may be configured as MODE_INTER.
  • FIG. 31 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • pred_mode_ibc_flag may be parsed.
  • the problem described in FIG. 28 may be solved.
  • pred_mode_ibc_flag may be parsed. That is, even when the I tile group uses the IBC mode and the skip mode, pred_mode_ibc_flag may be configured and M0DE_IBC may be indicated.
  • sps_ibc_enabled_flag may be 1, and when a condition related to the block size is satisfied, pred_mode_ibc_flag is parsed.
  • FIG. 32 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • pred_mode_flag when pred_mode_flag does not exist, pred_mode_flag may be inferred.
  • the encoder may infer pred_mode_flag of the current block according to the type of a higher level group of the current block and thus omit statement of pred_mode_flag of the current block in a bitstream, thereby increasing compression efficiency. For example, when a tile group to which the current block belongs is the I tile group and a prediction mode of the current block is an intra prediction mode, the encoder may omit statement of pred_mode_flag of the current block indicating a value of 1 in the bitstream.
  • the encoder may omit statement of pred_mode_flag of the current block indicating a value of 0 in the bitstream. More specifically, when a tile group to which the current block belongs is the B or P tile group and a prediction mode of the current block is a skip mode (e.g., when a value of cu_skip_flag is 1), the encoder may omit statement of pred_mode_flag of the current block indicating a value of 0 in the bitstream.
  • the decoder may infer pred_mode_flag on the basis of the tile group type according to an embodiment.
  • pred_mode_flag may be inferred as 1.
  • pred_mode_flag may be inferred as 0.
  • pred_mode_flag may be inferred as 0.
  • CuPredMode may be configured as MODE_INTER or MODE_INTRA on the basis of pred_mode_flag. For example, when pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. Further, when pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA.
  • CuPredMode may be configured on the basis of pred_mode_flag or pred_mode_ibc_flag. For example, when pred_mode_ibc_flag is 0, CuPredMode may be configured on the basis of pred_mode_flag. For example, when pred_mode_ibc_flag is 0, CuPredMode may be configured as MODE_INTER or MODE_INTRA on the basis of pred_mode_flag. Alternatively, when pred_mode_ibc_flag is 0, CuPredMode may be configured as a value other than MODE_IBC on the basis of pred_mode_flag. Referring to FIG.
  • CuPredMode when pred_mode_ibc_flag is 0 and pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. Further, when pred_mode_ibc_flag is 0 and pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA.
  • CuPredMode may be configured on the basis of only pred_mode_ibc_flag. For example, when pred_mode_ibc_flag is 1, CuPredMode may be configured without any other flag. For example, when pred_mode_ibc_flag is 1, CuPredMode may be configured as MODE_IBC.
  • pred_mode_ibc_flag when pred_mode_ibc_flag does not exist, pred_mode_ibc_flag may be inferred.
  • the value of pred_mode_ibc_flag may be inferred on the basis of the tile group type.
  • the value of pred_mode_ibc_flag may be inferred on the basis of the tile group type and an IBC mode availability condition. More specifically, in the case of the I tile group, the value of pred_mode_ibc_flag may be inferred on the basis of the IBC mode availability condition.
  • the value of pred_mode_ibc_flag may be inferred as 1.
  • CuPredMode may be configured as the value of MODE_IBC.
  • the value of pred_mode_ibc_flag may be inferred as 0.
  • the value of pred mode_ibc_flag may be inferred as 0.
  • CuPredMode may be configured as a value other than MODE_IBC.
  • the IBC mode availability condition may include the value of sps_ibc_enabled_flag. Further, the IBC mode availability condition may include a condition related to the block size. Referring to FIG. 32 , in the case of the I tile group and the case in which sps_ibc_enabled_flag is 1, the value of pred_mode_ibc_flag may be inferred as 1. In this case, when the IBC mode availability condition is added and is satisfied, the value of pred_mode_ibc_flag may be inferred as 1. In FIG. 32 , the additional IBC mode availability condition is indicated as a block size condition.
  • pred_mode_ibc_flag may be inferred as 0.
  • pred_mode_ibc_flag may be inferred as 0.
  • pred_mode_ibc_flag in the case of the P or B tile group, the value of pred_mode_ibc_flag may be inferred as 0. In the case of the P or B tile group, the value of pred_mode_ibc_flag may be inferred as a preset value without any other condition except for the tile group type.
  • the encoder may not state pred_mode_ibc_flag in the bitstream. Accordingly, the encoder may increase the video compression efficiency by not stating the value of pred_mode_ibc_flag in the bitstream.
  • ference (infer) in a plurality of embodiments of the present disclosure may mean configuration (configure), derivation (derive), or the like.
  • a tree type may be induced as follows.
  • the tree type When tile_group_type is I and qtbtt_dual_tree_intra_flag is 1, the tree type may be configured as DUAL_TREE_LUMA. When tile_group_type is I, qtbtt_dual_tree_intra_flag is 1, and a luma component is processed, the tree type may be configured as DUAL_TREE_LUMA.
  • the tree type When tile_group_type is I and qtbtt_dual_tree_intra_flag is 1, the tree type may be configured as DUAL_TREE_CHROMA. Alternatively, when tile_group_type is I, qtbtt_dual_tree_intra_flag is 1, and a chroma component is processed, the tree type may be configured as DUAL_TREE_CHROMA.
  • the tree type may be configured as SINGLE_TREE.
  • qtbtt_dual_tree_intra_flag may be signaling indicating whether a dual tree is allowed. Allowing the dual tree may mean there are separate coding quad tree syntax structures for the luma and chroma components. More specifically, when the current picture is the only reference picture, qtbtt_dual_tree_intra_flag may be signaling indicating whether the dual tree is allowed.
  • FIG. 33 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • the IBC mode in the case of the chroma component, may not be used. More specifically, in the case of DUAL_TREE_CHROMA, the IBC mode may not be used.
  • pred_mode_ibc_flag when the tree type is not DUAL_TREE_CHROMA, pred_mode_ibc_flag may be parsed.
  • pred_mode_ibc_flag when the tree type is DUAL_TREE_CHROMA, pred_mode_ibc_flag may not be parsed.
  • CuPredMode when the tree type is DUAL_TREE_CHROMA, CuPredMode may be inferred as MODE_INTRA.
  • FIG. 34 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • the coding unit syntax of FIG. 34 may indicate syntax related to intra prediction. According to an embodiment of the present disclosure, there may be intra_chroma_pred_mode signaling. An intra prediction mode of a chroma component may be determined on the basis of intra_chroma_pred_mode.
  • intra_chroma_pred_mode when the tree type is SINGLE_TREE or DUAL_TREE_CHROMA, intra_chroma_pred_mode may be parsed. When the tree type is DUAL_TREE_LUMA, intra_chroma_pred_mode may not be parsed.
  • FIG. 35 illustrates inducement of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
  • IntraPredModeC may be an intra prediction mode for a chroma component.
  • xCb and yCb may indicate uppermost leftmost samples of a chroma coding block on the basis of the luma location.
  • IntraPredModeY may be an intra prediction mode for a luma component.
  • IntraPredModeC may be determined on the basis of IntraPredModeY.
  • IntraPredModeC may be determined on the basis of IntraPredModeY and intra_chroma_pred_mode.
  • IntraPredModeY may be a mode corresponding to a luma block corresponding to the current chroma block.
  • the location at which IntraPredModeY corresponding to IntraPredModeC for any location is used may be preset.
  • the preset location may be a luma block location corresponding to the center of the current chroma block.
  • IntraPredModeC at the location of (xCb, yCb)
  • IntraPredModeY at the location of (xCb + cbWidth/2, yCb + cbHeight/2) may be referred to.
  • the preset location may be a location based on xCb or yCb.
  • IntraPredModeC for the value of any IntraPredModeY may refer to Table 8-2 or Table 8-3 of FIG. 35 .
  • Table 8-2 may correspond to the case in which the CCML may not be used (or sps_cclm_enabled_flag is 0)
  • Table 8-3 may correspond to the case in which the CCLM may be used (or sps_cclm_enabled_flag is 1).
  • IntraPredModeY is any value
  • a column corresponding to the value may be referred to in FIG. 35
  • a value corresponding to intra_chroma_pred_mode in the column may be IntraPredModeC.
  • IntraPredModeY is 1 and intra_chroma_pred_mode is 1, IntraPredModeC may be 50.
  • sps_cclm_enabled_flag may be signaling of a higher level indicating whether the CCLM may be applied. For example, when sps_cclm_enabled_flag is 1, the CCLM may be applied. When sps_cclm_enabled_flag is 0, the CCLM may not be applied.
  • IntraPredModeC of FIG. 35 which is 81, 82, or 83 may correspond to a CCLM mode.
  • sps_cclm_enabled_flag of FIG. 35 is 0, 4 of the value of IntraPredModeC may correspond to a DM mode.
  • sps_cclm_enabled_flag of FIG. 35 is 1, 7 of the value of IntraPredModeC may correspond to a DM mode.
  • the DM mode may be indicated using the smallest number of intra_chroma_pred_mode.
  • the DM mode may be indicated using a 1-bit intra_chroma_pred_mode.
  • the number of bits indicating 4, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may increase or be the same.
  • the bin string indicating 4, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may be 0, 100, 101, 110, or 111.
  • the number of bits indicating 7, 4, 5, 6, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may increase or be the same.
  • the bin string indicating 7, 4, 5, 6, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may be 0, 10, 1110, 1111, 11000, 11001, 11010, or 11011.
  • intra prediction for the chroma block may not be easy. Particularly, inducement of the intra prediction mode for the chroma block may not be easy.
  • an intra prediction mode for the corresponding luma block should be referred to in order to determine the intra prediction mode.
  • the corresponding luma location may not perform intra prediction or may not be MODE_INTRA.
  • the corresponding luma location is MODE_IBC
  • the corresponding luma intra prediction mode may not exist.
  • the corresponding luma block and chroma block may use the same prediction mode.
  • DUAL_TREE the corresponding luma block and chroma block may use different prediction modes.
  • DUAL_TREE may be used in the case of the I tile group.
  • MODE_INTRA or M0DE_IBC may be used in the case of the I tile group. Accordingly, at the same location, DUAL_TREE_LUMA may use MODE_IBC and DUAL_TREE_CHROMA may use MODE_INTRA.
  • FIG. 36 illustrates derivation of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
  • the embodiment of FIG. 36 may be a method of solving the problem described in FIG. 35 .
  • IntraPredModeY when IntraPredModeY does not exist, IntraPredModeY may be configured as a preset mode (or value). Accordingly, even when the luma location corresponding to the chroma block does not use intra prediction or uses the IBC mode, IntraPredModeC may be induced.
  • IntraPredModeY may be configured as a planar mode (value of 0). In this case, signaling the planar mode using smaller bits is possible in the signaling method described in FIG. 35 .
  • IntraPredModeY may be configured as a DC mode (value of 1). In this case, signaling the DC mode using smaller bits is possible in the signaling method described in FIG. 35 .
  • IntraPredModeY may be configured as a vertical mode (value of 50). In this case, signaling the vertical mode using smaller bits is possible in the signaling method described in FIG. 35 .
  • IntraPredModeY may be configured as a horizontal mode (value of 18). In this case, signaling the horizontal mode using smaller bits is possible in the signaling method described in FIG. 35 .
  • values of IntraPredModeC corresponding to values of intra_chroma_pred_mode may be determined as values which are not shown in FIG. 35 . That is, a column in the case in which the value of IntraPredModeY does not exist may separately exist in FIG. 35 .
  • IntraPredModeC corresponding to intra_chroma_pred_modes 4, 0, 1, 2, and 3 may be 0, 1, 50, and 18, respectively.
  • IntraPredModeC corresponding to intra_chroma_pred_modes 4, 0, 1, 2, and 3 may be 0, 50, 18, and 1, respectively. This may be applied to both the cases in which sps_cclm_enabled_flag is 0 and 1.
  • IntraPredModeC when IntraPredModeY does not exist, IntraPredModeC may be configured as a preset value. For example, when IntraPredModeY does not exist, IntraPredModeC may be configured as a preset value regardless of intra_chroma_pred_mode. Further, when IntraPredModeY does not exist, the value of intra_chroma_pred_mode may be signaled always with the value of 0. For example, when IntraPredModeY does not exist, IntraPredModeC may be configured as the planar mode. Alternatively, when IntraPredModeY does not exist, IntraPredModeC may be configured as the CCLM.
  • IntraPredModeC may be configured as the DM mode.
  • IntraPredModeY does not exist, intra_chroma_pred_mode described in FIG. 34 may not be parsed.
  • IntraPredModeY when IntraPredModeY does not exist, the location at which IntraPredModeC is referred to may be changed.
  • the case in which IntraPredModeY does not exist may mean the case in which the corresponding luma location referred to when the chroma intra prediction mode is induced is not MODE_INTRA.
  • the case may mean the case in which CuPredMode[ xCb + cbWidth/2][ yCb + cbHeight/2] corresponding to the luma component when the chroma intra prediction mode at the location of (xCb, yCb) is induced is not MODE_INTRA or is MODE_IBC.
  • the case may mean the case in which IntraPredModeY[xCb + cbWidth/2][yCb + cbHeight/2] corresponding to the luma component when the chroma intra prediction mode at the location of (xCb, yCb) is induced does not exist.
  • IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] does not exist when IntraPredModeC[ xCb ][ yCb ] is induced
  • IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] may be configured as a preset value.
  • IntraPredModeC may be induced with reference to IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] and the table described in FIG. 35 .
  • IntraPredModeC may be induced with reference to IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] and the table described in FIG. 35 .
  • a prediction mode may be limited. More specifically, if the corresponding luma block uses the IBC mode when the chroma block is intra-predicted, an intra prediction mode may be limited. For example, in this case, the DM mode may not be used. This is because, when the corresponding luma block and chroma block use different modes, similarity therebetween may be reduced.
  • FIG. 37 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • motion information for the chroma block may exist separately from motion information for the luma block.
  • motion information for the chroma block may exist separately from motion information for the luma block.
  • a motion information-related syntax element may be parsed.
  • a motion information-related syntax element may be parsed.
  • the motion information-related syntax element may include merge_flag, a syntax element within merge_data, mvp_10_flag, amvr_4pel_flag, and the like.
  • FIG. 38 illustrates a syntax element according to an embodiment of the present disclosure.
  • a prediction mode may be limited on the basis of the block size. That is, CuPredMode may be limited on the basis of the block size.
  • inter prediction may be limited. This is to reduce a memory bandwidth or computational complexity.
  • the prediction mode may be limited in a block having the small size.
  • the prediction mode may be limited in a block having the size equal to or smaller than a threshold.
  • the threshold may be the size of 4x4. That is, in a detailed embodiment, inter prediction may not be used in a block having the size equal to or smaller than 4x4.
  • the limited prediction mode described in another embodiment may be bi-predicted inter prediction.
  • bi-prediction may not be used in the block size equal to or smaller than the threshold.
  • the threshold may indicate the size equal to or smaller than 4x8 or 8x4.
  • the threshold may be 12 (width + height).
  • bi-prediction there may be a process of switching bi-prediction to uni-prediction.
  • a value indicating a prediction direction or a reference list may be limited.
  • the prediction mode may be limited as described above, and thus syntax structures different from that described in the above drawings may be used for efficient signaling.
  • a skip mode may not be used. Accordingly, in the case of MODE_INTRA, cu_skip_flag may be 0. Therefore, if cu_skip_flag is 1, non MODE_INTRA may be determined.
  • CuPredMode may be a value of one of MODE_INTRA, MODE_INTER, and MODE_IBC.
  • An available CuPredMode value when the tile group type is I may be MODE_INTRA or MODE_IBC.
  • cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag may be parsed on the basis of the block size.
  • cu_skip_flag may not be parsed. That is, in the case of the block size in which inter prediction may be used or the case in which the IBC may be used, cu_skip_flag may be parsed.
  • CuPredMode may be determined as MODE_INTRA. In this case, the value of cu_skip_flag may be determined and inferred as 0.
  • the block size in which the inter prediction is limited may be a block of 4x4. Further, the case in which the IBC may not be used may be a case in which sps_ibc_enabled_flag is 0.
  • pred_mode_flag in the case of the block size in which inter prediction is limited, pred_mode_flag may not be parsed. According to an embodiment of the present disclosure, it may be determined whether CuPredMode is MODE_INTRA or MODE_INTER on the basis of the value of pred_mode_flag. In the case of the block size in which inter prediction is limited, it may be determined that pred_mode_flag is a value indicating that CuPredMode is MODE_INTRA. CuPredMode may be changed on the basis of pred_mode_ibc_flag.
  • CuPredMode may be determined on the basis of pred_mode_flag and pred_mode_ibc_flag, and CuPredMode determined on the basis of only pred_mode_flag may be changed on the basis of pred mode_ibc_flag. According to an embodiment, it may be determined whether CuPredMode is MODE_IBC and whether CuPredMode is determined on the basis of only pred_mode_flag according to the value of pred_mode_ibc_flag.
  • pred_mode_flag may be parsed.
  • an additional condition may be considered. For example, whether to parse pred_mode_flag may be determined on the basis of cu_skip_flag or a tile group type.
  • pred_mode_flag may be the value for determining whether CuPredMode is MODE_INTRA or MODE_INTER, which is because CuPredMode may be limited on the basis of cu_skip_flag or the tile group type. For example, when the tile group type is I, CuPredMode may be only the value of MODE_INTRA.
  • CuPredMode may be both MODE_INTRA and MODE_INTER.
  • CuPredMode may be only the value of MODE_INTER.
  • pred_mode_flag when cu_skip_flag is 1 or the tile group type is I, pred_mode_flag may not be parsed.
  • pred_mode_flag or CuPredMode when the tile group type is I, pred_mode_flag or CuPredMode may be inferred as a value indicating MODE_INTRA.
  • pred_mode_flag or CuPredMode may be inferred as a value indicating MODE_INTER.
  • the block size in which the inter prediction is limited may be a block of 4x4.
  • the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • pred_mode_ibc_flag may be parsed on the basis of the block size in which inter prediction is limited. Further, pred_mode_ibc_flag may be parsed on the basis of cu_skip_flag. According to an embodiment, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag may not be parsed. As described above, in the block size in which inter prediction is limited, CuPredMode may not be MODE_INTER. When cu_skip_flag is 1, CuPredMode may not be MODE_IBC.
  • pred_mode_ibc_flag or CuPredMode may be determined and inferred as MODE_IBC. Further, it may be a case in which the configuration as MODE_IBC is possible. For example, when sps_ibc_enabled_flag is 1, the configuration as MODE_IBC may be possible. Accordingly, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag or CuPredMode may be determined and inferred according to sps_ibc_enabled_flag.
  • pred_mode_ibc_flag may be inferred as sps_ibc_enabled_flag.
  • pred_mode_ibc_flag may be parsed.
  • pred_mode_ibc_flag When the tile group type is I and cu_skip_flag is 1, pred_mode_ibc_flag may not be parsed. Further, in this case, pred_mode_ibc_flag or CuPredMode may be determined and inferred as a value indicating MODE_IBC. A value of CuPredMode available in the I tile group is MODE_INTRA or MODE_IBC. This is because the skip mode is not used in MODE_INTRA. Accordingly, when the tile group type is I and cu_skip_flag is 0, pred_mode_ibc_flag may be parsed.
  • CuPredMode is MODE_INTRA, and in the case that does not correspond to the block size in which inter prediction is limited, pred_modeibc_flag may not be parsed. In this case, the prediction mode may be determined without pred_mode_ibc_flag.
  • CuPredMode is not MODE_INTRA, and in the case of the block size in which inter prediction is limited, pred_mode_ibc_flag may be parsed. In this case, pred_mode_ibc_flag may be parsed in consideration of an additional condition.
  • pred_mode_ibc_flag may be parsed. This is because the final prediction mode is determined as MODE_INTRA or MODE_IBC even though inter prediction is limited.
  • pred_mode_ibc_flag may be parsed.
  • the block size in which the inter prediction is limited may be a block of 4x4.
  • the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • FIG. 39 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
  • pred_mode_flag or pred_mode_ibc_flag may be inferred as described in FIG. 38 .
  • CuPredMode may be determined as described in FIG. 38 .
  • pred_mode_flag and pred_mode_ibc_flag of FIG. 39 may be the same signaling as pred mode_flag and pred_mode_ibc_flag of FIG. 38 .
  • CuPredMode may be determined as MODE_INTER or MODE_INTRA on the basis of the value of pred_mode_flag.
  • CuPredMode may be determined as MODE_TEMP or MODE_IBC on the basis of the value of pred_mode_ibc_flag.
  • pred_mode_flag may be inferred as a value indicating MODE_INTRA. That is, in the case of the block size in which inter prediction is limited, pred_mode_flag may be inferred as 1. Referring to FIG. 39 , when the block size is 4x4, the value of pred_mode_flag may be inferred as 1.
  • pred_mode_ibc_flag may be inferred as a value indicating MODE_IBC.
  • MODE_IBC the case in which MODE IBC may be used.
  • the case in which MODE IBC may be used may be a case in which sps_ibc_enabled_flag is 1.
  • pred_mode_ibc_flag may be inferred as the value of sps_ibc_enabled_flag.
  • pred_mode_ibc_flag may be inferred as the value of sps_ibc_enabled_flag.
  • FIG. 40 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
  • FIGs. 38 to 39 have described the method of parsing, inferring, or determining cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and CuPredMode. However, in the inference method illustrated in FIG. 39 , there may be conflict.
  • pred_mode_flag may be inferred as one of the two values, and all of the two cases may be satisfied.
  • pred_mode_ibc_flag In the case of the block size in which inter prediction is limited, the case of the skip mode, and the case in which the tile group type is P or B, it may be difficult to infer the value of pred_mode_ibc_flag.
  • the value of pred_mode_ibc_flag may be inferred as one of the two values, and all of the two cases may be satisfied.
  • FIG. 40 may be an embodiment for solving the problem.
  • a prediction mode available when the tile group type is P or B may be MODE_INTRA, MODE_INTER, or MODE_IBC.
  • MODE_INTER may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC.
  • pred_mode_flag may be inferred as a value indicating MODE_INTRA. This is because MODE_IBC may be determined through pred_mode_ibc_flag. Accordingly, the above description may be summarized as follows.
  • pred_mode_flag may be inferred as a value indicating MODE_INTRA. Further, 1) in the case in which the tile group type is P or B and 2) the case that does not correspond to the block size in which inter prediction is limited, pred_mode_flag may be inferred as a value indicating MODE_INTER.
  • a prediction mode available when the tile group type is P or B may be MODE_INTRA, MODE_INTER, or MODE_IBC.
  • MODE_INTER may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC.
  • MODE_INTRA may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC. Accordingly, in the case in which the tile group type is P or B, the case of the block size in which inter prediction is limited, and the case of the skip mode, only MODE_IBC may be used. Accordingly, in this case, pred_mode_ibc_flag may be inferred as 1. Therefore, the above description may be summarized as follows.
  • pred_mode_ibc_flag when the tile group type is I or 2) in the case of the block size in which inter prediction is limited and the case of the skip mode, pred_mode_ibc_flag may be inferred as a value indicating MODE_IBC, for example, 1. Further, i) when the tile group type is P or B and ii) in the case that does not correspond to the block size in which inter prediction is limited or the case that does not correspond to the skip mode, pred_mode_ibc_flag may be inferred as a value that does not indicate MODE_IBC, for example, 0.
  • the block size in which the inter prediction is limited may be a block of 4x4.
  • the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • FIG. 40 illustrates that the method of inferring pred_mode_flag and pred_mode_ibc_flag is an example of the case in which the block size in which inter prediction is limited is 4x4.
  • the tile group type may be a slice type. Whether the mode is the skip mode may be determined through cu_skip_flag.
  • FIG. 41 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
  • inter_pred_idc is a parameter indicating the type of inter prediction and may be called an inter prediction type parameter.
  • inter prediction available in any block size may be L0 uni-prediction, L1 uni-prediction, or bi-prediction, and inter prediction available in any block size may be L0 uni-prediction or L1 uni-prediction.
  • the type of inter prediction may be indicated through inter_pred_idc.
  • L0 uni-prediction may be inter prediction using only reference list 0.
  • L1 uni-prediction may be inter prediction using only reference list 1.
  • bi-prediction may be inter prediction using both reference list 0 and reference list 1. Further, the inter prediction type may be determined for each CU.
  • Values of inter_pred_idc indicating L0 uni-prediction, L1 uni-prediction, and bi-prediction may be PRED_L0, PRED_L1, and PRED_BI, respectively.
  • Values of inter_pred_idc indicating L0 uni-prediction, L1 uni-prediction, and bi-prediction may be 0, 1, and 2, respectively.
  • a value of inter_pred_idc corresponding to bi-prediction may not exist.
  • inter_pre_idc may exist. The method may be different in a block in which bi-prediction is allowed and a block in which bi-prediction is not allowed. In addition, this may be a bin string used in the case in which inter_pre_idc is parsed.
  • the value corresponding to L0 uni-prediction, L1 uni-prediction, or bi-prediction may be used as inter_pre_idc.
  • inter_pred_idc may be indicated through a variable length binarization method. For example, values corresponding to L0 uni-prediction, L1 uni-prediction, and bi-prediction may be indicated as 00, 01, and 1, respectively.
  • values corresponding to L0 uni-prediction, L1 uni-prediction, and bi-prediction may be indicated as 10, 11, and 0, respectively.
  • the value corresponding to L0 uni-prediction or L1 uni-prediction may be used as inter_pre_idc.
  • inter_pre_idc may be indicated by 1 bit.
  • the values corresponding to L0 uni-prediction and L1 uni-prediction may be indicated as 0 and 1, respectively.
  • the values corresponding to L0 uni-prediction and L1 uni-prediction may be indicated as 1 and 0, respectively.
  • the block size in which bi-prediction is not used may be a block size equal to or smaller than a threshold.
  • the threshold may be a block of 4x8 or a block of 8x4.
  • the block size in which bi-prediction is not used may be a block of 4x8 or 8x4.
  • inter_pred_idc may have only a value corresponding to PRED_L0, PRED_L1. In this case, inter_pred_idc may be indicated by 0 or 1.
  • FIG. 42 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
  • inter_pred_idc there may be a plurality of sets of values which inter_pred_idc may indicate and signaling methods thereof.
  • the number of types of values which inter_pred_idc may indicate is three in any block, in which case signaling may be performed using 1 or 2 bits.
  • the number of types of values which inter_pred_idc may indicate is two in any block, in which signaling may be performed using b bits.
  • the type of values which inter_pred_idc may indicate and signaling may vary depending on the block size. For example, according to the block size in which bi-prediction is allowed, the type of values which inter_pred_idc may indicate and signaling may be different.
  • inter_pred_idc may indicate and signaling in the case of any block size.
  • the block size is 4x8 or 8x4
  • condition 1 may be a block size condition in which bi-prediction is not allowed.
  • condition 1 may be a condition of the block of 4x8 or 8x4.
  • the block size condition in which bi-prediction is not allowed may be a size of the block of 4x8 or 8x4. Accordingly, the block size in which bi-prediction is not allowed may be 4x8, 8x4, or 4x4.
  • inter_pred_idc when width + height corresponds to 8 or 12, a value which inter_pred_idc may have may be PRED_L0, PRED_L1. Further, inter_pred_idc may be indicated through 1 bit. Signaling may be 0 or 1. When width + height is neither 8 or 12, values which inter_pred_idc may have may be PRED_L0, PRED_L1, or PRED_BI. Further, inter_pred_idc may be indicated through 1 bit or 2 bits. Signaling may be 00, 01, or 1.
  • FIG. 43 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
  • FIG. 43 may be an embodiment for solving the problem illustrated in FIGs. 41 to 42 . Further, FIG. 43 may be a method of increasing efficiency of the embodiment of FIG. 42 .
  • there may be a block size in which inter prediction is not allowed.
  • an unnecessary condition check may be needed. For example, when inter prediction is not allowed, the value of inter_pred_idc is meaningless. If a condition of the case in which inter prediction is not allowed is checked in inter_pred_idc signaling, it may be meaningless.
  • inter_pred_idc signaling and a set of values may be determined by checking a condition of the case in which bi-prediction is not allowed without checking the condition of the case in which inter prediction is not allowed.
  • the case in which inter prediction is not allowed may be the block size of 4x4
  • the case in which bi-prediction is not allowed may be the block size of 4x8 or 8x4.
  • inter_pred_idc when width + height corresponds to 12, a value which inter_pred_idc may have may be PRED_L0 or PRED_L1. Further, inter_pred_idc may be indicated through 1 bit. Signaling may be 0 or 1. When width + height does not correspond to 12, values which inter_pred_idc may have may be PRED_L0, PRED_L1, or PRED_BI. Further, inter_pred_idc may be indicated through 1 bit or 2 bits. Signaling may be 00, 01, or 1.
  • a set of values of inter_pred_idc and signaling may correspond to the left side (a third column among all columns) among two columns of FIG. 43 in the case of the 4x4 block, which may be different from the embodiment of FIG. 42 .
  • cu_skip_flag when the tree type is DUAL_TREE_CHROMA, cu_skip_flag may be parsed.
  • partitioning of the luma block and the chroma block may be different, and it may indicate processing corresponding to chroma.
  • cu_skip_flag when the tree type is DUAL_TREE_CHROMA, if MODE_IBC is available, cu_skip_flag may be parsed.
  • the case in which MODE_IBC may be used may be a case in which sps_ibc_enabled_flag is 1. This is to allow the skip mode to be used when the prediction mode of the chroma block is MODE_IBC.
  • embodiments of the present invention may be implemented through various means.
  • embodiments of the present invention may be implemented by hardware, firmware, software, or a combination thereof.
  • the method according to embodiments of the present invention may be implemented by one or more of Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and the like.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • processors controllers, microcontrollers, microprocessors, and the like.
  • the method according to embodiments of the present invention may be implemented in the form of a module, procedure, or function that performs the functions or operations described above.
  • the software code may be stored in memory and driven by a processor.
  • the memory may be located inside or outside the processor, and may exchange data with the processor by various means already known.

Landscapes

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

Abstract

The present invention relates to a video signal processing method and device and, more specifically, to a video signal processing method and device for encoding or decoding a video signal.

Description

    Technical Field
  • The present disclosure relates to a method and an apparatus for processing a video signal and, more particularly, to a video signal processing method and apparatus for encoding and decoding a video signal.
  • Background Art
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing information in a form suitable for a storage medium. An object of compression encoding includes objects such as voice, video, and text, and in particular, a technique for performing compression encoding on an image is referred to as video compression. Compression coding for a video signal is performed by removing excess information in consideration of spatial correlation, temporal correlation, and stochastic correlation. However, with the recent development of various media and data transmission media, a more efficient video signal processing method and apparatus are required.
  • Detailed Description of the Invention Technical Problem
  • An aspect of the present disclosure is to increase coding efficiency of a video signal.
  • Technical Solution
  • In order to solve the problem, the present disclosure provides a video signal processing apparatus and a video signal processing method.
  • According to an embodiment of the present disclosure, a method of processing a video signal is provided. The method includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, decoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • According to an embodiment of the present disclosure, a method of processing a video signal is provided. The method includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode in which a current picture is referred to, generating a bitstream for encoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode in which at least one picture is referred to, generating a bitstream for encoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • According to an embodiment of the present disclosure, an apparatus for processing a video signal is provided. The apparatus includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, decode the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which the current picture is referred to, and decode the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • According to an embodiment of the present disclosure, an apparatus for processing a video signal is provided. The apparatus includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, generate a bitstream for encoding the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which a current picture is referred to, and generate a bitstream for encoding the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • According to an embodiment of the present disclosure, a computer-readable recording medium storing a bitstream for processing a video signal is provided. The bitstream contains prediction mode information of a target block, and includes a bitstream for encoding the target block, based on a Block Copy (BC) prediction mode when a prediction mode of the target block is the BC prediction mode in which a target picture is referred to and a bitstream for encoding the target block, based on an inter prediction mode when the prediction mode of the target block is the inter prediction mode in which at least one picture is referred to, wherein sets of spatial neighbor locations referred to for encoding the target block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the target block in the inter prediction mode.
  • Advantageous Effects
  • According to an embodiment of the present disclosure, it is possible to increase coding efficiency of a video signal.
  • Brief Description of the Drawings
    • FIG. 1 is a schematic block diagram of a video signal encoding apparatus according to an embodiment of the present invention.
    • FIG. 2 is a schematic block diagram of a video signal decoding apparatus according to an embodiment of the present invention.
    • FIG. 3 shows an embodiment in which a coding tree unit is divided into coding units in a picture.
    • FIG. 4 shows an embodiment of a method for signaling a division of a quad tree and a multi-type tree.
    • FIG. 5 illustrates an embodiment of reference samples used for predicting a current block in an inter prediction mode.
    • FIG. 6 illustrates an embodiment of prediction modes used in intra prediction.
    • FIG. 7 illustrates inter prediction according to an embodiment of the present disclosure.
    • FIG. 8 illustrates a motion vector signaling method according to an embodiment of the present disclosure.
    • FIG. 9 illustrates syntax of a Motion Vector Difference (MVD) according to an embodiment of the present disclosure.
    • FIG. 10 illustrates Adaptive Motion Vector Resolution (AMVR) signaling according to an embodiment of the present disclosure.
    • FIG. 11 illustrates inter prediction-related syntax according to an embodiment of the present disclosure.
    • FIG. 12 illustrates spatial neighboring locations according to an embodiment of the present disclosure.
    • FIG. 13 illustrates referencing of a current picture according to an embodiment of the present disclosure.
    • FIG. 14 illustrates a method of referring to a neighboring candidate according to an embodiment of the present disclosure.
    • FIG. 15 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
    • FIG. 16 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
    • FIG. 17 illustrates the use of spatial neighbor candidates according to an embodiment of the present disclosure.
    • FIG. 18 illustrates a motion vector according to an embodiment of the present disclosure.
    • FIG. 19 illustrates syntax of an MVD according to an embodiment of the present disclosure.
    • FIG. 20 illustrates a motion vector according to an embodiment of the present disclosure.
    • FIG. 21 illustrates syntax of the MVD according to an embodiment of the present disclosure.
    • FIG. 22 illustrates syntax of the MVD according to an embodiment of the present disclosure.
    • FIG. 23 illustrates the block and the size according to an embodiment of the present disclosure.
    • FIG. 24 illustrates the configuration of a merge candidate list according to an embodiment of the present disclosure.
    • FIG. 25 illustrates block locations and syntax according to an embodiment of the present disclosure.
    • FIG. 26 illustrates the resetting of a space for storing a history of an HMVP according to an embodiment of the present disclosure.
    • FIG. 27 illustrates coding unit syntax according to an embodiment of the present disclosure.
    • FIG. 28 illustrates prediction mode signaling according to an embodiment of the present disclosure.
    • FIG. 29 illustrates prediction mode signaling according to an embodiment of the present disclosure.
    • FIG. 30 illustrates prediction mode signaling according to an embodiment of the present disclosure.
    • FIG. 31 illustrates coding unit syntax according to an embodiment of the present disclosure.
    • FIG. 32 illustrates prediction mode signaling according to an embodiment of the present disclosure.
    • FIG. 33 illustrates coding unit syntax according to an embodiment of the present disclosure.
    • FIG. 34 illustrates coding unit syntax according to an embodiment of the present disclosure.
    • FIG. 35 illustrates derivation of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
    • FIG. 36 illustrates derivation of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
    • FIG. 37 illustrates coding unit syntax according to an embodiment of the present disclosure.
    • FIG. 38 illustrates a syntax structure according to an embodiment of the present disclosure.
    • FIG. 39 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
    • FIG. 40 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
    • FIG. 41 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
    • FIG. 42 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
    • FIG. 43 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
    Best Mode for Carrying out the Invention
  • In order to solve the problem, the present disclosure provides a video signal processing apparatus and a video signal processing method.
  • According to an embodiment of the present disclosure, a method of processing a video signal is provided. The method includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, decoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode includes some of sets of locations of spatial neighbors referred to for decoding the current block in the inter prediction mode. The BC prediction mode may be named an Intra Block Copy (IBC) prediction mode or a Current Picture Referencing (CPR) prediction mode.
  • Sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode may include a location of (xCb - 1, yCb -1) when an uppermost leftmost location of the current block is (xCb, yCb), and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may not include the location of (xCb - 1, yCb -1) when the uppermost leftmost location of the current block is (xCb, yCb).
  • Sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may include at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1) when the uppermost leftmost location of the current block is (xCb, yCb), and cbWidth may be a width of the current block and cbHeight may be a height of the current block.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream and an operation of determining the prediction mode of the current block as the BC prediction mode, based on the BC mode parameter. The BC mode parameter may be indicated by pred_mode_ibc_flag when the BC mode is named an IBC mode.
  • When the BC mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture and signaling information (sps_bc_enabled_flag) at a higher level than the current block indicates that the BC prediction mode is available, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used. The signaling information (sps_bc_enabled_flag) at the higher level may be indicated by sps_ibc_enabled_flag when the BC mode is named the IBC mode.
  • When the BC mode parameter is not acquired from the bitstream, if a slice to which the current block belongs is a slice which does not refer to a picture other than the current picture as a reference picture, and when signaling information (sps_bc_enabled_flag) at a higher level than the current block indicates that the BC prediction mode is available, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • When the BC mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • When the BC mode parameter is not acquired from the bitstream, if a slice to which the current block belongs is a slice which may refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream.
  • When the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating an intra prediction mode.
  • When the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating the inter prediction mode.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream. When the BC mode parameter is not acquired from the bitstream, if coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring a prediction mode parameter indicating the prediction mode of the current block from a bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a size of the current block does not correspond to a block size preset as a block size in which inter prediction is limited and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating inter prediction.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream, and when the BC mode parameter is not acquired from the bitstream, if a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode and a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used.
  • When the BC mode parameter is not acquired from the bitstream, if the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode, the size of the current block does not correspond to the block size in which inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC is not used.
  • The operation of determining the prediction mode of the current block may include an operation of acquiring the prediction mode parameter indicating the prediction mode of the current block from a bitstream before acquiring the BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if the size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, the prediction mode parameter may be determined as a value indicating intra prediction.
  • The operation of decoding the current block, based on the inter prediction mode may include an operation of acquiring an inter prediction type parameter inter_pred_idc) indicating an inter prediction type of the current block from a bitstream and an operation of determining a reference list of the current block, based on the size of the current block and the inter prediction type parameter, and the inter prediction type parameter may indicate at least one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is larger than 12, and indicate one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is 12.
  • When the sum of the width and the height of the current block is larger than 12, bit signaling 00 of the inter prediction type parameter may indicate reference list L0, bit signaling 01 may indicate reference list L1, and bit signaling 1 may indicate reference list L0 and reference list L1.
  • According to an embodiment of the present disclosure, a method of processing a video signal is provided. The method includes: determining a prediction mode of a current block; when the prediction mode of the current block is a Block Copy (BC) prediction mode in which a current picture is referred to, generating a bitstream for encoding the current block, based on the BC prediction mode; and when the prediction mode of the current block is an inter prediction mode in which at least one picture is referred to, generating a bitstream for encoding the current block, based on the inter prediction mode, wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • According to an embodiment of the present disclosure, an apparatus for processing a video signal is provided. The apparatus includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, decode the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which the current picture is referred to, and decode the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  • Sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode may include a location of (xCb - 1, yCb -1) when an uppermost leftmost location of the current block is (xCb, yCb), and sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may not include the location of (xCb - 1, yCb -1) when the uppermost leftmost location of the current block is (xCb, yCb).
  • Sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode may include at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1) when the uppermost leftmost location of the current block is (xCb, yCb), and cbWidth may be a width of the current block and cbHeight may be a height of the current block.
  • The processor may be configured to acquire a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream and determine the prediction mode of the current block as the BC prediction mode, based on the BC mode parameter.
  • When the BC mode parameter is not acquired from the bitstream, a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, and signaling information (sps_bc_enabled_flag) at a higher level than the current block indicates that the BC prediction mode is available, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is used.
  • When the BC mode parameter is not acquired from the bitstream, if a slice to which the current block belongs is a slice which does not refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • When the BC mode parameter is not acquired from the bitstream and a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • When the BC mode parameter is not acquired from the bitstream, if a slice to which the current block belongs is a slice which may refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • The processor may be configured to acquire a prediction mode parameter indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating an intra prediction mode and when the prediction mode parameter is not acquired from the bitstream, if a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating the inter prediction mode
  • The processor may be configured to acquire a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream. When the BC mode parameter is not acquired from the bitstream and coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component, a value of the BC mode parameter may be determined as a value indicating that the BC prediction mode is not used.
  • The processor may be configured to acquire the prediction mode parameter indicating the prediction mode of the current block from the bitstream. When the prediction mode parameter is not acquired from the bitstream, a size of the current block does not correspond to a block size preset as a block size in which inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the prediction mode parameter may be determined as a value indicating inter prediction.
  • The processor may be configured to acquire the BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the BC mode parameter is not acquired from the bitstream, a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode, and a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, a value of the BC mode parameter is determined as a value indicating that the BC prediction mode is used.
  • When the BC mode parameter is not acquired from the bitstream, the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode, the size of the current block does not correspond to the block size in which inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which may refer to a picture other than the current picture as a reference picture, the value of the BC mode parameter may be determined as a value indicating that the BC is not used.
  • According to an embodiment of the present disclosure, an apparatus for processing a video signal is provided. The apparatus includes: a processor, wherein the processor is configured to determine a prediction mode of a current block, generate a bitstream for encoding the current block, based on a Block Copy (BC) prediction mode when the prediction mode of the current block is the BC prediction mode in which a current picture is referred to, and generate a bitstream for encoding the current block, based on an inter prediction mode when the prediction mode of the current block is the inter prediction mode in which at least one picture is referred to, and sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  • The processor may be configured to acquire a prediction mode parameter indicting the prediction mode of the current block from a bitstream before acquiring a BC mode parameter indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream, and when the prediction mode parameter is not acquired from the bitstream, if a size of the current block corresponds to a block size preset as a block size in which inter prediction is limited, the prediction mode parameter may be determined as a value indicating intra prediction.
  • The processor may be configured to acquire an inter prediction type parameter indicating an inter prediction type of the current block from the bitstream and determine a reference list of the current block, based on a size of the current block and the inter prediction type parameter, and the inter prediction type parameter may indicate at least one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is larger than 12, and indicate one of reference list L0 and reference list L1 when a sum of the width and the height of the current block is 12.
  • When the sum of the width and the height of the current block is larger than 12, bit signaling 00 of the inter prediction type parameter may indicate reference list L0, bit signaling 01 may indicate reference list L1, and bit signaling 1 may indicate reference list L0 and reference list L1.
  • According to an embodiment of the present disclosure, a computer-readable recording medium storing a bitstream for processing a video signal is provided. The bitstream may contain prediction mode information of a target block, and include a bitstream for encoding the target block, based on a Block Copy (BC) prediction mode when a prediction mode of the target block is the BC prediction mode in which a target picture is referred to and a bitstream for encoding the target block, based on an inter prediction mode when the prediction mode of the target block is the inter prediction mode in which at least one picture is referred to, wherein sets of spatial neighbor locations referred to for encoding the target block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the target block in the inter prediction mode.
  • Mode for Carrying Out the Invention
  • Terms used in this specification may be currently widely used general terms in consideration of functions in the present invention but may vary according to the intents of those skilled in the art, customs, or the advent of new technology. Additionally, in certain cases, there may be terms the applicant selects arbitrarily and, in this case, their meanings are described in a corresponding description part of the present invention. Accordingly, terms used in this specification should be interpreted based on the substantial meanings of the terms and contents over the whole specification.
  • In this specification, some terms may be interpreted as follows. Coding may be interpreted as encoding or decoding in some cases. In the present specification, an apparatus for generating a video signal bitstream by performing encoding (coding) of a video signal is referred to as an encoding apparatus or an encoder, and an apparatus that performs decoding (decoding) of a video signal bitstream to reconstruct a video signal is referred to as a decoding apparatus or decoder. In addition, in this specification, the video signal processing apparatus is used as a term of a concept including both an encoder and a decoder. Information is a term including all values, parameters, coefficients, elements, etc. In some cases, the meaning is interpreted differently, so the present invention is not limited thereto. 'Unit' is used as a meaning to refer to a basic unit of image processing or a specific position of a picture, and refers to an image region including both a luma component and a chroma component. In addition, 'block' refers to an image region including a specific component among luma components and chroma components (i.e., Cb and Cr). However, depending on the embodiment, terms such as 'unit', 'block', 'partition' and 'region' may be used interchangeably. In addition, in this specification, a unit may be used as a concept including all of a coding unit, a prediction unit, and a transform unit. The picture indicates a field or frame, and according to an embodiment, the terms may be used interchangeably.
  • FIG. 1 is a schematic block diagram of a video signal encoding apparatus according to an embodiment of the present invention. Referring to FIG. 1, the encoding apparatus 100 of the present invention includes a transformation unit 110, a quantization unit 115, an inverse quantization unit 120, an inverse transformation unit 125, a filtering unit 130, a prediction unit 150, and an entropy coding unit 160.
  • The transformation unit 110 obtains a value of a transform coefficient by transforming a residual signal, which is a difference between the inputted video signal and the predicted signal generated by the prediction unit 150. For example, a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), or a Wavelet Transform may be used. The DCT and DST perform transformation by splitting the input picture signal into blocks. In the transformation, coding efficiency may vary according to the distribution and characteristics of values in the transformation region. The quantization unit 115 quantizes the value of the transform coefficient value outputted from the transformation unit 110.
  • In order to improve coding efficiency, instead of coding the picture signal as it is, a method of predicting a picture using a region already coded through the prediction unit 150 and obtaining a reconstructed picture by adding a residual value between the original picture and the predicted picture to the predicted picture is used. In order to prevent mismatches in the encoder and decoder, information that may be used in the decoder should be used when performing prediction in the encoder. For this, the encoder performs a process of reconstructing the encoded current block again. The inverse quantization unit 120 inverse-quantizes the value of the transform coefficient, and the inverse transformation unit 125 reconstructs the residual value using the inverse quantized transform coefficient value. Meanwhile, the filtering unit 130 performs filtering operations to improve the quality of the reconstructed picture and to improve the coding efficiency. For example, a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter may be included. The filtered picture is outputted or stored in a decoded picture buffer (DPB) 156 for use as a reference picture.
  • The prediction unit 150 includes an intra prediction unit 152 and an inter prediction unit 154. The intra prediction unit 152 performs intra prediction in the current picture, and the inter prediction unit 154 performs inter prediction to predict the current picture by using the reference picture stored in the DBP 156. The intra prediction unit 152 performs intra prediction from reconstructed samples in the current picture, and transfers intra encoding information to the entropy coding unit 160. The intra encoding information may include at least one of an intra prediction mode, a most probable mode (MPM) flag, and an MPM index. The inter prediction unit 154 may include the motion estimation unit 154a and the motion compensation unit 154b. The motion estimation unit 154a obtains a motion vector value of the current region by referring to a specific region of the reconstructed reference picture. The motion estimation unit 154a transfers a motion information (reference picture index, motion vector information, etc.) for the reference region to the entropy coding unit 160. The motion compensation unit 154b performs motion compensation by using the motion vector value transferred from the motion estimation unit 154a. The inter prediction unit 154 transfers inter encoding information including motion information on the reference region to the entropy coding unit 160.
  • When the picture prediction described above is performed, the transformation unit 110 transforms a residual value between the original picture and the predicted picture to obtain a transform coefficient value. In this case, the transformation may be performed in a specific block unit within a picture, and the size of a specific block may be varied within a preset range. The quantization unit 115 quantizes the transform coefficient value generated in the transformation unit 110 and transmits it to the entropy coding unit 160.
  • The entropy coding unit 160 a quantized transform coefficient, intra-encoding information, inter-encoding information, and the like to generate a video signal bitstream. In the entropy coding unit 160, a variable length coding (VLC) scheme, an arithmetic coding scheme, etc. may be used. The variable length coding (VLC) scheme includes transforming input symbols into consecutive codewords, and a length of a codeword may be variable. For example, frequently occurring symbols are represented by a short codeword, and infrequently occurring symbols are represented by a long codeword. A context-based adaptive variable length coding (CAVLC) scheme may be used as a variable length coding scheme. Arithmetic coding may transform continuous data symbols into a single prime number, wherein arithmetic coding may obtain an optimal bit required for representing each symbol. A context-based adaptive binary arithmetic code (CABAC) may be used as arithmetic coding.
  • The generated bitstream is encapsulated using a network abstraction layer (NAL) unit as a basic unit. The NAL unit includes an integer number of coded coding tree units. In order to decode a bitstream in a video decoder, first, the bitstream must be separated in NAL units, and then each separated NAL unit must be decoded. Meanwhile, information necessary for decoding a video signal bitstream may be transmitted through an upper level set of Raw Byte Sequence Payload (RBSP) such as Picture Parameter Set (PPS), Sequence Parameter Set (SPS), Video Parameter Set (VPS), and the like.
  • Meanwhile, the block diagram of FIG. 1 shows an encoding apparatus 100 according to an embodiment of the present invention, and separately displayed blocks logically distinguish and show the elements of the encoding apparatus 100. Accordingly, the elements of the above-described encoding apparatus 100 may be mounted as one chip or as a plurality of chips depending on the design of the device. According to an embodiment, the operation of each element of the above-described encoding apparatus 100 may be performed by a processor (not shown).
  • FIG. 2 is a schematic block diagram of a video signal decoding apparatus 200 according to an embodiment of the present invention. Referring to FIG. 2, the decoding apparatus 200 of the present invention includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transformation unit 225, a filtering unit 230, and a prediction unit 250.
  • The entropy decoding unit 210 entropy-decodes a video signal bitstream to extract transform coefficient information, intra encoding information, inter encoding information, and the like for each region. The entropy decoding unit 210 obtains a quantized transform coefficient by inverse-binarizing a binary code. The inverse quantization unit 220 inverse-quantizes the quantized transform coefficient, and the inverse transformation unit 225 reconstructs a residual value by using the inverse-quantized transform coefficient. The video signal processing device 200 reconstructs an original pixel value by summing the residual value obtained by the inverse transformation unit 225 with a prediction value obtained by the prediction unit 250.
  • Meanwhile, the filtering unit 230 performs filtering on a picture to improve image quality. This may include a deblocking filter for reducing block distortion and/or an adaptive loop filter for removing distortion of the entire picture. The filtered picture is outputted or stored in the DPB 256 for use as a reference picture for the next picture.
  • The prediction unit 250 includes an intra prediction unit 252 and an inter prediction unit 254. The prediction unit 250 generates a prediction picture by using the encoding type decoded through the entropy decoding unit 210 described above, transform coefficients for each region, and intra/inter encoding information. In order to reconstruct a current block in which decoding is performed, a decoded region of the current picture or other pictures including the current block may be used. In a reconstruction, only a current picture, that is, a picture (or, tile/slice) that performs intra prediction, is called an intra picture or an I picture (or, tile/slice), and a picture (or, tile/slice) that may perform all of intra prediction, and inter prediction is called an inter picture (or, tile/slice). In order to predict sample values of each block among inter pictures (or, tiles/slices), a picture (or, tile/slice) using up to one motion vector and a reference picture index is called a predictive picture or P picture (or, tile/slice), and a picture (or tile/slice) using up to two motion vectors and a reference picture index is called a bi-predictive picture or a B picture (or tile / slice). In other words, the P picture (or, tile/slice) uses up to one motion information set to predict each block, and the B picture (or, tile/slice) uses up to two motion information sets to predict each block. Here, the motion information set includes one or more motion vectors and one reference picture index.
  • The intra prediction unit 252 generates a prediction block using the intra encoding information and reconstructed samples in the current picture. As described above, the intra encoding information may include at least one of an intra prediction mode, a Most Probable Mode (MPM) flag, and an MPM index. The intra prediction unit 252 predicts the pixel values of the current block by using the reconstructed pixels located on the left and/or upper side of the current block as reference pixels. According to an embodiment, reference pixels may be pixels adjacent to a left boundary and/or an upper boundary of a current block. According to another embodiment, reference pixels may be adjacent pixels within a preset distance from the left boundary of the current block and/or adjacent pixels within a preset distance from the upper boundary of the current block among pixels of neighboring blocks of the current block. In this case, the neighboring blocks of the current block may include at least one of a left (L) block, an above (A) block, a below left (BL) block, an above right (AR) block, or an above left (AL) block adjacent to the current block.
  • The inter prediction unit 254 generates a prediction block using reference pictures and inter encoding information stored in the DPB 256. The inter coding information may include motion information set (reference picture index, motion vector information, etc.) of the current block for the reference block. Inter prediction may include L0 prediction, L1 prediction, and bi-prediction. L0 prediction means prediction using one reference picture included in the L0 picture list, and L1 prediction means prediction using one reference picture included in the L1 picture list. For this, one set of motion information (e.g., motion vector and reference picture index) may be required. In the bi-prediction method, up to two reference regions may be used, and the two reference regions may exist in the same reference picture or may exist in different pictures. That is, in the bi-prediction method, up to two sets of motion information (e.g., a motion vector and a reference picture index) may be used and two motion vectors may correspond to the same reference picture index or different reference picture indexes. In this case, the reference pictures may be displayed (or outputted) both before and after the current picture in time aspect.
  • The inter prediction unit 254 may obtain a reference block of the current block using a motion vector and a reference picture index. The reference block is in a reference picture corresponding to a reference picture index. Also, a pixel value of a block specified by a motion vector or an interpolated value thereof may be used as a predictor of the current block. For motion prediction with sub-pel unit pixel accuracy, for example, an 8-tap interpolation filter for a luma signal and a 4-tap interpolation filter for a chroma signal may be used. However, the interpolation filter for motion prediction in sub-pel units is not limited thereto. In this way, the inter prediction unit 254 performs motion compensation to predict the texture of the current unit from motion pictures reconstructed previously.
  • The reconstructed video picture is generated by adding the predict value outputted from the intra prediction unit 252 or the inter prediction unit 254 and the residual value outputted from the inverse transformation unit 225. That is, the video signal decoding apparatus 200 reconstructs the current block using the prediction block generated by the prediction unit 250 and the residual obtained from the inverse transformation unit 225.
  • Meanwhile, the block diagram of FIG. 2 shows a decoding apparatus 200 according to an embodiment of the present invention, and separately displayed blocks logically distinguish and show the elements of the decoding apparatus 200. Accordingly, the elements of the above-described decoding apparatus 200 may be mounted as one chip or as a plurality of chips depending on the design of the device. According to an embodiment, the operation of each element of the above-described decoding apparatus 200 may be performed by a processor (not shown).
  • FIG. 3 illustrates an embodiment in which a coding tree unit (CTU) is split into coding units (CUs) in a picture. In the coding process of a video signal, a picture may be split into a sequence of coding tree units (CTUs). The coding tree unit is composed of an NXN block of luma samples and two blocks of chroma samples corresponding thereto. The coding tree unit may be split into a plurality of coding units. The coding unit refers to a basic unit for processing a picture in the process of processing the video signal described above, that is, intra/inter prediction, transformation, quantization, and/or entropy coding. The size and shape of the coding unit in one picture may not be constant. The coding unit may have a square or rectangular shape. The rectangular coding unit (or rectangular block) includes a vertical coding unit (or vertical block) and a horizontal coding unit (or horizontal block). In the present specification, the vertical block is a block whose height is greater than the width, and the horizontal block is a block whose width is greater than the height. Further, in this specification, a non-square block may refer to a rectangular block, but the present invention is not limited thereto.
  • Referring to FIG. 3, the coding tree unit is first split into a quad tree (QT) structure. That is, one node having a 2NX2N size in a quad tree structure may be split into four nodes having an NXN size. In the present specification, the quad tree may also be referred to as a quaternary tree. Quad tree split may be performed recursively, and not all nodes need to be split with the same depth.
  • Meanwhile, the leaf node of the above-described quad tree may be further split into a multi-type tree (MTT) structure. According to an embodiment of the present invention, in a multi-type tree structure, one node may be split into a binary or ternary tree structure of horizontal or vertical division. That is, in the multi-type tree structure, there are four split structures such as vertical binary split, horizontal binary split, vertical ternary split, and horizontal ternary split. According to an embodiment of the present invention, in each of the tree structures, the width and height of the nodes may all have powers of 2. For example, in a binary tree (BT) structure, a node of a 2NX2N size may be split into two NX2N nodes by vertical binary split, and split into two 2NXN nodes by horizontal binary split. In addition, in a ternary tree (TT) structure, a node of a 2NX2N size is split into (N/ 2)X2N, NX2N, and (N/2)X2N nodes by vertical ternary split, and split into 2NX(N/2), 2NXN, and 2NX(N/2) nodes by horizontal binary split. This multi-type tree split may be performed recursively.
  • The leaf node of the multi-type tree may be a coding unit. If the coding unit is not large for the maximum transform length, the coding unit is used as a unit of prediction and transform without further division. On the other hand, at least one of the following parameters in the above-described quad tree and multi-type tree may be predefined or transmitted through a high level set of RBSPs such as PPS, SPS, VPS, and the like. 1) CTU size: root node size of quad tree, 2) minimum QT size MinQtSize: minimum allowed QT leaf node size, 3) maximum BT size MaxBtSize: maximum allowed BT root node size, 4) Maximum TT size MaxTtSize: maximum allowed TT root node size, 5) Maximum MTT depth MaxMttDepth: maximum allowed depth of MTT split from QT's leaf node, 6) Minimum BT size MinBtSize: minimum allowed BT leaf node size, 7) Minimum TT size MinTtSize: minimum allowed TT leaf node size.
  • FIG. 4 shows an embodiment of a method for signaling the split of a quad tree and a multi-type tree. Preset flags may be used to signal the split of the above-described quad tree and multi-type tree. Referring to FIG. 4, at least one of a flag 'qt_split_flag' indicating whether to split the quad tree node, a flag 'mtt_split_flag' indicating whether to split the multi-type tree node, a flag 'mtt_split_vertical_flag' indicating a split direction of a multi-type tree node, or a flag 'mtt_split_binary_flag' indicating a split shape of a multi-type tree node may be used.
  • According to an embodiment of the present invention, the coding tree unit is a root node of a quad tree, and may be first split into a quad tree structure. In the quad tree structure, 'qt_split_flag' is signaled for each node 'QT_node'. If the value of 'qt_split_flag' is 1, the node is split into 4 square nodes, and if the value of 'qt_split_flag' is 0, the corresponding node becomes the leaf node 'QT_leaf_node' of the quad tree.
  • Each quad tree leaf node 'QT_leaf_node' may be further split into a multi-type tree structure. In the multi-type tree structure, 'mtt_split_flag' is signaled for each node 'MTT_node'. When the value of 'mtt_split_flag' is 1, the corresponding node is split into a plurality of rectangular nodes, and when the value of 'mtt_split_flag' is 0, the corresponding node is a leaf node 'MTT_leaf_node' of the multi-type tree. When the multi-type tree node 'MTT_node' is split into a plurality of rectangular nodes (i.e., when the value of 'mtt_split_flag' is 1), 'mtt_split_vertical_flag' and 'mtt_split_binary_flag' for the node 'MTT_node' may be additionally signaled. When the value of 'mtt_split_vertical_flag' is 1, vertical split of node 'MTT_node' is indicated, and when the value of 'mtt_split_vertical_flag' is 0, horizontal split of node 'MTT_node' is indicated. In addition, when the value of 'mtt_split_binary_flag' is 1, the node 'MTT_node' is split into 2 rectangular nodes, and when the value of 'mtt_split_binary_flag' is 0, the node 'MTT_node' is split into 3 rectangular nodes.
  • FIGS. 5 and 6 more specifically illustrate an intra prediction method according to an embodiment of the present invention. As described above, the intra prediction unit predicts the pixel values of the current block by using the reconstructed pixels located on the left and/or upper side of the current block as reference samples.
  • First, FIG. 5 illustrates an embodiment of reference samples used for predicting the current block in an intra prediction mode. According to an embodiment, reference pixels may be pixels adjacent to a left boundary and/or an upper boundary of a current block. As illustrated in FIG. 5, when the size of the current block is WXH and pixels of a single reference line adjacent to the current block are used for intra prediction, reference pixels may be configured using a maximum of 2W+2H+1 adjacent pixels located in the left side and/or the upper side of the current block. Meanwhile, according to an additional embodiment of the present disclosure, pixels of multiple reference lines may be used for intra prediction of the current block. The multiple reference lines may include n lines located within a preset range from the current block. According to an embodiment, when pixels of the multiple reference lines are used for intra prediction, separate index information indicating lines to be configured to the reference pixels may be signaled. When at least some of the adjacent pixels to be used as the reference pixels have not yet been reconstructed, an intra predictor may acquire reference pixels through a reference sample padding process according to a preset rule. In addition, the intra predictor may perform a reference sample filtering process to reduce an error in intra prediction. That is, reference pixels may be acquired by filtering adjacent pixels and/or pixels acquired through the reference sample padding process. The intra predictor predicts pixels of the current block using the acquired reference pixels.
  • Next, FIG. 6 shows an embodiment of prediction modes used for intra prediction. For intra prediction, intra prediction mode information indicating an intra prediction direction may be signaled. The intra prediction mode information indicates one of a plurality of intra prediction modes included in the intra prediction mode set. When the current block is an intra prediction block, the decoder receives intra prediction mode information of the current block from the bitstream. The intra prediction unit of the decoder performs intra prediction on the current block based on the extracted intra prediction mode information.
  • According to an embodiment of the present invention, the intra prediction mode set may include all intra prediction modes used in intra prediction (e.g., a total of 67 intra prediction modes). More specifically, the intra prediction mode set may include a planar mode, a DC mode, and a plurality (e.g., 65) of angle modes (i.e., directional modes). Each intra prediction mode may be indicated through a preset index (i.e., intra prediction mode index). For example, as shown in FIG. 6, the intra prediction mode index 0 indicates a planar mode, and the intra prediction mode index 1 indicates a DC mode. Also, the intra prediction mode indexes 2 to 66 may indicate different angle modes, respectively. The angle modes respectively indicate angles which are different from each other within a preset angle range. For example, the angle mode may indicate an angle within an angle range (i.e., a first angular range) between 45 degrees and -135 degrees clockwise. The angle mode may be defined based on the 12 o'clock direction. In this case, the intra prediction mode index 2 indicates a horizontal diagonal (HDIA) mode, the intra prediction mode index 18 indicates a horizontal (Horizontal, HOR) mode, the intra prediction mode index 34 indicates a diagonal (DIA) mode, the intra prediction mode index 50 indicates a vertical (VER) mode, and the intra prediction mode index 66 indicates a vertical diagonal (VDIA) mode.
  • Meanwhile, a preset angle range may be differently configured according to a shape of the current block. For example, when the current block is a rectangular block, a wide angle mode indicating an angle larger than 45 degrees and smaller than -135 degrees in a clockwise direction may be additionally used. When the current block is a horizontal block, an angle mode may indicate an angle within an angle range (that is, a second angle range) between (45+offsetl) degrees and (-135+offset1) degrees in a clockwise direction. In this case, angle modes 67 to 76 out of a first angle range may be additionally used. When the current block is a vertical block, an angle mode may indicate an angle within an angle range (that is, a third angle range) between (45-offset2) degrees and (-135-offset2) degrees in a clockwise direction. In this case, angle modes -10 to - 1 out of a first angle range may be additionally used. According to an embodiment of the present disclosure, values of offset1 and offset2 may be determined to be different from each other according to a ratio between the width and the height of the rectangular block. Further, offset1 and offset2 may be positive numbers.
  • According to an additional embodiment of the present disclosure, a plurality of angle modes included in an intra prediction mode set may include a basic angle mode and an expanded angle mode. In this case, the expanded angle mode may be determined on the basis of the basic angle mode.
  • According to an embodiment, the basic angle mode may be a mode corresponding to an angle used in intra prediction of the convention High Efficiency Video Coding (HEVC) standard, and the expanded angle mode may be a mode corresponding to an angle newly added to intra prediction of a next-generation video codec standard. More specifically, the basic angle mode may be an angle mode corresponding to one of intra prediction modes {2, 4, 6, ..., 66}, and the expanded angle mode may be an angle mode corresponding to one of intra prediction modes {3, 5, 7, ..., 65}. That is, the expanded angle mode may be an angle mode between basic angle modes within the first angle range. Accordingly, an angle indicated by the expanded angle mode may be determined on the basis of an angle indicated by the basic angle mode.
  • According to another embedment, the basic angle mode may be a mode corresponding to an angle within the preset first angle range, and the expanded angle mode may be a wide angle mode out of the first angle range. That is, the basic angle mode may be an angle mode corresponding to one of intra prediction modes {2, 3, 4, ..., 66}, and the expanded angle mode may be an angle mode corresponding to one of intra prediction modes {-10, -9, ..., -1} and {67, 68, ..., 76}. The angle indicated by the expanded angle mode may be determined as an angle opposite to the angle indicated by the basic angle mode. Accordingly, an angle indicated by the expanded angle mode may be determined on the basis of an angle indicated by the basic angle mode. Meanwhile, the number of expanded angle modes is not limited thereto, and additional expanded angles may be defined according to the size and/or shape of the current block. For example, the expanded angle mode may be defined as an angle mode corresponding to one of intra prediction modes {-14, -13, ..., -1} and {67, 68, ..., 80}. Meanwhile, a total number of intra prediction modes included in the intra prediction mode set may vary depending on the configuration of the basic angle mode and the expanded angle mode.
  • In the embodiments, the interval between the expanded angle modes may be configured on the basis of the interval between the basic angle modes. For example, the interval between the expanded angle modes {3, 5, 7, ..., 65} may be configured on the basis of the interval between the basic angle modes {2, 4, 6, ..., 66}. Further, the interval between the expanded angle modes {-10, -9, ..., -1} may be determined on the basis of the interval between the corresponding basic angle modes {56, 57, ..., 65} on the opposite side, and the interval between the expanded angle modes {67, 68, ..., 76} may be determined on the basis of the interval between the corresponding basic angle modes {3, 4, ..., 12} on the opposite side. The angle interval between the expanded angle modes may be configured to be the same as the angle interval between the basic angle modes. Further, the number of expanded angle modes in the intra prediction mode set may be configured to be equal to or smaller than the number of basic angle modes.
  • According to an embodiment of the present disclosure, the expanded angle mode may be signaled on the basis of the basic angle mode. For example, the wide angle mode (that is, the expanded angle mode) may replace at least one angle mode (that is, basic angle mode) within the first angle range. The replaced basic angle mode may be an angle mode corresponding to the opposite side of the wide angle mode. That is, the replaced basic angle mode may be an angle mode corresponding to an angle in a direction opposite to the angle indicated by the wide angle mode or corresponding to an angle having a difference by a preset offset index from the angle in the opposite direction. According to an embodiment of the present disclosure, the preset offset index is 1. An intra prediction mode index corresponding to the replaced basic angle mode may be mapped to the wide angle mode again and signal the corresponding wide angle mode. For example, wide angle modes {-10, -9, ..., -1} may be signaled by intra prediction mode indexes {57, 58, ..., 66}, and wide angle modes {67, 68, ..., 76} may be signaled by intra prediction mode indexes {2, 3, ..., 11}. As the intra prediction mode indexes for the basic angle modes signal the expanded angle modes, the prediction mode indexes in the same set may be used for signaling intra prediction modes even though configurations of the angle modes used for intra prediction of blocks are different from each other. Accordingly, it is possible to minimize signaling overhead according to a change in the configuration of the intra prediction mode.
  • Meanwhile, whether to use the expanded angle mode may be determined on the basis of at least one of the shape and the size of the current block. According to an embodiment, when the size of the current block is larger than a preset size, the expanded angle mode may be used for intra prediction of the current block. Otherwise, only the basic angle mode may be used for intra prediction of the current block. According to another embodiment, when the current block is not a rectangular block, the expanded angle mode may be used for intra prediction of the current block. When the current block is a rectangular block, only the basic angle mode may be used for intra prediction of the current block.
  • The intra predictor determines reference pixels and/or interpolated reference pixels to be used for intra prediction of the current block on the basis of intra prediction mode information of the current block. When the intra prediction mode index indicates a specific angle mode, a reference pixel or an interpolated reference pixel corresponding to the specific angle from the current pixel of the current block may be used for prediction of the current pixel. Accordingly, reference pixels and/or interpolated reference pixels in different sets may be used for intra prediction according to the intra prediction mode. When intra prediction of the current block has been performed using reference pixels and intra prediction mode information, a decoder reconstructs pixel values of the current block by adding a residual signal of the current block acquired from an inverse converter to an intra prediction value of the current block.
  • FIG. 7 illustrates inter prediction according to an embodiment of the present disclosure.
  • As described above, when the current picture or block is encoded or decoded, prediction may be performed from another picture or block. That is, encoding or decoding may be performed on the basis of similarity with another picture or block. A part similar to another picture or block may be encoded or decoded through omitted signaling in the current picture or block, which is described below in more detail. Prediction in units of blocks is possible.
  • Referring to FIG. 7, there is a reference picture on the left side and a current picture on the right side, and the current picture or some of the current picture may be predicted using similarity with the reference picture or some of the reference picture. When a rectangle indicated by solid lines within the current picture of FIG. 7 is a block to be currently encoded or decoded, the current block may be predicted from a rectangle indicated by dotted lines of the reference picture. In this case, there may be information indicating a block (reference block) to which the current block should refer, and the information may be directly signaled or made by appointment to reduce signaling overhead. Information indicating the block to which the current block should refer may include a motion vector. The motion vector may be a vector indicating a relative location between the current block and the reference block within the picture. Referring to FIG. 7, there is a part indicated by dotted lines of the reference picture, and a vector indicating how to move the current block to the block to which the current block should refer may be a motion vector. That is, the block appearing when the current block moves according to the motion vector may be a part indicated by dotted lines in the current picture of FIG. 7, and the location of the part indicated by the dotted lines in the picture may be the same as the location of the reference block of the reference picture.
  • Information indicating the block to which the current block should refer may include information indicating the reference picture. The information indicating the reference picture may include a reference picture list and a reference picture index. The reference picture list is a list indicating reference pictures, and a reference block may be used in a reference picture included in the reference picture list. That is, the current block may be predicted from the reference picture included in the reference picture list. A reference picture index may be an index indicating a reference picture to be used.
  • FIG. 8 illustrates a motion vector signaling method according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a Motion Vector (MV) may be generated on the basis of a Motion Vector Predictor (MVP). For example, the MVP may become a motion vector as shown below. MV = MVP
    Figure imgb0001
  • In another example, the motion vector may be based on a Motion Vector Difference (MVD) as shown below. The MVD may be added to the MVP in order to indicate an accurate motion vector. MV = MVP + MVD
    Figure imgb0002
  • Motion vector information determined by an encoder in video coding may be transmitted to a decoder, and the decoder may generate a motion vector from the received motion vector information and determine a predicted block. For example, the motion vector information may include information on the MVP and the MVD. In this case, elements of the motion vector information may vary depending on a mode. For example in a merge mode, the motion vector information may include information on the MVP but may not include the MVD. In another example, in an Advanced Motion Vector Prediction (AMVP) mode, the motion vector information may include information on the MVP and the MVD.
  • In order to determine, transmit, and receive the information on the MVP, the encoder and the decoder may generate MVP candidates through the same method. For example, the encoder and the decoder may generate the same MVP candidates in the same order. The encoder may transmit an index indicating a determined MVP among the generated MVP candidates to the decoder, and the decoder may recognize the determined MVP and an MV on the basis of the index.
  • The MVP candidates and the method of generating the MVP candidates may include spatial candidates, temporal candidates, and the like. The spatial candidate may be a motion vector for a block at a predetermined location from the current block. For example, the spatial candidate may be a motion vector corresponding to a block or a location which is adjacent or is not adjacent to the current block. The temporal candidate may be a motion vector corresponding to a block within a picture different from the current picture. Alternatively, the MVP candidates may include an affine motion vector, an ATMVP, an STMVP, a combination of the above-described motion vectors, an average vector of the above-described motion vectors, a zero motion vector, and the like.
  • The information indicating the reference picture may also be transmitted from the encoder to the decoder. When the reference picture corresponding to the MVP candidate does not correspond to information indicating the reference picture, motion vector scaling may be performed. Motion vector scaling may be calculation based on a Picture Order Count (POC) of the current picture, a POC of the reference picture of the current block, a POC of the reference picture of the MVP candidate, and the MVP candidate.
  • FIG. 9 illustrates MVD syntax according to an embodiment of the present disclosure.
  • The MVD may be coded while a sign and an absolute value of the MVD are separated. That is, the sign and the absolute value of the MVD may be different syntaxes. Further, the absolute value of the MVD may be directly coded, but may be coded while including a flag indicating whether the absolute value is larger than N as illustrated in FIG. 9. When the absolute value is larger than N, a value of (absolute value - N) may also be signaled. In the example of FIG. 9, abs_mvd_greater0_flag may be transmitted, and the flag may indicate whether the absolute value is larger than 0. When abs_mvd_greater0_flag indicates that the absolute value is not larger than 0, it may be determined that the absolute value is 0. When abs_mvd_greater0_flag indicates that the absolute value is larger than 0, there may be additional syntax. For example, abs_mvd_greater1_flag may exist, and the flag may indicate whether the absolute value is larger than 1. When abs_mvd_greater1_flag indicates that the absolute value is not larger than 1, it may be determined that the absolute value is 1. If abs_mvd_greater1_flag indicates that the absolute value is larger than 1, additional syntax may exist. For example, abs_mvd_minus2 may exist, and may correspond to a value of (absolute value - 2). Since it is determined that the absolute value is larger than 1 (larger than or equal to 2) through abs_mvd_greater0_flag and abs_mvd_greater1_flag, it indicates (absolute value - 2). Binarization of abs_mvd_minus2 to a variable length is for signaling with smaller bits. For example, there are variable length binarization methods such as Exp-Golomb, truncated unary, truncated Rice, and the like. mvd_sign_flag may be a flag indicating a sign of the MVD.
  • Although the coding method has been described through the MVD in this embodiment, information other than the MVD may be separated into a sign and an absolute value, and the absolute value may be coded with a flag indicating whether the absolute value is larger than any value and a value obtained by subtracting any value from the absolute value.
  • In FIG. 9, [0] and [1] may indicate component indexes. For example, [0] and [1] may indicate an x-component and a y-component.
  • Further, in FIG. 9, cpIdx may indicate a control point index. The control point index may be an index corresponding to a control motion vector index in affine motion prediction. In prediction methods other than the affine motion prediction, cpIdx may be used as a preset value, for example, 0.
  • FIG. 10 illustrates Adaptive Motion Vector Resolution (AMVR) signaling according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, there may be various resolutions indicating a motion vector or an MVD. In other words, there may be various resolutions with which the motion vector or the MVD is coded. For example, the resolution may be indicated on the basis of a pixel (pel). For example, the motion vector or the MVD may be signaled in units of 1/4(quarter), 1/2(half), 1(integer), 2, or 4 pixels. For example, when 16 is desired as the result, coding may be performed by 64 in units of 1/4 (1/4 * 64 = 16), coding may be performed by 16 in units of 1 (1 * 16 = 16), and coding may be performed by 4 in units of 4 (4 *. 4 = 16). That is, the value may be determined as shown below. valueDetermined = resolution * valuePerResolution
    Figure imgb0003
  • valueDetermined may be a value, that is, a motion vector or an MVD in the present embodiment. valuePerResolution may be a value indicating valueDetermined in the [/resolution] unit.
  • In this case, when a value signaled by the motion vector or the MVD is not divisible by a resolution, an inaccurate value, which is not the best performance motion vector or MVD, may be transmitted due to rounding or the like. The use of a high resolution may decrease inaccuracy but increase a value to be coded, and thus more bits may be used. The use of a low resolution may increase inaccuracy but decrease a value to be coded, and thus fewer bits may be used.
  • Further, it is possible to differently configure the resolution in units of blocks, CUs, slices, and the like. Accordingly, the resolution may be adaptively applied to fit the unit.
  • The resolution may be signaled from the encoder to the decoder. Signaling of the resolution may be the signaling binarized with the variable length. In this case, when the signaling is performed with an index corresponding to the smallest value (the frontmost value), signaling overhead is reduced.
  • In an embodiment, signaling indexes may match resolutions in the order from a high resolution (detailed signaling) to a low resolution.
  • FIG. 10 illustrates signaling of three resolutions. The three signals may be 0, 10, and 11, and correspond to resolution 1, resolution 2, and resolution 3, respectively. Since signaling of resolution 1 needs 1 bit and signaling of the remaining resolutions need 2 bits, the signaling of resolution 1 has smaller signaling overhead. In the example of FIG. 10, resolution 1, resolution 2, and resolution 3 are 1/4, 1, and 4 pels, respectively.
  • Hereinafter, the motion vector resolution may mean the resolution of the MVD in the present disclosure.
  • FIG. 11 illustrates inter prediction-related syntax according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, an inter prediction method may include a skip mode, a merge mode, an inter mode, and the like. According to an embodiment, in the skip mode, a residual signal may not be transmitted. In the skip mode, an MV determination method which is the same as that in the merge mode may be used. Whether to use the skip mode may be determined according to a skip flag. Referring to FIG. 11, whether to use the skip mode may be determined according to a value of cu_skip_flag.
  • According to an embodiment, no MVD may be used in the merge mode. A motion vector may be determined on the basis of a motion candidate index. Whether to use the merge mode may be determined according to a merge flag. Referring to FIG. 11, whether to use the merge mode may be determined according to a value of the merge_flag. When the skip mode is not used, the merge mode may be used.
  • One candidate may be selectively used among one or more candidate list types in the skip mode or the merge mode. For example, a merge candidate or a subblock merge candidate may be used. The merge candidate may include a spatial neighboring candidate, a temporal neighboring candidate, and the like. Further, the merge candidate may include a candidate using a motion vector for the entire current block (CU). That is, motion vectors of respective subblocks belonging to the current block may include the same candidate. The subblock merge candidate may include a subblock-based temporal MV, an affine merge candidate, and the like. Further, the subblock merge candidate may include a candidate which may use different motion vector for respective subblocks of the current block (CU). The affine merge candidate may be a method made through a scheme of determining a control point motion vector of affine motion prediction without using the MVD. The subblock merge candidate may include methods of determining a motion vector in units of subblocks in the current block. For example, the subblock merge candidate may include a plane MV, a regression-based MV, an STMVP, and the like as well as the subblock-based temporal MV and the affine merge candidate.
  • According to an embodiment, the MVD may be used in the inter mode. The MVP may be determined on the basis of a motion candidate index, and the motion vector may be determined on the basis of the MVP and the MVD. Whether to use the inter mode may be determined according to information on whether other modes are used or not. In another embodiment, whether to use the inter mode may be determined by a flag. FIG. 11 illustrates an example of using the inter mode in the case in which other modes, such as the skip mode and the merge mode, are not used.
  • The inter mode may include an AMVP mode, an affine inter mode, and the like. The inter mode may be a mode of determining a motion vector on the basis of the MVP and the MVD. The affine inter mode may be a method of using the MVD when determining a control point motion vector of affine motion prediction.
  • Referring to FIG. 11, after the skip mode or the merge mode is determined, it may be determined whether to use the subblock merge candidate or the merge candidate. For example, when a specific condition is satisfied, merge_subblock_flag indicating whether the subblock merge candidate is used may be parsed. The specific condition may be a condition related to the block size. For example, the specific condition may be a condition related to a width, a height, an area, or the like, or may use a combination thereof. Referring to FIG. 11, the specific condition may be, for example, a condition in the case in which the width and the height of the current block (CU) are larger than or equal to a specific value. When merge_subblock_flag is parsed, the value may be inferred as 0. When merge_subblock_flag is 1, the subblock merge candidate may be used. When merge_subblock_flag is 0, the merge candidate may be used. merge_subblock_idx corresponding to a candidate index may be parsed when the subblock merge candidate is used, and merge_idx corresponding to a candidate index may be parsed when the merge candidate is used. When a maximum number of candidate lists is 1, no parsing may be performed. When merge_subblock_idx or merge_idx is not parsed, the value may be inferred as 0.
  • FIG. 11 illustrates a function of coding_unit, and the content related to intra prediction may be omitted or FIG. 11 may indicate the case in which inter prediction is determined.
  • FIG. 12 illustrates locations of spatial neighbors according to an embodiment of the present disclosure.
  • As described above, locations around the current block may be referred to when prediction is performed. This may mean that motion information corresponding to the locations around the current block is referred to. For example, when the merge mode, the AMVP mode, or the like is used, the MVP or the MV may be configured on the basis of motion information corresponding to locations around the current block. The locations therearound may be preset. When there are a plurality of locations therearound, the order in which the locations are referred to may be preset. The locations therearound may include a spatial neighbor and a temporal neighbor.
  • Referring to FIG. 12, locations corresponding to A0, A1, B0, B1, and B2 may be preset. The locations may be luma locations. When the uppermost leftmost location of the current block is (xCb, yCb), A0, A1, B0, B1, and B2 may be (xCb - 1, yCb + cbHeight), (xCb - 1, yCb + cbHeight - 1), (xCb + cbWidth, yCb - 1), (xCb + cbWidth - 1, yCb - 1), and (xCb - 1, yCb - 1), respectively. In this case, , cbWidth and cbHeight may be the width and the height of the current block, respectively.
  • According to an embodiment of the present disclosure, the spatial neighbors may be referred to in the order of A1, B1, B0, A0, and B2 in the merge mode. A spatial candidate corresponding to a location of a spatial neighbor may be added to a candidate list. A temporal candidate may be added as well as the spatial candidate, and may be behind the spatial candidate. A motion vector corresponding to the temporal candidate may be called a collocated motion vector.
  • When the candidate list is not full, a zero motion vector may be added to the candidate list. The zero motion vector may be a motion vector indicating the current block location.
  • The merge candidate list may include a history-based motion vector prediction candidate, a pairwise average candidate, and the like. The candidates may be located behind the spatial candidate in the candidate list. The history-based motion vector prediction candidate may be stored motion information. The stored motion information may be motion information corresponding to a block decoded (encoded) before the current block. The pairwise average candidate may be a candidate generated on the basis of candidates already added to the candidate list. For example, the pairwise average candidate may be an average of candidates already added to the candidate list.
  • The method of adding the candidates to the candidate list with reference to the locations around the current block may include a vector scaling process. Motion vector scaling may be performed on the basis of a Picture Order Count (POC) of the reference picture of the referred motion information, a POC of a picture including the current block, a POC of the reference picture of the current block, referred motion information, and the like.
  • According to an embodiment of the present disclosure, preset spatial neighbor locations may be grouped. The groups may refer to a preset number of pieces of motion information. For example, group 1 may refer to a preset number of pieces of motion information, and group 2 may refer to a preset number of pieces of motion information. For example, the preset number may be 1. Further, a reference order within the group may be preset. A candidate addition order between groups may be preset.
  • Referring to FIG. 12, group 1 may include A0 and A1, and group 2 may include B0, B1, and B2. Further, candidates may be generated from motion information available in group 1, and candidates may be generated from motion information available in group 2. Candidates from group 1 may be added to the candidate list and candidates from group 2 may be added to the candidate list sequentially. For example, the candidate list may be made as described above in the AMVP mode.
  • When the candidate list is not full, a scaled candidate, a temporal candidate, a zero motion vector, and the like may be added.
  • FIG. 13 illustrates a current picture reference according to an embodiment of the present disclosure.
  • As described above, a block within the reference block may be referred to when the current block is predicted. According to an embodiment of the present disclosure, the reference picture may be a picture including the current block, that is, the current picture. Therefore, the block of the current picture may be referred to when the current block is predicted. Such a technology may be called Current Picture Referencing (CPR).
  • According to an embodiment, when CPR is used, the current block may be the only reference picture. In this case, inference may be performed without signaling indicating the reference picture.
  • According to an embodiment, when CPR is used, there may be a motion vector indicating a reference block to which the current block refers. According to an embodiment, when CPR is used, the location of the reference block may be limited. For example, the location of the reference block may be limited on the basis of the location of the current block. For example, the location of the reference block may be limited to the inside of a CTU including the current block. Alternatively, the location of the reference block may be limited to a location including at least some of the CTU including the current block. Limiting the location of the reference block may be to reduce memory load.
  • According to an embodiment of the present disclosure, there may be signaling indicating whether the current block uses CPR. In an embodiment, the signaling may be signaling in the larger unit including the current block. For example, signaling at a slice level or a tile level is possible. For example, signaling at a level at which parallel processing may be performed is possible. In an embodiment, for example, when the reference picture to which the current block refers is the current picture, CPR may be used. Alternatively, when the current picture is the only reference picture, CPR may be used. In addition, when the current block is a block which does not use intra prediction, CPR may be used. That is, for example, when a reference picture corresponding to the current block is the current picture, CPR may be used if intra prediction is not used. In an embodiment, information indicating that the current picture is the only reference picture may be indicated by a parameter of CurrPicIsOnlyRef. Alternatively, using CPR may mean that the reference picture is the current picture. Alternatively, using CPR may mean that the reference picture is the current picture and intra prediction is not used.
  • According to an embodiment of the present disclosure, when CPR is used, motion information may be indicated using the merge mode, the AMVP mode, and the like.
  • Further, when CPR is used, the current slice or tile may be configured as a P slice or a P tile. When CPR is used, a flag indicating the use of a dual tree may be configured as a value indicating the use of the dual tree. The dual tree may mean that a tree corresponding to luma and a tree corresponding to chroma are different.
  • Referring to FIG. 13, the current block indicated by solid lines may be within the current picture. Further, the reference block indicated by dotted lines may exist within the current picture. In this case, there may be motion information indicating the location of the reference block. Referring to FIG. 13, the arrow may be motion information indicating the location of the reference block.
  • According to an embodiment of the present disclosure, when CPR is used, the configuration of a candidate list may become different. For example, when CPR is used, a temporal candidate may not be added to the candidate list.
  • According to an embodiment of the present disclosure, when CPR is used, motion information referred to from surroundings may not be scaled.
  • FIG. 14 illustrates a spatial neighboring candidate reference method according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, when the current block uses CPR, a candidate list configuration method may be different from the case in which no CPR is used. For example, when the current block uses CPR, a spatial neighboring candidate addition method may be different from the case in which no CPR is used. For example, when the current block uses CPR, motion information at a location beyond the range within which the reference block of CPR may be located may not be referred to. Alternatively, when the current block uses CPR, motion information at a location beyond the range based on the range within which the reference block of CPR may be located may not be referred to. The range within which the reference block of CPR may be located may be a CTU range to which the current block belongs. According to an embodiment of the present disclosure, motion information may not be referred to from the location beyond the current CTU. For example, when the current block borders a range boundary on which the reference block may be located, a preset spatial neighbor location may be out of the range within which the reference block may be located. Particularly, when the preset spatial neighbor location of FIG. 12 is referred to, if the current block borders a top boundary or a left boundary of the range within which the reference block may be located, a plurality of preset spatial neighbor locations may escape the range within which the reference block may be located.
  • Referring to FIG. 14, the location of the reference block may be limited to the inside of the CTU. According to an embodiment, motion from the location beyond the range within which the reference block may be located may not be referred to. For example, when the current block is located at the boundary of the range which the reference block may have, the preset spatial neighbor location may escape the range within which the reference block may be located. In FIG. 14, preset spatial neighbors around the current block are marked with small dotted rectangles. In this case, it may be determined that the location out of the CTU is not available.
  • This is because, if the location beyond the range within which the reference block may be located is referred to, motion information at the location has a narrow range in order to prevent the reference block of the current block or the reference block at the referred location from being beyond the limited range. For example, in the case of FIG. 14, the reference block in the part marked as not available should not be out of the CTU to which the reference block belongs. In order to prevent the location indicated by the motion information in the part marked as not available from escaping the range within which the reference block of the current block may be located, a y component of the motion information in the referred part of FIG. 14 should be 0. When the current block borders the left boundary, an x component of the motion information in the referred part beyond the boundary should be 0. Even in the state in which the x component or the y component is 0 and the remaining component is not 0, if only one sign (for example, negative) of one component is effective in a preset coding order or the component has the other sign, it may be highly likely to make the MVD large.
  • In an additional description in which the reference block is limited to the inside of the current CTU, only the inside of the CTU is used as the reference block, and thus there is little correlation between MVs. When it is not possible to correct the MVD such as in the merge mode, a reference block of the current block or a neighboring block exceeds the CTU range if there are both x and y components of the MV in the outside of the CTU. For example, when the current block is on a boundary above the CTU, the current block or the neighboring block exceeds the CTU range if there is a y component of the MV of the upper block.
  • Since the entire slice is current-picture-referenced (CPR), the neighboring block also may have used intra or CPR.
  • When the current block is on a tile boundary (or in the case of the slice rather than CPR), the surroundings may use inter rather than CPR, in which case the neighboring MV may indicate a remote place and thus escape from the CTU. Since the neighboring MV indicates another picture, there may be little correlation.
  • According to an embodiment of the present disclosure, only when a spatial neighbor location referred to by the current block using CPR uses CPR, motion information may be referred to. Alternatively, when the spatial neighbor location referred to by the current block using CPT does not use CPR, motion information may not be referred to therefrom.
  • According to another embodiment, motion information at the spatial neighbor location may be referred to after being clipped to a range which a reference block corresponding to the current block may have.
  • As illustrated in the embodiment of FIG. 14, when the available spatial neighbor location is reduced, a total number of candidates may be reduced. In this case, it is possible to reduce candidate index signaling. For example, when a spatial neighboring candidate at a preset location and a zero motion vector may be added to a candidate list or when i) a spatial neighboring candidate at a preset location, ii) a limited number of HMVP candidates or a pairwise average candidate, or iii) a zero motion vector may be added to a candidate list, if the available spatial neighbor location is reduced, a total number of candidates may be reduced. In this case, the number of bits may be reduced by binarizing an index through a reduction in a maximum value of a candidate index.
  • Alternatively, when the available spatial neighbor location is reduced as illustrated in the embodiment of FIG. 14, a candidate, which may be added after the spatial neighbor candidate, may be added to the front of the candidate list, and thus the number of bits corresponding to a candidate index may be reduced when the candidate, which may be added after the spatial neighbor candidate, is used.
  • FIG. 15 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, the number of candidates which may refer to motion information at preset locations may be small. For example, according to the situation described with reference to FIG. 14, available spatial neighbor locations may be reduced. For example, when the current block borders the top boundary or the left boundary of the range that the reference block may have, the number of available candidates may be small. In this case, even though availability is not detected with reference to the corresponding spatial neighbor (for example, even though it is not detected whether the corresponding spatial neighbor location has used intra prediction or inter prediction), the decoder and the encoder may determine that there are no candidates corresponding to the corresponding spatial neighbor. In this case, the location of a zero MV may be moved forward in the candidate list.
  • Accordingly, it may be determined whether a candidate index indicates a zero MV through the candidate index according to an embodiment of the present disclosure. For example, when some of the spatial neighbor locations are excluded according to the current block location and a range in which the spatial neighbor locations may be referred to as neighbors, if the number of indexes is larger than or equal to the number of all of the remaining available candidates, the zero motion vector may be determined. For example, when the zero motion vector is added after the spatial neighbor candidate, if the number of indexes is larger than or equal to the number of available spatial neighbor candidates, the zero motion vector may be determined. For example, when some of the spatial neighbor locations are excluded according to the current block location and a range in which the spatial neighbor locations may be referred to as neighbors, if the number of remaining spatial neighbor locations is M and a value of an index starting from 0 is M, a candidate added after the spatial neighbor candidate may be determined and, if the zero MV comes after the spatial neighbor candidate, the zero MV may be determined.
  • For example, like the case of a block marked with A in FIG. 15, there may be a case in which the current block borders the left boundary of the range within which the reference block may be located. In this case, as illustrated in FIG. 14, if motion information at the location out of the range within which the reference block may be located is not referred to, the left location of the current block may not be used. Accordingly, only the locations except for the left location may be used. Alternatively, in this case, when motion information at the location out of the range within which the reference block may be located is not referred to as illustrated in FIG. 14, locations A0, A1, and B3 described in FIG. 12 may not be used. Accordingly, only B0 and B1 may be used. In an embodiment, both B0 and B1 may be used in the merge mode, and only one of B0 and B1 may be used in the AMVP mode. Accordingly, when an index is 2, starting from 0 in the merge mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. Further, when the index is 1, starting from 0 in the AMVP mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. That is, when the zero MV comes after the spatial neighbor candidate, the zero MV may be determined by the index.
  • Further, like the case of the block marked with B in FIG. 15, there may be a case in which the current block borders the upper boundary of the range within which the reference block may be located. In this case, when motion information at the location out of the range within which the reference block may be located is not referred to as described in FIG. 14, the upper location of the current block may not be used. Accordingly, only the locations except for the upper location of the current block may be used. Alternatively, in this case, when motion information at the location out of the range within which the reference block may be located is not referred to as described in FIG. 14, locations B0, B1, and B2 described in FIG. 12 may not be used. Accordingly, only A0 and A1 are available. In an embodiment, both A0 and A1 may be used in the merge mode, and only one of A0 and A1 may be used in the AMVP mode. Accordingly, when the index is 2, starting from 0 in the merge mode, it may be determined that the candidate is a candidate which comes after a spatial neighbor candidate. Further, when the index is 1, starting from 0 in the AMVP mode, it may be determined that the candidate is a candidate which comes after the spatial neighbor candidate. That is, when a zero MV comes after the spatial neighbor candidate, the zero MV may be determined by the index.
  • Referring to FIG. 15, the configuration of an AMVP candidate list is illustrated in the case in which the location of the reference block is limited to the current CTU range and motion information at the location out of the current CTU is not referred to. When the current block borders the CTU left boundary or upper boundary as indicated by A or B in FIG. 15, a maximum number of spatial neighbor candidates may be 1, and the remaining candidates may be filled with zero MVs. For example, in the configuration of the AMVP candidate list, the location of one of A0 and A1 and the location of one of B0, B1, and B2 may be used as spatial neighbor candidates. Accordingly, when the current block borders the left boundary like the block A in FIG. 15, the location of one of B0 and B1 may be used as the spatial neighbor candidate. When the current block borders the upper block like the block B in FIG. 15, the location of one of A0 and A1 may be used as the spatial neighbor candidate. Accordingly, when the candidate index is 1, it may be determined that the MVP is the zero MV.
  • According to an embodiment of the present disclosure, if a zero MV is indicated through a candidate index, embodiments to be described with reference to FIGs. 18 to 22 may be performed. For example, MVD coding may be changed. For example, in a specific case, a sign of an MVD component may be signaled and determined without any syntax parsing.
  • FIG. 16 illustrates block locations and the configuration of a motion candidate list according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, motion information at the location out of a picture may not be referred to. This may include both the case in which the CPR is used and the case in which the CPR is not used.
  • According to an embodiment of the present disclosure, the location which the reference block may have in the CPR may be inside the picture. Alternatively, according to an embodiment of the present disclosure, the location which the reference block may have in the CPR may be an area including the inside of the picture.
  • Referring to FIG. 16, when the current block borders the picture boundary, spatial neighbor locations may be limited. This is because motion information at the location out of the picture may not be referred to. For example, when the current block borders the left boundary of the picture (in the case of the block marked with A in FIG. 16), the left location of the current block may not be referred to. Further, when the current block borders the upper boundary of the picture (in the case of the block marked with B in FIG. 16), the upper location of the current block may not be referred to.
  • Accordingly, in this case, it is possible to reduce a maximum value of binarization or determine a zero MV.
  • When the CPR is used as described above, a temporal candidate, a scaled candidate, or the like may not be used.
  • In the case in which the CPR is first used and the AMVP mode is used, when the current block is adjacent to the picture boundary according to the present embodiment, available spatial neighbor locations may be limited. Particularly, when the current block borders the left boundary or the upper boundary, motion information at left locations of the current block and upper locations of the current block may not be referred to. Accordingly, a maximum number of spatial candidates available when an AMVP candidate list is configured may be 1. When a value indicated by a candidate index (a flag if a maximum number of candidates is 2) is 1 (when the candidate index starts from 0), a motion vector corresponding to the candidate index may be determined as a zero motion vector.
  • When the merge mode is used, if the current block is adjacent to the picture boundary according to the present embodiment, available spatial neighbor locations may be limited. Particularly, when the current block borders the left boundary or the upper boundary, motion information at left locations of the current block and upper locations of the current block may not be referred to. Accordingly, in the embodiment of FIG. 12, a maximum number of locations which may be referred to may be 2. Therefore, it may be determined that a motion vector corresponding to the case in which the number of merge candidate indexes is larger than or equal to a maximum number which may be referred to does not come from the spatial neighbor candidates.
  • When only the spatial neighbor candidate and the zero MV are used in the merge mode using the CPR, the zero MV may be determined through the candidate index in the above case. However, since the zero MV may be meaningless in the CPR merge mode, a maximum value of a candidate index corresponding to a variable length may be configured as (the number of available spatial neighbor candidates - 1). Accordingly, the number of bits of any index value may be reduced.
  • In another embodiment, a spatial neighbor candidate, an HMVP candidate, a pairwise average candidate, and the like may be included in a candidate list in the merge mode using the CPR. In this case, when the maximum number of available spatial neighbor candidates is limited as illustrated in the above-described embodiment, the number of available pairwise average candidates may be reduced. This is because the number of combinations of spatial neighbor candidates may be reduced. If available spatial neighbor candidate locations are 2 in embodiments of FIGs. 12 and 16, the number of pairwise average candidates may be 1. Further, there may be a preset part in which a space for storing a history is reset in the HMVP. For example, a space for storing a history in the HMVP may be reset in every CTU row. This is to facilitate parallel processing. Further, this is because the encoder and the decoder should maintain the same history. Accordingly, an HMVP candidate may not be added to the candidate list in the preset part in which the space for storing the history is reset in the HMVP. When the CPR is used and spatial neighbor locations are limited, if the space for storing the history is reset in the HMVP, the maximum number of available candidates may be further reduced. For example, the maximum number of spatial neighbor locations in the left boundary of the picture may be limited to 2, and the space for storing the history in the HMVP may be reset in a start part of the CTU row. In this case, a maximum of two spatial neighbor candidates may be included in the candidate list, and the HMVP candidate may be included. Even if the pairwise average candidate may be added, there is only one combination when the pairwise average is made. Accordingly, when the pairwise average candidate may be added, there may be a maximum of three candidates and a zero motion vector. In an embodiment in which the pairwise average candidate may not be added, there may be a maximum of two candidates and a zero motion vector. Accordingly, it is possible to reduce the maximum value of the candidate index and reduce the number of bits of the index.
  • In another embodiment, when the CPR is used, the pairwise average candidate may not be used. This is because useful motion vectors are more limited in the case in which the CPR is used than in the case in which the CPR is not used.
  • In another embodiment, when the current block is adjacent to the left boundary of the picture, the HMVP candidate may not be used. Alternatively, when the current block is adjacent to the boundary in which the history of the HMVP is reset (for example, when x coordinates of the reset location and the upper left side of the current block are the same), the HMVP candidate may not be used. If the space for storing the history of the HMVP is reset at the beginning of the CTU row, motion information may not be varied in the history when the CTU in the leftmost side of the picture is coded. Accordingly, in the case of a block adjacent to the left boundary of the picture, an x component of a motion vector should be 0 or positive. Further, in this case, a direction of the motion vector stored in the history is limited, and thus a block adjacent to the left boundary may have difficulty in using the same. Accordingly, when the current block is adjacent to the left boundary of the picture, the HMVP candidate may not be used. In this case, through a combination with the above embodiment, in the case of the block adjacent to the left boundary of the picture, a maximum of two spatial neighbor candidates, a maximum of one pairwise average candidate, and a zero MV may be added to the merge candidate list. Accordingly, the maximum value of the index may be binarized to 3 (if the index starts from 0) when the zero MV may be added, and the maximum value of the index may be binarized to 2 (if the index starts from 0) when the zero MV may not be added.
  • According to an embodiment of the present disclosure, the current block being adjacent to the left, right, upper, and lower boundaries of the picture may be determined on the basis of coordinates of the current block, the width of the current block, the height of the current block, the width of the current picture, the height of the current picture, and the like. Uppermost leftmost coordinates of the current block may be (x0, y0). The width and the height of the current block may be cbWidth and cbHeight, respectively. The width and the height of the current picture may be picWidth and picHeight, respectively. If (x0 == 0) is true, the current block may be adjacent to the left boundary of the picture. If ((x0 + cbWidth) == picWidth) is true, the current block may be adjacent to the right boundary of the picture. If (y0 == 0) is true, the current block may be adjacent to the upper boundary of the picture. If ((y0 + cbHeight) == picHeight) is true, the current block is adjacent to the lower boundary of the picture.
  • The case in which the CPR is used has been described above, but the operation may be performed if a temporal motion vector may not be used or if a reference picture of a neighboring block and a reference picture of the current block are the same even though the CPR is not used.
  • FIG. 17 illustrates the use of spatial neighbor candidates according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, there may be a case in which spatial neighbor locations may not be used. If a preset location has passed through intra prediction, motion information may not be referred to from the corresponding location. According to an embodiment of the present disclosure, the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use intra prediction. Alternatively, the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use inter prediction which may be referred to. For example, the number of available spatial neighbor candidates may be reduced according to whether preset spatial neighbor locations use inter prediction using the CPR.
  • For example, in the AMVP mode, among the spatial neighbor locations, all of the left locations or all of the upper locations have passed through intra prediction (except for the part beyond the picture or the location which has not been decoded). Alternatively, in the AMVP mode, among the spatial neighbor locations, none of the left locations or none of the upper locations have passed through inter prediction which may be referred to (except for the part beyond the picture or the location which has not been decoded). That is, none of the left locations or none of the upper locations may refer to the motion information. In this case, when only one of the left location or the upper location may be referred to, the number of available spatial neighbor candidates may be 1, and when an index is 1, a zero MV may be determined. Alternatively, when none of the left locations or the upper locations may be referred to (for example, all of the preset locations have performed inter prediction as illustrated in FIG. 17), the number of available spatial neighbor candidates may be 0, and when an index is 0, a zero MV may be determined. Alternatively, when none of the left locations and the upper locations may be referred to (for example, all of the preset locations have performed inter prediction as illustrated in FIG. 17), the number of available spatial neighbor candidates may be 0 and index transmission and parsing may be omitted. Further, the index may be 0 and the zero MV may be inferred.
  • In another example, when motion information may not be referred to in the preset spatial neighbor locations, the locations may be excluded in the syntax parsing step and it is possible to change a maximum number of candidates. The case in which the motion information may not be referred to may include the case in which the corresponding location uses intra prediction. Alternatively, the case in which the motion information may not be referred to may include the case in which the corresponding location escapes the picture or has not been decoded in a coding order.
  • If it is assumed that the motion information may not be referred to in all of the preset locations in the merge mode, no spatial neighbor candidate may be added to the candidate list. Accordingly, it is possible to use the HMVP candidate, the pairwise average candidate, and the like as candidates. In this case, when the current block is positioned at the location at which the space for storing the history of the HMVP is reset as described before, the HMVP candidate also may not be added. Further, when the pairwise average candidate is ahead of the HMVP candidate or the HMVP candidate may not be added, the pairwise average candidate also may not appear. Accordingly, only the zero MV may remain as the available candidate. However, in the CPR, the zero MV may be meaningless. In this case, signaling indicating the merge mode may be omitted (transmission and parsing may be omitted). Further, it may be inferred that the merge mode is not used. For example, signaling indicating the merge mode may be merge_flag. According to an embodiment of the present disclosure, when the CPR is used, none of the preset spatial neighbor locations around the current block may be used (including the case in which the corresponding locations escape the picture, the case in which the corresponding locations have passed through intra prediction, and the case in which the corresponding locations do not use the CPR), and when the current block is positioned at the location at which the space for storing the history of the HMVP is reset, signaling indicating the merge mode may be omitted and it may be inferred that the merge mode is not used. The location at which the space for storing the history of the HMVP is reset may be the same as a location at which the CTU row starts or a preset location at which the HMVP candidate is not used.
  • In another example, the motion information may not be referred to except for one preset spatial neighbor location. The case in which the motion information may not be referred to may include the case in which the corresponding location escapes the picture, the case in which the corresponding location has passed through intra prediction, and the case in which the corresponding location does not use the CPR. In this case, if another candidate is not added except for one spatial neighbor candidate as described in the above embodiment, pairwise average candidates may not be made. Since the space for storing the history of the HMVP is a reset part, the HMVP candidate may not be included. Accordingly, at such a location, a maximum value of the candidate index may be changed and binarized. For example, the motion information may not be referred to at any of the remaining locations other than one preset spatial neighbor location, and a maximum of one spatial neighbor candidate, a maximum of 0 HMVP candidates, and a maximum of 0 pairwise average candidates may be made in the part in which the space for storing the history of the HMVP is reset. Accordingly, in an embodiment in which the zero MV may be added to the candidate, a candidate index may be signaled by a 1-bit flag. However, in this case, transmission and parsing of the candidate index may be omitted, and the index may be inferred as 0. This is because the zero MV is meaningless in the CPR. In an embodiment in which the zero MV may not be added to the candidate, the number of available candidates may be only one, in which case transmission and parsing of the candidate index may be omitted and the index may be inferred as 0.
  • FIG. 18 illustrates a motion vector according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a value which the motion vector may have may be limited according to a coding order. Further, this may correspond to the case in which the CPR is used. For example, the motion vector may not indicate a lower right direction according to the coding order. This is because a block on the right side or the lower side of the current block has not been decoded according to the coding order. According to an embodiment of the present disclosure, when the CPR is used, an x component of the motion vector may be larger than or equal to 0 and a y component may not be larger than or equal to 0. That is, when the CPR is used, the motion vector may not correspond to (x component >=0 && y component >= 0).
  • According to the embodiments illustrated in FIG. 14 to 17, the MVP may be the zero MV. Particularly, the fact that the MVP is the zero MV may be known during the syntax parsing step. In this case, the MVD(MVD) may not indicate a lower right direction. That is, the MVD may not correspond to (x component >=0 && y component >= 0). In another embodiment, the MV may not correspond to (x component > -(current block width) && y component > (-current block height)). That is, when the zero MV is used as the MVP, the MVD may not correspond to (x component > -(current block width) && y component > (-current block height)). According to an embodiment of the present disclosure, a range of the y component may be restricted according to the x component of the MV or the MVD.
  • According to an embodiment, the component of the MVD may be separated and coded. For example, the MVD may be coded as illustrated in FIG. 9. For example, component 1 and component 2 may be separately coded. For example, component 1 and component 2 may be sequentially coded. In an embodiment, component 1 and component 2 may be an x component and a y component, respectively. The following embodiments may be a case in which the MVP is the zero MV.
  • According to an embodiment of the present disclosure, when component 1 is larger than 0, component 2 may be smaller than 0. More specifically, when component 1 is larger than 0, an absolute value of component 2 may be larger than or equal to a minimum block size. When component 1 is larger than 0, the absolute value of component 2 may be larger than or equal to a current block height.
  • According to an embodiment of the present disclosure, when component 1 is 0, component 2 may not be 0. When component 1 is 0, component 2 may be smaller than 0. More specifically, when component 1 is 0, the absolute value of component 2 may be larger than or equal to the minimum block size. When component 1 is 0, the absolute value of component 2 may be larger than or equal to the current block height.
  • According to an embodiment of the present disclosure, when component 1 is smaller than 0 and the absolute value thereof is smaller than the minimum block size, component 2 may not be 0. Further, in this case, component 2 may be smaller than 0. More specifically, in this case, the absolute value of component 2 may be larger than or equal to the minimum block size. In this case, the absolute value of component 2 may be larger than or equal to the current block height.
  • According to an embodiment of the present disclosure, when component 1 is smaller than 0 and the absolute value thereof is smaller than the current block width, component 2 may not be 0. Further, in this case, component 2 may be smaller than 0. More specifically, in this case, the absolute value of component 2 may be larger than or equal to the minimum block size. In this case, the absolute value of component 2 may be larger than or equal to the current block height.
  • Referring to FIG. 18, the x-component value of the MV in the current block may be as illustrated in the drawing. In this case, the reference block of the CPR may be within a shaded area in FIG. 18. Accordingly, a value which the y component may have may be limited. That is, the y-component value may be limited according to the x-component value.
  • FIG. 19 illustrates MVD syntax according to an embodiment of the present disclosure.
  • As illustrated in FIG. 9, the MVD may be coded while being separated into the x component and the y component. Referring to FIG. 19, values corresponding to [0] and [1] may be the x component and the y component, respectively. Further, abs_mvd_greater0_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 0. abs_mvd_greater1_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 1. abs_mvd_minus2 may be a value obtained by subtracting 2 from the absolute value of the corresponding component. mvd_sign_flag may be a flag indicating a sign of the corresponding component. The value of 0 of mvd_sign_flag may indicate positive and the value of 1 of mvd_sign_flag may indicate negative.
  • The embodiments illustrated in FIG. 18 may be reflected in MVD coding syntax of FIG. 19.
  • In FIG. 19, the condition "zeroMVP" may indicate the case in which the MVP is the zero MV and the CPR is used. That is, in the case in which the MVP is the zero MV and the CPR is used, the zero MVP may be true. The condition indicating that the MVP is the zero MV may follow the embodiments illustrated in FIGs. 14 to 17. According to the aforementioned embodiments, whether the MVP is the zero MV may be known on the basis of the location of the current block or the candidate index.
  • According to an embodiment of the present disclosure, in the case of the zero MVP, if the x component is 0, the y component may not be 0. Accordingly, in this case, abs_mvd_greater0_flag[1] may not be parsed. Further, in this case, abs_mvd_greater0_flag[1] may be inferred as a value indicating non zero. In this case, abs_mvd_greater0_flag[1] may be inferred as 1.
  • According to an embodiment of the present disclosure, in the case of the zero MVP, if the x component is 0, the absolute value of the y component may be larger than 1. This is because the current block height is larger than 1. Accordingly, in this case, abs_mvd_greater1_flag[1] may not be parsed. Further, in this case, abs_mvd_greater1_flag[1] may be inferred as a value indicating that the absolute value is larger than 1. In this case, abs_mvd_greater1_flag[1] may be inferred as 1. In the conventional MVD coding before the CPR, 0 was inferred when abs_mvd_greater1_flag does not exist. Through a combination with the present embodiment, when abs_mvd_greaterl_flag does not exist, an inferred value may vary depending on a condition. For example, when abs_mvd_greater1_flag[compIdx] does not exist, if abs_mvd_greater0_flag[compIdx] is 0, 0 may be inferred. When abs_mvd_greater1_flag[compIdx] is 1, 1 may be inferred. Alternatively, for example, when abs_mvd_greater1_flag[compIdx] does not exist, if abs_mvd_greater0_flag[compIdx] is 0, 0 may be inferred. Alternatively, when abs_mvd_greater1_flag[compIdx] does not exist, in the case of the zero MVP and the case in which absmvd_greater0_flag[!compIdx] is 0, 1 may be inferred.
  • According to an embodiment of the present disclosure, in the case of the zero MVP, if the x component is a positive value or 0, the y component may be a negative value. Accordingly, in this case, mvd_sign_flag of the y component may not be parsed. Further in this case, mvd_sign_flag may be inferred as a value indicating a negative value. In this case, mvd_sign_flag may be inferred as 1. Accordingly, in the case of the zero MVP and the case in which mvd_sign_flag[0] is 0, mvd_sign_flag[1] may not be parsed and may be inferred as 1. Accordingly, in the case of the zero MVP and the case in which mvd_sign_flag[0] is 0, mvd_sign_flag[1] may not be parsed and may be inferred as 1.
  • When mvd_sign_flag does not exist before the CPR, 0 may be inferred. However, the case in which mvd_sign_flag does not exist (see the embodiment of FIG. 9) may correspond to only the case in which the corresponding component absolute value is 0. Accordingly, through a combination with the embodiment of the present disclosure, 1 may be inferred in all cases when mvd_sign_flag does not exist. In another embodiment, an inferred value of mvd_sign_flag may vary depending on a condition. For example, in the case of zero MVP && (mvd_sign_flag[0] == 0 | abs_mvd_greater0_flag[0] == 0), 1 may be inferred. Otherwise, 0 may be inferred.
  • FIG. 20 illustrates a motion vector according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a value which the motion vector may have may be limited according to a range within which a reference block may be located. Further, this may correspond to the case in which the CPR is used. For example, the motion vector may be configured to not escape the range within which the reference block may be located.
  • For example, when the current block is adjacent to the boundary of the range within which the reference block may be located, the motion vector may be a direction opposite to the adjacent boundary. That is, when the current block is adjacent to the left boundary or the right boundary of the range within which the reference block may be located, the x component may be larger than or equal to 0 or equal to or smaller than 0. When the current block is adjacent to the upper boundary or the lower boundary of the range within which the reference block may be located, the y component may be larger than or equal to 0 or smaller than or equal to 0. In an embodiment, the range within which the reference block may be located may be a CTU range to which the current block belongs.
  • According to the embodiments illustrated in FIG. 14 to 17, the MVP may be the zero MV. Particularly, the fact that the MVP is the zero MV may be known during the syntax parsing step. In this case, the above description about the motion vector may be applied to the MVD.
  • Referring to FIG. 20, the location which the reference block of the CPR may have may be limited within the CTU to which the current block belongs. In this case, when the current block is adjacent to the left boundary as indicated by A, the x component of the motion vector may be larger than or equal to 0. When the current block is adjacent to the upper boundary as indicated by B, the y component of the motion vector may be larger than or equal to 0.
  • FIG. 21 illustrates MVD syntax according to an embodiment of the present disclosure.
  • As illustrated in FIG. 9, the MVD may be coded while being separated into the x component and the y component. Referring to FIG. 21, values corresponding o [0] and [1] may be the x component and the y component, respectively. Further, abs_mvd_greater0_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 0. abs_mvd_greater1_flag may be a flag indicating whether an absolute value of the corresponding component is larger than 1. abs_mvd_minus2 may be a value obtained by subtracting 2 from the absolute value of the corresponding component. mvd_sign_flag may be a flag indicating a sign of the corresponding component. The value of 0 of mvd_sign_flag may indicate positive and the value of 1 of mvd_sign_flag may indicate negative.
  • The embodiments illustrated in FIG. 20 may be reflected in MVD coding syntax of FIG. 21.
  • In FIG. 21, the condition "zeroMVP" may indicate the case in which the MVP is the zero MV and the CPR is used. That is, in the case in which the MVP is the zero MV and the CPR is used, the zero MVP may be true. The condition indicating that the MVP is the zero MV may follow the embodiments illustrated in FIGs. 14 to 17. According to the aforementioned embodiments, the fact that the MVP is the zero MV may be known on the basis of the location of the current block or the candidate index.
  • Referring to FIG. 21, the conditions indicating that the current block is adjacent to the left, right, upper, and lower boundaries are expressed as left_boundary, right_boundary, upper_boundary, and lower_boundary, respectively. Further, the fact that the current block is adjacent to the boundary may be determined on the basis of the coordinates of the current block, the width of the current block, the height of the current block, the width of a range available as the location of the reference block, the height of the range available as the location of the reference block, and the like. For example, upper left coordinates of the current block may be (x0, y0). The width and the height of the current block may be cbWidth and cbHeight, respectively. The width and the height of the range available as the location of the reference block may be rWidth and rHeight, respectively. For example, when (x0 % rWidth == 0) is true, the current block may be adjacent to the left boundary. When ((x0 + cbWidth) % rWidth == 0) is true, the current block may be adjacent to the right boundary. When (y0 % rHeight == 0) is true, the current block may be adjacent to the upper boundary. When ((y0 + cbHeight) % rHeight == 0) is true, the current block may be adjacent to the lower boundary. According to an embodiment, rWidth and rHeight may be the width and the height of the CTU(CTB).
  • As illustrated in FIG. 20, in the case of the zero MVP and the case in which the current block is adjacent to the boundary, the sign of the MVD may be determined. For example, in the case of the zero MVP and the left_boundary, mvd_sign_flag[0] may not be parsed and a value (for example, 0) indicating positive may be inferred.
  • For example, in the case of the zero MVP and the right_boundary, mvd_sign_flag[0] may not be parsed and a value (for example, 1) indicating negative may be inferred.
  • In the case of the zero MVP and the upper_boundary, mvd_sign_flag[1] may not be parsed and a value (for example, 0) indicating positive may be inferred.
  • For example, in the case of the zero MVP and the lower_boundary, mvd_sign_flag[1] may not be parsed and a value (for example, 1) indicating negative may be inferred.
  • In FIGs. 9, 19, and 21, abs_mvd_greater0_flag, abs_mvd_greater1_flag, abs_mvd_minus2, and mvd_sign_flag may be sequentially coded, but if the order is changed, different embodiments may be performed. No syntax may be parsed but may be inferred on the basis of the location of the current block, the zero MVP, the range within which the reference block may be located, another syntax value which is already known, and the like.
  • FIG. 22 illustrates MVD syntax according to an embodiment of the present disclosure.
  • Referring to FIG. 22, a combination of the embodiments illustrated in FIGs. 18 to 21 may be implemented. Accordingly, the number of bits required for mvd coding may be reduced.
  • According to an embodiment of the present disclosure, in the case of the zero MVP, if an absolute value of an MVD of any component is determined, a sign of the MVD may be determined without parsing such that the MVD does not indicate a reference block beyond an available range. For example, the absolute value may be determined before the signal of the MVD is determined as illustrated in the embodiments of FIGs. 9, 19, and 21. If |MVD| of any component is beyond the available range, the sign may be determined as negative. If -|MVD| of any component is beyond the available range, the signal may be determined as positive.
  • FIG. 23 illustrates the block and the size according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, the width or the height of the current block may be the maximum width or the maximum height. In this case, motion information may not be referred to at a preset spatial neighbor location. This may follow the coding order. For example, when the width of the current block is the maximum width, motion information may not be referred to from the right location of the current block. In the embodiment of FIG. 12, motion information may not be referred to from B0. In another example, when the height of the current block is the maximum height, motion information may not be referred to from the lower location of the current block. In the embodiment of FIG. 12, the motion information may not be referred to from A0.
  • If the embodiment of FIG. 23 is combined with the embodiment of FIG. 14, the number of spatial neighbor locations at which the motion information may be referred to may be reduced to 1. For example, when the current block is adjacent to the left boundary and the width thereof is the maximum width, the motion information may not be referred to from A0, A1, B0, and B2 of FIG. 12. When the current block is adjacent to the upper boundary and the height thereof is the maximum height, the motion information may not be referred to from A0, B0, B1, and B2. Accordingly, in this case, the number of available spatial neighbor locations is reduced, and thus embodiments in which the zero MV is determined, parsing of the candidate index is omitted, or the maximum value of the candidate index is binarized to be small may be implemented like the above embodiments.
  • FIG. 24 illustrates the configuration of a merge candidate list according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a method of configuring the merge candidate list when the CPR is used may be different from that when the CPR is not used. For example, when the CPR is not used, some of candidates which may be added to the merge candidate list may not be added to the merge candidate list if the CPR is used.
  • In an embodiment, when the CPR is used, the zero MV may not be used. This is because a reference block indicated by the zero MV within the current picture may be the current block.
  • In an embodiment, when the CPR is used, a temporal MV (collocated MV) may not be used. This is because a picture other than the current picture may not be referred to when the CPR is used,
  • In an embodiment, when the CPR is used, the HMVP candidate or the pairwise average candidate may not be used. In this case, it is possible to change index signaling as described in the embodiments of the drawings above.
  • In an embodiment, when the CPR is used, a candidate based on the HMVP candidate or the pairwise average candidate may be used.
  • In an embodiment, when the CPR is used, a subblock merge mode may not be used. The subblock merge mode may be the same as described above. Accordingly, when the CPR is used, a flag indicating the subblock merge mode may not be parsed and may be inferred.
  • According to an embodiment of the present disclosure, a set of preset spatial neighbor locations when the CPR is used may be different from a set of preset spatial neighbor locations when the CPR is not used. According to an embodiment of the present disclosure, when the CPR is used, one of B0 and B1 may not be used at the preset location of FIG. 12. For example, when the CPR is used, the motion information may not be referred to from the location B0. Alternatively, according to an embodiment of the present disclosure, when the CPR is used, one of A0 and A1 may not be used at the preset location of FIG. 12. For example, when the CPR is used, the motion information may not be referred to from the location A0. This is because the motion information when the CPR is used may not be required to be relatively complex and various. Alternatively, this is because motion information from the close location may be similar when the CPR is used.
  • FIG. 25 illustrates the block location and syntax according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, when the CPR is used, the zero MV may not be used as the MVP in the AMVP mode. In this case, through a combination with the embodiment of FIG. 15, only one spatial candidate may be added to the candidate list according to the location of the current block. When the zero MV is not used as the MVP, only one candidate may exist in the MVP candidate list. In this case, the candidate index may not be parsed. Further, in this case, the candidate index may be inferred as 0.
  • Referring to FIG. 25(a), the current block is adjacent to the left boundary or the upper boundary of the range which the reference block may have. In this case, motion information from the location beyond the range which the reference block may have may not be referred to. When the AMVP mode is used, if the zero MV is not used as the MVP, a maximum number of available MVP candidates may be 1. Accordingly, as illustrated in FIG. 25(b), mvp_l0_flag and mvp_l1_flag indicating the candidate index may not be parsed. In this case, 0 may be inferred. The case in which the CPR is used is indicated by CurrPicIsOnlyRef. 10 and 11 may indicate reference lists 0 and 1, respectively. When the CPR is used, the current picture may be the only reference picture, and thus there may be the MV only for one reference list. In this case, MV-related syntax also may be parsed for only one reference list.
  • FIG. 26 illustrates the resetting of the space for storing the history of the HMVP according to an embodiment of the present disclosure.
  • As described above, the space for storing the history of the HMVP at the preset location may be reset. The space for storing the history of the HMVP may be called an HMVP table.
  • According to an embodiment of the present disclosure, the preset location may be different in the case in which the CPR is used and the case in which the CPR is not used. For example, when the CPR is not used, the HMVP table may be reset at the beginning of the CTU row. For example, when the CPR is used, the HMVP table may be reset at the beginning of a range in which the reference block may exist. Alternatively, when the CPR is used, the HMVP table may be reset at the beginning of each CTU. Alternatively, when the CPR is used, more preset locations at which the HMVP table is reset may exist (more frequently) than the case in which the CPR is not used.
  • When the CPR is used, motion information corresponding to the location spaced far from the current block may have little correlation with the present. When the CPR is used, it is possible to facilitate parallel processing by more frequently resetting the HMVP table.
  • Each small rectangle in FIG. 26 may indicate a range in which a reference block may exist or a CTU range. Further, a part marked with an X may be a part in which the HMVP table is reset. When the CPR is not used as illustrated in the top side of FIG. 26, the HMVP table may be reset at the beginning of the CTU row. When the CPR is used as illustrated in the bottom side of FIG. 26, the HMVP table may be reset at the beginning of the CTU.
  • According to an embodiment of the present disclosure, a method of coding the MVD when the CPR is used may be different from a method of coding the MVD when the CPR is not used. For example, when the CPR is not used, the coding method as illustrated in FIG. 9 may be used. This is because a range of the available MV according to the coding order when the CPR is used may be different from that when the CPR is not used.
  • In an embodiment, when the CPR is used, a scheme of separately coding the x component and the y component may not be used. For example, a coding scheme based on an absolute value and a direction of a vector may be used.
  • In an embodiment, when the CPR is used, a reference point indicated by the MV when the MVP is the zero MV may be different from the conventional vector (vector from the upper left side of the current block).
  • In an embodiment, when the CPR is used, syntax different from that described in FIGs. 9, 19, and 21 may be used. For example, in a flag indicating whether an absolute value is larger than any value, the value may be different in the case in which CPR is used and the case in which CPR is not used. Accordingly, a value obtained by subtracting any value from the absolute value may be signaled. For example, in the above embodiments, there is the flag indicating whether the absolute value is larger than 1. For example, when the CPR is used, there may be a flag indicating whether the absolute value is larger than the minimum block size. Alternatively, when the CPR is used, a flag indicating whether the absolute value is larger than the width or the height of the current block may be used. For example, when the CPR is used, a flag indicating whether the absolute value is larger than the width of the current block may be used for the x component, and a flag indicating whether the absolute value is larger than the height of the current block may be used for the y component.
  • According to an embodiment of the present disclosure, when the CPR is used, a shared merge list may not be used. The shared merge list may correspond to a technology by which a plurality of blocks (for example, coding units) use the same merge list. The shared merge list may be used to facilitate parallel processing. However, when the CPR is used, the current picture is used as the reference block, and thus the corresponding part of the current picture should be reconstructed and facilitation of parallel processing may not be worth much. Further, when the CPR is used, if the shared merge list is used, the accuracy may be reduced or the number of available candidates may be too small.
  • According to another embodiment, when the CPR is used, a reference of grouping blocks using the same merge list in the shared merge list may be different from that when the CPR is not used.
  • According to an embodiment of the present disclosure, when the CPR is used, some of the methods used when the CPR is not used may not be used. Alternatively, according to an embodiment of the present disclosure, when the CPR is used, some of the methods used when the CPR is not used may be differently used. The method used when the CPR is not used may include a prediction mode and the like.
  • FIG. 27 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • The CPR may also be called an Intra Block Copy (IBC) or a Block Copy (BC). Accordingly, a CPR mode may be named an IBC mode or a BC mode.
  • According to an embodiment of the present disclosure, the IBC may exist as an independent prediction mode. That is, the intra prediction and the inter prediction may be MODE_INTRA and MODE_INTER, respectively, and there may be M0DE_IBC different from MODE_INTRA and MODE_INTER. Further, as illustrated in the prior figures, MODE_INTRA, MODE_INTER, and MODE_IBC may be indicated by CuPredMode values.
  • A tile group may be a unit higher than a CU, a CTU, a PU, and the like. Further, the tile group may be a unit in which parallel processing is possible.
  • A Bi-predictive (B) tile group may use intra prediction or inter prediction, the IBC, and the like. The B tile group may use a maximum of two motion vectors and a maximum of two reference indexes in the block. Alternatively, the B tile group may use a maximum of one or more motion vectors and a maximum of one or more reference indexes in the block.
  • Intra prediction may be the concept including the IBC scheme. Intra prediction may be a prediction method referring to only the current picture. Inter prediction may be a method of referring to a picture other than the current picture as the reference picture.
  • A Predictive (P) tile group may use intra prediction or inter prediction, the IBC, and the like. The P tile group may use a maximum of one motion vector and a maximum of one reference index in the block. Alternatively, the B tile group may use motion vectors are not larger than two and reference indexes which are not larger than two in the block.
  • An Intra (I) tile group may use intra prediction and the IBC. The I tile group may not refer to a picture other than the current picture as the reference picture.
  • According to an embodiment of the present disclosure, in the case of (tile_group_type!= I | | sps_ibc_enabled_flag), there may be a possibility of parsing cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag. That is, in the case that does not correspond to tile_group_type!= I | | sps_ibc_enabled_flag), it is possible to not parse all of cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag.
  • Further, sps_ibc_enabled_flag may be signaling at a higher level indicating whether the IBC is used. For example, sps_ibc_enabled_flag may be signaling in a sequence parameter set indicating whether the IBC is used. The IBC may not be used when sps_ibc_enabled_flag is configured as 0, and may not be used when sps_ibc_enabled_flag is configured as 1. When an IBC mode is called a BC mode, sps_ibc_enabled_flag may be expressed as sps_bc_enabled_flag.
  • It may be determined whether a skip mode is used on the basis of a value of cu_skip_flag. When cu_skip_flag is 1, the skip mode may be used.
  • It is possible to determine a prediction mode on the basis of pred_mode_flag or pred_mode_ibc_flag. That is, it is possible to determine whether the current mode is MODE_INTRA, MODE_INTER, or MODE_IBC on the basis of pred_mode_flag or pred_mode_ibc_flag. Alternatively, it is possible to determine a value of CuPredMode on the basis of pred_mode_flag or pred_mode_ibc_flag. pred_mode_flag may be named a prediction mode flag, and pred_mode_ibc_flag may be named a BC mode flag. When the IBC mode is named a BC mode, pred_mode_ibc_flag may be expressed as pred_mode_bc_flag.
  • tile_group_type may indicate a tile group type. The tile group type may include the I tile group, the P tile group, and the B tile group as described above. Further, I, P, and B of values of tile _group_type may indicate the I tile group, the P tile group, and the B tile group, respectively.
  • According to an embodiment of the present disclosure, in the case of (cu_skip_flag[x0] [y0] = = 0 &&tile_group_type!= I)), it is possible to parse pred_mode_flag. When cu_skip_flag is 1, pred_mode_flag may not be parsed. When tile_group_type is 1, pred_mode_flag may not be parsed.
  • According to an embodiment, in the case of ((tile_group_type = = I &&cu_skip_flag[x0][y0] = =0 ) | | (tile_group_type!= I && (cu_skip_flag[x0][y0] | | CuPredMode[x0][y0] != MODE_INTRA)) &&sps_ibc_enabled_flag&&blockSizeCondition), it is possible to parse pred_mode_ibc_flag. For example, in the case of (tile_group_type = = I &&cu_skip_flag[x0] [y0] == 0), it is possible to parse pred_mode_ibc_flag. Alternatively, in the case of ((tile_group_type!= I && (cu_skip_flag[x0][y0] | | CuPredMode[x0][y0] ! = MODE_INTRA)), it is possible to parse pred_mode_ibc_flag. Alternatively, in the case that neither correspond to (tile_group_type = = I &&cu_skip_flag[x0][y0] == 0) nor (tile_group_type!= I && (cu_skip_flag[x0][y0] | |CuPredMode[x0][y0] != MODE_INTRA)), pred_mode_ibc_flag may not be parsed. Further, it is possible to parse pred_mode_ibc_flag when sps_ibc_enabled_flag is 1, and it is possible to not parse pred_mode_ibc_flag when sps_ibc_enabled_flag is 0. There may be a condition based on a block size which may parse pred_mode_ibc_flag. Referring to FIG. 27, the block size condition corresponds to the case in which both cbWidth and cbHeight are smaller than 32.
  • Further, referring to FIG. 27, when CuPredMode is MODE_INTRA, it is possible to parse an intra prediction-related syntax element. When CuPredMode is MODE_INTRA, it is possible to not parse a motion vector-related syntax element.
  • When CuPredMode is not MODE_INTRA, it is possible to parse an inter prediction-related syntax element. When CuPredMode is not MODE_INTRA, it is possible to parse an IBC-related syntax element. The IBC-related syntax element may include a motion vector-related syntax element. That is, when CuPredMode is not MODE_IBC, it is possible to parse the IBC-related syntax element. The IBC-related syntax element may include a merge mode-related syntax element and an AMVP-related syntax element. The IBC may have more limited prediction modes and less syntax elements to be parsed than MODE_INTER. For example, in the case of MODE_IBC, it is possible to parse only a syntax element for a reference list L0. In another example, in the case of MODE_IBC, some of flags indicating whether modes are used in merge_data may not be parsed. When CuPredMode is not MODE_INTRA, the inter prediction-related syntax element may be parsed. Parsing the IBC-related syntax element may be a case in which syntax for a chroma component is not parsed. When CuPredMode is not MODE_INTRA, the inter prediction-related syntax element may be parsed. Parsing the IBC-related syntax element may be a case in which a tree type (treeType) is not DUAL_TREE_CHROMA.
  • In an embodiment, it is possible to determine a component for which syntax is parsed by the tree type and a component to be processed. When the tree type is SINGLE_TREE, a luma component and a chroma component may share a syntax element value. When the tree type is SINGLE_TREE, a luma block and a chroma block may be partitioned through the same method. When the tree type is DUAL_TREE, a luma block and a chroma block may be partitioned through different methods. The tree type of DUAL_TREE may include DUAL_TREE_LUMA and DUAL_TREE_CHROMA. It is possible to determine whether to process the luma component or the chroma component according to whether the tree type is DUAL_TREE_LUMA or DUAL_TREE_CHROMA.
  • FIG. 28 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a prediction mode may be indicated on the basis of pred_mode_flag. CuPredMode may be determined on the basis of pred_mode_flag. Further, it is possible to indicate inter prediction or intra prediction on the basis of pred_mode_flag.
  • According to an embodiment of the present disclosure, when pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. When pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA. According to an embodiment, pred_mode_flag may indicate whether the current CU is an inter prediction mode or an intra prediction mode.
  • When pred_mode_flag does not exist, it is possible to infer pred_mode_flag or CuPredMode. When pred_mode_flag does not exist, it is possible to infer pred_mode_flag or CuPredMode on the basis of a tile group thereof. For example, in the case of the I tile group, CuPredMode may be inferred as MODE_INTRA. In the case of the P tile group or the B tile group, CuPredMode may be inferred as MODE_INTER.
  • According to an embodiment of the present disclosure, a prediction mode may be indicated on the basis of pred_mode_ibc_flag. CuPredMode may be determined on the basis of pred_mode_ibc_flag. Further, it is possible to indicate the IBC mode on the basis of pred_mode_ibc_flag.
  • According to an embodiment of the present disclosure, when pred_mode_ibc_flag is 0, CuPredMode may be configured as MODE_INTER. When pred_mode_ibc_flag is 1, CuPredMode may be configured as MODE_IBC. When pred_mode_ibc_flag is 0, CuPredMode may be configured as a value other than MODE_IBC.
  • When pred_mode_ibc_flag does not exist, it is possible to infer pred_mode_ibc_flag or CuPredMode. When pred_mode_ibc_flag does not exist, it is possible to infer pred_mode_ibc_flag or CuPredMode on the basis of a tile group thereof. For example, in the case of the I tile group, CuPredMode may be inferred as MODE_INTRA. In the case of the P tile group or the B tile group, CuPredMode may be inferred as MODE_INTER.
  • In the present disclosure, the tile group may be replaced with a slice or a unit in which other parallel processing is possible as well as the tile group.
  • According to an embodiment of the present disclosure, when the IBC is used, the skip mode may be used. For example, when the IBC is used for the I tile group, the skip mode may be used. For example, the skip mode may be used for the CU using the IBC for the I tile group. However, the syntax and the signaling method described with reference to FIGs. 27 to 28 may not support the same. For example, the IBC mode and the skip mode may be assumed in the I tile group. In this case, sps_ibc_enabled_flag may be 1. Further, cu_skip_flag may be parsed. In this case, a value of cu_skip_flag may be 1 (a value indicating the use of the skip mode). For the value of 1 of cu_skip_flag or the I tile group, pred_mode_flag may not be parsed. In this case, CuPredMode may be inferred as MODE_INTRA for the I tile group. For the I tile group and the value of 1 of cu_skip_flag, pred_mode_ibc_flag may not be parsed. In this case, CuPredMode may be inferred as MODE_INTRA for the I tile group. Accordingly, there may be a situation in which CuPredMode may not be indicated by MODE_IBC even though the IBC is used.
  • FIG. 29 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • Description of pred_mode_flag and pred_mode_ibc_flag of FIG. 29 may refer to FIGs. 27 to 29. An embodiment of FIG. 29 may be to solve the problem described with reference to FIG. 28.
  • According to an embodiment of the present disclosure, CuPredMode may be inferred on the basis of cu_skip_flag. Further, CuPredMode may be inferred on the basis of a tile group thereof. For example, in the case of the I tile group, CuPredMode may be inferred on the basis of cu_skip_flag. For example, in the case of the I tile group and the value of 0 of cu_skip_flag, CuPredMode may be inferred as MODE_INTRA. For example, in the case of the I tile group and the value of 1 of cu_skip_flag, CuPredMode may be inferred as MODE_IBC. The values of 0 and 1 of cu_skip_flag may indicate that the skip mode is not used and is used, respectively. The embodiments may be performed when pred_mode_flag or pred_mode_ibc_flag does not exist.
  • Further, CuPredMode may be configured on the basis of cu_skip_flag without any process of configuring CuPredMode as another value. Further, CuPredMode may be configured as MODE_IBC or MODE_INTRA on the basis of cu_skip_flag without any process of configuring CuPredMode as another value. For example, in the case of the I tile group and the value of 1 of cu_skip_flag, CuPredMode may be configured as MODE_IBC. Further, in the case of the I tile group and the value of 0 of cu_skip_flag, CuPredMode may be configured as MODE_INTRA. Similarly, the embodiments may be performed when pred_mode_flag or pred_mode_ibc_flag does not exist.
  • There may be a CuPredMode-inferred value configured on the basis of the tile group type and cu_skip_flag, and there may be a CuPredMode-inferred value configured on the basis of the tile group type and not on the basis of cu_skip_flag. For example, CuPredMode may be inferred as MODE_INTRA and MODE_IBC on the basis of the tile group type and cu_skip_flag. Further, CuPredMode may be inferred as MODE_INTER on the basis of the tile group type.
  • The conventional intra prediction which is not the IBC may not use the skip mode. Accordingly, when signaling indicating the use of the skip mode is performed, the IBC or inter prediction may be determined. In the case of a tile group in which the use of the skip mode is signaled and only intra prediction (including IBC) is used, the IBC may be determined.
  • Referring to FIG. 29, when pred_mode_flag does not exist, CuPredMode may be inferred. In the case of the I tile group and the case in which cu_skip_flag is 0, MODE_INTRA may be inferred. In the case of the I tile group and the case in which cu_skip_flag is 1, M0DE_IBC may be inferred. In the case of the P tile group or the B tile group, MODE_INTER may be inferred.
  • Referring to FIG. 29, when pred_mode_ibc_flag does not exist, CuPredMode may be inferred. In the case of the I tile group and the case in which cu_skip_flag is 0, MODE_INTRA may be inferred. In the case of the I tile group and the case in which cu_skip_flag is 1, M0DE_IBC may be inferred. In the case of the P tile group or the B tile group, MODE_INTER may be inferred.
  • FIG. 30 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • Description of pred_mode_flag and pred_mode_ibc_flag of FIG. 30 may refer to FIGs. 27 to 29. An embodiment of FIG. 30 may be to solve the problem described with reference to FIG. 28.
  • In an embodiment, a method of inferring CuPredMode, pred_mode_flag, or pred_mode_ibc_flag may vary depending on sps_ibc_enabled_flag.
  • In an embodiment, when sps_ibc_enabled_flag is 1, the inference method illustrated in FIG. 29 may be used. When sps_ibc_enabled_flag is 0, the inference method illustrated in FIG. 28 may be used.
  • Referring to FIG. 30, CuPredMode may be inferred. For example, when pred_mode_flag or pred_mode_ibc_flag does not exist, CuPredMode may be inferred. According to an embodiment of the present disclosure, in the case in which sps_ibc_enabled_flag is 1 and the case of the I tile group, CuPredMode may be inferred on the basis of cu_skip_flag. For example, in the case in which sps_ibc_enabled_flag is 1 and the case of the I tile group, if cu_skip_flag is 0, CuPredMode may be configured as MODE_INTRA. In the case in which sps_ibc_enabled_flag is 1 and the case of the I tile group, if cu_skip_flag is 1, CuPredMode may be configured as MODE_IBC. In the case in which sps_ibc_enabled_flag is 1 and the case of the P tile group or the B tile group, CuPredMode may be configured as MODE_INTER. In the case in which sps_ibc_enabled_flag is 0 and the case of the I tile group, CuPredMode may be configured as MODE_INTRA. In the case in which sps_ibc_enabled_flag is 0 and the case of the P tile group or the B tile group, CuPredMode may be configured as MODE_INTER.
  • FIG. 31 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, in the case of the I tile group, pred_mode_ibc_flag may be parsed. In this case, the problem described in FIG. 28 may be solved. In the case of the I tile group and the case in which sps_ibc_enabled_flag is 1, pred_mode_ibc_flag may be parsed. That is, even when the I tile group uses the IBC mode and the skip mode, pred_mode_ibc_flag may be configured and M0DE_IBC may be indicated.
  • Referring to FIG. 31, in the case of (tile_group_type == I), sps_ibc_enabled_flag may be 1, and when a condition related to the block size is satisfied, pred_mode_ibc_flag is parsed.
  • FIG. 32 illustrates prediction mode signaling according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, when pred_mode_flag does not exist, pred_mode_flag may be inferred. The encoder may infer pred_mode_flag of the current block according to the type of a higher level group of the current block and thus omit statement of pred_mode_flag of the current block in a bitstream, thereby increasing compression efficiency. For example, when a tile group to which the current block belongs is the I tile group and a prediction mode of the current block is an intra prediction mode, the encoder may omit statement of pred_mode_flag of the current block indicating a value of 1 in the bitstream. For example, when a tile group to which the current block belongs is the B or P tile group and a prediction mode of the current block is an inter prediction mode, the encoder may omit statement of pred_mode_flag of the current block indicating a value of 0 in the bitstream. More specifically, when a tile group to which the current block belongs is the B or P tile group and a prediction mode of the current block is a skip mode (e.g., when a value of cu_skip_flag is 1), the encoder may omit statement of pred_mode_flag of the current block indicating a value of 0 in the bitstream.
  • Accordingly, the decoder may infer pred_mode_flag on the basis of the tile group type according to an embodiment. For example, in the case of the I tile group, pred_mode_flag may be inferred as 1. In the case of the P tile group, pred_mode_flag may be inferred as 0. In the case of the B tile group, pred_mode_flag may be inferred as 0.
  • CuPredMode may be configured as MODE_INTER or MODE_INTRA on the basis of pred_mode_flag. For example, when pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. Further, when pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA.
  • According to an embodiment of the present disclosure, CuPredMode may be configured on the basis of pred_mode_flag or pred_mode_ibc_flag. For example, when pred_mode_ibc_flag is 0, CuPredMode may be configured on the basis of pred_mode_flag. For example, when pred_mode_ibc_flag is 0, CuPredMode may be configured as MODE_INTER or MODE_INTRA on the basis of pred_mode_flag. Alternatively, when pred_mode_ibc_flag is 0, CuPredMode may be configured as a value other than MODE_IBC on the basis of pred_mode_flag. Referring to FIG. 32, when pred_mode_ibc_flag is 0 and pred_mode_flag is 0, CuPredMode may be configured as MODE_INTER. Further, when pred_mode_ibc_flag is 0 and pred_mode_flag is 1, CuPredMode may be configured as MODE_INTRA.
  • According to an embodiment of the present disclosure, CuPredMode may be configured on the basis of only pred_mode_ibc_flag. For example, when pred_mode_ibc_flag is 1, CuPredMode may be configured without any other flag. For example, when pred_mode_ibc_flag is 1, CuPredMode may be configured as MODE_IBC.
  • According to an embodiment of the present disclosure, when pred_mode_ibc_flag does not exist, pred_mode_ibc_flag may be inferred. For example, the value of pred_mode_ibc_flag may be inferred on the basis of the tile group type. Further, the value of pred_mode_ibc_flag may be inferred on the basis of the tile group type and an IBC mode availability condition. More specifically, in the case of the I tile group, the value of pred_mode_ibc_flag may be inferred on the basis of the IBC mode availability condition. For example, in the case of the I tile group and the case in which the IBC mode availability condition is satisfied, the value of pred_mode_ibc_flag may be inferred as 1. When 1 is inferred, CuPredMode may be configured as the value of MODE_IBC. Further, in the case of the I tile group and the case in which the IBC mode availability condition is not satisfied, the value of pred_mode_ibc_flag may be inferred as 0. Alternatively, in the case of the I tile group and the case in which at least one of the IBC mode availability conditions is not satisfied, the value of pred mode_ibc_flag may be inferred as 0. When 0 is inferred, CuPredMode may be configured as a value other than MODE_IBC. The IBC mode availability condition may include the value of sps_ibc_enabled_flag. Further, the IBC mode availability condition may include a condition related to the block size. Referring to FIG. 32, in the case of the I tile group and the case in which sps_ibc_enabled_flag is 1, the value of pred_mode_ibc_flag may be inferred as 1. In this case, when the IBC mode availability condition is added and is satisfied, the value of pred_mode_ibc_flag may be inferred as 1. In FIG. 32, the additional IBC mode availability condition is indicated as a block size condition.
  • Even in the case of the I tile group (condition 1 of FIG. 32) and the case in which sps_ibc_enabled_flag is 0 (condition 2a of FIG. 32), the value of pred_mode_ibc_flag may be inferred as 0. In the case of the I tile group (condition 1 of FIG. 32) and the case in which another IBC mode availability condition is not satisfied (condition 2b of FIG. 32), the value of pred_mode_ibc_flag may be inferred as 0.
  • In another embodiment, in the case of the P or B tile group, the value of pred_mode_ibc_flag may be inferred as 0. In the case of the P or B tile group, the value of pred_mode_ibc_flag may be inferred as a preset value without any other condition except for the tile group type.
  • When the above condition is satisfied during the encoding process of the video signal, the encoder may not state pred_mode_ibc_flag in the bitstream. Accordingly, the encoder may increase the video compression efficiency by not stating the value of pred_mode_ibc_flag in the bitstream.
  • The term "inference (infer)" in a plurality of embodiments of the present disclosure may mean configuration (configure), derivation (derive), or the like.
  • According to an embodiment of the present disclosure, a tree type may be induced as follows.
  • When tile_group_type is I and qtbtt_dual_tree_intra_flag is 1, the tree type may be configured as DUAL_TREE_LUMA. When tile_group_type is I, qtbtt_dual_tree_intra_flag is 1, and a luma component is processed, the tree type may be configured as DUAL_TREE_LUMA.
  • When tile_group_type is I and qtbtt_dual_tree_intra_flag is 1, the tree type may be configured as DUAL_TREE_CHROMA. Alternatively, when tile_group_type is I, qtbtt_dual_tree_intra_flag is 1, and a chroma component is processed, the tree type may be configured as DUAL_TREE_CHROMA.
  • When tile_group_type is not I or qtbtt_dual_tree_intra_flag is 0, the tree type may be configured as SINGLE_TREE.
  • According to an embodiment, qtbtt_dual_tree_intra_flag may be signaling indicating whether a dual tree is allowed. Allowing the dual tree may mean there are separate coding quad tree syntax structures for the luma and chroma components. More specifically, when the current picture is the only reference picture, qtbtt_dual_tree_intra_flag may be signaling indicating whether the dual tree is allowed.
  • FIG. 33 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, in the case of the chroma component, the IBC mode may not be used. More specifically, in the case of DUAL_TREE_CHROMA, the IBC mode may not be used.
  • Referring to FIG. 33, when the tree type is not DUAL_TREE_CHROMA, pred_mode_ibc_flag may be parsed. When the tree type is DUAL_TREE_CHROMA, pred_mode_ibc_flag may not be parsed. According to an embodiment, when the tree type is DUAL_TREE_CHROMA, CuPredMode may be inferred as MODE_INTRA.
  • FIG. 34 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • The coding unit syntax of FIG. 34 may indicate syntax related to intra prediction. According to an embodiment of the present disclosure, there may be intra_chroma_pred_mode signaling. An intra prediction mode of a chroma component may be determined on the basis of intra_chroma_pred_mode.
  • Referring to FIG. 34, when the tree type is SINGLE_TREE or DUAL_TREE_CHROMA, intra_chroma_pred_mode may be parsed. When the tree type is DUAL_TREE_LUMA, intra_chroma_pred_mode may not be parsed.
  • FIG. 35 illustrates inducement of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
  • Referring to FIG. 35, IntraPredModeC may be an intra prediction mode for a chroma component. xCb and yCb may indicate uppermost leftmost samples of a chroma coding block on the basis of the luma location. IntraPredModeY may be an intra prediction mode for a luma component.
  • According to an embodiment of the present disclosure, IntraPredModeC may be determined on the basis of IntraPredModeY. IntraPredModeC may be determined on the basis of IntraPredModeY and intra_chroma_pred_mode. IntraPredModeY may be a mode corresponding to a luma block corresponding to the current chroma block. According to an embodiment, the location at which IntraPredModeY corresponding to IntraPredModeC for any location is used may be preset. According to an embodiment, the preset location may be a luma block location corresponding to the center of the current chroma block. For example, when IntraPredModeC at the location of (xCb, yCb) is derived, IntraPredModeY at the location of (xCb + cbWidth/2, yCb + cbHeight/2) may be referred to. Alternatively, when IntraPredModeC at the location of (xCb, yCb) is derived, the preset location may be a location based on xCb or yCb.
  • The value of IntraPredModeC for the value of any IntraPredModeY may refer to Table 8-2 or Table 8-3 of FIG. 35. Table 8-2 may correspond to the case in which the CCML may not be used (or sps_cclm_enabled_flag is 0), and Table 8-3 may correspond to the case in which the CCLM may be used (or sps_cclm_enabled_flag is 1). When IntraPredModeY is any value, a column corresponding to the value may be referred to in FIG. 35, and a value corresponding to intra_chroma_pred_mode in the column may be IntraPredModeC. For example, when IntraPredModeY is 1 and intra_chroma_pred_mode is 1, IntraPredModeC may be 50.
  • According to an embodiment, sps_cclm_enabled_flag may be signaling of a higher level indicating whether the CCLM may be applied. For example, when sps_cclm_enabled_flag is 1, the CCLM may be applied. When sps_cclm_enabled_flag is 0, the CCLM may not be applied.
  • The value of IntraPredModeC of FIG. 35 which is 81, 82, or 83 may correspond to a CCLM mode. When sps_cclm_enabled_flag of FIG. 35 is 0, 4 of the value of IntraPredModeC may correspond to a DM mode. When sps_cclm_enabled_flag of FIG. 35 is 1, 7 of the value of IntraPredModeC may correspond to a DM mode.
  • There may be a definition of a bin string for signaling intra_chroma_pred_mode. For example, the DM mode may be indicated using the smallest number of intra_chroma_pred_mode. For example, the DM mode may be indicated using a 1-bit intra_chroma_pred_mode.
  • According to an embodiment, when sps_cclm_enabled_flag is 0, the number of bits indicating 4, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may increase or be the same. According to an embodiment, when sps_cclm_enabled_flag is 0, the bin string indicating 4, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may be 0, 100, 101, 110, or 111.
  • According to an embodiment, when sps_cclm_enabled_flag is 1, the number of bits indicating 7, 4, 5, 6, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may increase or be the same. According to an embodiment, when sps_cclm_enabled_flag is 1, the bin string indicating 7, 4, 5, 6, 0, 1, 2, or 3 corresponding to the value of intra_chroma_pred_mode may be 0, 10, 1110, 1111, 11000, 11001, 11010, or 11011.
  • However, according to the above-described embodiments, intra prediction for the chroma block may not be easy. Particularly, inducement of the intra prediction mode for the chroma block may not be easy. As described above, when the chroma block is intra prediction, an intra prediction mode for the corresponding luma block should be referred to in order to determine the intra prediction mode. However, the corresponding luma location may not perform intra prediction or may not be MODE_INTRA. For example, when the corresponding luma location is MODE_IBC, the corresponding luma intra prediction mode may not exist. According to an embodiment, in the case of SINGLE_TREE, the corresponding luma block and chroma block may use the same prediction mode. Further, in the case of DUAL_TREE, the corresponding luma block and chroma block may use different prediction modes. Further, in the case of the I tile group, DUAL_TREE may be used. Further, in the case of the I tile group, MODE_INTRA or M0DE_IBC may be used. Accordingly, at the same location, DUAL_TREE_LUMA may use MODE_IBC and DUAL_TREE_CHROMA may use MODE_INTRA.
  • FIG. 36 illustrates derivation of an intra prediction mode of a chroma component according to an embodiment of the present disclosure.
  • The embodiment of FIG. 36 may be a method of solving the problem described in FIG. 35.
  • According to an embodiment of the present disclosure, when IntraPredModeY does not exist, IntraPredModeY may be configured as a preset mode (or value). Accordingly, even when the luma location corresponding to the chroma block does not use intra prediction or uses the IBC mode, IntraPredModeC may be induced.
  • More specifically, when IntraPredModeY does not exist, IntraPredModeY may be configured as a planar mode (value of 0). In this case, signaling the planar mode using smaller bits is possible in the signaling method described in FIG. 35.
  • Alternatively, when IntraPredModeY does not exist, IntraPredModeY may be configured as a DC mode (value of 1). In this case, signaling the DC mode using smaller bits is possible in the signaling method described in FIG. 35.
  • Alternatively, when IntraPredModeY does not exist, IntraPredModeY may be configured as a vertical mode (value of 50). In this case, signaling the vertical mode using smaller bits is possible in the signaling method described in FIG. 35.
  • Alternatively, when IntraPredModeY does not exist, IntraPredModeY may be configured as a horizontal mode (value of 18). In this case, signaling the horizontal mode using smaller bits is possible in the signaling method described in FIG. 35.
  • In another embodiment, when IntraPredModeY does not exist, values of IntraPredModeC corresponding to values of intra_chroma_pred_mode may be determined as values which are not shown in FIG. 35. That is, a column in the case in which the value of IntraPredModeY does not exist may separately exist in FIG. 35. For example, IntraPredModeC corresponding to intra_chroma_pred_modes 4, 0, 1, 2, and 3 may be 0, 1, 50, and 18, respectively. Alternatively, IntraPredModeC corresponding to intra_chroma_pred_modes 4, 0, 1, 2, and 3 may be 0, 50, 18, and 1, respectively. This may be applied to both the cases in which sps_cclm_enabled_flag is 0 and 1.
  • In another embodiment, when IntraPredModeY does not exist, IntraPredModeC may be configured as a preset value. For example, when IntraPredModeY does not exist, IntraPredModeC may be configured as a preset value regardless of intra_chroma_pred_mode. Further, when IntraPredModeY does not exist, the value of intra_chroma_pred_mode may be signaled always with the value of 0. For example, when IntraPredModeY does not exist, IntraPredModeC may be configured as the planar mode. Alternatively, when IntraPredModeY does not exist, IntraPredModeC may be configured as the CCLM. Alternatively, when IntraPredModeY does not exist, IntraPredModeC may be configured as the DM mode. Further, when IntraPredModeY does not exist, intra_chroma_pred_mode described in FIG. 34 may not be parsed.
  • In another embodiment, when IntraPredModeY does not exist, the location at which IntraPredModeC is referred to may be changed.
  • In the above embodiments, the case in which IntraPredModeY does not exist may mean the case in which the corresponding luma location referred to when the chroma intra prediction mode is induced is not MODE_INTRA. Alternatively, the case may mean the case in which CuPredMode[ xCb + cbWidth/2][ yCb + cbHeight/2] corresponding to the luma component when the chroma intra prediction mode at the location of (xCb, yCb) is induced is not MODE_INTRA or is MODE_IBC.
  • Alternatively, the case may mean the case in which IntraPredModeY[xCb + cbWidth/2][yCb + cbHeight/2] corresponding to the luma component when the chroma intra prediction mode at the location of (xCb, yCb) is induced does not exist.
  • Referring to FIG. 36, if IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] does not exist when IntraPredModeC[ xCb ][ yCb ] is induced, IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] may be configured as a preset value. IntraPredModeC may be induced with reference to IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] and the table described in FIG. 35.
  • If IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] exists when IntraPredModeC [ xCb ] [ yCb ] is induced, IntraPredModeC may be induced with reference to IntraPredModeY[ xCb + cbWidth / 2 ][ yCb + cbHeight / 2 ] and the table described in FIG. 35.
  • According to an embodiment of the present disclosure, if the corresponding luma lock uses the IBC mode when the chroma block is predicted, a prediction mode may be limited. More specifically, if the corresponding luma block uses the IBC mode when the chroma block is intra-predicted, an intra prediction mode may be limited. For example, in this case, the DM mode may not be used. This is because, when the corresponding luma block and chroma block use different modes, similarity therebetween may be reduced.
  • FIG. 37 illustrates coding unit syntax according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, motion information for the chroma block may exist separately from motion information for the luma block. For example, when the chroma block uses the IBC mode, motion information for the chroma block may exist separately from motion information for the luma block.
  • Referring to FIG. 37, when the tree type is DUAL_TREE_CHROMA, a motion information-related syntax element may be parsed. For example, when the tree type is DUAL_TREE_CHROMA and CuPredMode is MODE_IBC, a motion information-related syntax element may be parsed. The motion information-related syntax element may include merge_flag, a syntax element within merge_data, mvp_10_flag, amvr_4pel_flag, and the like.
  • FIG. 38 illustrates a syntax element according to an embodiment of the present disclosure.
  • According to an embodiment of the present disclosure, a prediction mode may be limited on the basis of the block size. That is, CuPredMode may be limited on the basis of the block size. For example, inter prediction may be limited. This is to reduce a memory bandwidth or computational complexity. For example, the prediction mode may be limited in a block having the small size. For example, the prediction mode may be limited in a block having the size equal to or smaller than a threshold. For example, the threshold may be the size of 4x4. That is, in a detailed embodiment, inter prediction may not be used in a block having the size equal to or smaller than 4x4.
  • The limited prediction mode described in another embodiment may be bi-predicted inter prediction. For example, bi-prediction may not be used in the block size equal to or smaller than the threshold. In this case, the threshold may indicate the size equal to or smaller than 4x8 or 8x4. For example, the threshold may be 12 (width + height). When bi-prediction is limited, there may be a process of switching bi-prediction to uni-prediction. Alternatively, when bi-prediction is limited, a value indicating a prediction direction or a reference list may be limited.
  • The prediction mode may be limited as described above, and thus syntax structures different from that described in the above drawings may be used for efficient signaling.
  • According to an embodiment of the present disclosure, in the case of MODE_INTRA, a skip mode may not be used. Accordingly, in the case of MODE_INTRA, cu_skip_flag may be 0. Therefore, if cu_skip_flag is 1, non MODE_INTRA may be determined.
  • Referring to FIG. 38, when the tile group type is not I or sps_ibc_enabled_flag is 1, cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag may be parsed. In this case, parsing may be performed in consideration of additional conditions. That is, when the tile group type is I and sps_ibc_enabled_flag is 0, cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag may not be parsed. According to an embodiment, CuPredMode may be a value of one of MODE_INTRA, MODE_INTER, and MODE_IBC. An available CuPredMode value when the tile group type is I may be MODE_INTRA or MODE_IBC. However, an available CuPredMode value when MODE_IBC is limited, for example, when sps_ibc_enabled_flag is 0, may be only MODE_INTRA. Accordingly, when the tile group type is I and sps_ibc_enabled_flag is 0, pred_mode_flag, and pred_mode_ibc_flag may not be parsed and CuPredMode may be determined as MODE_INTRA. Further, as described above, it may be determined that cu_skip_flag is 0.
  • According to an embodiment of the present disclosure, cu_skip_flag, pred_mode_flag, and pred_mode_ibc_flag may be parsed on the basis of the block size.
  • For example, in the case of the block size in which inter prediction is limited and the case in which the IBC may not be used, cu_skip_flag may not be parsed. That is, in the case of the block size in which inter prediction may be used or the case in which the IBC may be used, cu_skip_flag may be parsed. In the case of the block size in which inter prediction is limited and the case in which the IBC may not be used, CuPredMode may be determined as MODE_INTRA. In this case, the value of cu_skip_flag may be determined and inferred as 0. In an embodiment, the block size in which the inter prediction is limited may be a block of 4x4. Further, the case in which the IBC may not be used may be a case in which sps_ibc_enabled_flag is 0.
  • According to an embodiment of the present disclosure, in the case of the block size in which inter prediction is limited, pred_mode_flag may not be parsed. According to an embodiment of the present disclosure, it may be determined whether CuPredMode is MODE_INTRA or MODE_INTER on the basis of the value of pred_mode_flag. In the case of the block size in which inter prediction is limited, it may be determined that pred_mode_flag is a value indicating that CuPredMode is MODE_INTRA. CuPredMode may be changed on the basis of pred_mode_ibc_flag. That is, CuPredMode may be determined on the basis of pred_mode_flag and pred_mode_ibc_flag, and CuPredMode determined on the basis of only pred_mode_flag may be changed on the basis of pred mode_ibc_flag. According to an embodiment, it may be determined whether CuPredMode is MODE_IBC and whether CuPredMode is determined on the basis of only pred_mode_flag according to the value of pred_mode_ibc_flag.
  • In the case of the block size in which inter prediction is not limited, pred_mode_flag may be parsed. In this case, an additional condition may be considered. For example, whether to parse pred_mode_flag may be determined on the basis of cu_skip_flag or a tile group type. As described above, pred_mode_flag may be the value for determining whether CuPredMode is MODE_INTRA or MODE_INTER, which is because CuPredMode may be limited on the basis of cu_skip_flag or the tile group type. For example, when the tile group type is I, CuPredMode may be only the value of MODE_INTRA. When the tile group type is not I, that is, the tile group type is P or B, CuPredMode may be both MODE_INTRA and MODE_INTER. However, when the tile group type is not I and cu_skip_flag is 1, CuPredMode may be only the value of MODE_INTER. According to an embodiment of the present disclosure, when cu_skip_flag is 1 or the tile group type is I, pred_mode_flag may not be parsed. According to an embodiment of the present disclosure, when the tile group type is I, pred_mode_flag or CuPredMode may be inferred as a value indicating MODE_INTRA. When the tile group type is P or B, pred_mode_flag or CuPredMode may be inferred as a value indicating MODE_INTER.
  • In an embodiment, the block size in which the inter prediction is limited may be a block of 4x4. Alternatively, the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • pred_mode_ibc_flag may be parsed on the basis of the block size in which inter prediction is limited. Further, pred_mode_ibc_flag may be parsed on the basis of cu_skip_flag. According to an embodiment, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag may not be parsed. As described above, in the block size in which inter prediction is limited, CuPredMode may not be MODE_INTER. When cu_skip_flag is 1, CuPredMode may not be MODE_IBC. Accordingly, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag or CuPredMode may be determined and inferred as MODE_IBC. Further, it may be a case in which the configuration as MODE_IBC is possible. For example, when sps_ibc_enabled_flag is 1, the configuration as MODE_IBC may be possible. Accordingly, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag or CuPredMode may be determined and inferred according to sps_ibc_enabled_flag. More specifically, in the case of the block size in which inter prediction is limited and the case in which cu_skip_flag is 1, pred_mode_ibc_flag may be inferred as sps_ibc_enabled_flag. In the case of the block size in which inter prediction is not limited and the case in which cu_skip_flag is 0, pred_mode_ibc_flag may be parsed.
  • When the tile group type is I and cu_skip_flag is 1, pred_mode_ibc_flag may not be parsed. Further, in this case, pred_mode_ibc_flag or CuPredMode may be determined and inferred as a value indicating MODE_IBC. A value of CuPredMode available in the I tile group is MODE_INTRA or MODE_IBC. This is because the skip mode is not used in MODE_INTRA. Accordingly, when the tile group type is I and cu_skip_flag is 0, pred_mode_ibc_flag may be parsed.
  • When the tile group type is not I, CuPredMode is MODE_INTRA, and in the case that does not correspond to the block size in which inter prediction is limited, pred_modeibc_flag may not be parsed. In this case, the prediction mode may be determined without pred_mode_ibc_flag. When the tile group type is not I, CuPredMode is not MODE_INTRA, and in the case of the block size in which inter prediction is limited, pred_mode_ibc_flag may be parsed. In this case, pred_mode_ibc_flag may be parsed in consideration of an additional condition. For example, when the tile group type is not I, when CuPredMode is MODE_INTRA, and in the case of the block in which inter prediction is limited, pred_mode_ibc_flag may be parsed. This is because the final prediction mode is determined as MODE_INTRA or MODE_IBC even though inter prediction is limited. In addition, when cu_skip_flag is 0, pred_mode_ibc_flag may be parsed.
  • In an embodiment, the block size in which the inter prediction is limited may be a block of 4x4. Alternatively, the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • FIG. 39 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
  • Referring to FIG. 39, pred_mode_flag or pred_mode_ibc_flag may be inferred as described in FIG. 38. Alternatively, CuPredMode may be determined as described in FIG. 38. pred_mode_flag and pred_mode_ibc_flag of FIG. 39 may be the same signaling as pred mode_flag and pred_mode_ibc_flag of FIG. 38.
  • According to an embodiment of the present disclosure, CuPredMode may be determined as MODE_INTER or MODE_INTRA on the basis of the value of pred_mode_flag. When the value is MODE_TEMP, CuPredMode may be determined as MODE_TEMP or MODE_IBC on the basis of the value of pred_mode_ibc_flag.
  • As illustrated in FIG. 38, in the case of the block size in which inter prediction is limited, pred_mode_flag may be inferred as a value indicating MODE_INTRA. That is, in the case of the block size in which inter prediction is limited, pred_mode_flag may be inferred as 1. Referring to FIG. 39, when the block size is 4x4, the value of pred_mode_flag may be inferred as 1.
  • As illustrated in FIG. 38, in the case of the block size in which inter prediction is limited and the case of the skip mode, pred_mode_ibc_flag may be inferred as a value indicating MODE_IBC. This may be a case in which MODE_IBC may be used. For example, the case in which MODE IBC may be used may be a case in which sps_ibc_enabled_flag is 1. For example, in the case of the block size in which inter prediction is limited and the case of the skip mode, pred_mode_ibc_flag may be inferred as the value of sps_ibc_enabled_flag. Referring to FIG. 39, in the case of the block size of 4x4 and the case of the skip mode, pred_mode_ibc_flag may be inferred as the value of sps_ibc_enabled_flag.
  • FIG. 40 illustrates a method of inferring a signaling value according to an embodiment of the present disclosure.
  • FIGs. 38 to 39 have described the method of parsing, inferring, or determining cu_skip_flag, pred_mode_flag, pred_mode_ibc_flag, and CuPredMode. However, in the inference method illustrated in FIG. 39, there may be conflict.
  • For example, in the case of the block size in which inter prediction is limited and the case in which the tile group type is P or B, it may be difficult to infer the value of pred_mode_flag. In FIG. 39, the value of pred_mode_flag may be inferred as one of the two values, and all of the two cases may be satisfied.
  • In the case of the block size in which inter prediction is limited, the case of the skip mode, and the case in which the tile group type is P or B, it may be difficult to infer the value of pred_mode_ibc_flag. In FIG. 39, the value of pred_mode_ibc_flag may be inferred as one of the two values, and all of the two cases may be satisfied.
  • FIG. 40 may be an embodiment for solving the problem.
  • A prediction mode available when the tile group type is P or B may be MODE_INTRA, MODE_INTER, or MODE_IBC. In the case of the block size in which inter prediction is limited, MODE_INTER may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC. According to an embodiment of the present disclosure, in this case, pred_mode_flag may be inferred as a value indicating MODE_INTRA. This is because MODE_IBC may be determined through pred_mode_ibc_flag. Accordingly, the above description may be summarized as follows.
  • In the case in which the tile group type is I or the case of the block size in which inter prediction is limited, pred_mode_flag may be inferred as a value indicating MODE_INTRA. Further, 1) in the case in which the tile group type is P or B and 2) the case that does not correspond to the block size in which inter prediction is limited, pred_mode_flag may be inferred as a value indicating MODE_INTER.
  • A prediction mode available when the tile group type is P or B may be MODE_INTRA, MODE_INTER, or MODE_IBC. In the case of the block size in which inter prediction is limited, MODE_INTER may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC. In the case of the skip mode, MODE_INTRA may not be used among MODE_INTRA, MODE_INTER, and MODE_IBC. Accordingly, in the case in which the tile group type is P or B, the case of the block size in which inter prediction is limited, and the case of the skip mode, only MODE_IBC may be used. Accordingly, in this case, pred_mode_ibc_flag may be inferred as 1. Therefore, the above description may be summarized as follows.
  • 1) when the tile group type is I or 2) in the case of the block size in which inter prediction is limited and the case of the skip mode, pred_mode_ibc_flag may be inferred as a value indicating MODE_IBC, for example, 1. Further, i) when the tile group type is P or B and ii) in the case that does not correspond to the block size in which inter prediction is limited or the case that does not correspond to the skip mode, pred_mode_ibc_flag may be inferred as a value that does not indicate MODE_IBC, for example, 0.
  • In an embodiment, the block size in which the inter prediction is limited may be a block of 4x4. Alternatively, the block size in which inter prediction is limited may be a block having the size equal to or smaller than 4x4.
  • FIG. 40 illustrates that the method of inferring pred_mode_flag and pred_mode_ibc_flag is an example of the case in which the block size in which inter prediction is limited is 4x4.
  • In the described present disclosure, the tile group type may be a slice type. Whether the mode is the skip mode may be determined through cu_skip_flag.
  • FIG. 41 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure. inter_pred_idc is a parameter indicating the type of inter prediction and may be called an inter prediction type parameter.
  • As illustrated in FIG. 38, bi-prediction may not be used on the basis of the block size. According to an embodiment of the present disclosure, inter prediction available in any block size may be L0 uni-prediction, L1 uni-prediction, or bi-prediction, and inter prediction available in any block size may be L0 uni-prediction or L1 uni-prediction. Further, the type of inter prediction may be indicated through inter_pred_idc. L0 uni-prediction may be inter prediction using only reference list 0. L1 uni-prediction may be inter prediction using only reference list 1. bi-prediction may be inter prediction using both reference list 0 and reference list 1. Further, the inter prediction type may be determined for each CU. Values of inter_pred_idc indicating L0 uni-prediction, L1 uni-prediction, and bi-prediction may be PRED_L0, PRED_L1, and PRED_BI, respectively. Values of inter_pred_idc indicating L0 uni-prediction, L1 uni-prediction, and bi-prediction may be 0, 1, and 2, respectively.
  • According to an embodiment of the present disclosure, in the case of the block size in which bi-prediction is not used, a value of inter_pred_idc corresponding to bi-prediction may not exist.
  • Further, a binarization method indicating inter_pre_idc may exist. The method may be different in a block in which bi-prediction is allowed and a block in which bi-prediction is not allowed. In addition, this may be a bin string used in the case in which inter_pre_idc is parsed. When bi-prediction is allowed, the value corresponding to L0 uni-prediction, L1 uni-prediction, or bi-prediction may be used as inter_pre_idc. In order to express this, inter_pred_idc may be indicated through a variable length binarization method. For example, values corresponding to L0 uni-prediction, L1 uni-prediction, and bi-prediction may be indicated as 00, 01, and 1, respectively. Alternatively, values corresponding to L0 uni-prediction, L1 uni-prediction, and bi-prediction may be indicated as 10, 11, and 0, respectively. When bi-prediction is not allowed, the value corresponding to L0 uni-prediction or L1 uni-prediction may be used as inter_pre_idc. Accordingly, inter_pre_idc may be indicated by 1 bit. For example, the values corresponding to L0 uni-prediction and L1 uni-prediction may be indicated as 0 and 1, respectively. Alternatively, the values corresponding to L0 uni-prediction and L1 uni-prediction may be indicated as 1 and 0, respectively.
  • According to an embodiment, the block size in which bi-prediction is not used may be a block size equal to or smaller than a threshold. For example, the threshold may be a block of 4x8 or a block of 8x4. When 4x4 inter prediction is not allowed, the block size in which bi-prediction is not used may be a block of 4x8 or 8x4. The block of 4x4 may be indicated by (width + height == 8). The block of 4x8 or 8x4 may be indicated by (width + height == 12).
  • Referring to FIG. 41, in the case of the block of 4x8 or 8x4, inter_pred_idc may have only a value corresponding to PRED_L0, PRED_L1. In this case, inter_pred_idc may be indicated by 0 or 1.
  • FIG. 42 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
  • As illustrated in FIG. 41, there may be a plurality of sets of values which inter_pred_idc may indicate and signaling methods thereof. For example, the number of types of values which inter_pred_idc may indicate is three in any block, in which case signaling may be performed using 1 or 2 bits. Further, the number of types of values which inter_pred_idc may indicate is two in any block, in which signaling may be performed using b bits. The type of values which inter_pred_idc may indicate and signaling may vary depending on the block size. For example, according to the block size in which bi-prediction is allowed, the type of values which inter_pred_idc may indicate and signaling may be different.
  • However, in the method illustrated in FIG. 41, there may be ambiguity in the type of values which inter_pred_idc may indicate and signaling in the case of any block size. For example, when the block size is 4x8 or 8x4, all of the condition (width + height) ! = 8 and the condition ((width + height == 8) | | (width + height == 12) may be satisfied. Accordingly, signaling and a bitstream between the encoder and the decoder may mismatch.
  • The embodiment of FIG. 42 may be a method of solving the problem. According to an embodiment of the present disclosure, in the case in which condition 1 is satisfied and the case in which !condition 1 is satisfied, types of values which inter_pred_idc may indicate and signaling methods may be different. For example, condition 1 may be a block size condition in which bi-prediction is not allowed. For example, condition 1 may be a condition of the block of 4x8 or 8x4. When bi-prediction is not allowed, if inter_pred_idc is signaled using 2 bits, the signaling is considered inefficient. This is because PRED_BI is not indicated by the value of inter_pred_idc when bi-prediction is not allowed. In an embodiment, the block size condition in which bi-prediction is not allowed may be a size of the block of 4x8 or 8x4. Accordingly, the block size in which bi-prediction is not allowed may be 4x8, 8x4, or 4x4.
  • Referring to FIG. 42, when width + height corresponds to 8 or 12, a value which inter_pred_idc may have may be PRED_L0, PRED_L1. Further, inter_pred_idc may be indicated through 1 bit. Signaling may be 0 or 1. When width + height is neither 8 or 12, values which inter_pred_idc may have may be PRED_L0, PRED_L1, or PRED_BI. Further, inter_pred_idc may be indicated through 1 bit or 2 bits. Signaling may be 00, 01, or 1.
  • FIG. 43 illustrates a value of inter_pred_idc and binarization according to an embodiment of the present disclosure.
  • FIG. 43 may be an embodiment for solving the problem illustrated in FIGs. 41 to 42. Further, FIG. 43 may be a method of increasing efficiency of the embodiment of FIG. 42. As described above, there may be a block size in which inter prediction is not allowed. In the embodiment of FIG. 42, if the block size in which inter prediction is not allowed is not considered, an unnecessary condition check may be needed. For example, when inter prediction is not allowed, the value of inter_pred_idc is meaningless. If a condition of the case in which inter prediction is not allowed is checked in inter_pred_idc signaling, it may be meaningless. According to an embodiment of the present disclosure, inter_pred_idc signaling and a set of values may be determined by checking a condition of the case in which bi-prediction is not allowed without checking the condition of the case in which inter prediction is not allowed. For example, the case in which inter prediction is not allowed may be the block size of 4x4, and the case in which bi-prediction is not allowed may be the block size of 4x8 or 8x4.
  • Referring to FIG. 43, when width + height corresponds to 12, a value which inter_pred_idc may have may be PRED_L0 or PRED_L1. Further, inter_pred_idc may be indicated through 1 bit. Signaling may be 0 or 1. When width + height does not correspond to 12, values which inter_pred_idc may have may be PRED_L0, PRED_L1, or PRED_BI. Further, inter_pred_idc may be indicated through 1 bit or 2 bits. Signaling may be 00, 01, or 1.
  • Accordingly, in the embodiment of FIG. 43, in fact, a set of values of inter_pred_idc and signaling may correspond to the left side (a third column among all columns) among two columns of FIG. 43 in the case of the 4x4 block, which may be different from the embodiment of FIG. 42.
  • According to an embodiment of the present disclosure, when the tree type is DUAL_TREE_CHROMA, cu_skip_flag may be parsed. In the tree type corresponding to DUAL_TREE_CHROMA, partitioning of the luma block and the chroma block may be different, and it may indicate processing corresponding to chroma. Further, when the tree type is DUAL_TREE_CHROMA, if MODE_IBC is available, cu_skip_flag may be parsed. The case in which MODE_IBC may be used may be a case in which sps_ibc_enabled_flag is 1. This is to allow the skip mode to be used when the prediction mode of the chroma block is MODE_IBC.
  • The above-described embodiments of the present invention may be implemented through various means. For example, embodiments of the present invention may be implemented by hardware, firmware, software, or a combination thereof.
  • For implementation by hardware, the method according to embodiments of the present invention may be implemented by one or more of Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and the like.
  • In the case of implementation by firmware or software, the method according to embodiments of the present invention may be implemented in the form of a module, procedure, or function that performs the functions or operations described above. The software code may be stored in memory and driven by a processor. The memory may be located inside or outside the processor, and may exchange data with the processor by various means already known.
  • The above-mentioned description of the present invention is for illustrative purposes only, and it will be understood that those of ordinary skill in the art to which the present invention belongs may make changes to the present invention without altering the technical ideas or essential characteristics of the present invention and the invention may be easily modified in other specific forms. Therefore, the embodiments described above are illustrative and are not restricted in all aspects. For example, each component described as a single entity may be distributed and implemented, and likewise, components described as being distributed may also be implemented in an associated fashion.
  • The scope of the present invention is defined by the appended claims rather than the above detailed description, and all changes or modifications derived from the meaning and range of the appended claims and equivalents thereof are to be interpreted as being included within the scope of present invention.

Claims (21)

  1. A method of processing a video signal, the method comprising:
    determining a prediction mode of a current block;
    when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, decoding the current block based on the BC prediction mode;
    when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decoding the current block based on the inter prediction mode,
    wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode comprise some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  2. The method of claim 1,
    wherein when an uppermost leftmost location of the current block is (xCb, yCb),the sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode comprise a location of (xCb - 1, yCb -1),
    wherein when the uppermost leftmost location of the current block is (xCb, yCb), the sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode do not comprise the location of (xCb - 1, yCb -1).
  3. The method of claim 1,
    wherein when the uppermost leftmost location of the current block is (xCb, yCb), the sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode comprise at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1),
    wherein the cbWidth is a width of the current block and the cbHeight is a height of the current block.
  4. The method of claim 1,
    wherein the determining of the prediction mode of the current block comprises:
    acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream;
    determining the prediction mode of the current block as the BC prediction mode based on the BC mode parameter,
    when the BC mode parameter is not acquired from the bitstream, a slice to which the current block belongs is a slice which refers to the current picture as a reference picture, and signaling information (sps_bc_enabled_flag) of a higher level than the current block indicates that the BC prediction mode is available, the BC mode parameter is determined to be a value indicating that the BC prediction mode is used,
    when the BC mode parameter is not acquired from the bitstream and a slice to which the current block belongs is a slice which is capable of referring to a picture other than the current picture as a reference picture, the BC mode parameter is determined to be a value indicating that the BC prediction mode is not used.
  5. The method of claim 1,
    wherein the determining of the prediction mode of the current block comprises:
    acquiring a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream,
    when the prediction mode parameter is not acquired from the bitstream and a parallel processing unit to which the current block belongs is a unit which refers to the current picture as a reference picture, the prediction mode parameter is determined to be a value indicating an intra prediction mode,
    when the prediction mode parameter is not acquired from the bitstream and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the prediction mode parameter is determined to be a value indicating the inter prediction mode.
  6. The method of claim 1,
    wherein the determining of the prediction mode of the current block comprises:
    acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream,
    when the BC mode parameter is not acquired from the bitstream, when coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component, the BC mode parameter is determined to be a value indicating that the BC prediction mode is not used.
  7. The method of claim 1,
    wherein the determining of the prediction mode of the current block comprises:
    acquiring a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream,
    when the prediction mode parameter is not acquired from the bitstream, a size of the current block does not correspond to a block size preset as a block size in which the inter prediction is limited and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the prediction mode parameter is determined to be a value indicating the inter prediction.
  8. The method of claim 1,
    wherein the determining of the prediction mode of the current block comprises:
    acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream,
    when the BC mode parameter is not acquired from the bitstream, a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode and a size of the current block corresponds to a block size preset as a block size in which the inter prediction is limited, the BC mode parameter is determined to be a value indicating that the BC prediction mode is used.
  9. The method of claim 8,
    wherein when the BC mode parameter is not acquired from the bitstream, the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode, the size of the current block does not correspond to the block size in which the inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the BC mode parameter is determined to be a value indicating that the BC is not used.
  10. A method of processing a video signal, the method comprising:
    determining a prediction mode of a current block;
    when the prediction mode of the current block is a Block Copy (BC) prediction mode in which a current picture is referred to, generating a bitstream for encoding the current block based on the BC prediction mode;
    when the prediction mode of the current block is an inter prediction mode in which at least one picture is referred to, generating a bitstream for encoding the current block based on the inter prediction mode,
    wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode comprise some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  11. An apparatus for processing a video signal, the apparatus comprising a processor,
    wherein the processor is configured to:
    determine a prediction mode of a current block,
    when the prediction mode of the current block is the BC prediction mode referring to a current picture, decode the current block based on a Block Copy (BC) prediction mode,
    when the prediction mode of the current block is an inter prediction mode referring to at least one picture, decode the current block based on the inter prediction mode,
    wherein sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode comprise some of sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode.
  12. The apparatus of claim 11,
    wherein when an uppermost leftmost location of the current block is (xCb, yCb), the sets of spatial neighbor locations referred to for decoding the current block in the inter prediction mode comprise a location of (xCb - 1, yCb -1),
    wherein when the uppermost leftmost location of the current block is (xCb, yCb), the sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode do not comprise a location of (xCb - 1, yCb -1).
  13. The apparatus of claim 11,
    wherein when the uppermost leftmost location of the current block is (xCb, yCb), the sets of spatial neighbor locations referred to for decoding the current block in the BC prediction mode comprise at least one of a location of (xCb - 1, yCb + cbHeight - 1) and a location of (xCb + cbWidth - 1, yCb - 1),
    wherein the cbWidth is a width of the current block and cbHeight is a height of the current block.
  14. The apparatus of claim 11,
    wherein the processor is configured to:
    acquire a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream,
    determine the prediction mode of the current block as the BC prediction mode based on the BC mode parameter,
    when the BC mode parameter is not acquired from the bitstream, a slice to which the current block belongs is a slice which refers to the current picture as a reference picture, and signaling information (sps_bc_enabled_flag) of a higher level than the current block indicates that the BC prediction mode is available, athe BC mode parameter is determined to be a value indicating that the BC prediction mode is used,
    when the BC mode parameter is not acquired from the bitstream and a slice to which the current block belongs is a slice which is capable of referring to a picture other than the current picture as a reference picture, the BC mode parameter is determined to be a value indicating that the BC prediction mode is not used.
  15. The apparatus of claim 11,
    wherein the processor is configured to:
    acquire a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream before acquiring a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from the bitstream,
    when the prediction mode parameter is not acquired from the bitstream and a parallel processing unit to which the current block belongs is a unit which does not refer to a picture other than the current picture as a reference picture, the prediction mode parameter is determined as a value indicating an intra prediction mode,
    when the prediction mode parameter is not acquired from the bitstream and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the prediction mode parameter is determined as a value indicating the inter prediction mode.
  16. The apparatus of claim 11,
    wherein the processor is configured to:
    acquire a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream,
    when the BC mode parameter is not acquired from the bitstream and coding tree type information (treeType) indicating partitioning of the current block is DUAL_TREE_CHROMA indicating a chroma component, a value of the BC mode parameter is determined as a value indicating that the BC prediction mode is not used.
  17. The apparatus of claim 11,
    wherein the processor is configured to:
    acquire a prediction mode parameter (pred_mode_flag) indicating the prediction mode of the current block from a bitstream,
    when the prediction mode parameter is not acquired from the bitstream, a size of the current block does not correspond to a block size preset as a block size in which the inter prediction is limited and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the prediction mode parameter is determined as a value indicating the inter prediction.
  18. The apparatus of claim 11,
    wherein the processor is configured to:
    acquire a BC mode parameter (pred_mode_bc_flag) indicating whether the prediction mode of the current block is the BC prediction mode from a bitstream,
    when the BC mode parameter is not acquired from the bitstream, a parameter indicating whether a mode of the current block is a skip mode indicates the skip mode, and a size of the current block corresponds to a block size preset as a block size in which the inter prediction is limited, a value of the BC mode parameter is determined as a value indicating that the BC prediction mode is used.
  19. The apparatus of claim 18,
    wherein, when the BC mode parameter is not acquired from the bitstream, the parameter indicating whether the mode of the current block is the skip mode does not indicate the skip mode, the size of the current block does not correspond to the block size in which the inter prediction is limited, and a parallel processing unit to which the current block belongs is a unit which is capable of referring to a picture other than the current picture as a reference picture, the value of the BC mode parameter indicates that the BC is not used.
  20. An apparatus for processing a video signal, the apparatus comprising a processor,
    wherein the processor is configured to:
    determine a prediction mode of a current block,
    when the prediction mode of the current block is a Block Copy (BC) prediction mode referring to a current picture, generate a bitstream for encoding the current block based on a Block Copy (BC) prediction mode,
    when the prediction mode of the current block is an inter prediction mode referring to at least one picture, generate a bitstream for encoding the current block based on an inter prediction mode,
    wherein sets of spatial neighbor locations referred to for encoding the current block in the BC prediction mode comprise some of sets of spatial neighbor locations referred to for encoding the current block in the inter prediction mode.
  21. A computer-readable recording medium storing a bitstream for processing a video signal,
    wherein the bitstream including prediction mode information of a target block, and including when the prediction mode of the target block is a Block Copy (BC) prediction mode referring to a trager picture, a bitstream encoding the target block based on the BC prediction mode, and when the prediction mode of the target block is an inter prediction mode that refers to at least one picture, a bitstream encoding the target block based on the inter prediction mode,
    wherein sets of spatial neighbor locations referred to for encoding the target block in the BC prediction mode include some of sets of spatial neighbor locations referred to for encoding the target block in the inter prediction mode.
EP19895005.7A 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference Pending EP3896969A4 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP24167363.1A EP4383703A1 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20180160432 2018-12-12
KR20190019512 2019-02-19
KR20190048097 2019-04-24
PCT/KR2019/017639 WO2020122654A1 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference

Related Child Applications (1)

Application Number Title Priority Date Filing Date
EP24167363.1A Division EP4383703A1 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference

Publications (2)

Publication Number Publication Date
EP3896969A1 true EP3896969A1 (en) 2021-10-20
EP3896969A4 EP3896969A4 (en) 2022-09-14

Family

ID=71075465

Family Applications (2)

Application Number Title Priority Date Filing Date
EP24167363.1A Pending EP4383703A1 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference
EP19895005.7A Pending EP3896969A4 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference

Family Applications Before (1)

Application Number Title Priority Date Filing Date
EP24167363.1A Pending EP4383703A1 (en) 2018-12-12 2019-12-12 Video signal processing method and device using current picture reference

Country Status (6)

Country Link
US (1) US12003699B2 (en)
EP (2) EP4383703A1 (en)
JP (2) JP2022513857A (en)
KR (1) KR20210091208A (en)
CN (1) CN113228636A (en)
WO (1) WO2020122654A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11190800B2 (en) 2019-02-07 2021-11-30 Qualcomm Incorporated Motion vector predictor list generation for intra block copy mode in video coding
WO2020223612A1 (en) * 2019-05-02 2020-11-05 Bytedance Inc. Signaling in transform skip mode
WO2021036982A1 (en) * 2019-08-24 2021-03-04 Beijing Bytedance Network Technology Co., Ltd. Coded representation of history-based motion vector prediction tables

Family Cites Families (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071490B (en) 2010-11-04 2020-07-14 Ge视频压缩有限责任公司 Decoding apparatus and method, encoding apparatus and method, and method for storing and transmitting image
KR101953384B1 (en) 2011-03-06 2019-03-04 엘지전자 주식회사 Intra prediction method of chrominance block using luminance sample, and apparatus using same
KR101668575B1 (en) 2011-06-23 2016-10-21 가부시키가이샤 제이브이씨 켄우드 Image decoding device, image decoding method and image decoding program
BR112013030562B1 (en) 2011-06-30 2022-05-03 Sun Patent Trust Decoding method and apparatus, encoding method and apparatus and encoding and decoding apparatus
KR20130049526A (en) 2011-11-04 2013-05-14 오수미 Method for generating reconstructed block
PL2869557T3 (en) 2012-06-29 2024-02-19 Electronics And Telecommunications Research Institute Method and device for encoding/decoding images
KR20140016823A (en) * 2012-07-24 2014-02-10 한국전자통신연구원 Video decoding method and apparatus using the same
DK2984837T3 (en) 2013-04-08 2018-04-30 Ge Video Compression Llc Inter-component prediction
US11323747B2 (en) * 2013-06-05 2022-05-03 Qualcomm Incorporated Residual differential pulse code modulation (DPCM) extensions and harmonization with transform skip, rotation, and scans
EP3058739B1 (en) * 2013-10-14 2019-08-07 Microsoft Technology Licensing, LLC Features of intra block copy prediction mode for video and image coding and decoding
BR112016010796B1 (en) * 2013-11-14 2023-11-28 Hfi Innovation Inc. CODING MODE SIGNALING METHOD REFERENCE TO RELATED PATENT APPLICATIONS
US9883197B2 (en) * 2014-01-09 2018-01-30 Qualcomm Incorporated Intra prediction of chroma blocks using the same vector
US20150271515A1 (en) * 2014-01-10 2015-09-24 Qualcomm Incorporated Block vector coding for intra block copy in video coding
CN109889850A (en) * 2014-02-21 2019-06-14 联发科技(新加坡)私人有限公司 Video coding-decoding method
KR20160129075A (en) * 2014-03-04 2016-11-08 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 Block flipping and skip mode in intra block copy prediction
EP3120561B1 (en) * 2014-03-16 2023-09-06 VID SCALE, Inc. Method and apparatus for the signaling of lossless video coding
KR102311815B1 (en) * 2014-06-19 2021-10-13 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 Unified intra block copy and inter prediction modes
US10412387B2 (en) * 2014-08-22 2019-09-10 Qualcomm Incorporated Unified intra-block copy and inter-prediction
WO2016034058A1 (en) * 2014-09-01 2016-03-10 Mediatek Inc. Method of intra picture block copy for screen content and video coding
US9918105B2 (en) * 2014-10-07 2018-03-13 Qualcomm Incorporated Intra BC and inter unification
CN114567785A (en) 2015-09-11 2022-05-31 株式会社Kt Image decoding method, image encoding method, and apparatus including bit stream
KR102346713B1 (en) 2016-04-12 2022-01-03 세종대학교산학협력단 Method and apparatus for processing a video signal based on intra prediction
KR102270228B1 (en) 2016-07-12 2021-06-28 한국전자통신연구원 A method for encoding/decoding a video and a readable medium therefor
US20200045305A1 (en) 2016-09-30 2020-02-06 Lg Electronics Inc. Picture processing method and apparatus for same
US20200045322A1 (en) 2016-10-04 2020-02-06 Mediatek Inc. Method and apparatus for intra chroma coding in image and video coding
US10848788B2 (en) 2017-01-06 2020-11-24 Qualcomm Incorporated Multi-type-tree framework for video coding
US10531085B2 (en) 2017-05-09 2020-01-07 Futurewei Technologies, Inc. Coding chroma samples in video compression
JP6503101B2 (en) * 2018-02-23 2019-04-17 マイクロソフト テクノロジー ライセンシング,エルエルシー Block inversion and skip mode in intra block copy prediction
US11418803B2 (en) 2018-04-01 2022-08-16 Lg Electronics Inc. Intra-prediction-based image coding method and device therefor
KR20200033210A (en) 2018-09-19 2020-03-27 한국전자통신연구원 Method and apparatus for intra prediction mode encoding/decoding and recording medium for storing bitstream
US10958904B2 (en) 2019-02-01 2021-03-23 Tencent America LLC Method and apparatus for video coding
WO2020171681A1 (en) 2019-02-19 2020-08-27 주식회사 윌러스표준기술연구소 Intra prediction-based video signal processing method and device
KR102635518B1 (en) 2019-03-06 2024-02-07 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Use of converted single prediction candidates
CA3134398A1 (en) 2019-03-23 2020-10-01 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods for intra prediction

Also Published As

Publication number Publication date
JP2022513857A (en) 2022-02-09
JP2024060107A (en) 2024-05-01
KR20210091208A (en) 2021-07-21
US12003699B2 (en) 2024-06-04
CN113228636A (en) 2021-08-06
WO2020122654A1 (en) 2020-06-18
EP3896969A4 (en) 2022-09-14
US20210297662A1 (en) 2021-09-23
EP4383703A1 (en) 2024-06-12

Similar Documents

Publication Publication Date Title
US11601641B2 (en) Video signal processing method and apparatus using multi-assumption prediction
US11470306B2 (en) Method and device for processing video signal using MPM configuration method for multiple reference lines
US11849106B2 (en) Video signal processing method and device using motion compensation
US12022132B2 (en) Video signal processing method and device for signaling prediction mode
EP4002847B1 (en) Method and device for processing video signal
US11979554B2 (en) Intra prediction-based video signal processing method and device
US12003699B2 (en) Video signal processing method and device using current picture reference
US20210400279A1 (en) Intra prediction-based video signal processing method and device
US20240195954A1 (en) Video signal processing method and device
EP3985970A1 (en) Video signal processing method and device using block dpcm prediction method
EP4002848A1 (en) Video signal processing method and device
US11870995B2 (en) Method and device for processing video signal by using cross-component linear model
KR20200095982A (en) A method and an apparatus for processing a video signal using merge with motion vector difference
KR20200137326A (en) A method and an apparatus for processing a video signal using current picture referencing

Legal Events

Date Code Title Description
STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE

PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE

17P Request for examination filed

Effective date: 20210705

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

DAV Request for validation of the european patent (deleted)
DAX Request for extension of the european patent (deleted)
A4 Supplementary search report drawn up and despatched

Effective date: 20220811

RIC1 Information provided on ipc code assigned before grant

Ipc: H04N 19/96 20140101ALI20220805BHEP

Ipc: H04N 19/174 20140101ALI20220805BHEP

Ipc: H04N 19/593 20140101ALI20220805BHEP

Ipc: H04N 19/51 20140101ALI20220805BHEP

Ipc: H04N 19/186 20140101ALI20220805BHEP

Ipc: H04N 19/176 20140101ALI20220805BHEP

Ipc: H04N 19/50 20140101ALI20220805BHEP

Ipc: H04N 19/70 20140101ALI20220805BHEP

Ipc: H04N 19/119 20140101ALI20220805BHEP

Ipc: H04N 19/105 20140101AFI20220805BHEP

RAP1 Party data changed (applicant data changed or rights of an application transferred)

Owner name: HUMAX CO., LTD.

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: EXAMINATION IS IN PROGRESS

17Q First examination report despatched

Effective date: 20230421

P01 Opt-out of the competence of the unified patent court (upc) registered

Effective date: 20230531

GRAP Despatch of communication of intention to grant a patent

Free format text: ORIGINAL CODE: EPIDOSNIGR1

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: GRANT OF PATENT IS INTENDED

INTG Intention to grant announced

Effective date: 20231113

GRAJ Information related to disapproval of communication of intention to grant by the applicant or resumption of examination proceedings by the epo deleted

Free format text: ORIGINAL CODE: EPIDOSDIGR1

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: EXAMINATION IS IN PROGRESS

INTC Intention to grant announced (deleted)