Adaptive switching of color spaces, color sampling rates and/or bit depths
AssigneeMicrosoft Technology Licensing, LLC
InventorsBin Li, Jizheng Xu, Feng Wu
Life of this patent
Estimating the term…
Abstract
Innovations in adaptive encoding and decoding for units of a video sequence can improve coding efficiency. For example, some of the innovations relate to encoding/decoding that includes adaptive switching of color spaces between units within a video sequence. Other innovations relate encoding/decoding that includes adaptive switching of color sampling rates between units within a video sequence. Still other innovations relate encoding/decoding that includes adaptive switching of bit depths between units within a video sequence.
Claims21
-34. (canceled)
One or more non-transitory computer-readable media having stored thereon computer-executable instructions for causing one or more processors, when programmed thereby, to perform operations comprising:
- encoding video in a sequence, including switching color spaces, color sampling rates and/or bit depths spatially and/or temporally between at least some units of the video within the sequence during the encoding, the color spaces including an RGB-type color space and a YCoCg color space, wherein the encoding further includes:
- for a given unit of the units of the video, determining a prediction mode of the given unit;
- determining whether or not a condition is satisfied, the condition depending on one or more of the prediction mode of the given unit and whether the given unit has residual values;
- based at least in part on the condition being satisfied, setting a flag value for the given unit, the flag value indicating a selection between the RGB-type color space and the YCoCg color space for the given unit;
- and
- entropy coding the flag value using context-adaptive binary arithmetic coding;
- and
- outputting encoded data in a bitstream, the encoded data including one or more signals indicating how the color spaces, the color sampling rates and/or the bit depths switch between the at least some units of the video within the sequence, wherein the one or more signals include the flag value for the given unit as part of a syntax structure for the given unit when the prediction mode of the given unit is intra or when the prediction mode of the given unit is inter and the given unit has residual values.
In a computer system that implements a video decoder, a method comprising:
- receiving encoded data in a bitstream, the encoded data including one or more signals indicating how color spaces, color sampling rates and/or bit depths switch between at least some units of video within a sequence, the color spaces including an RGB-type color space and a YCoCg color space, wherein the one or more signals include a flag value for a given unit of the units of the video as part of a syntax structure for the given unit when a prediction mode of the given unit is intra or when the prediction mode of the given unit is inter and the given unit has residual values, the flag value having been entropy coded using context-adaptive binary arithmetic coding, and wherein the flag value indicates a selection between the RGB-type color space and the YCoCg color space for the given unit;
- and
- decoding the encoded data, including switching the color spaces, the color sampling rates and/or the bit depths spatially and/or temporally between the at least some units of the video within the sequence during the decoding, wherein the decoding further includes:
- for the given unit, determining the prediction mode of the given unit;
- determining whether or not a condition is satisfied, the condition depending on one or more of the prediction mode of the given unit and whether the given unit has residual values;
- and
- based at least in part on the condition being satisfied, parsing and entropy decoding the flag value.
One or more non-transitory computer-readable media having stored thereon encoded data in a bitstream, the encoded data including one or more signals indicating how color spaces, color sampling rates and/or bit depths switch between at least some units of video within a sequence, the color spaces including an RGB-type color space and a YCoCg color space, wherein the one or more signals include a flag value for a given unit of the units of the video as part of a syntax structure for the given unit when a prediction mode of the given unit is intra or when the prediction mode of the given unit is inter and the given unit has residual values, the flag value having been entropy coded using context-adaptive binary arithmetic coding, and wherein the flag value indicates a selection between the RGB-type color space and the YCoCg color space for the given unit, the encoded data being organized to facilitate decoding by operations that include switching the color spaces, the color sampling rates and/or the bit depths spatially and/or temporally between the at least some units of the video within the sequence during the decoding, and wherein the operations further include:
- for the given unit, determining the prediction mode of the given unit;
- determining whether or not a condition is satisfied, the condition depending on one or more of the prediction mode of the given unit and whether the given unit has residual values;
- and
- based at least in part on the condition being satisfied, parsing and entropy decoding the flag value.
Dependencies are inferred from the claim text.