Method and apparatus for predicting and restoring a video signal using palette entry and palette mode
AssigneeKt Corporation
InventorsBae Keun Lee, Joo Young Kim
Life of this patent
Estimating the term…
Abstract
Provided is a method for decoding a video signal. Such a method may include constructing a palette map related to a current block encoded in a palette mode, determining, based on a mode identifier of a current sample included in the current block, a palette index mode of the current sample, the mode identifier is used to determine one of an index mode or a copy mode, deriving a palette index of the current sample based on the palette index mode, and reconstructing the current sample by using the palette map of the current block and the palette index.
Claims2
A method of decoding a video signal, the method comprising:
- constructing a palette map related to a current block encoded in a palette mode;
- determining, based on a mode identifier of a current sample included in the current block, a palette index mode of the current sample;
- the mode identifier is used to determine one of an index mode or a copy mode,
- deriving a palette index of the current sample based on the palette index mode;
- and
- reconstructing the current sample by using the palette map of the current block and the palette index,
- wherein when the palette index is encoded in the index mode, the palette index is derived from information about palette index run, the information about palette index run is used to determine a repeated number of times of same palette index in a predetermined scan order,
- wherein when the palette index is encoded in the copy mode, the palette index is derived from information about copy run, the information about copy run is used to determine whether palette indices of last positions in current samples are copied from palette indices in the row above,
- wherein whether the mode identifier is obtained or not is determined based on a position of the current sample in the scan order and a number of remaining palette indexes,
- wherein when a number of the remaining palette indexes is greater than 0 and a position of the current sample does not corresponds to a last sample of a current block in the scan order, the mode identifier is obtained from an encoded bitstream,
- wherein when a number of the remaining palette indexes is greater than 0 and a position of the current sample corresponds to a last sample of a current block in the scan order, the mode identifier is not obtained from the encoded bitstream and set to the index mode,
- wherein when at least one sample of the current block uses the index mode, the palette index is derived using the information about palette index run indicating the number of consecutive sample locations with sample palette index, and
- wherein a value of the palette index run was entropy encoded selected from one of two encoded types based on a number of bits used,
- as a first encoded type, a value of the palette index run is derived from a single encoded element that represents the value of the palette index run as is,
- as a second encoded type, a value of the palette index run is derived from two encoded elements that represent a most significant bit (MSB) value as is and refinement bits as is of the value of the palette index run.
A method of encoding a video signal, the method comprising:
- constructing a palette map related to a current block encoded in a palette mode;
- determining, based on a mode identifier of a current sample included in the current block, a palette index mode of the current sample;
- the mode identifier is used to determine one of an index mode or a copy mode,
- deriving a palette index of the current sample based on the palette index mode;
- and
- reconstructing the current sample by using the palette map of the current block and the palette index,
- wherein when the palette index is encoded in the index mode, the palette index is derived from information about palette index run, the information about palette index run is signaled to determine a repeated number of times of same palette index in a predetermined scan order, and
- wherein when the palette index is encoded in the copy mode, the palette index is derived from information about copy run, the information about copy run is signaled to determine whether palette indices of last positions in current samples are copied from palette indices in the row above,
- wherein whether the mode identifier is encoded or not is determined based on a position of the current sample in the scan order and a number of remaining palette indexes,
- wherein when a number of the remaining palette indexes is greater than 0 and a position of the current sample does not corresponds to a last sample of a current block in the scan order, the mode identifier is encoded into a bitstream,
- wherein when a number of the remaining palette indexes is greater than 0 and a position of the current sample corresponds to a last sample of a current block in the scan order, the mode identifier is not encoded to the bitstream and set to the index mode,
- wherein when at least one sample of the current block uses the index mode, the palette index is derived using the information about palette index run indicating the number of consecutive sample locations with sample palette index, and
- wherein a value of the palette index run is entropy encoded selected from one of two encoded types based on a number of bits used,
- as a first encoded type, a value of the palette index run is derived from a single encoded element that represents the value of the palette index run as is,
- as a second encoded type, a value of the palette index run is derived from two encoded elements that represent a most significant bit (MSB) value as is and refinement bits as is of the value of the palette index run.
Dependencies are inferred from the claim text.