WO2021187946A1 - 팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체 - Google Patents

팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체 Download PDF

Info

Publication number
WO2021187946A1
WO2021187946A1 PCT/KR2021/003432 KR2021003432W WO2021187946A1 WO 2021187946 A1 WO2021187946 A1 WO 2021187946A1 KR 2021003432 W KR2021003432 W KR 2021003432W WO 2021187946 A1 WO2021187946 A1 WO 2021187946A1
Authority
WO
WIPO (PCT)
Prior art keywords
palette
current block
predictor
value
information
Prior art date
Application number
PCT/KR2021/003432
Other languages
English (en)
French (fr)
Inventor
장형문
남정학
유선미
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to US17/912,692 priority Critical patent/US20230179760A1/en
Publication of WO2021187946A1 publication Critical patent/WO2021187946A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • 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/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/46Embedding additional information in the video signal during the compression process
    • 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 an image encoding/decoding method, apparatus, and a recording medium for storing a bitstream, and more particularly, an image encoding/decoding method and apparatus based on a palette mode, and an image encoding method/device of the present disclosure It relates to a recording medium for storing a bitstream.
  • HD images high definition (HD) images and ultra high definition (UHD) images
  • UHD images ultra high definition
  • An object of the present disclosure is to provide an image encoding/decoding method and apparatus with improved encoding/decoding efficiency.
  • Another object of the present disclosure is to provide a method and apparatus for encoding/decoding an image based on a palette mode.
  • Another object of the present disclosure is to provide a method and apparatus for encoding/decoding an image based on run-value information of a reuse palette predictor.
  • Another object of the present disclosure is to provide an image encoding/decoding method and apparatus for independently parsing run-value information of a reuse palette predictor.
  • Another object of the present disclosure is to provide a computer-readable recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure.
  • Another object of the present disclosure is to provide a computer-readable recording medium storing a bitstream received and decoded by an image decoding apparatus according to the present disclosure and used to restore an image.
  • Another object of the present disclosure is to provide a method of transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure.
  • An image decoding method includes obtaining palette prediction information and palette index information for a current block from a bitstream, and configuring a palette table for the current block based on the palette prediction information , Based on the palette index information, generating a palette index map for the current block, and based on the palette table and the palette index map, comprising the step of decoding the current block, the palette prediction information contains run-value information indicating a first palette entry reused in the palette table among palette entries in the palette predictor for the current block, and the run-value information is an index of the first palette entry the last run-value of the palette predictor obtained from the bitstream only if the value is less than the first size of the palette predictor, based on the first palette entry being the last used palette entry in the palette table
  • the information may have a first value for terminating the search for the first palette entry.
  • An image decoding apparatus includes a memory and at least one processor, wherein the at least one processor obtains palette prediction information and palette index information for a current block from a bitstream, and predicts the palette Based on the information, configure the palette table for the current block, based on the palette index information, create a palette index map for the current block, based on the palette table and the palette index map, the current Decoding a block, wherein the palette prediction information includes run-value information indicating a first palette entry reused in the palette table among palette entries in the palette predictor for the current block, and the run-value information is obtained from the bitstream only when the index value of the first palette entry is smaller than the first size of the palette predictor, and based on that the first palette entry is the last used palette entry in the palette table , the last run-value information of the palette predictor may have a first value for terminating the search for the first palette entry.
  • An image encoding method based on the palette predictor for the current block, configuring the palette table for the current block, based on the palette table, the palette index for the current block Generating a map, based on the palette index map, encoding the current block, and generating a bitstream including palette prediction information and palette index information about the encoded current block
  • the palette prediction information includes run-value information indicating a first palette entry reused in the palette table among palette entries in the palette predictor for the current block, and the run-value information includes the first Only when the index value of the palette entry is smaller than the maximum size of the palette predictor, the first palette entry is encoded in the bitstream, and based on that the first palette entry is the last reused palette entry in the palette table, the last of the palette predictor
  • the run-value information may have a first value for terminating the search of the first palette entry.
  • a computer-readable recording medium may store a bitstream generated by the image encoding method or image encoding apparatus of the present disclosure.
  • a transmission method may transmit a bitstream generated by the image encoding apparatus or the image encoding method of the present disclosure.
  • an image encoding/decoding method and apparatus having improved encoding/decoding efficiency may be provided.
  • an image encoding/decoding method and apparatus based on a palette mode may be provided.
  • an image encoding/decoding method and apparatus based on run-value information of a reuse palette entry may be provided.
  • an image encoding/decoding method and apparatus for non-dependently parsing run-value information of a reuse palette entry may be provided.
  • a recording medium storing a bitstream generated by the image encoding method or apparatus according to the present disclosure may be provided.
  • a recording medium storing a bitstream received and decoded by the image decoding apparatus according to the present disclosure and used to restore an image.
  • a method for transmitting a bitstream generated by an image encoding method or apparatus according to the present disclosure may be provided.
  • FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
  • FIG. 2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
  • FIG. 3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
  • FIG. 4 is a diagram illustrating an example of a block encoded in a palette mode.
  • FIG. 5 is a view showing an example of a scan method that can be used in the palette mode.
  • FIG. 6 is a diagram for explaining a palette encoding process of a current block.
  • FIG. 7 is a diagram illustrating an example of a coding_unit syntax.
  • FIG. 8 is a diagram illustrating an example of palette_coding syntax.
  • 9 to 11 are diagrams illustrating an example of an encoding/decoding process of palette_predictor_run.
  • FIG. 12 is a diagram illustrating palette_coding syntax according to an embodiment of the present disclosure.
  • FIG. 13 and 14 are diagrams illustrating an example of an encoding/decoding process of palette_predictor_run according to an embodiment of the present disclosure.
  • 15 is a diagram illustrating palette_coding syntax according to an embodiment of the present disclosure.
  • 16 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure.
  • 17 is a flowchart illustrating a palette decoding method according to an embodiment of the present disclosure.
  • FIG. 18 is a diagram exemplarily illustrating a content streaming system to which an embodiment according to the present disclosure can be applied.
  • a component when it is said that a component is “connected”, “coupled” or “connected” with another component, it is not only a direct connection relationship, but also an indirect connection relationship in which another component exists in the middle. may also include.
  • a component when a component is said to "include” or “have” another component, it means that another component may be further included without excluding other components unless otherwise stated. .
  • first, second, etc. are used only for the purpose of distinguishing one component from another, and do not limit the order or importance between the components unless otherwise specified. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment is referred to as a first component in another embodiment. can also be called
  • components that are distinguished from each other are for clearly explaining each characteristic, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to form one hardware or software unit, or one component may be distributed to form a plurality of hardware or software units. Accordingly, even if not specifically mentioned, such integrated or dispersed embodiments are also included in the scope of the present disclosure.
  • components described in various embodiments do not necessarily mean essential components, and some may be optional components. Accordingly, an embodiment composed of a subset of components described in one embodiment is also included in the scope of the present disclosure. In addition, embodiments including other components in addition to components described in various embodiments are also included in the scope of the present disclosure.
  • the present disclosure relates to encoding and decoding of an image, and terms used in the present disclosure may have conventional meanings commonly used in the technical field to which the present disclosure belongs unless they are newly defined in the present disclosure.
  • a “picture” generally means a unit representing one image in a specific time period
  • a slice/tile is a coding unit constituting a part of a picture
  • one picture is one It may be composed of more than one slice/tile.
  • a slice/tile may include one or more coding tree units (CTUs).
  • pixel or “pel” may mean a minimum unit constituting one picture (or image).
  • sample may be used as a term corresponding to a pixel.
  • a sample may generally represent a pixel or a value of a pixel, may represent only a pixel/pixel value of a luma component, or may represent only a pixel/pixel value of a chroma component.
  • a “unit” may indicate a basic unit of image processing.
  • the unit may include at least one of a specific region of a picture and information related to the region.
  • a unit may be used interchangeably with terms such as “sample array”, “block” or “area” in some cases.
  • an MxN block may include samples (or sample arrays) or a set (or arrays) of transform coefficients including M columns and N rows.
  • current block may mean one of “current coding block”, “current coding unit”, “coding object block”, “decoding object block”, or “processing object block”.
  • current block may mean “current prediction block” or “prediction target block”.
  • transform inverse transform
  • quantization inverse quantization
  • current block may mean “current transform block” or “transform target block”.
  • filtering the “current block” may mean a “filtering target block”.
  • the "current block” may mean a block including both a luma component block and a chroma component block or "a luma block of the current block” unless there is an explicit description of the chroma block.
  • the luma component block of the current block may be explicitly expressed by including an explicit description of the luma component block, such as “luma block” or “current luma block”.
  • the chroma component block of the current block may be explicitly expressed by including an explicit description of a chroma component block, such as "chroma block” or "current chroma block”.
  • “/” and “,” may be interpreted as “and/or”.
  • “A/B” and “A, B” may be interpreted as “A and/or B”.
  • “A/B/C” and “A, B, C” may mean “at least one of A, B, and/or C”.
  • FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
  • a video coding system may include an encoding apparatus 10 and a decoding apparatus 20 .
  • the encoding apparatus 10 may transmit encoded video and/or image information or data in the form of a file or streaming to the decoding apparatus 20 through a digital storage medium or a network.
  • the encoding apparatus 10 may include a video source generator 11 , an encoder 12 , and a transmitter 13 .
  • the decoding apparatus 20 may include a receiving unit 21 , a decoding unit 22 , and a rendering unit 23 .
  • the encoder 12 may be referred to as a video/image encoder, and the decoder 22 may be referred to as a video/image decoder.
  • the transmitter 13 may be included in the encoder 12 .
  • the receiver 21 may be included in the decoder 22 .
  • the rendering unit 23 may include a display unit, and the display unit may be configured as a separate device or external component.
  • the video source generator 11 may acquire a video/image through a process of capturing, synthesizing, or generating the video/image.
  • the video source generating unit 11 may include a video/image capturing device and/or a video/image generating device.
  • a video/image capture device may include, for example, one or more cameras, a video/image archive containing previously captured video/images, and the like.
  • a video/image generating device may include, for example, a computer, tablet, and smart phone, and may (electronically) generate a video/image.
  • a virtual video/image may be generated through a computer, etc. In this case, the video/image capturing process may be substituted for the process of generating related data.
  • the encoder 12 may encode an input video/image.
  • the encoder 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and encoding efficiency.
  • the encoder 12 may output encoded data (encoded video/image information) in the form of a bitstream.
  • the transmitter 13 may transmit the encoded video/image information or data output in the form of a bitstream in the form of a file or streaming to the receiver 21 of the decoding apparatus 20 through a digital storage medium or a network.
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • the transmission unit 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network.
  • the receiver 21 may extract/receive the bitstream from the storage medium or the network and transmit it to the decoder 22 .
  • the decoder 22 may decode the video/image by performing a series of procedures such as inverse quantization, inverse transform, and prediction corresponding to the operation of the encoder 12 .
  • the rendering unit 23 may render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • FIG. 2 is a diagram schematically illustrating an image encoding apparatus to which an embodiment according to the present disclosure can be applied.
  • the image encoding apparatus 100 includes an image segmentation unit 110 , a subtraction unit 115 , a transform unit 120 , a quantization unit 130 , an inverse quantization unit 140 , and an inverse transform unit ( 150 ), an adder 155 , a filtering unit 160 , a memory 170 , an inter prediction unit 180 , an intra prediction unit 185 , and an entropy encoding unit 190 .
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a “prediction unit”.
  • the transform unit 120 , the quantization unit 130 , the inverse quantization unit 140 , and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115 .
  • All or at least some of the plurality of components constituting the image encoding apparatus 100 may be implemented as one hardware component (eg, an encoder or a processor) according to an embodiment.
  • the memory 170 may include a decoded picture buffer (DPB), and may be implemented by a digital storage medium.
  • DPB decoded picture buffer
  • the image dividing unit 110 may divide an input image (or a picture, a frame) input to the image encoding apparatus 100 into one or more processing units.
  • the processing unit may be referred to as a coding unit (CU).
  • Coding unit is a coding tree unit (coding tree unit, CTU) or largest coding unit (LCU) according to the QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure recursively ( can be obtained by recursively segmenting.
  • one coding unit may be divided into a plurality of coding units having a lower depth based on a quad tree structure, a binary tree structure, and/or a ternary tree structure.
  • a quad tree structure may be applied first and a binary tree structure and/or a ternary tree structure may be applied later.
  • a coding procedure according to the present disclosure may be performed based on the last coding unit that is no longer divided.
  • the largest coding unit may be directly used as the final coding unit, and a coding unit of a lower depth obtained by dividing the largest coding unit may be used as the final cornet unit.
  • the coding procedure may include procedures such as prediction, transformation, and/or restoration, which will be described later.
  • the processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may be divided or partitioned from the final coding unit, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transform unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from the transform coefficient.
  • the prediction unit (the inter prediction unit 180 or the intra prediction unit 185) performs prediction on a processing target block (current block), and generates a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied on a current block or CU basis.
  • the prediction unit may generate various information regarding prediction of the current block and transmit it to the entropy encoding unit 190 .
  • the prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra prediction unit 185 may predict the current block with reference to samples in the current picture.
  • the referenced samples may be located in the vicinity of the current block according to an intra prediction mode and/or an intra prediction technique, or may be located apart from each other.
  • the intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to the granularity of the prediction direction. However, this is an example, and a higher or lower number of directional prediction modes may be used according to a setting.
  • the intra prediction unit 185 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit 180 may derive the predicted block for the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation between motion information between neighboring blocks and the current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), or the like.
  • the reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive a motion vector and/or a reference picture index of the current block. can create Inter prediction may be performed based on various prediction modes. For example, in the skip mode and merge mode, the inter prediction unit 180 may use motion information of a neighboring block as motion information of the current block. In the skip mode, unlike the merge mode, a residual signal may not be transmitted.
  • a motion vector of a neighboring block is used as a motion vector predictor, and a motion vector difference and an indicator for the motion vector predictor ( indicator) to signal the motion vector of the current block.
  • the motion vector difference may mean a difference between the motion vector of the current block and the motion vector predictor.
  • the prediction unit may generate a prediction signal based on various prediction methods and/or prediction techniques to be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of the current block, and may simultaneously apply intra prediction and inter prediction. A prediction method that simultaneously applies intra prediction and inter prediction for prediction of the current block may be referred to as combined inter and intra prediction (CIIP). Also, the prediction unit may perform intra block copy (IBC) for prediction of the current block. The intra block copy may be used for video/video coding of content such as games, for example, screen content coding (SCC). IBC is a method of predicting a current block using a reconstructed reference block in a current picture located a predetermined distance away from the current block.
  • CIIP combined inter and intra prediction
  • IBC intra block copy
  • the intra block copy may be used for video/video coding of content such as games, for example, screen content coding (SCC).
  • IBC is a method of predicting a current block using a reconstructed reference block in a current picture located
  • the position of the reference block in the current picture may be encoded as a vector (block vector) corresponding to the predetermined distance.
  • IBC basically performs prediction within the current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this disclosure.
  • the prediction signal generated by the prediction unit may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the subtraction unit 115 subtracts the prediction signal (predicted block, prediction sample array) output from the prediction unit from the input image signal (original block, original sample array) to obtain a residual signal (residual signal, residual block, and residual sample array). ) can be created.
  • the generated residual signal may be transmitted to the converter 120 .
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • the transformation method may include at least one of Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Karhunen-Loeve Transform (KLT), Graph-Based Transform (GBT), or Conditionally Non-linear Transform (CNT).
  • DCT Discrete Cosine Transform
  • DST Discrete Sine Transform
  • KLT Karhunen-Loeve Transform
  • GBT Graph-Based Transform
  • CNT Conditionally Non-linear Transform
  • GBT means a transformation obtained from this graph when expressing relationship information between pixels in a graph.
  • CNT refers to a transformation obtained by generating a prediction signal using all previously reconstructed pixels and based thereon.
  • the transformation process may be applied to a block of pixels having the same size as a square, or may be applied to a block of variable size that is not a square.
  • the quantization unit 130 may quantize the transform coefficients and transmit them to the entropy encoding unit 190 .
  • the entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream.
  • Information about the quantized transform coefficients may be referred to as residual information.
  • the quantization unit 130 may rearrange the quantized transform coefficients in the block form into a one-dimensional vector form based on a coefficient scan order, and the quantized transform coefficients in the one-dimensional vector form are quantized based on the quantized transform coefficients in the one-dimensional vector form.
  • Information about the transform coefficients may be generated.
  • the entropy encoding unit 190 may perform various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode information necessary for video/image reconstruction (eg, values of syntax elements, etc.) other than the quantized transform coefficients together or separately.
  • Encoded information eg, encoded video/image information
  • NAL network abstraction layer
  • the video/image information may further include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). Also, the video/image information may further include general constraint information.
  • APS adaptation parameter set
  • PPS picture parameter set
  • SPS sequence parameter set
  • VPS video parameter set
  • the video/image information may further include general constraint information.
  • the signaling information, transmitted information, and/or syntax elements mentioned in this disclosure may be encoded through the above-described encoding procedure and included in the bitstream.
  • the bitstream may be transmitted over a network or may be stored in a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • a transmission unit (not shown) and/or a storage unit (not shown) for storing the signal output from the entropy encoding unit 190 may be provided as internal/external elements of the image encoding apparatus 100 , or transmission The unit may be provided as a component of the entropy encoding unit 190 .
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a residual signal.
  • a residual signal residual block or residual samples
  • a residual signal residual block or residual samples
  • the adder 155 adds a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 .
  • a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 .
  • the adder 155 may be referred to as a restoration unit or a restoration block generator.
  • the generated reconstructed signal may be used for intra prediction of the next processing object block in the current picture, or may be used for inter prediction of the next picture after filtering as described below.
  • the filtering unit 160 may improve subjective/objective image quality by applying filtering to the reconstructed signal.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 170 , specifically, the DPB of the memory 170 .
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the filtering unit 160 may generate various information regarding filtering and transmit it to the entropy encoding unit 190 as described later in the description of each filtering method.
  • the filtering-related information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180 .
  • the image encoding apparatus 100 can avoid a prediction mismatch between the image encoding apparatus 100 and the image decoding apparatus, and can also improve encoding efficiency.
  • the DPB in the memory 170 may store a reconstructed picture corrected for use as a reference picture in the inter prediction unit 180 .
  • the memory 170 may store motion information of a block from which motion information in the current picture is derived (or encoded) and/or motion information of blocks in an already reconstructed picture.
  • the stored motion information may be transmitted to the inter prediction unit 180 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and may transmit the reconstructed samples to the intra prediction unit 185 .
  • FIG. 3 is a diagram schematically illustrating an image decoding apparatus to which an embodiment according to the present disclosure can be applied.
  • the image decoding apparatus 200 includes an entropy decoding unit 210 , an inverse quantization unit 220 , an inverse transform unit 230 , an adder 235 , a filtering unit 240 , and a memory 250 .
  • the inter prediction unit 260 and the intra prediction unit 265 may be included.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a “prediction unit”.
  • the inverse quantization unit 220 and the inverse transform unit 230 may be included in the residual processing unit.
  • All or at least some of the plurality of components constituting the image decoding apparatus 200 may be implemented as one hardware component (eg, a decoder or a processor) according to an embodiment.
  • the memory 170 may include a DPB, and may be implemented by a digital storage medium.
  • the image decoding apparatus 200 may reconstruct the image by performing a process corresponding to the process performed by the image encoding apparatus 100 of FIG. 2 .
  • the image decoding apparatus 200 may perform decoding using a processing unit applied in the image encoding apparatus.
  • the processing unit of decoding may be, for example, a coding unit.
  • a coding unit may be a coding tree unit or may be obtained by dividing the largest coding unit.
  • the reconstructed image signal decoded and output through the image decoding apparatus 200 may be reproduced through a reproducing apparatus (not shown).
  • the image decoding apparatus 200 may receive the signal output from the image encoding apparatus of FIG. 2 in the form of a bitstream.
  • the received signal may be decoded through the entropy decoding unit 210 .
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/image information) required for image restoration (or picture restoration).
  • the video/image information may further include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
  • the video/image information may further include general constraint information.
  • the image decoding apparatus may additionally use the information about the parameter set and/or the general restriction information to decode the image.
  • the signaling information, received information and/or syntax elements mentioned in this disclosure may be obtained from the bitstream by being decoded through the decoding procedure.
  • the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb encoding, CAVLC or CABAC, and quantizes the value of a syntax element required for image reconstruction and a transform coefficient related to the residual. values can be printed.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and receives syntax element information to be decoded and decoding information of neighboring blocks and to-be-decoded blocks or information of symbols/bins decoded in the previous step.
  • the CABAC entropy decoding method may update the context model by using the decoded symbol/bin information for the context model of the next symbol/bin after determining the context model.
  • Prediction-related information among the information decoded by the entropy decoding unit 210 is provided to the prediction unit (the inter prediction unit 260 and the intra prediction unit 265), and the entropy decoding unit 210 performs entropy decoding.
  • the dual value, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220 .
  • information about filtering among the information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240 .
  • a receiving unit for receiving a signal output from the image encoding apparatus may be additionally provided as internal/external elements of the image decoding apparatus 200 , or the receiving unit is provided as a component of the entropy decoding unit 210 .
  • a receiving unit for receiving a signal output from the image encoding apparatus may be additionally provided as internal/external elements of the image decoding apparatus 200 , or the receiving unit is provided as a component of the entropy decoding unit 210 .
  • the image decoding apparatus may be referred to as a video/image/picture decoding apparatus.
  • the image decoding apparatus may include an information decoder (video/image/picture information decoder) and/or a sample decoder (video/image/picture sample decoder).
  • the information decoder may include an entropy decoding unit 210, and the sample decoder includes an inverse quantizer 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, At least one of an inter prediction unit 260 and an intra prediction unit 265 may be included.
  • the inverse quantizer 220 may inverse quantize the quantized transform coefficients to output transform coefficients.
  • the inverse quantizer 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on a coefficient scan order performed by the image encoding apparatus.
  • the inverse quantizer 220 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
  • a quantization parameter eg, quantization step size information
  • the inverse transform unit 230 may inverse transform the transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the prediction information output from the entropy decoding unit 210, and determine a specific intra/inter prediction mode (prediction technique).
  • the intra prediction unit 265 may predict the current block with reference to samples in the current picture.
  • the description of the intra prediction unit 185 may be equally applied to the intra prediction unit 265 .
  • the inter prediction unit 260 may derive the predicted block for the current block based on the reference block (reference sample array) specified by the motion vector on the reference picture.
  • the motion information may be predicted in units of blocks, subblocks, or samples based on the correlation between motion information between neighboring blocks and the current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks present in the reference picture.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information.
  • Inter prediction may be performed based on various prediction modes (techniques), and the prediction information may include information indicating a mode (technique) of inter prediction for the current block.
  • the adder 235 restores the obtained residual signal by adding it to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265 ).
  • a signal (reconstructed picture, reconstructed block, reconstructed sample array) may be generated.
  • the predicted block may be used as a reconstructed block.
  • the description of the adder 155 may be equally applied to the adder 235 .
  • the addition unit 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing object block in the current picture, or may be used for inter prediction of the next picture after filtering as described below.
  • the filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal.
  • the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 250 , specifically, the DPB of the memory 250 .
  • the various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
  • the (modified) reconstructed picture stored in the DPB of the memory 250 may be used as a reference picture in the inter prediction unit 260 .
  • the memory 250 may store motion information of a block from which motion information in the current picture is derived (or decoded) and/or motion information of blocks in an already reconstructed picture.
  • the stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 250 may store reconstructed samples of blocks reconstructed in the current picture, and may transmit the reconstructed samples to the intra prediction unit 265 .
  • the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the image encoding apparatus 100 include the filtering unit 240 of the image decoding apparatus 200, The same or corresponding application may be applied to the inter prediction unit 260 and the intra prediction unit 265 .
  • the palette mode refers to a prediction mode for encoding/decoding a current block based on a palette (or a palette table) including a predetermined representative color value set.
  • the palette mode is a type of intra prediction mode, and may be similar to the skip mode in that a residual value for the current block is not separately signaled.
  • the palette mode may be referred to as a palette coding mode, an intra palette mode, an intra palette coding mode, or the like.
  • image encoding/decoding using the palette mode will be referred to as palette encoding/decoding.
  • Palette mode can be particularly effective for encoding/decoding screen contents.
  • the screen content is an image including a significant amount of text and graphics, and may include a local area separated by a sharp edge.
  • the local area may be represented by a relatively small number of sample values.
  • the palette mode which expresses most sample values in the current block with a relatively small number of indices, is more effective for encoding/decoding screen content than other prediction modes (eg, intra prediction mode, inter prediction mode, etc.) It can be effective.
  • sps_palette_enabled_flag indicating whether the palette mode is available for coded layer video sequence (CLVS) may be signaled.
  • pred_mode_plt_flag indicating whether the current block (or CU) is coded in the palette mode
  • sample values in the current block may be represented by a small set of predetermined representative color values. This set is called a pallet table.
  • a palette index may be signaled.
  • an escape symbol and a quantized sample value for specifying the sample may be signaled.
  • an escape flag may be signaled for each block.
  • FIG. 4 is a diagram illustrating an example of a block encoded in a palette mode.
  • a plurality of samples 411-414 in a block 410 may be encoded based on a palette table 430 .
  • the sample value of the first sample 411 may be encoded as 3, which is a palette index value indicating a third representative color value in the palette table 430 .
  • the sample value of the second sample 412 may be encoded as 0, which is a palette index value indicating the first representative color value in the palette table 430 .
  • the sample value of the third sample 413 may be encoded as 3, which is a palette index value indicating a fourth representative color value in the palette table 430 .
  • the quantized sample value of the fourth sample 414 may be encoded.
  • a palette predictor may be maintained.
  • the palette predictor may include one or more palette entries (representative color values) and one or more palette indices for identifying each of the palette entries.
  • the palette predictor may be initialized to a predetermined value at the (coding) starting point of each slice, tile, brick or block. For example, in a sequential coding process (e.g., non-wavefront case), the palette predictor may be initialized to 0 at the (coding) starting point of each slice. Alternatively, in a parallel coding process (e.g., wavefront case), the palette predictor may be initialized to 0 at the (coding) starting point of each CTU.
  • Information about the palette predictor and the maximum size of the palette table may be signaled in a sequence parameter set (SPS).
  • SPS sequence parameter set
  • a palette table may be configured based on the palette predictor.
  • a reuse flag indicating whether each palette entry in the palette predictor is included in the palette table may be signaled.
  • the reuse flag having the first value e.g. 0
  • a reuse flag with a second value e.g. 1
  • the reuse flag may be coded using run-length coding for a value of zero.
  • the palette predictor may be updated based on the palette table. Palette entries in the old palette predictor that are not reused in the palette table may be added to the tail of the new palette predictor until the maximum allowable size of the palette predictor is reached. This is called pallet stuffing.
  • a palette index map for the current block to be encoded may be generated. Specifically, based on the similarity between the sample value and the representative color value of each of the plurality of samples in the current block, by mapping a predetermined palette index in the palette table to each of the plurality of samples, the palette index map for the current block can be created.
  • an escape palette index may be mapped to a sample (ie, an escape sample) having a sample value similar to a representative color value (palette entry) defined in the palette table.
  • the escape palette index indicates an escape sample (escape symbol), and may have the largest index value in the palette table.
  • an escape sample flag (e.g., palette_escape_val_present_flag) may be signaled.
  • palette_escape_val_present_flag having a first value e.g. 0
  • palette_escape_val_present_flag having a second value e.g. 1
  • the palette index information may include at least one palette index mapped to the current block and run-value information of the palette index.
  • the run-value of the palette index may represent a value obtained by subtracting 1 from the number of palette indexes continuously mapped to the same value in the current block.
  • the current block includes first to fourth samples continuously existing along a predetermined scan direction (eg, a horizontal direction), and a palette index 0 is mapped to each of the first to third samples, and the When the palette index 1 is mapped to the fourth sample, the run-value of the palette index 0 may be 2, and the run-value of the palette index 1 may be 0.
  • the palette index information may further include run-value information of the escape palette index mapped to the escape sample.
  • a palette index map for the current block to be decoded may be generated. For example, by mapping each of the one or more palette indices obtained from the palette index information to each of a plurality of samples in the current block, a palette index map for the current block may be generated. In one example, based on the last palette index (in mapping order) among the one or more palette indexes obtained from the palette index information, the value of each of the one or more palette indexes may be adjusted. For example, if the last palette index obtained from the palette index information is an escape palette index, one or more palette entries obtained from the palette index information may be mapped to the current block with a value increased by a predetermined size (eg, 1). have.
  • a predetermined size eg, 1).
  • the palette indexes mapped to the current block may be encoded/decoded using a predetermined scan method.
  • FIG. 5 is a diagram illustrating an example of a scan method for palette encoding/decoding.
  • the palette indexes mapped to the current block may be encoded/decoded using a horizontal traverse scan or a vertical traverse scan.
  • the horizontal traverse scan may refer to a method in which odd-numbered rows of the current block (or palette index map) are scanned from left to right, and even-numbered rows of the current block are scanned from right to left.
  • the vertical traverse scan may refer to a method of scanning odd-numbered columns of the current block from top to bottom and scanning even-numbered columns of the current block from bottom to top.
  • palette_transpose_flag a predetermined flag
  • palette_transpose_flag has a first value (e.g., 0)
  • horizontal traverse scan may be applied to scan palette indices mapped to the current block.
  • palette_transpose_flag has a second value (e.g., 1)
  • vertical traverse scan may be applied to scan palette indices mapped to the current block.
  • Palette indexes mapped to the current block may be encoded/decoded in a predetermined palette sample mode, for example, INDEX mode or COPY_ABOVE mode.
  • the value of the palette index may be explicitly signaled.
  • the value of the palette index may not be explicitly signaled.
  • the value of the corresponding palette index is determined (or copied) to be the same value as the value of the palette index that exists at the same position in the immediately upper row in the case of horizontal traverse scan, and in the case of vertical traverse scan, the same position in the immediately left column It can be determined (or copied) to the same value as the value of the palette index existing in .
  • Information about the palette sample mode may be signaled using a predetermined flag (e.g. copy_above_palette_indices_flag).
  • a predetermined flag e.g. copy_above_palette_indices_flag
  • the INDEX mode may be applied to the corresponding palette index.
  • copy_above_palette_indices_flag has a second value (e.g., 1)
  • the COPY_ABOVE mode may be applied to the corresponding palette index.
  • copy_above_palette_indices_flag is not signaled, the value of copy_above_palette_indices_flag may be inferred as a first value (e.g., 0).
  • palette sample mode of the samples belonging to the top row of the current block and the previous (encoded/decoded) sample is the COPY_ABOVE mode
  • copy_above_palette_indices_flag may not be signaled.
  • run-value information indicating the number of consecutively encoded samples using the same palette sample mode may be signaled.
  • FIG. 6 is a diagram for explaining a palette encoding process of a current block.
  • the first samples PX1 in the current block have a first color value
  • the second samples PX2 have a second color value
  • the third sample PX3 has a third color value. may have (610).
  • a palette table for the current block may be configured ( 620 ).
  • the palette table may include palette entries (representative color values) and palette indexes (e.g., 0, 1) indicating each of the palette entries.
  • palette index 0 may indicate a palette entry of a first color value
  • palette index 1 may indicate a palette entry of a second color value.
  • the palette table may further include an escape palette index (e.g., 2).
  • palette index 2 may indicate an escape symbol.
  • a palette index map of the current block may be generated (630). For example, the first samples PX1 each map the palette index 0, the second samples PX2 each map the palette index 1, and the third sample PX3, which is an escape symbol, maps the palette. By mapping index 2, a palette index map for the current block can be generated.
  • the run-value of the palette sample mode and the palette sample mode can be derived (640, 650).
  • the palette indexes '1, 0, 1, 1, 1' continuously mapped to the third row of the palette index map are identical to the palette indexes present at the same position in the second row of the palette index map. Since it has a value, it can be coded in COPY_ABOVE mode, respectively.
  • the run-value of the palette sample mode may be determined to be 4 ( 640 ).
  • the palette indexes '1, 1, 1' successively mapped to the second row of the palette index map have different values from the palette indexes present at the same position in the first row of the palette index map, so each It can be coded in INDEX mode.
  • the run-value of the palette sample mode may be determined to be 2 ( 650 ).
  • palette index 2, which is an escape palette index may be encoded in INDEX mode.
  • the quantized sample value (ie, the third color value) of the third sample PX3 mapped to the palette index 2 may be directly encoded.
  • a predetermined palette index in the palette table is mapped to each of a plurality of samples in the current block to constitute a palette index map, and the palette index included in the palette index map is a predetermined
  • encoding may be performed in INDEX mode or COPY_ABOVE mode.
  • FIG. 7 is a diagram illustrating an example of a coding_unit syntax.
  • the coding_unit syntax may include pred_mode_plt_flag as a syntax element related to the palette mode.
  • pred_mode_plt_flag may indicate whether the palette mode is applied to the current block. For example, pred_mode_plt_flag having a first value (e.g., 0) may indicate that the palette mode is not applied to the current block. Alternatively, pred_mode_plt_flag having the second value (e.g., 1) may indicate that the palette mode is applied to the current block. When pred_mode_plt_flag is not signaled, the value of pred_mode_plt_flag may be inferred as a first value (e.g., 0).
  • the palette_coding syntax may be called.
  • the tree type (treeType) of the current block is a single tree (SINGLE_TREE) or a dual tree luma (DUAL_TREE_LUMA)
  • palette_coding syntax may be called ( 710 ).
  • the palette_coding syntax may be called with the chroma component width (cbWidth / SubWidthC) and height (cbHeight / SubHeightC) of the current block as input values. (720).
  • FIG. 8 is a diagram illustrating an example of palette_coding syntax.
  • the palette_coding syntax may include palette_predictor_run, num_signalled_palette_entries, and new_palette_entries as syntax elements related to the palette predictor.
  • the syntax element palette_predictor_run may be used to determine the number of zero entries (ie, non-reuse palette entries) preceding a non-zero entry (ie, a reuse palette entry) in the array PalettePredictorEntryReuseFlags.
  • each element of the array PalettePredictorEntryReuseFlags, PalettePredictorEntryReuseFlags[ i ] may indicate whether each palette entry in the palette predictor is reused in the palette table (or the current palette).
  • PalettePredictorEntryReuseFlags[ i ] having a first value (e.g. 0) may indicate that the i-th palette entry is not reused in the palette table.
  • PalettePredictorEntryReuseFlags[ i ] having the second value (e.g. 1) may indicate that the i-th palette entry is reused in the palette table.
  • all elements of the PalettePredictorEntryReuseFlags array may be initialized to a first value (e.g., 0).
  • the value of palette_predictor_run may be limited to be within a range of 0 or more and ( PredictorPaletteSize[ startComp ] - predictorEntryIdx ) or less to satisfy bitstream suitability.
  • PredictorPaletteSize[ startComp ] may indicate the size of the palette predictor for the first color component (startComp) of the palette table.
  • predictorEntryIdx may correspond to the current position in the array PalettePredictorEntryReuseFlags.
  • the variable NumPredictedPaletteEntries may indicate the number of palette entries in the palette table reused from the palette predictor.
  • the value of NumPredictedPaletteEntries may be limited to be within a range of 0 or more and less than or equal to the variable maxNumPaletteEntries.
  • the variable maxNumPaletteEntries may indicate the maximum size of the palette table.
  • maxNumPaletteEntries may be 31 if the tree type (treeType) of the current block is a single tree (SINGLE_TREE), and may be 15 if the tree type (treeType) of the current block is not a single tree (SINGLE_TREE).
  • the syntax element num_signalled_palette_entries may indicate the number of palette entries in the palette table that are explicitly signaled for the first color component (startComp) of the palette table.
  • startComp first color component
  • num_signalled_palette_entries may be inferred as a first value (e.g., 0).
  • a variable CurrentPaletteSize[startComp] indicating the size of the palette table for the first color component (startComp) in the palette table may be derived as in Equation 1 below.
  • the value of CurrentPaletteSize[ startComp ] may be limited to be within a range of 0 or more and maxNumPaletteEntries or less. That is, maxNumPaletteEntries may represent the maximum value of CurrentPaletteSize[ startComp ].
  • the syntax element new_palette_entries[ cIdx ][ i ] may indicate the value of the i-th signaled (new) palette entry for a specific color component (cIdx).
  • variable PredictorPaletteEntries[ cIdx ][ i ] may indicate the i-th element (ie, palette entry) in the palette predictor for a particular color component (cIdx).
  • variable CurrentPaletteEntries[ cIdx ][ i ] may indicate the i-th element (ie, palette entry) in the palette table for a specific color component (cIdx), and may be derived as shown in Table 1 below.
  • the palette table (CurrentPaletteEntries[ cIdx ][ i ]) is a palette entry reused from the palette predictor (PredictorPaletteEntries[ cIdx ][ i ] and a signaled (new) palette entry (new_palette_entries[ cIdx ][ i ]) )
  • the variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor may be used to derive the variable CurrentPaletteEntries[ cIdx ][ i ].
  • variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor and the array PredictorPaletteEntries indicating the palette predictor may be derived/modified (updated) as shown in Table 2 below.
  • variable startComp may indicate the first color component in the palette table
  • variable numComps may indicate the number of color components in the palette table
  • variable maxNumPalettePredictorSize may indicate the maximum allowable size of the palette predictor.
  • the variables may be determined according to the following conditions based on the treeType of the current block.
  • the variable startComp is set to 0 (ie, luma component).
  • the variable maxNumPalettePredictorSize is set to 63.
  • variable PredictorPaletteSize[ startComp ] and the array PredictorPaletteEntries may be derived/modified (updated) only when the variable cIdx is 0 and the variable numComps is 1, or the variable cIdx is 2.
  • a variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor derived/modified (updated) through the process of Table 2 may be included in the parsing condition of the syntax element palette_predictor_run ( 810 ).
  • palette_predictor_run may be signaled/parsed only when the variable predictorEntryIdx is smaller than PredictorPaletteSize[ startComp ].
  • predictorEntryIdx corresponds to the current position in the array PalettePredictorEntryReuseFlags, and may have an index value of each palette entry in the palette predictor reused in the palette table.
  • FIGS. 9 to 11 An example of a process of decoding palette_predictor_run based on the method of Table 2 is shown in FIGS. 9 to 11 .
  • 9 to 11 are diagrams illustrating an example of an encoding/decoding process of palette_predictor_run.
  • a palette predictor having a maximum palette size of 63 can be configured through the process of Table 2 described above.
  • the palette predictor may include seven palette entries (indexes 0 to 6), and each palette entry may have a predetermined representative color value for each color component (Y, Cb, Cr).
  • the fourth CU (CU[3]) in the CTU is palette encoded/decoded
  • PredPLT palette predictor
  • a palette table (or a current palette) for can be configured. That is, at least one of the palette entries included in the palette predictor may be reused in the palette table.
  • a syntax element palette_predictor_run (see FIG. 8 ) may be signaled to indicate three palette entries (0, 3, and 5 indexes) that are reused in the palette table. For example, in order to indicate the palette entry of index 0, palette_predictor_run having a value of 0 may be signaled. Next, in order to indicate the palette entry of index 3, palette_predictor_run having a value of 3 may be signaled. Next, in order to indicate the palette entry of index 5, palette_predictor_run having a value of 2 may be signaled.
  • palette_predictor_run having a value of 1 may be additionally signaled.
  • a syntax element palette_predictor_run (see FIG. 8 ) may be signaled to indicate four palette entries (0, 3, 5, and 6 indexes) that are reused in the palette table. have. For example, in order to indicate the palette entry of index 0, palette_predictor_run having a value of 0 may be signaled. Next, in order to indicate the palette entry of index 3, palette_predictor_run having a value of 3 may be signaled. Next, in order to indicate the palette entry of index 5, palette_predictor_run having a value of 2 may be signaled. Next, in order to indicate the palette entry of index 6, palette_predictor_run having a value of 0 may be signaled.
  • the termination indicator indicating that there are no more reused palette entries in the palette predictor (PredPLT) may not be signaled separately.
  • the decoding end should refer to PredictorPaletteSize[ startComp ], which is the previous palette encoding/decoding result, in order to end the parsing operation of palette_predictor_run, and in this process, a parsing dependency may occur.
  • the syntax element palette_predictor_run is decoded based on the maximum (allowed) size of the palette predictor, and a predetermined end indicator (eg, palette_predictor_run having a value of 1) is unconditionally may be signaled.
  • a predetermined end indicator eg, palette_predictor_run having a value of 1
  • the syntax element palette_predictor_run may be decoded based on the size of the palette predictor, and a predetermined end indicator (e.g., palette_predictor_run having a value of 1) may be signaled without condition.
  • the syntax element palette_predictor_run may be decoded based on the explicitly signaled size of the palette predictor.
  • a syntax element palette_predictor_run for specifying a reuse palette entry in the palette predictor may be decoded based on a variable maxNumPalettePredictorSize indicating the maximum (allowed) size of the palette predictor.
  • the variable maxNumPalettePredictorSize indicates the maximum (allowed) size of the palette predictor, and may be set to a predetermined value based on whether the tree type (treeType) of the current block is a single tree (SINGLE_TREE). For example, when the tree type (treeType) of the current block is a single tree (SINGLE_TREE), maxNumPalettePredictorSize may be set to 31. On the contrary, when the tree type (treeType) of the current block is not a single tree (SINGLE_TREE), maxNumPalettePredictorSize may be set to 15.
  • maxNumPalettePredictorSize may be set to a predetermined value based on a predetermined flag (e.g., qtbtt_dual_tree_intra_flag) indicating the partition structure of the current CTU. For example, when qtbtt_dual_tree_intra_flag has a first value (e.g., 0), maxNumPalettePredictorSize may be set to 63. In this case, qtbtt_dual_tree_intra_flag having the first value (e.g., 0) may indicate that the current block is included in the I slice and the CTU included in the slice is split into a single tree structure.
  • a predetermined flag e.g., qtbtt_dual_tree_intra_flag
  • qtbtt_dual_tree_intra_flag has a second value (e.g., 1)
  • maxNumPalettePredictorSize may be set to 31.
  • the qtbtt_dual_tree_intra_flag having the second value (eg, 1) is implicitly quadtree split in which the current block is included in the I slice and the CTU included in the slice is 64 ⁇ 64 luma sample CUs, and the 64 ⁇ 64 The luma sample CU may indicate becoming a root node of the dual tree.
  • a variable PredictorPaletteEntries[ cIdx ][ i ] indicating a palette entry in the palette predictor may be derived as shown in Table 3.
  • the variable startComp indicates the first color component in the palette table, and may be set to 1 or 0 based on the treeType of the current block. For example, when the tree type (treeType) of the current block is dual tree chroma (DUAL_TREE_CHROMA), startComp may be set to 1. On the contrary, when the tree type (treeType) of the current block is not the dual tree chroma (DUAL_TREE_CHROMA), startComp may be set to 0.
  • variable numComps indicates the number of color components in the palette table, and may be set to 0 to 3 based on the tree type and chroma array type of the current block. For example, when the tree type (treeType) of the current block is a single tree (SINGLE_TREE), if the chroma array type (ChromaArrayType) of the current block is 0 (ie, monochrome format), numComps may be set to 1. In contrast, in this case, if the chroma array type of the current block is not 0 (ie, 4:2:0, 4:2:2, or 4:4:4 chroma format), numComps may be set to 3. have.
  • numComps may be set to 2.
  • numComps may be set to 1.
  • the palette_coding syntax may include palette_predictor_run, num_signalled_palette_entries and new_palette_entries as syntax elements related to the palette predictor.
  • palette_predictor_run a description of the content overlapping with FIG. 8 will be omitted.
  • the syntax element palette_predictor_run may be used to determine the number of zero entries (ie, non-reuse palette entries) preceding a non-zero entry (ie, a reuse palette entry) in the array PalettePredictorEntryReuseFlags.
  • each element of the array PalettePredictorEntryReuseFlags, PalettePredictorEntryReuseFlags[ i ] may indicate whether each palette entry in the palette predictor is reused in the palette table (or the current palette).
  • palette_predictor_run may be signaled/parsed only when the variable predictorEntryIdx is smaller than maxNumPalettePredictorSize ( 1210 ).
  • predictorEntryIdx corresponds to the current position in the array PalettePredictorEntryReuseFlags, and may have an index value of each palette entry in the palette predictor reused in the palette table.
  • predictorEntryIdx may be determined based on palette_predictor_run ( 1220 ). For example, only when the value of palette_predictor_run is greater than 1, the value of predictorEntryIdx may be updated to a value obtained by adding palette_predictor_run - 1 to predictorEntryIdx.
  • palette_predictor_run may not be applied to palette_predictor_run of FIG. 12 . That is, the value of palette_predictor_run may not be limited to be within the range of 0 or more and less than (PredictorPaletteSize[ startComp ] - predictorEntryIdx ).
  • the syntax element num_signalled_palette_entries may indicate the number of palette entries in the palette table that are explicitly signaled for the first color component (startComp) of the palette table.
  • startComp first color component
  • num_signalled_palette_entries may be inferred as a first value (e.g., 0).
  • variable CurrentPaletteSize[startComp] indicating the size of the palette table for the first color component (startComp) in the palette table may be derived based on num_signalled_palette_entries, and the specific method thereof is as described above with reference to Equation 1.
  • the syntax element new_palette_entries[ cIdx ][ i ] may indicate the value of the i-th signaled (new) palette entry for a specific color component (cIdx).
  • variable CurrentPaletteEntries[ cIdx ][ i ] may indicate the i-th element (ie, palette entry) in the palette table for a specific color component (cIdx), and may be derived by the method described above with reference to Table 1.
  • variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor and the array PredictorPaletteEntries indicating the palette predictor may be derived/modified (updated) by the method described above with reference to Table 2.
  • the variable maxNumPalettePredictorSize indicating the maximum (allowed) size of the palette predictor can be set to 63 or 31 based on a predetermined flag (eg, qtbtt_dual_tree_intra_flag) indicating the division structure of the current CTU as described above, in that it can be set to Table 2 may be different from the method of
  • variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor derived/modified (updated) through the process of Table 2 is not included in the parsing condition of the syntax element palette_predictor_run ( 1210 ). That is, palette_predictor_run may be decoded based on the variable maxNumPalettePredictorSize indicating the maximum (allowed) size of the palette predictor.
  • palette_predictor_run with 1 may be signaled/parsed.
  • palette_predictor_run having the predetermined value e.g., 1 may function as a termination indicator for terminating the process of configuring the array PalettePredictorEntryReuseFlags ( 1230 ).
  • FIG. 13 and 14 are diagrams illustrating an example of an encoding/decoding process of palette_predictor_run according to an embodiment of the present disclosure.
  • FIG. 13 corresponds to the example described above with reference to FIG. 10
  • FIG. 14 corresponds to the example described above with reference to FIG. 11 . Therefore, redundant descriptions will be omitted, and the differences will be mainly described.
  • a syntax element palette_predictor_run (see FIG. 12 ) may be signaled to indicate three palette entries (0, 3, and 5 indexes) that are reused in the palette table.
  • palette_predictor_run having a value of 0 may be signaled.
  • palette_predictor_run having a value of 3 may be signaled.
  • palette_predictor_run having a value of 2 may be signaled.
  • palette_predictor_run having a value of 1 as an end indicator may be additionally signaled.
  • a syntax element palette_predictor_run (see FIG. 12 ) is used to indicate four palette entries (indexes 0, 3, 5, and 6) that are reused in the palette table. may be signaled. For example, in order to indicate the palette entry of index 0, palette_predictor_run having a value of 0 may be signaled. Next, in order to indicate the palette entry of index 3, palette_predictor_run having a value of 3 may be signaled. Next, in order to indicate the palette entry of index 5, palette_predictor_run having a value of 2 may be signaled. Next, in order to indicate the palette entry of index 6, palette_predictor_run having a value of 0 may be signaled.
  • palette entry of index 6 is the last palette entry in the palette predictor (PredPLT), but since palette_predictor_run is decoded based on the maximum (allowed) size of the palette predictor, the termination indicator for terminating the decoding process is It needs to be signaled separately. Accordingly, palette_predictor_run having a value of 1 as an end indicator may be additionally signaled.
  • the end indicator indicating that there are no more reused palette entries in the palette predictor is whether the palette entry pointed to by the variable predictorEntryIdx exists in the palette predictor (PredPLT). It can be signaled regardless of whether or not. Accordingly, since the decoding end does not need to refer to PredictorPaletteSize[ startComp ], which is the previous palette encoding/decoding result, in order to end the parsing operation of palette_predictor_run, a parsing dependency does not occur, so the throughput of the decoding apparatus (throughput) and efficiency can be further improved.
  • the syntax element palette_predictor_run is decoded based on the variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor, but a predetermined end indicator (eg, palette_predictor_run having a value of 1) is not conditionally may be signaled.
  • a predetermined end indicator eg, palette_predictor_run having a value of 1
  • the structure of the palette_coding syntax is as shown in FIG. 8 , but even when the last palette entry in the palette predictor (PredPLT) is reached, the parsing operation of palette_predictor_run can be ended by the end indicator, so the parsing dependency A parsing dependency can be removed.
  • a syntax element palette_predictor_run for specifying a reuse palette entry in the palette predictor may be decoded based on the syntax element num_predictor_palette_entries indicating the size of the palette predictor.
  • the palette_coding syntax may include num_predictor_palette_entries, palette_predictor_run, num_signalled_palette_entries, and new_palette_entries as syntax elements related to the palette predictor.
  • num_predictor_palette_entries a syntax element related to the palette predictor.
  • the syntax element num_predictor_palette_entries may indicate the number of palette entries in the palette predictor (ie, the size of the palette predictor).
  • the size of the palette predictor may be derived in the same manner as in Table 2 above, based on the previous palette encoding/decoding result.
  • the size of the derived palette predictor (PredictorPaletteSize[ startComp ]) constitutes the signaling/parsing condition of the syntax element palette_predictor_run, so the decoding end depends on the previous palette encoding/decoding result. Parsing dependency could only occur.
  • the size of the palette predictor may be derived by parsing separately signaled num_predictor_palette_entries. Therefore, regardless of whether the size of the derived palette predictor constitutes the signaling/parsing condition of the syntax element palette_predictor_run, the decoding end does not need to depend on the previous palette encoding/decoding result, so the parsing dependency can be removed. can Meanwhile, when num_predictor_palette_entries does not exist (ie, is not signaled), the value of num_predictor_palette_entries may be inferred as a first value (e.g., 0).
  • num_predictor_palette_entries may be encoded/decoded using a 0-th order Exp-Golomb (EG0) binarization process or bypass coding.
  • num_predictor_palette_entries may be encoded using a fixed-length binarization process or context coding.
  • variable numPredictorPaletteEntries indicates the number of palette entries reused from the palette predictor for the palette table, and may be derived as the same value as num_predictor_palette_entries. In one example, the value of numPredictorPaletteEntries may be limited to be within a range of 0 or more and PredictorPaletteSize[startComp] or less, in order to satisfy bitstream conformance.
  • palette_predictor_run may be used to determine the number of zero entries (ie, non-reuse palette entries) preceding a non-zero entry (ie, a reuse palette entry) in the array PalettePredictorEntryReuseFlags.
  • palette_predictor_run may be signaled/parsed only when the variable predictorEntryIdx is smaller than numPredictorPaletteEntries (1510).
  • predictorEntryIdx corresponds to the current position in the array PalettePredictorEntryReuseFlags, and may have an index value of each palette entry in the palette predictor reused in the palette table.
  • predictorEntryIdx may be determined based on palette_predictor_run ( 1520 ). For example, only when the value of palette_predictor_run is greater than 1, the value of predictorEntryIdx may be updated to a value obtained by adding palette_predictor_run - 1 to predictorEntryIdx.
  • the value of palette_predictor_run may be limited to be within a range of 0 or more and ( numPredictorPaletteEntries - predictorEntryIdx ) or less, in order to satisfy bitstream suitability.
  • the variable NumPredictedPaletteEntries may indicate the number of palette entries in the palette table reused from the palette predictor.
  • the value of NumPredictedPaletteEntries may be limited to be within a range of 0 or more and less than or equal to the variable maxNumPaletteEntries.
  • the variable maxNumPaletteEntries may indicate the maximum size of the palette table.
  • maxNumPaletteEntries may be 31 if the tree type (treeType) of the current block is a single tree (SINGLE_TREE), and may be 15 if the tree type (treeType) of the current block is not a single tree (SINGLE_TREE).
  • the syntax element num_signalled_palette_entries may indicate the number of palette entries in the palette table that are explicitly signaled for the first color component (startComp) of the palette table.
  • startComp first color component
  • num_signalled_palette_entries may be inferred as a first value (e.g., 0).
  • the syntax element new_palette_entries[ cIdx ][ i ] may indicate the value of the i-th signaled (new) palette entry for a specific color component (cIdx).
  • variable PredictorPaletteEntries[ cIdx ][ i ] may indicate the i-th element (ie, palette entry) in the palette predictor for a particular color component (cIdx).
  • variable CurrentPaletteEntries[ cIdx ][ i ] may indicate the i-th element (ie, palette entry) in the palette table for a specific color component (cIdx), and may be derived as shown in Table 4 below.
  • the palette table (CurrentPaletteEntries[ cIdx ][ i ]) is a palette entry reused from a palette predictor (PredictorPaletteEntries[ cIdx ][ i ] and a signaled (new) palette entry (new_palette_entries[ cIdx ][ i ])
  • the palette table (CurrentPaletteEntries[ cIdx ][ i ]) is based on the syntax element numPredictorPaletteEntries indicating the size of the palette predictors obtained through the bitstream. That is, in the above process, since the variable PredictorPaletteSize[ startComp ] derived based on the previous palette decoding result is not considered, the parsing dependency can be removed.
  • variable PredictorPaletteSize[ startComp ] indicating the size of the palette predictor and the array PredictorPaletteEntries indicating the palette predictor may be derived/modified (updated) as shown in Table 5 below.
  • variable PredictorPaletteSize[ startComp ] and the array PredictorPaletteEntries may be derived/modified (updated) only when the variable cIdx is 0 and the variable numComps is 1, or the variable cIdx is 2.
  • the process of constructing a palette predictor using a palette entry that is not reused in the palette table is to be performed based on the syntax element numPredictorPaletteEntries indicating the size of the palette predictor obtained through the bitstream. can That is, in the above process, since the variable PredictorPaletteSize[ startComp ] derived based on the previous palette decoding result is not considered, the parsing dependency can be removed.
  • 16 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure.
  • the palette encoding method of FIG. 16 may be performed by the image encoding apparatus of FIG. 2 .
  • steps S1610 and S1620 may be performed by the intra prediction unit 165 or a separate functional block (eg, a palette encoding unit).
  • steps S1630 and S1640 may be performed by the entropy encoding unit 190 .
  • the image encoding apparatus may configure a palette table based on the palette predictor for the current block ( S1610 ).
  • the palette predictor may include at least one palette entry (representative color value) and a palette index for identifying each palette entry.
  • the palette predictor may have a predetermined initial value (e.g., 0).
  • the palette predictor may have a value predetermined through a previous palette encoding process.
  • the palette table (or the current palette) may be constructed based on the palette predictor.
  • the palette table may include at least one palette entry reused from the palette predictor and a palette index for identifying each palette entry.
  • the palette predictor and the palette table may be variously configured according to the color format (or chroma format) of the current block.
  • the palette predictor and the palette table may include only a palette entry for the luma component of the current block.
  • the palette predictor and palette table are palette entries for each of the luma and chroma components of the current block. may include.
  • the palette predictor and the palette table may be variously configured according to the partition structure of the current block.
  • the palette predictor and the palette table may have a single configuration commonly applied to the luma component and the chroma component of the current block.
  • the palette predictor and the palette table may have multiple configurations that are individually applied to each of the luma and chroma components of the current block.
  • the palette predictor for the current block of the dual tree structure may include a luma palette predictor for a luma component and a chroma palette predictor for a chroma component. In this case, the number of palette entries included in the luma palette predictor may be different from the number of palette entries included in the chroma palette predictor.
  • the image encoding apparatus may generate a palette index map for the current block based on the palette table (S1620).
  • the palette index map may mean mapping a predetermined palette index in the palette table to each sample in the current block. For example, among a plurality of samples in the current block, for a sample having the same or similar sample value as a representative color value defined in the palette table, a palette index indicating a corresponding representative color value may be mapped. Alternatively, among a plurality of samples of the current block, an escape palette index may be mapped to a sample (escape sample) having a sample value similar to a representative color value defined in the palette table. In one example, whether the pixel value of each sample is similar to the representative color value defined in the palette table may be determined based on a predetermined threshold.
  • a palette index indicating the representative color value may be mapped to the corresponding sample.
  • an escape palette index may be mapped to the corresponding sample.
  • the image encoding apparatus may encode the current block based on the palette index map (S1630).
  • the encoding process of the current block may be performed by scanning the palette indexes in the palette index map according to a predetermined scan method.
  • the image encoding apparatus may determine the encoding mode (palette sample mode) of each of the palette indexes by scanning the palette indexes mapped to the current block according to a predetermined scan method.
  • a scan method for palette encoding may include a horizontal traverse scan and a vertical traverse scan, as described above with reference to FIG. 5 .
  • information about the scan method may be signaled using palette_transpose_flag.
  • palette_transpose_flag For example, when horizontal traverse scan is used for palette encoding of the current block, palette_transpose_flag having a first value (e.g. 0) may be signaled.
  • palette_transpose_flag having a second value (e.g. 1) may be signaled.
  • An encoding mode for encoding each of the palette indexes mapped to the current block may be referred to as a palette sample mode.
  • the palette sample mode may include an INDEX mode and a COPY_ABOVE mode.
  • the palette sample mode is determined as the INDEX mode, the value of the corresponding palette index may be encoded.
  • the palette sample mode is determined as the COPY_ABOVE mode, the value of the corresponding palette index is not encoded, and information indicating that the corresponding palette index has the same value as the palette index existing at the same position in the immediately upper row is encoded.
  • information about the palette sample mode may be signaled using copy_above_palette_indices_flag.
  • copy_above_palette_indices_flag having a first value e.g. 0
  • copy_above_palette_indices_flag having a second value e.g. 1
  • run-value information indicating the number of consecutively encoded palette indices using the same palette sample mode may be additionally encoded.
  • a quantized sample value of the escape sample may be directly encoded.
  • whether the current block includes an escape sample may be signaled using an escape sample flag (e.g., palette_escape_val_present_flag).
  • palette_escape_val_present_flag having a first value (e.g. 0) may be signaled.
  • palette_escape_val_present_flag having a second value (e.g. 1) may be signaled.
  • the image encoding apparatus may generate a bitstream including palette prediction information and palette index information of the encoded current block ( S1640 ).
  • the palette prediction information may include run-value information (e.g., palette_predictor_run) indicating a first palette entry reused in the palette table among palette entries in the palette predictor for the current block.
  • run-value information e.g., palette_predictor_run
  • the run-value information may be encoded in the bitstream only when the index value of the first palette entry is smaller than the size of the palette predictor.
  • the run-value information may be encoded in the bitstream only when the index value of the first palette entry is smaller than the maximum size of the palette predictor.
  • the maximum size of the palette predictor means the maximum number of palette entries that can be included in the palette predictor, and may be determined based on the division structure of a coding tree unit (CTU) including the current block. For example, the maximum size of the palette predictor may be determined to be 63 based on the current block being included in the I slice and the CTU (coding tree unit) including the current block being divided into a single tree structure.
  • the current block is included in the I slice, and a coding tree unit (CTU) including the current block is implicit quadtree split into a 64x64 luma sample coding unit (CU), and the 64x64 luma sample CU Based on becoming a root node of the dual tree, the maximum size of the palette predictor may be determined to be 31.
  • CTU coding tree unit
  • the index value of the first palette entry may be determined based on the run-value information. For example, only when the run-value is greater than 1, the index value of the first palette entry may be updated by adding the run-value and then subtracting 1.
  • the palette index information may include information about the palette index map.
  • the palette index information may include PaletteIndexMap[xC][yC] indicating at least one palette index mapped to the current block.
  • the palette index information may include PaletteRunMinus1 indicating the run-value of the palette index included in the palette index map.
  • the image encoding method may further include updating the palette predictor by using the palette table for the current block.
  • the image encoding apparatus may update the palette predictor by adding at least one palette entry included in the palette table to the palette predictor.
  • the image encoding apparatus may update the palette predictor by replacing at least one palette entry included in the palette predictor with at least one palette entry included in the palette table.
  • the palette entry replaced in the palette predictor may be determined as the oldest palette entry or the least frequently used palette entry according to a first-in, first-out (FIFO) method.
  • FIFO first-in, first-out
  • the update process for the palette predictor may be continuously performed until the palette predictor reaches a maximum size.
  • the palette predictor does not reach the maximum size, at least one palette entry in the palette predictor that is not reused in the palette table may be added to the palette predictor. This may be referred to as pallet stuffing.
  • information about the updated palette predictor may be encoded and signaled.
  • 17 is a flowchart illustrating a palette decoding method according to an embodiment of the present disclosure.
  • the palette decoding method of FIG. 17 may be performed by the image decoding apparatus of FIG. 3 .
  • steps S1710 to S1730 may be performed by the intra prediction unit 265 .
  • step S1740 may be performed by the entropy decoding unit 210 .
  • the image decoding apparatus may obtain palette prediction information and palette index information for the current block from the bitstream ( S1710 ).
  • the palette prediction information may include run-value information (e.g., palette_predictor_run) indicating a first palette entry reused in the palette table among palette entries in the palette predictor for the current block.
  • run-value information e.g., palette_predictor_run
  • the run-value information may be obtained from the bitstream only when the index value of the first palette entry is smaller than the size of the palette predictor.
  • the size of the palette predictor may be determined based on the palette table for the block decoded before the current block. For example, when palette decoding is performed on a block preceding the current block in decoding order, the palette predictor and its size may be updated based on the palette table for the preceding block. And, the updated palette predictor may be used for palette decoding of the current block. A method of updating the palette predictor and its size is the same as described above with reference to Table 1 or Table 5.
  • the size of the palette predictor may be determined based on the size information of the palette predictor obtained from the bitstream. For example, the size of the palette predictor may be determined based on the syntax element num_predictor_palette_entries explicitly signaled from the bitstream.
  • the run-value information may be encoded in the bitstream only when the index value of the first palette entry is smaller than the maximum size of the palette predictor.
  • the maximum size of the palette predictor means the maximum number of palette entries that can be included in the palette predictor, and a predetermined flag (eg, qtbtt_dual_tree_intra_flag) indicating the division structure of a coding tree unit (CTU) including the current block.
  • qtbtt_dual_tree_intra_flag is based on having a first value (eg, 0) indicating that the current block is included in an I slice and that the CTU including the current block is split into a single tree structure, the palette prediction
  • the maximum size of the ruler may be determined to be 63.
  • the current block is included in an I slice
  • the CTU including the current block is implicit quadtree split into a 64x64 luma sample coding unit (CU)
  • the 64x64 luma sample CU is dual
  • the maximum size of the palette predictor may be determined to be 31 .
  • the index value of the first palette entry may be determined based on the run-value information. For example, only when the run-value is greater than 1, the index value of the first palette entry may be updated by adding the run-value and then subtracting 1.
  • the palette index information may include information about the palette index map.
  • the image decoding apparatus may obtain at least one palette index mapped to the current block by decoding PaletteIndexMap[xC][yC] included in the bitstream.
  • xC and yC may indicate the relative positions of the current sample with respect to the upper left sample of the CTU (or slice) to which the current block belongs.
  • the image decoding apparatus may obtain run-value information of the palette index included in the palette index map by decoding PaletteRunMinus1 included in the bitstream.
  • the image decoding apparatus may configure a palette table for the current block based on the palette prediction information (S1720).
  • the image decoding apparatus may configure the palette predictor for the current block based on PredictorPaletteEntries[cIdx][i] obtained from the bitstream.
  • the palette predictor for example, may have a predetermined value (e.g. 0) initialized at the initial decoding time of the CTU (or slice) including the current block.
  • the palette predictor may have the same configuration as the palette predictor updated in the previous palette decoding process.
  • the palette table (or the current palette) may be constructed based on the palette predictor.
  • the palette table may include at least one of a palette entry included in the palette predictor and a new palette entry obtained from a bitstream and a palette index for identifying each palette entry.
  • the palette predictor and the palette table may be variously configured according to the color format (or chroma format) of the current block.
  • the palette predictor and palette table may include only a palette entry for a luma component, or both a palette entry for each of a luma component and a chroma component, depending on the color format of the current block.
  • the palette predictor and the palette table may be variously configured according to the partition structure of the current block. For example, when the current block has a single tree structure, the palette predictor and the palette table may have a single configuration commonly applied to the luma component and the chroma component of the current block. On the contrary, when the current block has a dual tree structure, the palette predictor and the palette table may have multiple configurations separately applied to each of the luma and chroma components of the current block.
  • the image decoding apparatus may generate a palette index map for the current block based on the palette index information (S1730). Specifically, the image decoding apparatus uses the run-values of the palette index, the palette sample mode, and the palette sample mode obtained from the bitstream, and maps the palette index to each sample in the current block according to a predetermined scan method. You can create a palette index map.
  • a scan method for decoding the palette may include a horizontal traverse scan and a vertical traverse scan, as described above with reference to FIG. 5 .
  • the scan method for decoding the palette may be determined by decoding palette_transpose_flag included in the bitstream. For example, when palette_transpose_flag has a first value (e.g. 0), a scan method for palette decoding may be determined as a horizontal traverse scan. On the contrary, when palette_transpose_flag has a second value (e.g. 1), a scan method for decoding the palette may be determined as vertical traverse scan.
  • the palette sample mode may include an INDEX mode and a COPY_ABOVE mode.
  • the INDEX mode When the INDEX mode is applied to the current sample, the value of the palette index mapped to the current sample may be directly obtained from the bitstream.
  • the COPY_ABOVE mode when the COPY_ABOVE mode is applied to the current sample, the value of the palette index mapped to the current sample may be determined as the value of the palette index mapped to the sample at the same location in the upper row of the current sample.
  • the quantized pixel value of the current sample may be directly obtained from the bitstream.
  • An escape palette index may be mapped to an escape sample.
  • the image decoding apparatus may decode the current block based on the palette table and the palette index map for the current block (S1740). Specifically, the image decoding apparatus may generate a prediction block for the current block by inverse mapping the value of each palette index in the palette index map to the representative color value with reference to the palette table.
  • the image decoding method may further include updating the palette predictor by using the palette table for the current block.
  • the image decoding apparatus may update the palette predictor by adding at least one palette entry included in the palette table to the palette predictor.
  • the image decoding apparatus may update the palette predictor by replacing at least one palette entry included in the palette predictor with at least one palette entry included in the palette table.
  • the palette entry replaced in the palette predictor may be determined as the oldest palette entry or the least frequently used palette entry according to a first-in, first-out (FIFO) method.
  • FIFO first-in, first-out
  • the update process for the palette predictor may be continuously performed until the palette predictor reaches a maximum size.
  • the palette predictor does not reach the maximum size, at least one palette entry in the palette predictor that is not reused in the palette table may be added to the palette predictor. This may be referred to as pallet stuffing.
  • the image decoding apparatus may update the palette predictor based on update information of the palette predictor signaled from the image encoding apparatus.
  • the process of signaling/parsing run-value information indicating the reused palette entry in the palette predictor
  • a predetermined end indicator eg, palette_predictor_run with a value of 1
  • the run-value information may be signaled/parsed based on the maximum size of the palette predictor (e.g., maxNumPalettePredictiorSize) instead of the size of the palette predictor (e.g., PredictorPaletteSize[ startComp ]). Accordingly, the parsing dependency on the previous palette encoding/decoding result is removed, and thus the throughput and efficiency of the image encoding/decoding apparatus may be further improved.
  • Example methods of the present disclosure are expressed as a series of operations for clarity of description, but this is not intended to limit the order in which the steps are performed, and if necessary, each step may be performed simultaneously or in a different order.
  • other steps may be included in addition to the illustrated steps, steps may be excluded from some steps, and/or other steps may be included except for some steps.
  • an image encoding apparatus or an image decoding apparatus performing a predetermined operation may perform an operation (step) of confirming a condition or situation for performing the corresponding operation (step). For example, if it is stated that a predetermined operation is performed when a predetermined condition is satisfied, the image encoding apparatus or the image decoding apparatus performs an operation to check whether the predetermined condition is satisfied and then performs the predetermined operation can
  • various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, and the like.
  • the image decoding apparatus and the image encoding apparatus to which the embodiments of the present disclosure are applied are real-time communication apparatuses such as a multimedia broadcasting transceiver, a mobile communication terminal, a home cinema video apparatus, a digital cinema video apparatus, a surveillance camera, a video conversation apparatus, and a video communication apparatus.
  • mobile streaming device storage medium, camcorder, video on demand (VoD) service providing device, OTT video (Over the top video) device, internet streaming service providing device, three-dimensional (3D) video device, video telephony video device, and medical use It may be included in a video device and the like, and may be used to process a video signal or a data signal.
  • the OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smart phone, a tablet PC, a digital video recorder (DVR), and the like.
  • a game console a Blu-ray player
  • an Internet-connected TV a home theater system
  • a smart phone a tablet PC
  • DVR digital video recorder
  • FIG. 18 is a diagram exemplarily illustrating a content streaming system to which an embodiment according to the present disclosure can be applied.
  • the content streaming system to which the embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server compresses content input from multimedia input devices such as a smart phone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmits it to the streaming server.
  • multimedia input devices such as a smartphone, a camera, a camcorder, etc. directly generate a bitstream
  • the encoding server may be omitted.
  • the bitstream may be generated by an image encoding method and/or an image encoding apparatus to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in a process of transmitting or receiving the bitstream.
  • the streaming server transmits multimedia data to the user device based on a user request through the web server, and the web server may serve as a medium informing the user of a service.
  • the web server transmits it to a streaming server, and the streaming server may transmit multimedia data to the user.
  • the content streaming system may include a separate control server.
  • the control server may serve to control commands/responses between devices in the content streaming system.
  • the streaming server may receive content from a media repository and/or an encoding server. For example, when receiving content from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
  • Examples of the user device include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, Tablet PC (tablet PC), ultrabook (ultrabook), wearable device (e.g., watch-type terminal (smartwatch), glass-type terminal (smart glass), HMD (head mounted display)), digital TV, desktop There may be a computer, digital signage, and the like.
  • PDA personal digital assistant
  • PMP portable multimedia player
  • PDA portable multimedia player
  • slate PC slate PC
  • Tablet PC Tablet PC
  • ultrabook ultrabook
  • wearable device e.g., watch-type terminal (smartwatch), glass-type terminal (smart glass), HMD (head mounted display)
  • digital TV desktop
  • desktop There may be a computer, digital signage, and the like.
  • Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributed and processed.
  • the scope of the present disclosure includes software or machine-executable instructions (eg, operating system, application, firmware, program, etc.) that cause operation according to the method of various embodiments to be executed on a device or computer, and such software or and non-transitory computer-readable media in which instructions and the like are stored and executed on a device or computer.
  • software or machine-executable instructions eg, operating system, application, firmware, program, etc.
  • An embodiment according to the present disclosure may be used to encode/decode an image.

Landscapes

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

Abstract

영상 부호화/복호화 방법 및 장치가 제공된다. 본 개시에 따른 영상 복호화 방법은, 비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득하는 단계, 상기 팔레트 예측 정보에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하는 단계, 상기 팔레트 인덱스 정보에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하는 단계, 및 상기 팔레트 테이블 및 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 복호화하는 단계를 포함하고, 상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 제1 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득되며, 상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 가질 수 있다.

Description

팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체
본 개시는 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체에 관한 것으로서, 보다 상세하게는, 팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 본 개시의 영상 부호화 방법/장치에 의해 생성된 비트스트림을 저장하는 기록 매체에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하게 된다. 전송되는 정보량 또는 비트량의 증가는 전송 비용과 저장 비용의 증가를 초래한다.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위한 고효율의 영상 압축 기술이 요구된다.
본 개시는 부호화/복호화 효율이 향상된 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.
또한, 본 개시는 팔레트 모드에 기반한 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.
또한, 본 개시는 재사용 팔레트 예측자의 런-값 정보에 기반한 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.
또한, 본 개시는 재사용 팔레트 예측자의 런-값 정보를 비의존적으로 파싱하는 영상 부호화/복호화 방법 및 장치를 제공하는 것을 목적으로 한다.
또한, 본 개시는 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 저장한 컴퓨터 판독 가능한 기록 매체를 제공하는 것을 목적으로 한다.
또한, 본 개시는 본 개시에 따른 영상 복호화 장치에 의해 수신되고 복호화되어 영상의 복원에 이용되는 비트스트림을 저장한 컴퓨터 판독 가능한 기록 매체를 제공하는 것을 목적으로 한다.
또한, 본 개시는 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 전송하는 방법을 제공하는 것을 목적으로 한다.
본 개시에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
본 개시의 일 양상에 따른 영상 복호화 방법은, 비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득하는 단계, 상기 팔레트 예측 정보에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하는 단계, 상기 팔레트 인덱스 정보에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하는 단계, 및 상기 팔레트 테이블 및 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 복호화하는 단계를 포함하고, 상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 제1 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득되며, 상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 가질 수 있다.
본 개시의 다른 양상에 따른 영상 복호화 장치는, 메모리 및 적어도 하나의 프로세서를 포함하며, 상기 적어도 하나의 프로세서는, 비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득하고, 상기 팔레트 예측 정보에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하고, 상기 팔레트 인덱스 정보에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하고, 상기 팔레트 테이블 및 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 복호화하며, 상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 제1 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득되며, 상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 가질 수 있다.
본 개시의 또 다른 양상에 따른 영상 부호화 방법은, 현재 블록에 대한 팔레트 예측자에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하는 단계, 상기 팔레트 테이블에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하는 단계, 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 부호화하는 단계, 및 상기 부호화된 현재 블록에 관한 팔레트 예측 정보 및 팔레트 인덱스 정보를 포함하는 비트스트림을 생성하는 단계를 포함하고, 상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 최대 크기보다 작은 경우에만, 상기 비트스트림 내에 부호화되고, 상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 가질 수 있다.
본 개시의 또 다른 양상에 따른 컴퓨터 판독 가능한 기록 매체는, 본 개시의 영상 부호화 방법 또는 영상 부호화 장치에 의해 생성된 비트스트림을 저장할 수 있다.
본 개시의 또 다른 양상에 따른 전송 방법은, 본 개시의 영상 부호화 장치 또는 영상 부호화 방법에 의해 생성된 비트스트림을 전송할 수 있다.
본 개시에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 개시의 상세한 설명의 예시적인 양상일 뿐이며, 본 개시의 범위를 제한하는 것은 아니다.
본 개시에 따르면, 부호화/복호화 효율이 향상된 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.
또한, 본 개시에 따르면, 팔레트 모드에 기반한 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.
또한, 본 개시에 따르면, 재사용 팔레트 엔트리의 런-값 정보에 기반한 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.
또한, 본 개시에 따르면, 재사용 팔레트 엔트리의 런-값 정보를 비-의존적으로 파싱하는 영상 부호화/복호화 방법 및 장치가 제공될 수 있다.
또한, 본 개시에 따르면, 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 저장한 기록 매체가 제공될 수 있다.
또한, 본 개시에 따르면, 본 개시에 따른 영상 복호화 장치에 의해 수신되고 복호화되어 영상의 복원에 이용되는 비트스트림을 저장한 기록 매체가 제공될 수 있다.
또한, 본 개시에 따르면, 본 개시에 따른 영상 부호화 방법 또는 장치에 의해 생성된 비트스트림을 전송하는 방법이 제공될 수 있다.
본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
도 1은 본 개시에 따른 실시예가 적용될 수 있는 비디오 코딩 시스템을 개략적으로 나타내는 도면이다.
도 2는 본 개시에 따른 실시예가 적용될 수 있는 영상 부호화 장치를 개략적으로 나타내는 도면이다.
도 3은 본 개시에 따른 실시예가 적용될 수 있는 영상 복호화 장치를 개략적으로 나타내는 도면이다.
도 4는 팔레트 모드로 부호화된 블록의 일 예를 나타내는 도면이다.
도 5는 팔레트 모드에서 이용될 수 있는 스캔 방식의 일 예를 나타내는 도면이다.
도 6은 현재 블록의 팔레트 부호화 과정을 설명하기 위한 도면이다.
도 7은 coding_unit 신택스의 일 예를 나타내는 도면이다.
도 8은 palette_coding 신택스의 일 예를 나타내는 도면이다.
도 9 내지 도 11은 palette_predictor_run의 부호화/복호화 과정의 일 예를 나타내는 도면들이다.
도 12는 본 개시의 일 실시예에 따른 palette_coding 신택스를 나타내는 도면이다.
도 13 및 도 14는 본 개시의 일 실시예에 따른 palette_predictor_run의 부호화/복호화 과정의 일 예를 나타내는 도면들이다.
도 15는 본 개시의 일 실시예에 따른 palette_coding 신택스를 나타내는 도면이다.
도 16은 본 개시의 일 실시예에 따른 영상 부호화 방법을 나타내는 흐름도이다.
도 17은 본 개시의 일 실시예에 따른 팔레트 복호화 방법을 나타내는 흐름도이다.
도 18은 본 개시에 따른 실시예가 적용될 수 있는 컨텐츠 스트리밍 시스템을 예시적으로 나타낸 도면이다.
이하에서는 첨부한 도면을 참고로 하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나, 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다.
본 개시의 실시예를 설명함에 있어서 공지 구성 또는 기능에 대한 구체적인 설명이 본 개시의 요지를 흐릴 수 있다고 판단되는 경우에는 그에 대한 상세한 설명은 생략한다. 그리고, 도면에서 본 개시에 대한 설명과 관계없는 부분은 생략하였으며, 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.
본 개시에 있어서, 어떤 구성요소가 다른 구성요소와 "연결", "결합" 또는 "접속"되어 있다고 할 때, 이는 직접적인 연결관계뿐만 아니라, 그 중간에 또 다른 구성요소가 존재하는 간접적인 연결관계도 포함할 수 있다. 또한 어떤 구성요소가 다른 구성요소를 "포함한다" 또는 "가진다"고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 배제하는 것이 아니라 또 다른 구성요소를 더 포함할 수 있는 것을 의미한다.
본 개시에 있어서, 제1, 제2 등의 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용되며, 특별히 언급되지 않는 한 구성요소들간의 순서 또는 중요도 등을 한정하지 않는다. 따라서, 본 개시의 범위 내에서 일 실시예에서의 제1 구성요소는 다른 실시예에서 제2 구성요소라고 칭할 수도 있고, 마찬가지로 일 실시예에서의 제2 구성요소를 다른 실시예에서 제1 구성요소라고 칭할 수도 있다.
본 개시에 있어서, 서로 구별되는 구성요소들은 각각의 특징을 명확하게 설명하기 위함이며, 구성요소들이 반드시 분리되는 것을 의미하지는 않는다. 즉, 복수의 구성요소가 통합되어 하나의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있고, 하나의 구성요소가 분산되어 복수의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있다. 따라서, 별도로 언급하지 않더라도 이와 같이 통합된 또는 분산된 실시예도 본 개시의 범위에 포함된다.
본 개시에 있어서, 다양한 실시예에서 설명하는 구성요소들이 반드시 필수적인 구성요소들은 의미하는 것은 아니며, 일부는 선택적인 구성요소일 수 있다. 따라서, 일 실시예에서 설명하는 구성요소들의 부분집합으로 구성되는 실시예도 본 개시의 범위에 포함된다. 또한, 다양한 실시예에서 설명하는 구성요소들에 추가적으로 다른 구성요소를 포함하는 실시예도 본 개시의 범위에 포함된다.
본 개시는 영상의 부호화 및 복호화에 관한 것으로서, 본 개시에서 사용되는 용어는, 본 개시에서 새롭게 정의되지 않는 한 본 개시가 속한 기술 분야에서 통용되는 통상의 의미를 가질 수 있다.
본 개시에서 "픽처(picture)"는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)은 픽처의 일부를 구성하는 부호화 단위로서, 하나의 픽처는 하나 이상의 슬라이스/타일로 구성될 수 있다. 또한, 슬라이스/타일은 하나 이상의 CTU(coding tree unit)를 포함할 수 있다.
본 개시에서 "픽셀(pixel)" 또는 "펠(pel)"은 하나의 픽처(또는 영상)를 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 "샘플(sample)"이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 루마(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 크로마(chroma) 성분의 픽셀/픽셀값만을 나타낼 수도 있다.
본 개시에서 "유닛(unit)"은 영상 처리의 기본 단위를 나타낼 수 있다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 "샘플 어레이", "블록(block)" 또는 "영역(area)" 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들(또는 샘플 어레이) 또는 변환 계수(transform coefficient)들의 집합(또는 어레이)을 포함할 수 있다.
본 개시에서 "현재 블록"은 "현재 코딩 블록", "현재 코딩 유닛", "부호화 대상 블록", "복호화 대상 블록" 또는 "처리 대상 블록" 중 하나를 의미할 수 있다. 예측이 수행되는 경우, "현재 블록"은 "현재 예측 블록" 또는 "예측 대상 블록"을 의미할 수 있다. 변환(역변환)/양자화(역양자화)가 수행되는 경우, "현재 블록"은 "현재 변환 블록" 또는 "변환 대상 블록"을 의미할 수 있다. 필터링이 수행되는 경우, "현재 블록"은 "필터링 대상 블록"을 의미할 수 있다.
본 개시에서 "현재 블록"은 크로마 블록이라는 명시적인 기재가 없는 한 루마 성분 블록과 크로마 성분 블록을 모두 포함하는 블록 또는 "현재 블록의 루마 블록"을 의미할 수 있다. 현재 블록의 루마 성분 블록은 명시적으로 "루마 블록" 또는 "현재 루마 블록"과 같이 루마 성분 블록이라는 명시적인 기재를 포함하여 표현될 수 있다. 또한, 현재 블록의 크로마 성분 블록은 명시적으로 "크로마 블록" 또는 "현재 크로마 블록"과 같이 크로마 성분 블록이라는 명시적인 기재를 포함하여 표현될 수 있다.
본 개시에서 "/"와 ","는 "및/또는"으로 해석될 수 있다. 예를 들어, "A/B"와 "A, B"는 "A 및/또는 B"로 해석될 수 있다. 또한, "A/B/C"와 "A, B, C"는 "A, B 및/또는 C 중 적어도 하나"를 의미할 수 있다.
본 개시에서 "또는"은 "및/또는"으로 해석될 수 있다. 예를 들어, "A 또는 B"는, 1) "A" 만을 의미하거나 2) "B" 만을 의미하거나, 3) "A 및 B"를 의미할 수 있다. 또는, 본 개시에서 "또는"은 "추가적으로 또는 대체적으로(additionally or alternatively)"를 의미할 수 있다.
비디오 코딩 시스템 개요
도 1은 본 개시에 따른 실시예가 적용될 수 있는 비디오 코딩 시스템을 개략적으로 나타내는 도면이다.
일 실시예에 따른 비디오 코딩 시스템은 부호화 장치(10) 및 복호화 장치(20)를 포함할 수 있다. 부호화 장치(10)는 부호화된 비디오(video) 및/또는 영상(image) 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 복호화 장치(20)로 전달할 수 있다.
일 실시예예 따른 부호화 장치(10)는 비디오 소스 생성부(11), 부호화부(12), 전송부(13)를 포함할 수 있다. 일 실시예에 따른 복호화 장치(20)는 수신부(21), 복호화부(22) 및 렌더링부(23)를 포함할 수 있다. 상기 부호화부(12)는 비디오/영상 부호화부라고 불릴 수 있고, 상기 복호화부(22)는 비디오/영상 복호화부라고 불릴 수 있다. 전송부(13)는 부호화부(12)에 포함될 수 있다. 수신부(21)는 복호화부(22)에 포함될 수 있다. 렌더링부(23)는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다.
비디오 소스 생성부(11)는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스 생성부(11)는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.
부호화부(12)는 입력 비디오/영상을 부호화할 수 있다. 부호화부(12)는 압축 및 부호화 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 부호화부(12)는 부호화된 데이터(부호화된 비디오/영상 정보)를 비트스트림(bitstream) 형태로 출력할 수 있다.
전송부(13)는 비트스트림 형태로 출력된 부호화된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 복호화 장치(20)의 수신부(21)로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부(13)는 미리 정해진 파일 포맷을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘리먼트를 포함할 수 있다. 수신부(21)는 상기 저장매체 또는 네트워크로부터 상기 비트스트림을 추출/수신하여 복호화부(22)로 전달할 수 있다.
복호화부(22)는 부호화부(12)의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 복호화할 수 있다.
렌더링부(23)는 복호화된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.
영상 부호화 장치 개요
도 2는 본 개시에 따른 실시예가 적용될 수 있는 영상 부호화 장치를 개략적으로 도시한 도면이다.
도 2에 도시된 바와 같이, 영상 부호화 장치(100)는 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 메모리(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함할 수 있다. 인터 예측부(180) 및 인트라 예측부(185)는 합쳐서 "예측부"라고 지칭될 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다.
영상 부호화 장치(100)를 구성하는 복수의 구성부들의 전부 또는 적어도 일부는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어, 인코더 또는 프로세서)로 구현될 수 있다. 또한 메모리(170)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구현될 수 있다.
영상 분할부(110)는 영상 부호화 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)을 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)을 QT/BT/TT (Quad-tree/binary-tree/ternary-tree) 구조에 따라 재귀적으로(recursively) 분할함으로써 획득될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 코딩 유닛의 분할을 위해, 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및/또는 터너리 트리 구조가 나중에 적용될 수 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 개시에 따른 코딩 절차가 수행될 수 있다. 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 최대 코딩 유닛을 분할하여 획득한 하위 뎁스의 코딩 유닛이 최종 코닛 유닛으로 사용될 수도 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환 및/또는 복원 등의 절차를 포함할 수 있다. 다른 예로, 상기 코딩 절차의 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)일 수 있다. 상기 예측 유닛 및 상기 변환 유닛은 각각 상기 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다.
예측부(인터 예측부(180) 또는 인트라 예측부(185))는 처리 대상 블록(현재 블록)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 현재 블록의 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 인트라 예측 모드 및/또는 인트라 예측 기법에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라, 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기반하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽처와 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 서로 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수 있다. 예를 들어, 인터 예측부(180)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference) 및 움직임 벡터 예측자에 대한 지시자(indicator)를 부호화함으로써 현재 블록의 움직임 벡터를 시그널링할 수 있다. 움직임 벡터 차분은 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 차이를 의미할 수 있다.
예측부는 후술하는 다양한 예측 방법 및/또는 예측 기법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 현재 블록의 예측을 위해 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 현재 블록의 예측을 위해 인트라 예측과 인터 예측을 동시에 적용하는 예측 방법은 combined inter and intra prediction (CIIP)라고 불릴 수 있다. 또한, 예측부는 현재 블록의 예측을 위해 인트라 블록 카피(intra block copy, IBC)를 수행할 수도 있다. 인트라 블록 카피는 예를 들어 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 현재 블록으로부터 소정의 거리만큼 떨어진 위치의 현재 픽처 내 기복원된 참조 블록을 이용하여 현재 블록을 예측하는 방법이다. IBC가 적용되는 경우, 현재 픽처 내 참조 블록의 위치는 상기 소정의 거리에 해당하는 벡터(블록 벡터)로서 부호화될 수 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나, 현재 픽처 내에서 참조 블록을 도출하는 점에서, 인터 예측과 유사하게 수행될 수 있다. 즉 IBC는 본 개시에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다.
예측부를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 감산부(115)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)로부터 예측부에서 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있다. 생성된 레지듀얼 신호는 변환부(120)로 전송될 수 있다.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)을 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)을 이용하여 예측 신호를 생성하고 그에 기반하여 획득되는 변환을 의미한다. 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.
양자화부(130)는 변환 계수들을 양자화하여 엔트로피 인코딩부(190)로 전송할 수 있다. 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다.
엔트로피 인코딩부(190)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예를 들어 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)를 더 포함할 수 있다. 본 개시에서 언급된 시그널링 정보, 전송되는 정보 및/또는 신택스 요소들은 상술한 인코딩 절차를 통하여 인코딩되어 상기 비트스트림에 포함될 수 있다.
상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호를 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 영상 부호화 장치(100)의 내/외부 엘리먼트로서 구비될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소로서 구비될 수도 있다.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록 or 레지듀얼 샘플들)를 복원할 수 있다.
가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(170), 구체적으로 메모리(170)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(160)는 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
메모리(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 영상 부호화 장치(100)는 이를 통하여 인터 예측이 적용되는 경우, 영상 부호화 장치(100)와 영상 복호화 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다.
메모리(170) 내 DPB는 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 수정된 복원 픽처를 저장할 수 있다. 메모리(170)는 현재 픽처 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(180)에 전달될 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(185)에 전달할 수 있다.
영상 복호화 장치 개요
도 3은 본 개시에 따른 실시예가 적용될 수 있는 영상 복호화 장치를 개략적으로 도시한 도면이다.
도 3에 도시된 바와 같이, 영상 복호화 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)를 합쳐서 "예측부"라고 지칭될 수 있다. 역양자화부(220), 역변환부(230)는 레지듀얼 처리부에 포함될 수 있다.
영상 복호화 장치(200)를 구성하는 복수의 구성부들의 전부 또는 적어도 일부는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)로 구현될 수 있다. 또한 메모리(170)는 DPB를 포함할 수 있고, 디지털 저장 매체에 의하여 구현될 수 있다.
비디오/영상 정보를 포함하는 비트스트림을 수신한 영상 복호화 장치(200)는 도 2의 영상 부호화 장치(100)에서 수행된 프로세스에 대응하는 프로세스를 수행하여 영상을 복원할 수 있다. 예를 들어, 영상 복호화 장치(200)는 영상 부호화 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩의 처리 유닛은 예를 들어 코딩 유닛일 수 있다. 코딩 유닛은 코딩 트리 유닛이거나 또는 최대 코딩 유닛을 분할하여 획득될 수 있다. 그리고, 영상 복호화 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치(미도시)를 통해 재생될 수 있다.
영상 복호화 장치(200)는 도 2의 영상 부호화 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있다. 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(예를 들어, 비디오/영상 정보)를 도출할 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽처 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)를 더 포함할 수 있다. 영상 복호화 장치는 영상을 디코딩하기 위해 상기 파라미터 세트에 관한 정보 및/또는 상기 일반 제한 정보를 추가적으로 이용할 수 있다. 본 개시에서 언급된 시그널링 정보, 수신되는 정보 및/또는 신택스 요소들은 상기 디코딩 절차를 통하여 디코딩됨으로써 상기 비트스트림으로부터 획득될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 블록 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)을 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)로 제공될 수 있다. 한편, 영상 부호화 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 영상 복호화 장치(200)의 내/외부 엘리먼트로서 추가적으로 구비될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소로서 구비될 수도 있다.
한편, 본 개시에 따른 영상 복호화 장치는 비디오/영상/픽처 복호화 장치라고 불릴 수 있다. 상기 영상 복호화 장치는 정보 디코더(비디오/영상/픽처 정보 디코더) 및/또는 샘플 디코더(비디오/영상/픽처 샘플 디코더)를 포함할 수도 있다. 상기 정보 디코더는 엔트로피 디코딩부(210)를 포함할 수 있고, 상기 샘플 디코더는 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265) 중 적어도 하나를 포함할 수 있다.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 상기 재정렬은 영상 부호화 장치에서 수행된 계수 스캔 순서에 기반하여 수행될 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)을 획득할 수 있다.
역변환부(230)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득할 수 있다.
예측부는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드(예측 기법)를 결정할 수 있다.
예측부가 후술하는 다양한 예측 방법(기법)을 기반으로 예측 신호를 생성할 수 있음은 영상 부호화 장치(100)의 예측부에 대한 설명에서 언급된 바와 동일하다.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 인트라 예측부(185)에 대한 설명은 인트라 예측부(265)에 대해서도 동일하게 적용될 수 있다.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기반하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드(기법)를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측의 모드(기법)를 지시하는 정보를 포함할 수 있다.
가산부(235)는 획득된 레지듀얼 신호를 예측부(인터 예측부(260) 및/또는 인트라 예측부(265) 포함)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)에 대한 설명은 가산부(235)에 대해서도 동일하게 적용될 수 있다. 가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다.
필터링부(240)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 상기 수정된 복원 픽처를 메모리(250), 구체적으로 메모리(250)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다.
메모리(250)의 DPB에 저장된 (수정된) 복원 픽처는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(250)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.
본 명세서에서, 영상 부호화 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 영상 복호화 장치(200)의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.
이하, 팔레트 모드(Palette mode)에 대해 설명한다.
팔레트 모드의 개요
팔레트 모드는 소정의 대표 컬러값 세트를 포함하는 팔레트(또는, 팔레트 테이블)에 기반하여 현재 블록을 부호화/복호화하는 예측 모드를 말한다. 팔레트 모드는 인트라 예측 모드의 일종이며, 현재 블록에 대한 레지듀얼 값이 별도로 시그널링되지 않는다는 점에서는 스킵 모드와 유사할 수 있다. 팔레트 모드는 팔레트 코딩 모드, 인트라 팔레트 모드 또는 인트라 팔레트 코딩 모드 등으로 지칭될 수 있다. 본 개시에서, 팔레트 모드를 이용한 영상 부호화/복호화를 팔레트 부호화/복호화라고 지칭하기로 한다.
팔레트 모드는 스크린 컨텐츠(screen contents)의 부호화/복호화에 특히 효과적일 수 있다. 구체적으로, 스크린 컨텐츠는 상당한 양의 텍스트와 그래픽을 포함하는 영상으로서, 샤프 엣지로 분리되는 로컬 영역을 포함할 수 있다. 이 때, 상기 로컬 영역은 상대적으로 적은 개수의 샘플값들로 표현될 수 있다. 따라서, 현재 블록 내의 대부분의 샘플값들을 상대적으로 적은 개수의 인덱스들로 표현하는 팔레트 모드는, 다른 예측 모드들(e.g., 인트라 예측 모드, 인터 예측 모드 등)에 비해 스크린 컨텐츠의 부호화/복호화에 보다 효과적일 수 있다.
VVC 표준에서는, 현재 크로마 포맷이 YUV 4:4:4인 경우, CLVS(coded layer video sequnce)에 대하여 팔레트 모드가 가용한지 여부를 나타내는 sps_palette_enabled_flag가 시그널링될 수 있다. 팔레트 모드가 가용한 경우(e.g., sps_palette_enabled_flag == 1), 현재 블록(또는, CU)가 팔레트 모드로 코딩되는지 여부를 나타내는 pred_mode_plt_flag가 시그널링될 수 있다.
현재 블록에 팔레트 모드가 적용되는 경우, 현재 블록 내 샘플값들은 소정의 대표 컬러값들의 작은 세트에 의해 표현될 수 있다. 상기 세트를 팔레트 테이블이라고 부른다. 팔레트 테이블의 대표 컬러값들과 가까운 샘플값을 갖는 샘플에 대해서는, 팔레트 인덱스가 시그널링될 수 있다. 이와 달리, 팔레트 테이블의 대표 컬러값들을 벗어난 샘플에 대해서는, 상기 샘플을 특정하기 위한 탈출 심볼(escape symbol) 및 양자화된 샘플값이 시그널링될 수 있다. 현재 블록 내 탈출 심볼이 존재하는지 여부를 나타내기 위하여, 각각의 블록에 대하여 탈출 플래그가 시그널링될 수 있다. 현재 블록 내 탈출 심볼이 존재하는 경우, 팔레트 테이블은 1 만큼 증가하고, 상기 팔레트 테이블 내의 마지막 팔레트 인덱스는 탈출 심볼에 할당될 수 있다.
도 4는 팔레트 모드로 부호화된 블록의 일 예를 나타내는 도면이다.
도 4를 참조하면, 블록(410) 내 복수의 샘플들(411-414)은 팔레트 테이블(430)에 기반하여 부호화될 수 있다. 예를 들어, 제1 샘플(411)의 샘플값은 팔레트 테이블(430) 내의 세번째 대표 컬러값을 나타내는 팔레트 인덱스 값인 3으로 부호화될 수 있다. 또한, 제2 샘플(412)의 샘플값은 팔레트 테이블(430) 내의 첫번재 대표 컬러값을 나타내는 팔레트 인덱스 값인 0으로 부호화될 수 있다. 또한, 제3 샘플(413)의 샘플값은 팔레트 테이블(430) 내의 네번째 대표 컬러값을 나타내는 팔레트 인덱스 값인 3으로 부호화될 수 있다. 이와 달리, 팔레트 테이블(430)의 대표 컬러값을 벗어난 제4 샘플(414)에 대해서는, 제4 샘플(414)의 양자화된 샘플값이 부호화될 수 있다.
한편, 팔레트 엔트리 코딩을 위하여, 팔레트 예측자가 유지될 수 있다. 팔레트 예측자는 하나 이상의 팔레트 엔트리들(대표 컬러값들)과 상기 팔레트 엔트리들 각각을 식별하기 위한 하나 이상의 팔레트 인덱스들을 포함할 수 있다. 팔레트 예측자는 각각의 슬라이스, 타일, 브릭 또는 블록의 (코딩) 시작점에서 소정의 값으로 초기화될 수 있다. 예를 들어, 순차적 코딩 프로세스(e.g., non-wavefront case)에서, 팔레트 예측자는 각 슬라이스의 (코딩) 시작점에서 0으로 초기화될 수 있다. 또는, 병렬 코딩 프로세스(e.g., wavefront case)에서, 팔레트 예측자는 각 CTU의 (코딩) 시작점에서 0으로 초기화될 수 있다. 팔레트 예측자 및 팔레트 테이블의 최대 크기에 관한 정보는 SPS(sequence parameter set) 내에서 시그널링될 수 있다.
그리고, 팔레트 예측자에 기반하여 팔레트 테이블이 구성될 수 있다. 이를 위해, 팔레트 예측자 내의 각각의 팔레트 엔트리가 팔레트 테이블에 포함되는지 여부를 나타내는 재사용 플래그(reuse flag)가 시그널링될 수 있다. 이 경우, 제1 값(e.g. 0)을 갖는 재사용 플래그는 대응 팔레트 엔트리가 팔레트 테이블에 포함되지 않음을 나타낼 수 있다. 이와 달리, 제2 값(e.g. 1)을 갖는 재사용 플래그는 대응 팔레트 엔트리가 팔레트 테이블에 포함됨을 나타낼 수 있다. 일 예에서, 재사용 플래그는 0 값에 대한 런-길이(run-length) 코딩을 이용하여 부호화될 수 있다.
현재 블록이 팔레트 부호화된 이후, 팔레트 예측자는 팔레트 테이블에 기반하여 업데이트될 수 있다. 팔레트 테이블에서 재사용되지 않은 이전 팔레트 예측자 내의 팔레트 엔트리들은, 팔레트 예측자의 최대 허용 크기에 도달하기 전까지, 새로운 팔레트 예측자의 후미에 부가될 수 있다. 이를 팔레트 충전(palette stuffing)이라고 부른다.
팔레트 테이블에 기반하여, 부호화 대상인 현재 블록에 대한 팔레트 인덱스 맵이 생성될 수 있다. 구체적으로, 현재 블록 내의 복수의 샘플들 각각의 샘플값과 대표 컬러값 사이의 유사성에 기반하여, 상기 복수의 샘플들 각각에 팔레트 테이블 내의 소정의 팔레트 인덱스를 매핑함으로써, 현재 블록에 대한 팔레트 인덱스 맵이 생성될 수 있다. 이 경우, 현재 블록 내의 복수의 샘플들 중에서, 팔레트 테이블에서 정의된 대표 컬러값(팔레트 엔트리)과 비유사한 샘플값을 갖는 샘플(즉, 탈출 샘플)에 대해서는, 탈출 팔레트 인덱스가 매핑될 수 있다. 탈출 팔레트 인덱스는 탈출 샘플(탈출 심볼)을 지시하며, 팔레트 테이블 내에서 가장 큰 인덱스 값을 가질 수 있다. 현재 블록이 탈출 샘플을 포함하는지 여부를 나타내기 위하여, 탈출 샘플 플래그(e.g., palette_escape_val_present_flag)가 시그널링될 수 있다. 예를 들어, 제1 값(e.g. 0)을 갖는 palette_escape_val_present_flag는 현재 블록이 탈출 샘플을 포함하지 않음을 나타낼 수 있다. 이와 달리, 제2 값(e.g. 1)을 갖는 palette_escape_val_present_flag는 현재 블록이 탈출 샘플을 포함함을 나타낼 수 있다.
현재 블록이 팔레트 부호화되는 경우, 팔레트 인덱스 맵에 관한 정보(팔레트 인덱스 정보)가 시그널링될 수 있다. 팔레트 인덱스 정보는 현재 블록에 매핑된 적어도 하나의 팔레트 인덱스 및 팔레트 인덱스의 런-값 정보를 포함할 수 있다. 팔레트 인덱스의 런-값은 현재 블록에 동일한 값으로 연속적으로 매핑된 팔레트 인덱스들의 개수에서 1을 차감한 값을 나타낼 수 있다. 예를 들어, 현재 블록이 소정의 스캔 방향(e.g., 수평 방향)을 따라 연속적으로 존재하는 제1 내지 제4 샘플들을 포함하고, 상기 제1 내지 제3 샘플들 각각에는 팔레트 인덱스 0이 매핑되고 상기 제4 샘플에는 팔레트 인덱스 1이 매핑된 경우, 상기 팔레트 인덱스 0의 런-값은 2이고, 상기 팔레트 인덱스 1의 런-값은 0일 수 있다. 현재 블록이 탈출 샘플을 포함하는 경우(e.g., palette_escape_val_present_flag == 1), 팔레트 인덱스 정보는 상기 탈출 샘플에 매핑된 탈출 팔레트 인덱스의 런-값 정보를 더 포함할 수 있다.
팔레트 인덱스 정보에 기반하여, 복호화 대상인 현재 블록에 대한 팔레트 인덱스 맵이 생성될 수 있다. 예를 들어, 팔레트 인덱스 정보로부터 획득되는 하나 이상의 팔레트 인덱스들 각각을 현재 블록 내의 복수의 샘플들 각각에 매핑함으로써, 현재 블록에 대한 팔레트 인덱스 맵이 생성될 수 있다. 일 예에서, 팔레트 인덱스 정보로부터 획득되는 하나 이상의 팔레트 인덱스들 중에서 (매핑 순서상) 마지막 팔레트 인덱스에 기반하여, 상기 하나 이상의 팔레트 인덱스들 각각의 값은 조정될 수 있다. 예를 들어, 팔레트 인덱스 정보로부터 획득되는 마지막 팔레트 인덱스가 탈출 팔레트 인덱스인 경우, 팔레트 인덱스 정보로부터 획득되는 하나 이상의 팔레트 엔트리들은 소정의 크기(e.g., 1) 만큼 증가된 값으로 현재 블록에 매핑될 수 있다.
현재 블록에 매핑된 팔레트 인덱스들은 소정의 스캔 방식을 이용하여 부호화/복호화될 수 있다.
도 5는 팔레트 부호화/복호화를 위한 스캔 방식의 일 예를 나타내는 도면이다.
도 5를 참조하면, 현재 블록에 매핑된 팔레트 인덱스들은 수평 트래버스 스캔(horizontal traverse scan) 또는 수직 트래버스 스캔(vertical traverse scan)을 이용하여 부호화/복호화될 수 있다.
수평 트래버스 스캔은, 현재 블록(또는, 팔레트 인덱스 맵)의 홀수 번째 행(row)은 왼쪽에서 오른쪽으로 스캔하고, 현재 블록의 짝수 번째 행은 오른쪽에서 왼쪽으로 스캔하는 방식을 의미할 수 있다. 또한, 수직 트래버스 스캔은, 현재 블록의 홀수 번째 열(column)은 위쪽에서 아래쪽으로 스캔하고, 현재 블록의 짝수 번째 열은 아래쪽에서 위쪽으로 스캔하는 방식을 의미할 수 있다.
팔레트 부호화/복호화를 위한 스캔 방식에 관한 정보는 소정의 플래그(e.g., palette_transpose_flag)를 이용하여 시그널링될 수 있다. 예를 들어, palette_transpose_flag가 제1 값(e.g., 0)을 갖는 경우, 현재 블록에 매핑된 팔레트 인덱스들을 스캔하기 위하여 수평 트래버스 스캔이 적용될 수 있다. 이와 달리, palette_transpose_flag가 제2 값(e.g., 1)을 갖는 경우, 현재 블록에 매핑된 팔레트 인덱스들을 스캔하기 위하여 수직 트래버스 스캔이 적용될 수 있다.
현재 블록에 매핑된 팔레트 인덱스들은 소정의 팔레트 샘플 모드, 예를 들어 INDEX 모드 또는 COPY_ABOVE 모드로 부호화/복호화될 수 있다.
INDEX 모드에서, 팔레트 인덱스의 값은 명시적으로 시그널링될 수 있다. 이와 달리, COPY_ABOVE 모드에서, 팔레트 인덱스의 값은 명시적으로 시그널링되지 않을 수 있다. 이 경우, 해당 팔레트 인덱스의 값은, 수평 트래버스 스캔의 경우 바로 상단 행의 동일 위치에 존재하는 팔레트 인덱스의 값과 동일한 값으로 결정(또는, 복사)되고, 수직 트래버스 스캔의 경우 바로 좌측 열의 동일 위치에 존재하는 팔레트 인덱스의 값과 동일한 값으로 결정(또는, 복사)될 수 있다.
팔레트 샘플 모드에 관한 정보는 소정의 플래그(e.g. copy_above_palette_indices_flag)를 이용하여 시그널링될 수 있다. 예를 들어, copy_above_palette_indices_flag가 제1 값(e.g., 0)을 갖는 경우, 해당 팔레트 인덱스에는 INDEX 모드가 적용될 수 있다. 이와 달리, copy_above_palette_indices_flag가 제2 값(e.g., 1)을 갖는 경우, 해당 팔레트 인덱스에는 COPY_ABOVE 모드가 적용될 수 있다. copy_above_palette_indices_flag가 시그널링되지 않는 경우, copy_above_palette_indices_flag의 값은 제1 값(e.g., 0)으로 추론될 수 있다. 한편, 현재 블록의 최상단 행에 속하는 샘플들 및 이전 (부호화/복호화된) 샘플의 팔레트 샘플 모드가 COPY_ABOVE 모드인 경우에는 copy_above_palette_indices_flag는 시그널링되지 않을 수 있다. 또한, 동일한 팔레트 샘플 모드를 이용하여 연속적으로 부호화된 샘플들의 개수를 나타내는 런-값 정보가 시그널링될 수 있다.
도 6은 현재 블록의 팔레트 부호화 과정을 설명하기 위한 도면이다.
도 6을 참조하면, 현재 블록 내 제1 샘플들(PX1)은 제1 컬러값을 갖고, 제2 샘플들(PX2)은 제2 컬러값을 가지며, 제3 샘플(PX3)은 제3 컬러값을 가질 수 있다(610).
현재 블록에 팔레트 모드가 적용되는 경우, 현재 블록에 대한 팔레트 테이블이 구성될 수 있다(620). 팔레트 테이블은 팔레트 엔트리들(대표 컬러값들) 및 상기 팔레트 엔트리들 각각을 지시하는 팔레트 인덱스들(e.g., 0, 1)을 포함할 수 있다. 이 경우, 팔레트 인덱스 0은 제1 컬러값의 팔레트 엔트리를 지시하고, 팔레트 인덱스 1은 제2 컬러값의 팔레트 엔트리를 지시할 수 있다. 또한, 팔레트 테이블은 탈출 팔레트 인덱스(e.g., 2)를 더 포함할 수 있다. 이 경우, 팔레트 인덱스 2는 탈출 심볼을 지시할 수 있다.
팔레트 테이블에 기반하여, 현재 블록의 팔레트 인덱스 맵이 생성될 수 있다(630). 예를 들어, 제1 샘플들(PX1)에 대해서는 팔레트 인덱스 0을 각각 매핑하고, 제2 샘플들(PX2)에 대해서는 팔레트 인덱스 1을 각각 매핑하며, 탈출 심볼인 제3 샘플(PX3)에 대해서는 팔레트 인덱스 2를 매핑함으로써, 현재 블록에 대한 팔레트 인덱스 맵이 생성될 수 있다.
그리고, 소정의 스캔 방식에 따라 팔레트 인덱스 맵을 스캔함으로써, 팔레트 샘플 모드 및 팔레트 샘플 모드의 런-값이 도출될 수 있다(640, 650). 예를 들어, 팔레트 인덱스 맵의 3번째 행에 연속적으로 매핑된 팔레트 인덱스들 '1, 0, 1, 1, 1'은, 팔레트 인덱스 맵의 2번째 행의 동일한 위치에 존재하는 팔레트 인덱스들과 동일한 값을 가지므로, 각각 COPY_ABOVE 모드로 부호화될 수 있다. 이 경우, 팔레트 샘플 모드의 런-값은 4로 결정될 수 있다(640). 이와 달리, 팔레트 인덱스 맵의 2번째 행에 연속적으로 매핑된 팔레트 인덱스들 '1, 1, 1'은, 팔레트 인덱스 맵의 첫번째 행의 동일한 위치에 존재하는 팔레트 인덱스들과 상이한 값을 가지므로, 각각 INDEX 모드로 부호화될 수 있다. 이 경우, 팔레트 샘플 모드의 런-값은 2로 결정될 수 있다(650). 한편, 탈출 팔레트 인덱스인 팔레트 인덱스 2는 INDEX 모드로 부호화될 수 있다. 이 경우, 팔레트 인덱스 2에 매핑된 제3 샘플(PX3)의 양자화된 샘플값(즉, 제3 컬러값)이 직접 부호화될 수 있다.
이와 같이, 현재 블록에 팔레트 모드가 적용되는 경우, 현재 블록 내의 복수의 샘플들 각각에는 팔레트 테이블 내의 소정의 팔레트 인덱스가 매핑되어 팔레트 인덱스 맵이 구성되며, 팔레트 인덱스 맵에 포함된 팔레트 인덱스는 소정의 스캔 방식에 따라 INDEX 모드 또는 COPY_ABOVE 모드로 부호화될 수 있다.
팔레트 모드 관련 신택스 요소들
도 7은 coding_unit 신택스의 일 예를 나타내는 도면이다.
도 7을 참조하면, coding_unit 신택스는 팔레트 모드에 관한 신택스 요소로서 pred_mode_plt_flag를 포함할 수 있다.
신택스 요소 pred_mode_plt_flag는 현재 블록에 대하여 팔레트 모드가 적용되는지 여부를 나타낼 수 있다. 예를 들어, 제1 값(e.g., 0)을 갖는 pred_mode_plt_flag는 현재 블록에 대해 팔레트 모드가 적용되지 않음을 나타낼 수 있다. 이와 달리, 제2 값(e.g., 1)을 갖는 pred_mode_plt_flag는 현재 블록에 대해 팔레트 모드가 적용됨을 나타낼 수 있다. pred_mode_plt_flag가 시그널링되지 않는 경우, pred_mode_plt_flag의 값은 제1 값(e.g., 0)으로 추론될 수 있다.
현재 블록에 대하여 팔레트 모드가 적용되는 경우(e.g., pred_mode_plt_flag == 1), palette_coding 신택스가 호출될 수 있다. 구체적으로, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE) 또는 듀얼 트리 루마(DUAL_TREE_LUMA)인 경우, 현재 블록의 루마 성분 너비(cbWidth) 및 높이(cb
Height)를 입력값으로 하여 palette_coding 신택스가 호출될 수 있다(710). 또한, 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)인 경우, 현재 블록의 크로마 성분 너비(cbWidth / SubWidthC) 및 높이(cbHeight / SubHeightC)를 입력값으로 하여 palette_coding 신택스가 호출될 수 있다(720).
도 8은 palette_coding 신택스의 일 예를 나타내는 도면이다.
도 8을 참조하면, palette_coding 신택스는 팔레트 예측자에 관한 신택스 요소로서 palette_predictor_run, num_signalled_palette_entries 및 new_palette_entries를 포함할 수 있다.
신택스 요소 palette_predictor_run은 배열 PalettePredictorEntryReuseFlags에서 비-제로 엔트리(즉, 재사용 팔레트 엔트리)에 선행하는 제로 엔트리들(즉, 비-재사용 팔레트 엔트리들)의 개수를 결정하는 데 이용될 수 있다. 이 때, 상기 배열 PalettePredictorEntryReuseFlags의 각 요소인 PalettePredictorEntryReuseFlags[ i ]는 팔레트 예측자 내 각각의 팔레트 엔트리가 팔레트 테이블(또는, 현재 팔레트)에서 재사용되는지 여부를 나타낼 수 있다. 예를 들어, 제1 값(e.g. 0)을 갖는 PalettePredictorEntryReuseFlags[ i ]는 i-번째 팔레트 엔트리가 팔레트 테이블에서 재사용되지 않음을 나타낼 수 있다. 이와 달리, 제2 값(e.g. 1)을 갖는 PalettePredictorEntryReuseFlags[ i ]는 i-번째 팔레트 엔트리가 팔레트 테이블에서 재사용됨을 나타낼 수 있다. 일 예에서, PalettePredictorEntryReuseFlags 배열의 모든 요소들은 제1 값(e.g., 0)으로 초기화될 수 있다.
일 예에서, palette_predictor_run의 값은, 비트스트림 적합성을 만족하기 위하여, 0 이상이고 ( PredictorPaletteSize[ startComp ] - predictorEntryIdx ) 이하의 범위 내에 있도록 제한될 수 있다. 여기서, PredictorPaletteSize[ startComp ]는 팔레트 테이블의 첫번째 컬러 성분(startComp)에 대한 팔레트 예측자의 크기를 나타낼 수 있다. predictorEntryIdx는 배열 PalettePredictorEntryReuseFlags 내에서 현재 위치에 대응할 수 있다. 한편, 변수 NumPredictedPaletteEntries는 팔레트 예측자로부터 재사용된 팔레트 테이블 내의 팔레트 엔트리들의 개수를 나타낼 수 있다. 일 예에서, NumPredictedPaletteEntries의 값은 0 이상이고 변수 maxNumPaletteEntries 이하의 범위 내에 있도록 제한될 수 있다. 여기서, 변수 maxNumPaletteEntries는 팔레트 테이블의 최대 크기를 나타낼 수 있다. 일 예에서, maxNumPaletteEntries는 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)이면 31이고, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)가 아니면 15일 수 있다.
신택스 요소 num_signalled_palette_entries는 팔레트 테이블의 첫번째 컬러 성분(startComp)에 대하여 명시적으로 시그널링되는 상기 팔레트 테이블 내의 팔레트 엔트리들의 개수를 나타낼 수 있다. num_signalled_palette_entries가 존재하지 않는 경우(즉, 시그널링되지 않는 경우), num_signalled_palette_entries의 값은 제1 값(e.g., 0)으로 추론될 수 있다.
num_signalled_palette_entries의 값에 기반하여, 팔레트 테이블 내의 첫번째 컬러 성분(startComp)에 대한 팔레트 테이블의 크기를 나타내는 변수 CurrentPaletteSize[startComp]가 아래의 수식 1과 같이 도출될 수 있다.
Figure PCTKR2021003432-appb-M000001
일 예에서, CurrentPaletteSize[ startComp ]의 값은 0 이상이고 maxNumPaletteEntries 이하의 범위 내에 있도록 제한될 수 있다. 즉, maxNumPaletteEntries는 CurrentPaletteSize[ startComp ]의 최대값을 나타낼 수 있다.
신택스 요소 new_palette_entries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 i-번째로 시그널링된 (새로운) 팔레트 엔트리의 값을 나타낼 수 있다.
변수 PredictorPaletteEntries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 팔레트 예측자 내의 i-번째 요소(즉, 팔레트 엔트리)를 나타낼 수 있다.
변수 CurrentPaletteEntries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 팔레트 테이블 내의 i-번째 요소(즉, 팔레트 엔트리)를 나타낼 수 있으며, 아래의 표 1과 같이 도출될 수 있다.
Figure PCTKR2021003432-appb-T000001
표 1을 참조하면, 팔레트 테이블(CurrentPaletteEntries[ cIdx ][ i ])은 팔레트 예측자로부터 재사용되는 팔레트 엔트리(PredictorPaletteEntries[ cIdx ][ i ] 및 시그널링된 (새로운) 팔레트 엔트리(new_palette_entries[ cIdx ][ i ])를 포함하여 구성될 수 있다. 또한, 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ]는 변수 CurrentPaletteEntries[ cIdx ][ i ]를 도출하는 데 이용될 수 있다.
한편, 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ] 및 팔레트 예측자를 나타내는 배열 PredictorPaletteEntries는 아래의 표 2와 같이 도출/수정(업데이트)될 수 있다.
Figure PCTKR2021003432-appb-T000002
표 2에서, 변수 startComp는 팔레트 테이블 내의 첫번째 컬러 성분을 나타내고, 변수 numComps는 팔레트 테이블 내의 컬러 성분들의 개수를 나타내며, 변수 maxNumPalettePredictorSize는 팔레트 예측자의 최대 허용 크기를 나타낼 수 있다. 상기 변수들은, 현재 블록의 트리 타입(treeType)을 기반으로 하는 아래의 조건들에 따라 결정될 수 있다.
- (조건 1) 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)인 경우, 변수 startComp는 0(즉, 루마 성분)으로 설정됨. 또한, 변수 numComps는, 현재 블록의 크로마 포맷이 모노크롬 또는 분리된(separate) 4:4:4 포맷인 경우(e.g., ChromaArrayType == 0)에는 1로 설정되고, 그 이외의 경우(e.g., ChromaArrayType == 0)에는 0으로 설정됨. 또한, 변수 maxNumPalettePredictorSize는 63으로 설정됨.
- (조건 2) 현재 블록의 트리 타입(treeType)이 듀얼 트리 루마(DUAL_TREE_LUMA)인 경우, 변수 startComp는 0(즉, 루마 성분)으로 설정되고, 변수 numComps는 1로 설정되며, 변수 maxNumPalettePredictorSize는 31로 설정됨.
- (조건 3) 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)인 경우, 변수 startComp는 1(즉, 제1 크로마 성분)으로 설정되고, 변수 numComps는 2로 설정되며, 변수 maxNumPalettePredictorSize는 31로 설정됨.
표 2를 참조하면, 변수 PredictorPaletteSize[ startComp ] 및 배열 PredictorPaletteEntries는, 변수 cIdx가 0이고 변수 numComps가 1인 경우, 또는 변수 cIdx가 2인 경우에만, 도출/수정(업데이트)될 수 있다.
한편, 표 2의 과정을 통해 도출/수정(업데이트)되는 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ]는, 신택스 요소 palette_predictor_run의 파싱 조건에 포함될 수 있다(810). 구체적으로, palette_predictor_run은 변수 predictorEntryIdx가 PredictorPaletteSize[ startComp ] 작은 경우에만 시그널링/파싱될 수 있다. 여기서, predictorEntryIdx는 배열 PalettePredictorEntryReuseFlags 내에서 현재 위치에 대응하며, 팔레트 테이블에서 재사용되는 팔레트 예측자 내 각각의 팔레트 엔트리의 인덱스 값을 가질 수 있다. 표 2의 방법에 기반하여 palette_predictor_run을 복호화하는 과정의 일 예는 도 9 내지 도 11에 도시된 바와 같다.
도 9 내지 도 11은 palette_predictor_run의 부호화/복호화 과정의 일 예를 나타내는 도면들이다.
먼저 도 9를 참조하면, CTU 내 세번째 CU(CU[2])가 팔레트 부호화/복호화된 경우, 전술한 표 2의 과정을 통해, 팔레트 최대 크기가 63인 팔레트 예측자(PredPLT)가 구성될 수 있다. 상기 팔레트 예측자는 7개의 팔레트 엔트리들(인덱스 0 내지 6)을 포함할 수 있으며, 각각의 팔레트 엔트리는 컬러 성분(Y, Cb, Cr) 별 소정의 대표 컬러값을 가질 수 있다.
그리고, CTU 내 네번째 CU(CU[3])가 팔레트 부호화/복호화되는 경우, 세번째 CU(CU[2])의 부호화/복호화 결과로서 구성된 팔레트 예측자(PredPLT)로부터 네번째 CU(CU[3])에 대한 팔레트 테이블(또는, 현재 팔레트)가 구성될 수 있다. 즉, 팔레트 예측자에 포함된 팔레트 엔트리들 중 적어도 하나가 팔레트 테이블에서 재사용될 수 있다.
도 10은 팔레트 예측자(PredPLT) 내 0번, 3번 및 5번 인덱스의 팔레트 엔트리들이 팔레트 테이블에서 재사용되는 경우를 나타낸다.
도 10을 참조하면, 부호화 단에서는, 팔레트 테이블에서 재사용되는 3개의 팔레트 엔트리들(0번, 3번 및 5번 인덱스)을 지시하기 위하여 신택스 요소 palette_predictor_run(도 8 참조)이 시그널링될 수 있다. 예를 들어, 0번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 3번 인덱스의 팔레트 엔트리를 지시하기 위하여, 3 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 5번 인덱스의 팔레트 엔트리를 지시하기 위하여, 2 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 5번 인덱스의 팔레트 엔트리는 팔레트 예측자(PredPLT) 내 마지막 팔레트 엔트리가 아니므로, 팔레트 예측자(PredPLT) 내에 더 이상의 재사용 팔레트 엔트리가 존재하지 않음을 나타내는 종료 지시자(termination indicator)가 시그널링될 필요가 있다. 이에 따라, 상기 종료 지시자로서, 1 값을 갖는 palette_predictor_run이 추가적으로 시그널링될 수 있다. 이 경우, 복호화 단에서는, palette_predictor_run의 값이 1 인지 여부에 기반하여 palette_predictor_run의 파싱 동작을 종료할 수 있으므로, 이전 팔레트 부호화/복호화 결과인 PredictorPaletteSize[ startComp ]에 대한 파싱 디펜던시(parsing dependencey)는 발생하지 않게 된다.
도 11은 팔레트 예측자(PredPLT) 내 0번, 3번, 5번 및 6번 인덱스들이 팔레트 테이블에서 재사용되는 경우를 나타낸다.
도 11을 참조하면, 부호화 단에서는, 팔레트 테이블에서 재사용되는 4개의 팔레트 엔트리들(0번, 3번, 5번 및 6번 인덱스)을 지시하기 위하여 신택스 요소 palette_predictor_run(도 8 참조)이 시그널링될 수 있다. 예를 들어, 0번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 3번 인덱스의 팔레트 엔트리를 지시하기 위하여, 3 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 5번 인덱스의 팔레트 엔트리를 지시하기 위하여, 2 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 6번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 6번 인덱스의 팔레트 엔트리는 팔레트 예측자(PredPLT) 내 마지막 팔레트 엔트리이므로, 팔레트 예측자(PredPLT) 내에 더 이상의 재사용 팔레트 엔트리가 존재하지 않음을 나타내는 종료 지시자(termination indicator)는 별도로 시그널링되지 않을 수 있다. 이 경우, 복호화 단에서는, palette_predictor_run의 파싱 동작을 종료하기 위하여 이전 팔레트 부호화/복호화 결과인 PredictorPaletteSize[ startComp ]를 참조해야 하며, 이 과정에서 파싱 디펜던시(parsing dependency)가 발생할 수 있다.
이와 같이, 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ]가 신택스 요소 palette_predictor_run의 파싱 조건에 포함됨에 따라, palette_coding 신택스의 파싱 단에서는 이전 팔레트 복호화 결과에 의존하게 되는 파싱 디펜던시(parsing dependency)가 발생할 수 있다. 이에 따라, 부호화/복호화 장치의 스루풋(throughput) 및 효율이 저하되는 문제가 발생할 수 있다.
상기 문제를 해결하기 위하여, 본 개시의 실시예들에 따르면, 신택스 요소 palette_predictor_run은 팔레트 예측자의 최대 (허용) 크기에 기반하여 복호화되고, 소정의 종료 지시자(e.g., 1 값을 갖는 palette_predictor_run)가 조건없이 시그널링될 수 있다. 또는, 신택스 요소 palette_predictor_run은 팔레트 예측자의 크기에 기반하여 복호화되고, 소정의 종료 지시자(e.g., 1 값을 갖는 palette_predictor_run)가 조건없이 시그널링될 수 있다. 또는, 신택스 요소 palette_predictor_run은 명시적으로 시그널링된 팔레트 예측자의 크기에 기반하여 복호화될 수 있다.
이하, 본 개시의 실시예들을 상세하게 설명한다.
실시예 1
본 개시의 실시예 1에 따르면, 팔레트 예측자 내의 재사용 팔레트 엔트리를 특정하기 위한 신택스 요소 palette_predictor_run은 팔레트 예측자의 최대 (허용) 크기를 나타내는 변수 maxNumPalettePredictorSize에 기반하여 복호화될 수 있다.
도 12는 본 개시의 일 실시예에 따른 palette_coding 신택스를 나타내는 도면이다. 도 7을 참조하여 전술한 바와 같이, 현재 블록에 대하여 팔레트 모드가 적용되는 경우(e.g., pred_mode_plt_flag == 1), palette_coding 신택스가 호출될 수 있다.
도 12를 참조하면, 변수 maxNumPalettePredictorSize는 팔레트 예측자의 최대 (허용) 크기를 나타내며, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)인지 여부에 기반하여 소정의 값으로 설정될 수 있다. 예를 들어, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)인 경우, maxNumPalettePredictorSize는 31로 설정될 수 있다. 이와 달리, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)가 아닌 경우, maxNumPalettePredictorSize는 15로 설정될 수 있다.
일 실시예에서, maxNumPalettePredictorSize는 현재 CTU의 분할 구조를 나타내는 소정의 플래그(e.g., qtbtt_dual_tree_intra_flag)에 기반하여 소정의 값으로 설정될 수 있다. 예를 들어, qtbtt_dual_tree_intra_flag가 제1 값(e.g., 0)을 갖는 경우, maxNumPalettePredictorSize는 63으로 설정될 수 있다. 이 때, 제1 값(e.g., 0)을 갖는 qtbtt_dual_tree_intra_flag는, 현재 블록이 I 슬라이스에 포함되고, 해당 슬라이스에 포함되는 CTU가 싱글 트리 구조로 분할됨을 나타낼 수 있다. 이와 달리, qtbtt_dual_tree_intra_flag가 제2 값(e.g., 1)을 갖는 경우, maxNumPalettePredictorSize는 31로 설정될 수 있다. 이 때, 제2 값(e.g., 1)을 갖는 qtbtt_dual_tree_intra_flag는, 현재 블록이 I 슬라이스에 포함되고, 해당 슬라이스에 포함되는 CTU가 64x64 루마 샘플 CU로 암묵적 쿼드트리 분할(implicit quadtree split)되며, 상기 64x64 루마 샘플 CU는 듀얼 트리의 루트 노드(root node)가 됨을 나타낼 수 있다.
한편, maxNumPalettePredictorSize에 기반하여, 팔레트 예측자 내의 팔레트 엔트리를 나타내는 변수 PredictorPaletteEntries[ cIdx ][ i ]가 표 3과 같이 도출될 수 있다.
Figure PCTKR2021003432-appb-T000003
표 3에서, 변수 startComp는 팔레트 테이블 내의 첫번째 컬러 성분을 나타내며, 현재 블록의 트리 타입(treeType)에 기반하여 1 또는 0으로 설정될 수 있다. 예를 들어, 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)인 경우, startComp는 1로 설정될 수 있다. 이와 달리, 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)가 아닌 경우, startComp는 0으로 설정될 수 있다.
또한, 변수 numComps는 팔레트 테이블 내의 컬러 성분들의 개수를 나타내며, 현재 블록의 트리 타입(treeType) 및 크로마 어레이 타입(ChromaArrayType)에 기반하여 0 내지 3으로 설정될 수 있다. 예를 들어, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)인 경우, 현재 블록의 크로마 어레이 타입(ChromaArrayType)이 0이면(즉, 모노크롬 포맷), numComps는 1로 설정될 수 있다. 이와 달리, 이 경우, 현재 블록의 크로마 어레이 타입(ChromaArrayType)이 0이 아니면(즉, 4:2:0, 4:2:2 또는 4:4:4 크로마 포맷), numComps는 3으로 설정될 수 있다. 또는, 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)인 경우, numComps는 2로 설정될 수 있다. 이와 달리, 현재 블록의 트리 타입(treeType)이 듀얼 트리 크로마(DUAL_TREE_CHROMA)가 아닌 경우, numComps는 1로 설정될 수 있다.
다시, 도 12로 돌아와, palette_coding 신택스는 팔레트 예측자에 관한 신택스 요소로서 palette_predictor_run, num_signalled_palette_entries 및 new_palette_entries를 포함할 수 있다. 이하, 도 8과 중복되는 내용에 대한 설명은 생략하기로 한다.
신택스 요소 palette_predictor_run은 배열 PalettePredictorEntryReuseFlags에서 비-제로 엔트리(즉, 재사용 팔레트 엔트리)에 선행하는 제로 엔트리들(즉, 비-재사용 팔레트 엔트리들)의 개수를 결정하는 데 이용될 수 있다. 이 때, 상기 배열 PalettePredictorEntryReuseFlags의 각 요소인 PalettePredictorEntryReuseFlags[ i ]는 팔레트 예측자 내 각각의 팔레트 엔트리가 팔레트 테이블(또는, 현재 팔레트)에서 재사용되는지 여부를 나타낼 수 있다. palette_predictor_run은 변수 predictorEntryIdx가 maxNumPalettePredictorSize 보다 작은 경우에만 시그널링/파싱될 수 있다(1210). 여기서, predictorEntryIdx는 배열 PalettePredictorEntryReuseFlags 내에서 현재 위치에 대응하며, 팔레트 테이블에서 재사용되는 팔레트 예측자 내 각각의 팔레트 엔트리의 인덱스 값을 가질 수 있다. 일 실시예에서, predictorEntryIdx는 palette_predictor_run에 기반하여 결정될 수 있다(1220). 예를 들어, palette_predictor_run의 값이 1보다 큰 경우에만, predictorEntryIdx의 값은 predictorEntryIdx에 palette_predictor_run - 1을 가산한 값으로 업데이트될 수 있다.
한편, 도 8을 참조하여 전술한 비트스트림 제약 조건은 도 12의 palette_predictor_run에는 적용되지 않을 수 있다. 즉, palette_predictor_run의 값은 0 이상이고 ( PredictorPaletteSize[ startComp ] - predictorEntryIdx ) 이하의 범위 내에 있도록 제한되지 않을 수 있다.
신택스 요소 num_signalled_palette_entries는 팔레트 테이블의 첫번째 컬러 성분(startComp)에 대하여 명시적으로 시그널링되는 상기 팔레트 테이블 내의 팔레트 엔트리들의 개수를 나타낼 수 있다. num_signalled_palette_entries가 존재하지 않는 경우(즉, 시그널링되지 않는 경우), num_signalled_palette_entries의 값은 제1 값(e.g., 0)으로 추론될 수 있다.
팔레트 테이블 내의 첫번째 컬러 성분(startComp)에 대한 팔레트 테이블의 크기를 나타내는 변수 CurrentPaletteSize[startComp]는 num_signalled_palette_entries에 기반하여 도출될 수 있으며, 그 구체적인 방법은 수식 1을 참조하여 전술한 바와 같다.
신택스 요소 new_palette_entries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 i-번째로 시그널링된 (새로운) 팔레트 엔트리의 값을 나타낼 수 있다.
변수 CurrentPaletteEntries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 팔레트 테이블 내의 i-번째 요소(즉, 팔레트 엔트리)를 나타낼 수 있으며, 표 1을 참조하여 전술한 방법으로 도출될 수 있다.
한편, 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ] 및 팔레트 예측자를 나타내는 배열 PredictorPaletteEntries는, 표 2를 참조하여 전술한 방법으로 도출/수정(업데이트)될 수 있다. 다만, 팔레트 예측자의 최대 (허용) 크기를 나타내는 변수 maxNumPalettePredictorSize가 전술한 바와 같이 현재 CTU의 분할 구조를 나타내는 소정의 플래그(e.g., qtbtt_dual_tree_intra_flag)에 기반하여 63 또는 31로 설정될 수 있다는 점에서, 표 2의 방법과는 상이할 수 있다.
한편, 표 2의 과정을 통해 도출/수정(업데이트)되는 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ]는, 신택스 요소 palette_predictor_run의 파싱 조건에 포함되지 않는다(1210). 즉, palette_predictor_run은 팔레트 예측자의 최대 (허용) 크기를 나타내는 변수 maxNumPalettePredictorSize에 기반하여 복호화될 수 있다. 그 결과, 변수 predictorEntryIdx가 가리키는 팔레트 엔트리가 팔레트 예측자 내에 존재하지 않는 경우(i.e., predictorEntryIdx == PredictorPaletteSize[ startComp ]), palette_predictor_run의 시그널링/파싱을 그대로 종료하는 도 8의 경우와 달리, 소정의 값(e.g., 1)을 갖는 palette_predictor_run이 시그널링/파싱될 수 있다. 이 경우, 상기 소정의 값(e.g., 1)을 갖는 palette_predictor_run은 배열 PalettePredictorEntryReuseFlags를 구성하는 과정을 종료하기 위한 종료 지시자(terminiation indicator)로서의 기능을 수행할 수 있다(1230).
도 13 및 도 14는 본 개시의 일 실시예에 따른 palette_predictor_run의 부호화/복호화 과정의 일 예를 나타내는 도면들이다. 도 13는 도 10을 참조하여 전술한 일 예에 대응하고, 도 14는 도 11을 참조하여 전술한 일 예에 대응한다. 따라서, 중복된 설명은 생략하고, 그 차이점을 중심으로 설명하기로 한다.
먼저, 도 13을 참조하면, 부호화 단에서는, 팔레트 테이블에서 재사용되는 3개의 팔레트 엔트리들(0번, 3번 및 5번 인덱스)을 지시하기 위하여 신택스 요소 palette_predictor_run(도 12 참조)이 시그널링될 수 있다. 예를 들어, 0번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 3번 인덱스의 팔레트 엔트리를 지시하기 위하여, 3 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 5번 인덱스의 팔레트 엔트리를 지시하기 위하여, 2 값을 갖는 palette_predictor_run이 시그널링될 수 있다.
한편, 6번 인덱스의 팔레트 엔트리는 팔레트 테이블에서 재사용되지 않으므로(즉, 팔레트 예측자(PredPLT) 내에 더 이상의 재사용 팔레트 엔트리가 존재하지 않으므로), 종료 지시자로서 1 값을 갖는 palette_predictor_run이 추가적으로 시그널링될 수 있다.
다음으로, 도 14를 참조하면, 부호화 단에서는, 팔레트 테이블에서 재사용되는 4개의 팔레트 엔트리들(0번, 3번, 5번 및 6번 인덱스)을 지시하기 위하여 신택스 요소 palette_predictor_run(도 12 참조)이 시그널링될 수 있다. 예를 들어, 0번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 3번 인덱스의 팔레트 엔트리를 지시하기 위하여, 3 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 5번 인덱스의 팔레트 엔트리를 지시하기 위하여, 2 값을 갖는 palette_predictor_run이 시그널링될 수 있다. 다음으로, 6번 인덱스의 팔레트 엔트리를 지시하기 위하여, 0 값을 갖는 palette_predictor_run이 시그널링될 수 있다.
한편, 6번 인덱스의 팔레트 엔트리는 팔레트 예측자(PredPLT) 내 마지막 팔레트 엔트리이지만, palette_predictor_run이 팔레트 예측자의 최대 (허용) 크기에 기반하여 복호화되므로 상기 복호화 과정을 종료하기 위한 종료 지시자(termination indicator)가 별도로 시그널링될 필요가 있다. 이에 따라, 종료 지시자로서 1 값을 갖는 palette_predictor_run이 추가적으로 시그널링될 수 있다.
이와 같이, 본 개시의 실시예 2에 따르면, 팔레트 예측자(PredPLT) 내에 더 이상의 재사용 팔레트 엔트리가 존재하지 않음을 나타내는 종료 지시자는, 변수 predictorEntryIdx가 가리키는 팔레트 엔트리가 팔레트 예측자(PredPLT) 내에 존재하는지 여부와 관계없이 시그널링될 수 있다. 이에 따라, 복호화 단에서는, palette_predictor_run의 파싱 동작을 종료하기 위하여 이전 팔레트 부호화/복호화 결과인 PredictorPaletteSize[ startComp ]를 참조할 필요가 없게 되어 파싱 디펜던시(parsing dependency)가 발생하지 않으므로, 복호화 장치의 스루풋(throughput) 및 효율은 보다 향상될 수 있다.
한편, 본 개시의 실시예 2의 변형예로서, 신택스 요소 palette_predictor_run은 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ]에 기반하여 복호화되지만, 소정의 종료 지시자(e.g., 1 값을 갖는 palette_predictor_run)는 조건없이 시그널링될 수 있다. 이 경우, palette_coding 신택스의 구조는 도 8에 도시된 바와 같지만, 팔레트 예측자(PredPLT) 내의 마지막 팔레트 엔트리에 도달한 경우에도, 상기 종료 지시자에 의해 palette_predictor_run의 파싱 동작을 종료할 수 있으므로, 파싱 디펜던시(parsing dependency)가 제거될 수 있다.
실시예 2
본 개시의 실시예 2에 따르면, 팔레트 예측자 내의 재사용 팔레트 엔트리를 특정하기 위한 신택스 요소 palette_predictor_run은 팔레트 예측자의 크기를 나타내는 신택스 요소 num_predictor_palette_entries에 기반하여 복호화될 수 있다.
도 15는 본 개시의 일 실시예에 따른 palette_coding 신택스를 나타내는 도면이다. 도 7을 참조하여 전술한 바와 같이, 현재 블록에 대하여 팔레트 모드가 적용되는 경우(e.g., pred_mode_plt_flag == 1), palette_coding 신택스가 호출될 수 있다.
도 15를 참조하면, palette_coding 신택스는 팔레트 예측자에 관한 신택스 요소로서 num_predictor_palette_entries, palette_predictor_run, num_signalled_palette_entries 및 new_palette_entries를 포함할 수 있다. 이하, 도 8과 중복되는 내용에 대한 설명은 생략하기로 한다.
신택스 요소 num_predictor_palette_entries는 팔레트 예측자 내의 팔레트 엔트리들의 개수(즉, 팔레트 예측자의 크기)를 나타낼 수 있다. 종래의 경우, 팔레트 예측자의 크기는, 이전의 팔레트 부호화/복호화 결과에 기반하여 전술한 표 2와 같은 방법으로 도출될 수 있다. 그리고, 상기 도출된 팔레트 예측자의 크기(PredictorPaletteSize[ startComp ])는 신택스 요소 palette_predictor_run의 시그널링/파싱 조건을 구성함에 따라, 복호화 단에서는 이전 팔레트 부호화/복호화 결과에 의존하게 되는 파싱 디펜던시(parsing dependency)가 발생할 수 밖에 없었다. 하지만, 본 개시의 실시예 2에 따르면, 팔레트 예측자의 크기는 별도로 시그널링된 num_predictor_palette_entries를 파싱함으서 도출될 수 있다. 따라서, 상기 도출된 팔레트 예측자의 크기가 신택스 요소 palette_predictor_run의 시그널링/파싱 조건을 구성하는지 여부와 관계없이, 복호화 단에서는 이전 팔레트 부호화/복호화 결과에 의존한 필요가 없게 되므로, 파싱 디펜던시는 제거될 수 있다. 한편, num_predictor_palette_entries가 존재하지 않는 경우(즉, 시그널링되지 않는 경우), num_predictor_palette_entries의 값은 제1 값(e.g., 0)으로 추론될 수 있다.
일 실시예에서, num_predictor_palette_entries는 0차 Exp-Golomb (0-th order Exp-Golomb, EG0) 이진화 프로세스 또는 바이패스 코딩을 이용하여 부호화/복호화될 수 있다. 또한, num_predictor_palette_entries는 고정 길이(Fixed-length) 이진화 프로세스 또는 컨텍스트 코딩 등을 이용하여 부호화될 수도 있다.
변수 numPredictorPaletteEntries는 팔레트 테이블을 위해 팔레트 예측자로부터 재사용된 팔레트 엔트리들의 개수를 나타내며, num_predictor_palette_entries과 동일한 값으로 도출될 수 있다. 일 예에서, numPredictorPaletteEntries의 값은, 비트스트림 적합성을 만족하기 위하여, 0 이상이고 PredictorPaletteSize[startComp] 이하의 범위 내에 있도록 제한될 수 있다.
신택스 요소 palette_predictor_run은 배열 PalettePredictorEntryReuseFlags에서 비-제로 엔트리(즉, 재사용 팔레트 엔트리)에 선행하는 제로 엔트리들(즉, 비-재사용 팔레트 엔트리들)의 개수를 결정하는 데 이용될 수 있다. palette_predictor_run은 변수 predictorEntryIdx가 numPredictorPaletteEntries 보다 작은 경우에만 시그널링/파싱될 수 있다(1510). 여기서, predictorEntryIdx는 배열 PalettePredictorEntryReuseFlags 내에서 현재 위치에 대응하며, 팔레트 테이블에서 재사용되는 팔레트 예측자 내 각각의 팔레트 엔트리의 인덱스 값을 가질 수 있다. 일 실시예에서, predictorEntryIdx는 palette_predictor_run에 기반하여 결정될 수 있다(1520). 예를 들어, palette_predictor_run의 값이 1보다 큰 경우에만, predictorEntryIdx의 값은 predictorEntryIdx에 palette_predictor_run - 1을 가산한 값으로 업데이트될 수 있다.
일 예에서, palette_predictor_run의 값은, 비트스트림 적합성을 만족하기 위하여, 0 이상이고 ( numPredictorPaletteEntries - predictorEntryIdx ) 이하의 범위 내에 있도록 제한될 수 있다. 여기서, 변수 NumPredictedPaletteEntries는 팔레트 예측자로부터 재사용되는 팔레트 테이블 내의 팔레트 엔트리들의 개수를 나타낼 수 있다. 일 예에서, NumPredictedPaletteEntries의 값은 0 이상이고 변수 maxNumPaletteEntries 이하의 범위 내에 있도록 제한될 수 있다. 여기서, 변수 maxNumPaletteEntries는 팔레트 테이블의 최대 크기를 나타낼 수 있다. 일 예에서, maxNumPaletteEntries는 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)이면 31이고, 현재 블록의 트리 타입(treeType)이 싱글 트리(SINGLE_TREE)가 아니면 15일 수 있다.
신택스 요소 num_signalled_palette_entries는 팔레트 테이블의 첫번째 컬러 성분(startComp)에 대하여 명시적으로 시그널링되는 상기 팔레트 테이블 내의 팔레트 엔트리들의 개수를 나타낼 수 있다. num_signalled_palette_entries가 존재하지 않는 경우(즉, 시그널링되지 않는 경우), num_signalled_palette_entries의 값은 제1 값(e.g., 0)으로 추론될 수 있다.
신택스 요소 new_palette_entries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 i-번째로 시그널링된 (새로운) 팔레트 엔트리의 값을 나타낼 수 있다.
변수 PredictorPaletteEntries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 팔레트 예측자 내의 i-번째 요소(즉, 팔레트 엔트리)를 나타낼 수 있다.
변수 CurrentPaletteEntries[ cIdx ][ i ]는 특정 컬러 성분(cIdx)에 대하여 팔레트 테이블 내의 i-번째 요소(즉, 팔레트 엔트리)를 나타낼 수 있으며, 아래의 표 4와 같이 도출될 수 있다.
Figure PCTKR2021003432-appb-T000004
표 4를 참조하면, 팔레트 테이블(CurrentPaletteEntries[ cIdx ][ i ])은 팔레트 예측자로부터 재사용되는 팔레트 엔트리(PredictorPaletteEntries[ cIdx ][ i ] 및 시그널링된 (새로운) 팔레트 엔트리(new_palette_entries[ cIdx ][ i ])를 포함하여 구성될 수 있다. 또한, 전술한 표 1의 방법과 달리, 팔레트 테이블(CurrentPaletteEntries[ cIdx ][ i ])은 비트스트림을 통해 획득된 팔레트 예측자의 크기를 나타내는 신택스 요소 numPredictorPaletteEntries에 기반하여 도출될 수 있다. 즉, 상기 과정에서, 이전 팔레트 복호화 결과에 기반하여 도출되는 변수 PredictorPaletteSize[ startComp ]를 고려하지 않으므로, 파싱 디펜던시가 제거될 수 있다.
한편, 팔레트 예측자의 크기를 나타내는 변수 PredictorPaletteSize[ startComp ] 및 팔레트 예측자를 나타내는 배열 PredictorPaletteEntries는 아래의 표 5와 같이 도출/수정(업데이트)될 수 있다.
Figure PCTKR2021003432-appb-T000005
표 5를 참조하면, 변수 PredictorPaletteSize[ startComp ] 및 배열 PredictorPaletteEntries는, 변수 cIdx가 0이고 변수 numComps가 1인 경우, 또는 변수 cIdx가 2인 경우에만, 도출/수정(업데이트)될 수 있다. 또한, 전술한 표 2의 방법과 달리, 팔레트 테이블에서 재사용되지 않은 팔레트 엔트리를 이용하여 팔레트 예측자를 구성하는 과정은, 비트스트림을 통해 획득된 팔레트 예측자의 크기를 나타내는 신택스 요소 numPredictorPaletteEntries에 기반하여 수행될 수 있다. 즉, 상기 과정에서, 이전 팔레트 복호화 결과에 기반하여 도출되는 변수 PredictorPaletteSize[ startComp ]를 고려하지 않으므로, 파싱 디펜던시가 제거될 수 있다.
이하, 도 16 및 도 17을 참조하여, 본 개시의 일 실시예에 따른 영상 부호화/복호화 방법을 상세하게 설명하기로 한다.
도 16은 본 개시의 일 실시예에 따른 영상 부호화 방법을 나타내는 흐름도이다.
도 16의 팔레트 부호화 방법은 도 2의 영상 부호화 장치에 의해 수행될 수 있다. 예를 들어, 단계 S1610 및 단계 S1620은 인트라 예측부(165) 또는 별개의 기능 블록(e.g. 팔레트 인코딩부)에 의하여 수행될 수 있다. 또한, 단계 S1630 및 단계 S1640은 엔트로피 인코딩부(190)에 의하여 수행될 수 있다.
도 16을 참조하면, 영상 부호화 장치는 현재 블록에 대한 팔레트 예측자에 기반하여 팔레트 테이블을 구성할 수 있다(S1610).
팔레트 예측자는 적어도 하나의 팔레트 엔트리(대표 컬러값) 및 각각의 팔레트 엔트리를 식별하기 위한 팔레트 인덱스를 포함할 수 있다. 현재 블록이 CTU 또는 슬라이스 내에서 처음으로 팔레트 부호화되는 블록인 경우, 팔레트 예측자는 소정의 초기값(e.g., 0)을 가질 수 있다. 이와 달리, 현재 블록이 CTU 또는 슬라이스 내에서 처음으로 팔레트 부호화되는 블록이 아닌 경우, 팔레트 예측자는 이전 팔레트 부호화 과정을 통해 기 결정된 값을 가질 수 있다.
팔레트 테이블(또는, 현재 팔레트)는 팔레트 예측자에 기반하여 구성될 수 있다. 예를 들어, 팔레트 테이블은 팔레트 예측자로부터 재사용되는 적어도 하나의 팔레트 엔트리와 각각의 팔레트 엔트리를 식별하기 위한 팔레트 인덱스를 포함할 수 있다.
일 예에서, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 컬러 포맷(또는, 크로마 포맷)에 따라 다양하게 구성될 수 있다. 예를 들어, 현재 블록의 컬러 포맷이 모노크롬(monochrome) 포맷인 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분에 대한 팔레트 엔트리만을 포함할 수 있다. 이와 달리, 현재 블록의 컬러 포맷이 4:2:0, 4:2:2 또는 4:4:4 포맷인 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분 및 크로마 성분 각각에 대한 팔레트 엔트리를 포함할 수 있다.
일 예에서, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 분할 구조에 따라 다양하게 구성될 수 있다. 예를 들어, 현재 블록이 싱글 트리 구조를 갖는 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분 및 크로마 성분에 대하여 공통적으로 적용되는 단일 구성을 가질 수 있다. 이와 달리, 현재 블록이 듀얼 트리 구조를 갖는 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분 및 크로마 성분 각각에 대하여 개별적으로 적용되는 다중 구성을 가질 수 있다. 예를 들어, 듀얼 트리 구조의 현재 블록에 대한 팔레트 예측자는 루마 성분에 대한 루마 팔레트 예측자 및 크로마 성분에 대한 크로마 팔레트 예측자를 포함할 수 있다. 이 경우, 루마 팔레트 예측자에 포함되는 팔레트 엔트리들의 개수는 크로마 팔레트 예측자에 포함되는 팔레트 엔트리들의 개수와 다를 수 있다.
영상 부호화 장치는 팔레트 테이블에 기반하여 현재 블록에 대한 팔레트 인덱스 맵을 생성할 수 있다(S1620).
팔레트 인덱스 맵은, 현재 블록 내의 각각의 샘플에 팔레트 테이블 내의 소정의 팔레트 인덱스를 매핑시킨 것을 의미할 수 있다. 예를 들어, 현재 블록 내의 복수의 샘플들 중에서, 팔레트 테이블에서 정의된 대표 컬러값과 동일 또는 유사한 샘플값을 갖는 샘플에 대해서는, 해당 대표 컬러값을 지시하는 팔레트 인덱스가 매핑될 수 있다. 이와 달리, 현재 블록의 복수의 샘플들 중에서, 팔레트 테이블에서 정의된 대표 컬러값과 비유사한 샘플값을 갖는 샘플(탈출 샘플)에 대해서는, 탈출 팔레트 인덱스가 매핑될 수 있다. 일 예에서, 각 샘플의 픽셀값이 팔레트 테이블에 정의된 대표 컬러값과 유사한지 여부는 소정의 임계치를 기준으로 판별될 수 있다. 예를 들어, 각 샘플의 샘플값과 대표 컬러값의 차이가 소정의 임계치 이하인 경우, 해당 샘플에는 대표 컬러값을 지시하는 팔레트 인덱스가 매핑될 수 있다. 이와 달리, 각 샘플의 샘플값과 대표 컬러값의 차이가 소정의 임계치를 초과하는 경우, 해당 샘플에는 탈출 팔레트 인덱스가 매핑될 수 있다.
영상 부호화 장치는 팔레트 인덱스 맵에 기반하여 현재 블록을 부호화할 수 있다(S1630).
현재 블록의 부호화 과정은 팔레트 인덱스 맵 내의 팔레트 인덱스들을 소정의 스캔 방식에 따라 스캔함으로써 수행될 수 있다. 구체적으로, 영상 부호화 장치는 현재 블록에 매핑된 팔레트 인덱스들을 소정의 스캔 방식에 따라 스캔함으로써, 상기 팔레트 인덱스들 각각의 부호화 모드(팔레트 샘플 모드)를 결정할 수 있다.
팔레트 부호화를 위한 스캔 방식은, 도 5를 참조하여 전술한 바와 같이, 수평 트래버스 스캔(horizontal traverse scan) 및 수직 트래버스 스캔(vertical traverse scan)을 포함할 수 있다. 일 예에서, 스캔 방식에 관한 정보는 palette_transpose_flag를 이용하여 시그널링될 수 있다. 예를 들어, 현재 블록의 팔레트 부호화를 위해 수평 트래버스 스캔이 이용되는 경우, 제1 값(e.g. 0)을 갖는 palette_transpose_flag가 시그널링될 수 있다. 이와 달리, 현재 블록의 팔레트 부호화를 위해 수직 트래버스 스캔이 이용되는 경우, 제2 값(e.g. 1)을 갖는 palette_transpose_flag가 시그널링될 수 있다.
현재 블록에 매핑된 팔레트 인덱스들 각각을 부호화하기 위한 부호화 모드는 팔레트 샘플 모드라고 지칭될 수 있다. 팔레트 샘플 모드는 INDEX 모드 및 COPY_ABOVE 모드를 포함할 수 있다. 팔레트 샘플 모드가 INDEX 모드로 결정된 경우, 해당 팔레트 인덱스의 값이 부호화될 수 있다. 이와 달리, 팔레트 샘플 모드가 COPY_ABOVE 모드로 결정된 경우, 해당 팔레트 인덱스의 값은 부호화되지 않고, 해당 팔레트 인덱스가 바로 상단 행의 동일 위치에 존재하는 팔레트 인덱스와 동일한 값을 갖는다는 것을 나타내는 정보가 부호화될 수 있다. 일 예에서, 팔레트 샘플 모드에 관한 정보는 copy_above_palette_indices_flag를 이용하여 시그널링될 수 있다. 예를 들어, 현재 샘플에 대한 팔레트 샘플 모드가 INDEX 모드로 결정된 경우, 제1 값(e.g. 0)을 갖는 copy_above_palette_indices_flag가 시그널링될 수 있다. 이와 달리, 현재 샘플에 대한 팔레트 샘플 모드가 COPY_ABOVE 모드로 결정된 경우, 제2 값(e.g. 1)을 갖는 copy_above_palette_indices_flag가 시그널링될 수 있다.
INDEX 모드 및 COPY_ABOVE 모드에서, 동일한 팔레트 샘플 모드를 이용하여 연속적으로 부호화된 팔레트 인덱스들의 개수를 나타내는 런-값 정보가 추가적으로 부호화될 수 있다.
한편, 탈출 샘플의 경우, 상기 탈출 샘플의 양자화된 샘플값이 직접 부호화될 수 있다. 일 예에서, 현재 블록이 탈출 샘플을 포함하는지 여부는 탈출 샘플 플래그(e.g., palette_escape_val_present_flag)를 이용하여 시그널링될 수 있다. 예를 들어, 현재 블록이 탈출 샘플을 포함하지 않는 경우, 제1 값(e.g. 0)을 갖는 palette_escape_val_present_flag가 시그널링될 수 있다. 이와 달리, 현재 블록이 탈출 샘플을 포함하는 경우, 제2 값(e.g. 1)을 갖는 palette_escape_val_present_flag가 시그널링될 수 있다.
영상 부호화 장치는 부호화된 현재 블록의 팔레트 예측 정보 및 팔레트 인덱스 정보를 포함하는 비트스트림을 생성할 수 있다(S1640).
팔레트 예측 정보는 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보(e.g., palette_predictor_run)를 포함할 수 있다.
일 실시예에서, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 크기보다 작은 경우에만, 상기 비트스트림 내에 부호화될 수 있다.
다른 실시예에서, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 최대 크기보다 작은 경우에만, 상기 비트스트림 내에 부호화될 수 있다. 여기서, 상기 팔레트 예측자의 최대 크기는 상기 팔레트 예측자에 포함될 수 있는 팔레트 엔트리들의 최대 개수를 의미하며, 현재 블록을 포함하는 CTU(coding tree unit)의 분할 구조에 기반하여 결정될 수 있다. 예를 들어, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU(coding tree unit)가 싱글 트리 구조로 분할되는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 63으로 결정될 수 있다. 또는, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU(coding tree unit)가 64x64 루마 샘플 CU(coding unit)로 암묵적 쿼드트리 분할(implicit quadtree split)되며, 상기 64x64 루마 샘플 CU는 듀얼 트리의 루트 노드(root node)가 되는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 31로 결정될 수 있다.
한편, 일 실시예에서, 상기 제1 팔레트 엔트리의 인덱스 값은, 상기 런-값 정보에 기반하여 결정될 수 있다. 예를 들어, 상기 런-값이 1보다 큰 경우에만, 상기 제1 팔레트 엔트리의 인덱스 값은 상기 런-값을 가산한 후 1을 차감함으로써 업데이트될 수 있다.
팔레트 인덱스 정보는 팔레트 인덱스 맵에 관한 정보를 포함할 수 있다. 예를 들어, 팔레트 인덱스 정보는 현재 블록에 매핑된 적어도 하나의 팔레트 인덱스를 나타내는 PaletteIndexMap[xC][yC]를 포함할 수 있다. 또한, 팔레트 인덱스 정보는 팔레트 인덱스 맵에 포함된 팔레트 인덱스의 런-값을 나타내는 PaletteRunMinus1을 포함할 수 있다.
한편, 영상 부호화 방법은, 현재 블록에 대한 팔레트 테이블을 이용하여 팔레트 예측자를 업데이트하는 단계를 더 포함할 수 있다. 예를 들어, 영상 부호화 장치는 팔레트 테이블에 포함된 적어도 하나의 팔레트 엔트리를 팔레트 예측자에 추가함으로써, 팔레트 예측자를 업데이트할 수 있다. 또한, 영상 부호화 장치는 팔레트 예측자에 포함된 적어도 하나의 팔레트 엔트리를 팔레트 테이블에 포함된 적어도 하나의 팔레트 엔트리로 대체함으로써, 팔레트 예측자를 업데이트할 수 있다. 이 경우, 팔레트 예측자에서 대체되는 팔레트 엔트리는 선입 선출 방식(FIFO)에 따라 가장 오래된 팔레트 엔트리 또는 가장 적은 빈도로 사용된 팔레트 엔트리로 결정될 수 있다.
일 예에서, 팔레트 예측자에 대한 업데이트 과정은, 팔레트 예측자가 최대 크기에 도달할 때까지 계속하여 수행될 수 있다. 팔레트 예측자가 최대 크기에 도달하지 못한 경우, 팔레트 테이블에서 재사용되지 않은 팔레트 예측자 내의 적어도 하나의 팔레트 엔트리가 팔레트 예측자에 추가될 수 있다. 이를 팔레트 충전(palette stuffing)이라고 지칭할 수 있다. 그리고, 업데이트된 팔레트 예측자에 관한 정보가 부호화되어 시그널링될 수 있다.
도 17은 본 개시의 일 실시예에 따른 팔레트 복호화 방법을 나타내는 흐름도이다.
도 17의 팔레트 복호화 방법은 도 3의 영상 복호화 장치에 의해 수행될 수 있다. 예를 들어, 단계 S1710 내지 단계 S1730은 인트라 예측부(265)에 의하여 수행될 수 있다. 또한, 단계 S1740은 엔트로피 디코딩부(210)에 의하여 수행될 수 있다.
도 17을 참조하면, 영상 복호화 장치는 비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득할 수 있다(S1710).
팔레트 예측 정보는 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보(e.g., palette_predictor_run)를 포함할 수 있다.
일 실시예에서, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득될 수 있다. 이 때, 상기 팔레트 예측자의 크기는 상기 현재 블록 이전에 복호화된 블록에 대한 팔레트 테이블에 기반하여 결정될 수 있다. 예를 들어, 복호화 순서상 현재 블록에 선행하는 블록에 대하여 팔레트 복호화가 수행된 경우, 상기 선행 블록에 대한 팔레트 테이블에 기반하여, 팔레트 예측자 및 그 크기가 업데이트될 수 있다. 그리고, 상기 업데이트된 팔레트 예측자는 상기 현재 블록의 팔레트 복호화를 위해 이용될 수 있다. 팔레트 예측자 및 그 크기를 업데이트하는 방법은 표 1 또는 표 5를 참조하여 전술한 바와 같다. 한편, 상기 팔레트 예측자의 크기는 상기 비트스트림으로부터 회득되는 상기 팔레트 예측자의 크기 정보에 기반하여 결정될 수 있다. 예를 들어, 상기 팔레트 예측자의 크기는 비트스트림으로부터 명시적으로 시그널링되는 신택스 요소 num_predictor_palette_entries에 기반하여 결정될 수 있다.
다른 실시예에서, 상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 최대 크기보다 작은 경우에만, 상기 비트스트림 내에 부호화될 수 있다. 여기서, 상기 팔레트 예측자의 최대 크기는 상기 팔레트 예측자에 포함될 수 있는 팔레트 엔트리들의 최대 개수를 의미하며, 현재 블록을 포함하는 CTU(coding tree unit)의 분할 구조를 나타내는 소정의 플래그(e.g., qtbtt_dual_tree_intra_flag)에 기반하여 결정될 수 있다. 예를 들어, qtbtt_dual_tree_intra_flag가, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU가 싱글 트리 구조로 분할되는 것을 나타내는 제1 값(e.g., 0)을 갖는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 63으로 결정될 수 있다. 또는, qtbtt_dual_tree_intra_flag가, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU가 64x64 루마 샘플 CU(coding unit)로 암묵적 쿼드트리 분할(implicit quadtree split)되며, 상기 64x64 루마 샘플 CU는 듀얼 트리의 루트 노드(root node)가 되는 것을 나타내는 제2 값(e.g., 1)을 갖는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 31로 결정될 수 있다.
한편, 일 실시예에서, 상기 제1 팔레트 엔트리의 인덱스 값은, 상기 런-값 정보에 기반하여 결정될 수 있다. 예를 들어, 상기 런-값이 1보다 큰 경우에만, 상기 제1 팔레트 엔트리의 인덱스 값은 상기 런-값을 가산한 후 1을 차감함으로써 업데이트될 수 있다.
팔레트 인덱스 정보는 팔레트 인덱스 맵에 관한 정보를 포함할 수 있다. 일 예에서, 영상 복호화 장치는 비트스트림에 포함된 PaletteIndexMap[xC][yC]를 복호화함으로써, 현재 블록에 매핑된 적어도 하나의 팔레트 인덱스를 획득할 수 있다. 여기서, xC 및 yC는 현재 블록이 속한 CTU(또는, 슬라이스)의 좌상단 샘플을 기준으로 현재 샘플의 상대적인 위치를 나타낼 수 있다. 일 예에서, 영상 복호화 장치는 비트스트림에 포함된 PaletteRunMinus1을 복호화함으로써, 팔레트 인덱스 맵에 포함된 팔레트 인덱스의 런-값 정보를 획득할 수 있다.
영상 복호화 장치는 팔레트 예측 정보에 기반하여, 현재 블록에 대한 팔레트 테이블을 구성할 수 있다(S1720).
일 예에서, 영상 복호화 장치는 비트스트림으로부터 획득된 PredictorPaletteEntries[cIdx][i]에 기반하여, 현재 블록에 대한 팔레트 예측자를 구성할 수 있다. 팔레트 예측자는, 예를 들어 현재 블록을 포함하는 CTU(또는, 슬라이스)의 최초 복호화 시점에서 초기화된 소정의 값(e.g. 0)을 가질 수 있다. 또는, 팔레트 예측자는 이전 팔레트 복호화 과정에서 업데이트된 팔레트 예측자와 동일한 구성을 가질 수 있다.
팔레트 테이블(또는, 현재 팔레트)는 팔레트 예측자에 기반하여 구성될 수 있다. 팔레트 테이블은 팔레트 예측자에 포함된 팔레트 엔트리 및 비트스트림으로부터 획득되는 새로운 팔레트 엔트리 중 적어도 하나와 각각의 팔레트 엔트리를 식별하기 위한 팔레트 인덱스를 포함할 수 있다.
일 예에서, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 컬러 포맷(또는, 크로마 포맷)에 따라 다양하게 구성될 수 있다. 예를 들어, 팔레트 예측자 및 팔레트 테이블은, 현재 블록의 컬러 포맷에 따라, 루마 성분에 대한 팔레트 엔트리만을 포함하거나, 또는 루마 성분 및 크로마 성분 각각에 대한 팔레트 엔트리를 모두 포함할 수 있다.
일 예에서, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 분할 구조에 따라 다양하게 구성될 수 있다. 예를 들어, 현재 블록이 싱글 트리 구조를 갖는 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분 및 크로마 성분에 공통적으로 적용되는 단일 구성을 가질 수 있다. 이와 달리, 현재 블록이 듀얼 트리 구조를 갖는 경우, 팔레트 예측자 및 팔레트 테이블은 현재 블록의 루마 성분 및 크로마 성분 각각에 대해 별도로 적용되는 다중 구성을 가질 수 있다.
영상 복호화 장치는 팔레트 인덱스 정보에 기반하여 현재 블록에 대한 팔레트 인덱스 맵을 생성할 수 있다(S1730). 구체적으로, 영상 복호화 장치는, 비트스트림으로부터 획득된 팔레트 인덱스, 팔레트 샘플 모드 및 팔레트 샘플 모드의 런-값을 이용하여, 소정의 스캔 방식에 따라 현재 블록 내의 각각의 샘플에 팔레트 인덱스를 매핑함으로써, 팔레트 인덱스 맵을 생성할 수 있다.
팔레트 복호화를 위한 스캔 방식은, 도 5를 참조하여 전술한 바와 같이, 수평 트래버스 스캔(horizontal traverse scan) 및 수직 트래버스 스캔(vertical traverse scan)을 포함할 수 있다. 일 예에서, 팔레트 복호화를 위한 스캔 방식은 비트스트림에 포함된 palette_transpose_flag를 복호화함으로써 결정될 수 있다. 예를 들어, palette_transpose_flag가 제1 값(e.g. 0)을 갖는 경우, 팔레트 복호화를 위한 스캔 방식은 수평 트래버스 스캔으로 결정될 수 있다. 이와 달리, palette_transpose_flag가 제2 값(e.g. 1)을 갖는 경우, 팔레트 복호화를 위한 스캔 방식은 수직 트래버스 스캔으로 결정될 수 있다.
팔레트 샘플 모드는, 전술한 바와 같이, INDEX 모드 및 COPY_ABOVE 모드를 포함할 수 있다. 현재 샘플에 INDEX 모드가 적용되는 경우, 상기 현재 샘플에 매핑되는 팔레트 인덱스의 값은 비트스트림으로부터 직접 획득될 수 있다. 이에 반해, 현재 샘플에 COPY_ABOVE 모드가 적용되는 경우, 상기 현재 샘플에 매핑되는 팔레트 인덱스의 값은 상기 현재 샘플의 상단 행의 동일 위치 샘플에 매핑된 팔레트 인덱스의 값으로 결정될 수 있다.
한편, 현재 샘플이 탈출 샘플인 경우, 상기 현재 샘플의 양자화된 픽셀값이 비트스트림으로부터 직접 획득될 수 있다. 탈출 샘플에는 탈출 팔레트 인덱스가 매핑될 수 있다.
영상 복호화 장치는 현재 블록에 대한 팔레트 테이블 및 팔레트 인덱스 맵에 기반하여 현재 블록을 복호화할 수 있다(S1740). 구체적으로, 영상 복호화 장치는, 팔레트 테이블을 참조하여, 팔레트 인덱스 맵 내의 각각의 팔레트 인덱스의 값을 대표 컬러값에 역매핑(inverse mapping)함으로써, 현재 블록에 대한 예측 블록을 생성할 수 있다.
한편, 영상 복호화 방법은, 현재 블록에 대한 팔레트 테이블을 이용하여 팔레트 예측자를 업데이트하는 단계를 더 포함할 수 있다. 예를 들어, 영상 복호화 장치는 영상 복호화 장치는 팔레트 테이블에 포함된 적어도 하나의 팔레트 엔트리를 팔레트 예측자에 추가함으로써, 팔레트 예측자를 업데이트할 수 있다. 또한, 영상 복호화 장치는 팔레트 예측자에 포함된 적어도 하나의 팔레트 엔트리를 팔레트 테이블에 포함된 적어도 하나의 팔레트 엔트리로 대체함으로써, 팔레트 예측자를 업데이트할 수도 있다. 이 경우, 팔레트 예측자에서 대체되는 팔레트 엔트리는 선입 선출 방식(FIFO)에 따라 가장 오래된 팔레트 엔트리 또는 가장 적은 빈도로 사용된 팔레트 엔트리로 결정될 수 있다.
일 예에서, 팔레트 예측자에 대한 업데이트 과정은, 팔레트 예측자가 최대 크기에 도달할 때까지 계속하여 수행될 수 있다. 팔레트 예측자가 최대 크기에 도달하지 못한 경우, 팔레트 테이블에서 재사용되지 않은 팔레트 예측자 내의 적어도 하나의 팔레트 엔트리가 팔레트 예측자에 추가될 수 있다. 이를 팔레트 충전(palette stuffing)이라고 지칭할 수 있다.
일 예에서, 영상 복호화 장치는 영상 부호화 장치로부터 시그널링된 팔레트 예측자의 업데이트 정보에 기반하여 팔레트 예측자를 업데이트할 수도 있다.
이상, 본 개시의 일 실시예에 따른 영상 부호화/복호화 방법은 팔레트 예측자 내의 재사용 팔레트 엔트리를 나타내는 런-값 정보(e.g., palette_predictor_run)를 시그널링/파싱하는 과정에서, 상기 재사용 팔레트 엔트리를 탐색하는 과정을 종료하기 위한 소정의 종료 지시자(e.g., 1 값의 palette_predictor_run)를 조건없이 시그널링할 수 있다. 또한, 팔레트 예측자의 크기(e.g., PredictorPaletteSize[ startComp ]) 대신에 상기 팔레트 예측자의 최대 크기(e.g., maxNumPalettePredictiorSize)에 기반하여, 상기 런-값 정보를 시그널링/파싱할 수 있다. 이에 따라, 이전 팔레트 부호화/복호화 결과에 대한 파싱 디펜던시(parsing dependency)가 제거되어, 영상 부호화/복호화 장치의 스루풋(throughput) 및 효율이 보다 향상될 수 있다.
본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.
본 개시에 있어서, 소정의 동작(단계)을 수행하는 영상 부호화 장치 또는 영상 복호화 장치는 해당 동작(단계)의 수행 조건이나 상황을 확인하는 동작(단계)을 수행할 수 있다. 예컨대, 소정의 조건이 만족되는 경우 소정의 동작을 수행한다고 기재된 경우, 영상 부호화 장치 또는 영상 복호화 장치는 상기 소정의 조건이 만족되는지 여부를 확인하는 동작을 수행한 후, 상기 소정의 동작을 수행할 수 있다.
본 개시의 다양한 실시예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.
또한, 본 개시의 다양한 실시예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.
또한, 본 개시의 실시예가 적용된 영상 복호화 장치 및 영상 부호화 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recoder) 등을 포함할 수 있다.
도 18은 본 개시에 따른 실시예가 적용될 수 있는 컨텐츠 스트리밍 시스템을 예시적으로 나타낸 도면이다.
도 18에 도시된 바와 같이, 본 개시의 실시예가 적용된 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.
상기 비트스트림은 본 개시의 실시예가 적용된 영상 부호화 방법 및/또는 영상 부호화 장치에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기반하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 할 수 있다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송할 수 있다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 수행할 수 있다.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.
본 개시의 범위는 다양한 실시예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.
본 개시에 따른 실시예는 영상을 부호화/복호화하는데 이용될 수 있다.

Claims (15)

  1. 영상 복호화 장치에 의해 수행되는 영상 복호화 방법으로서, 상기 영상 복호화 방법은,
    비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득하는 단계;
    상기 팔레트 예측 정보에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하는 단계;
    상기 팔레트 인덱스 정보에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하는 단계; 및
    상기 팔레트 테이블 및 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 복호화하는 단계를 포함하고,
    상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고,
    상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 제1 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득되며,
    상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 갖는
    영상 복호화 방법.
  2. 제1항에 있어서,
    상기 제1 팔레트 엔트리의 인덱스 값은 상기 런-값 정보에 기반하여 결정되는
    영상 복호화 방법.
  3. 제1항에 있어서,
    상기 제1 크기는, 상기 현재 블록 이전에 복호화된 블록에 대한 팔레트 테이블에 기반하여 결정되는, 상기 팔레트 엔트리들의 개수를 나타내는
    영상 복호화 방법.
  4. 제1항에 있어서,
    상기 제1 크기는, 상기 비트스트림으로부터 획득된 상기 팔레트 예측자의 크기 정보에 기반하여 결정되는, 상기 팔레트 엔트리들의 개수를 나타내는
    영상 복호화 방법.
  5. 제1항에 있어서,
    상기 제1 크기는, 상기 팔레트 예측자에 포함될 수 있는 팔레트 엔트리들의 최대 개수를 나타내는
    영상 복호화 방법.
  6. 제5항에 있어서,
    상기 제1 크기는, 상기 현재 블록을 포함하는 CTU(coding tree unit)의 분할 구조를 나타내는 소정의 제1 플래그에 기반하여 결정되는
    영상 복호화 방법.
  7. 제6항에 있어서,
    상기 제1 플래그가, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 CTU가 싱글 트리 구조로 분할됨을 나타내는 제1 값을 갖는 것에 기반하여, 상기 제1 크기는 63으로 결정되는
    영상 복호화 방법.
  8. 제6항에 있어서,
    상기 제1 플래그가, 상기 현재 블록이 I 슬라이스에 포함되고, 상기 CTU가 64x64 루마 샘플 CU(coding unit)로 암묵적 쿼드트리 분할(implicit quadtree split)되며, 상기 64x64 루마 샘플 CU는 듀얼 트리의 루트 노드(root node)가 됨을 나타내는 제2 값을 갖는 것에 기반하여, 상기 제1 크기는 31로 결정되는
    영상 복호화 방법.
  9. 제1항에 있어서,
    상기 현재 블록이 복호화된 것에 기반하여, 상기 팔레트 테이블 및 상기 팔레트 예측자의 재사용 정보에 기반하여 상기 팔레트 예측자를 업데이트하는 단계를 더 포함하는
    영상 복호화 방법.
  10. 메모리 및 적어도 하나의 프로세서를 포함하는 영상 복호화 장치로서,
    상기 적어도 하나의 프로세서는,
    비트스트림으로부터 현재 블록에 대한 팔레트 예측 정보 및 팔레트 인덱스 정보를 획득하고,
    상기 팔레트 예측 정보에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하고,
    상기 팔레트 인덱스 정보에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하고,
    상기 팔레트 테이블 및 상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 복호화하며,
    상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고,
    상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 제1 크기보다 작은 경우에만, 상기 비트스트림으로부터 획득되며,
    상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 갖는
    영상 복호화 장치.
  11. 영상 부호화 장치에 의해 수행되는 영상 부호화 방법으로서, 상기 영상 부호화 방법은,
    현재 블록에 대한 팔레트 예측자에 기반하여, 상기 현재 블록에 대한 팔레트 테이블을 구성하는 단계;
    상기 팔레트 테이블에 기반하여, 상기 현재 블록에 대한 팔레트 인덱스 맵을 생성하는 단계;
    상기 팔레트 인덱스 맵에 기반하여, 상기 현재 블록을 부호화하는 단계; 및
    상기 부호화된 현재 블록에 관한 팔레트 예측 정보 및 팔레트 인덱스 정보를 포함하는 비트스트림을 생성하는 단계를 포함하고,
    상기 팔레트 예측 정보는, 상기 현재 블록에 대한 팔레트 예측자 내의 팔레트 엔트리들 중에서, 상기 팔레트 테이블에서 재사용되는 제1 팔레트 엔트리를 나타내는 런-값 정보를 포함하고,
    상기 런-값 정보는, 상기 제1 팔레트 엔트리의 인덱스 값이 상기 팔레트 예측자의 최대 크기보다 작은 경우에만, 상기 비트스트림 내에 부호화되고,
    상기 제1 팔레트 엔트리가 상기 팔레트 테이블에서 마지막으로 재사용되는 팔레트 엔트리인 것에 기반하여, 상기 팔레트 예측자의 마지막 런-값 정보는 상기 제1 팔레트 엔트리의 탐색을 종료하기 위한 제1 값을 갖는
    영상 부호화 방법.
  12. 제11항에 있어서,
    상기 제1 팔레트 엔트리의 인덱스 값은 상기 런-값 정보에 기반하여 결정되는
    영상 부호화 방법.
  13. 제11항에 있어서,
    상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU(coding tree unit)가 싱글 트리 구조로 분할되는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 63으로 결정되는
    영상 부호화 방법.
  14. 제11항에 있어서,
    상기 현재 블록이 I 슬라이스에 포함되고, 상기 현재 블록을 포함하는 CTU(coding tree unit)가 64x64 루마 샘플 CU(coding unit)로 암묵적 쿼드트리 분할(implicit quadtree split)되며, 상기 64x64 루마 샘플 CU는 듀얼 트리의 루트 노드(root node)가 되는 것에 기반하여, 상기 팔레트 예측자의 최대 크기는 31로 결정되는
    영상 부호화 방법.
  15. 제11항의 영상 부호화 방법에 따라 생성된 비트스트림을 저장하는 컴퓨터 판독가능한 기록 매체.
PCT/KR2021/003432 2020-03-19 2021-03-19 팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체 WO2021187946A1 (ko)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/912,692 US20230179760A1 (en) 2020-03-19 2021-03-19 Image encoding/decoding method and apparatus based on palette mode, and recording medium that stores bitstream

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202062992139P 2020-03-19 2020-03-19
US62/992,139 2020-03-19
US202062994829P 2020-03-25 2020-03-25
US62/994,829 2020-03-25

Publications (1)

Publication Number Publication Date
WO2021187946A1 true WO2021187946A1 (ko) 2021-09-23

Family

ID=77771438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/003432 WO2021187946A1 (ko) 2020-03-19 2021-03-19 팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체

Country Status (2)

Country Link
US (1) US20230179760A1 (ko)
WO (1) WO2021187946A1 (ko)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170007461A (ko) * 2014-05-23 2017-01-18 에이치에프아이 이노베이션 인크. 팔레트 테이블 예측 및 시그널링을 위한 방법과 장치
KR20170094544A (ko) * 2014-11-12 2017-08-18 에이치에프아이 이노베이션 인크. 인덱스 맵 코딩에서의 이스케이프 픽셀 코딩의 방법들
KR20180010260A (ko) * 2015-06-03 2018-01-30 미디어텍 인크. 화상 및 비디오 데이터의 팔레트 코딩 방법
US20180098093A1 (en) * 2015-04-08 2018-04-05 Hfi Innovation Inc. Methods of Palette Mode Coding in Video Coding

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11240507B2 (en) * 2019-09-24 2022-02-01 Qualcomm Incorporated Simplified palette predictor update for video coding
CN116405677B (zh) * 2019-12-30 2023-10-31 阿里巴巴(中国)有限公司 用于在调色板模式下对视频数据进行编码的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170007461A (ko) * 2014-05-23 2017-01-18 에이치에프아이 이노베이션 인크. 팔레트 테이블 예측 및 시그널링을 위한 방법과 장치
KR20170094544A (ko) * 2014-11-12 2017-08-18 에이치에프아이 이노베이션 인크. 인덱스 맵 코딩에서의 이스케이프 픽셀 코딩의 방법들
US20180098093A1 (en) * 2015-04-08 2018-04-05 Hfi Innovation Inc. Methods of Palette Mode Coding in Video Coding
KR20180010260A (ko) * 2015-06-03 2018-01-30 미디어텍 인크. 화상 및 비디오 데이터의 팔레트 코딩 방법

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Y.-W. CHEN (KWAI), X. XIU (KWAI), T.-C. MA (KWAI), H.-J. JHU (KWAI), X. WANG (KWAI INC.): "Non-CE8: Context coded bin constraint for palette mode signaling", 16. JVET MEETING; 20191001 - 20191011; GENEVA; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), no. JVET-P0523, 25 September 2019 (2019-09-25), pages 1 - 6, XP030217571 *

Also Published As

Publication number Publication date
US20230179760A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
WO2020071830A1 (ko) 히스토리 기반 움직임 정보를 이용한 영상 코딩 방법 및 그 장치
WO2020184991A1 (ko) Ibc 모드를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020060282A1 (ko) 변환 계수 레벨 코딩 방법 및 그 장치
WO2021015537A1 (ko) 팔레트 모드의 적용 여부에 따라 크로마 성분 예측 정보를 시그널링 하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020167097A1 (ko) 영상 코딩 시스템에서 인터 예측을 위한 인터 예측 타입 도출
WO2020071879A1 (ko) 변환 계수 코딩 방법 및 그 장치
WO2020071832A1 (ko) 변환 계수 코딩 방법 및 그 장치
WO2021040400A1 (ko) 팔레트 모드 기반 영상 또는 비디오 코딩
WO2021040398A1 (ko) 팔레트 이스케이프 코딩 기반 영상 또는 비디오 코딩
WO2021091214A1 (ko) 크로마 양자화 파라미터 오프셋 관련 정보를 코딩하는 영상 디코딩 방법 및 그 장치
WO2020185039A1 (ko) 레지듀얼 코딩 방법 및 장치
WO2021251744A1 (ko) Aps에 대한 식별자를 시그널링하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 컴퓨터 판독 가능한 기록 매체
WO2021040488A1 (ko) 팔레트 모드에서의 이스케이프 이진화 기반 영상 또는 비디오 코딩
WO2021040402A1 (ko) 팔레트 코딩 기반 영상 또는 비디오 코딩
WO2021091255A1 (ko) 영상/비디오 코딩을 위한 상위 레벨 신택스 시그널링 방법 및 장치
WO2021015513A1 (ko) 필터링을 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2021015512A1 (ko) Ibc를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2020180044A1 (ko) Lmcs에 기반한 영상 코딩 방법 및 그 장치
WO2020076028A1 (ko) 변환 계수 코딩 방법 및 장치
WO2021187946A1 (ko) 팔레트 모드에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체
WO2021006696A1 (ko) 변환 스킵된 잔차 신호에 대한 문맥 모델을 유도하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 전송하는 방법
WO2023195819A1 (ko) 적응적 슬라이스 스캔 방식에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체
WO2021201514A1 (ko) Hrd 파라미터를 시그널링하는 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 컴퓨터 판독 가능한 기록 매체
WO2021235740A1 (ko) 영상 디코딩 방법 및 그 장치
WO2023244022A1 (ko) 스캔 오더(scan order) 정보에 기반한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장하는 기록 매체

Legal Events

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

Ref document number: 21770814

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21770814

Country of ref document: EP

Kind code of ref document: A1