Palette mode coding
AssigneeQUALCOMM Incorporated
InventorsRajan Laxman Joshi, Liwei Guo, Marta Karczewicz, Wei Pu, Joel Sole Rojals
Life of this patent
Estimating the term…
Abstract
A device for decoding video data may be configured to determine a block of the video data is coded using a palette-based coding mode; determine a sample of the block of video data is coded using a copy from top mode or an index mode; and decode a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value specifies a number of samples subsequent to the sample that have a same mode as the sample.
Claims44
A method of decoding video data, the method comprising:
- determining a block of the video data is coded using a palette-based coding mode;
- determining a sample of the block of video data is coded using a copy from top mode or an index mode;
- decoding a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value specifies a number of samples subsequent to the sample that have a same mode as the sample;
- in response to the greater than zero flag indicating the run value is greater than zero, decoding a greater than one flag to indicate whether the run value is greater than one;
- in response to the greater than one flag indicating the run value is greater than one, decoding an indication of the run value minus 2;
- based on the indication of the run value minus 2, decoding the run value for the block of the video data;
- and
- outputting a decoded picture comprising the block of the video data.
A method of encoding video data, the method comprising:
- determining a block of the video data is coded using a palette-based coding mode;
- determining a sample of the block of video data is coded using a copy from top mode or an index mode;
- determining a number of samples subsequent to the sample that have a same mode as the sample;
- and
- generating, for inclusion in an encoded bitstream, a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value indicates the number of samples subsequent to the sample that have the same mode as the sample;
- in response to the greater than zero flag indicating the run value is greater than zero, generating, for inclusion in the encoded bitstream, a greater than one flag to indicate whether the run value is greater than one;
- and
- in response to the greater than one flag indicating the run value is greater than one, generating, for inclusion in the encoded bitstream, an indication of the run value minus 2;
- and
- outputting the encoded bitstream comprising the greater than zero flag, the greater than one flag, and the indication of the run value minus 2.
A device for decoding video data, the device comprising:
- a memory configured to store video data;
- one or more processors configured to:
- determine a block of the video data is coded using a palette-based coding mode;
- determine a sample of the block of video data is coded using a copy from top mode or an index mode;
- decode a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value specifies a number of samples subsequent to the sample that have a same mode as the sample;
- in response to the greater than zero flag indicating the run value is greater than zero, decode a greater than one flag to indicate whether the run value is greater than one;
- in response to the greater than one flag indicating the run value is greater than one, decode an indication of the run value minus 2;
- based on the indication of the run value minus 2, decoding the run value for the block of the video data;
- and
- outputting a decoded picture comprising the block of the video data.
A device for encoding video data, the device comprising:
- a memory configured to store video data;
- one or more processors configured to:
- determine a block of the video data is coded using a palette-based coding mode;
- determine a sample of the block of video data is coded using a copy from top mode or an index mode;
- determine a number of samples subsequent to the sample that have a same mode as the sample;
- generate, for inclusion in an encoded bitstream, a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value indicates the number of samples subsequent to the sample that have the same mode as the sample;
- in response to the greater than zero flag indicating the run value is greater than zero, generate, for inclusion in the encoded bitstream, a greater than one flag to indicate whether the run value is greater than one;
- in response to the greater than one flag indicating the run value is greater than one, generate, for inclusion in the encoded bitstream, an indication of the run value minus 2;
- and
- output the encoded bitstream comprising the greater than zero flag, the greater than one flag, and the indication of the run value minus 2.
A non-transitory computer readable storage medium storing instructions that when executed by one or more processors cause the one or more processors to:
- determine a block of the video data is coded using a palette-based coding mode;
- determine a sample of the block of video data is coded using a copy from top mode or an index mode;
- decode a greater than zero flag to indicate whether a run value is greater than zero, wherein the run value specifies a number of samples subsequent to the sample that have a same mode as the sample;
- decode a greater than one flag to indicate whether the run value is greater than one in response to the greater than zero flag indicating the run value is greater than zero;
- and
- decode an indication of the run value minus 2 in response to the greater than one flag indicating the run value is greater than one;
- based on the indication of the run value minus 2, decode the run value for the block of the video data;
- and
- output a decoded picture comprising the block of the video data.
Dependencies are inferred from the claim text.