Quantization parameter prediction for video encoding and decoding
Apparatus and methods for encoding and decoding video data having improved quantization parameter prediction are presented and can include using a combination of quantization parameter prediction values obtained from respective ones of a plurality of quantization parameter prediction methods to encode or decode the video data.
1. An apparatus for encoding video data comprising:
one or more processors, wherein the one or more processors are configured to:
select at least one quantization parameter prediction method from a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more video formats of standard dynamic range, high dynamic range, or virtual reality video;
determine a predicted value of the quantization parameter for the block based on the selected at least one quantization parameter prediction method, wherein if more than one quantization parameter prediction methods are selected, the one or more processors are further configured to:
obtain a first quantization parameter prediction value based on a first selected quantization parameter prediction method,
obtain a second quantization parameter prediction value based on a second selected quantization parameter prediction method, and
obtain a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value; and
encode the video data based on the predicted value of the quantization parameter to produce encoded video data, wherein the video data further comprises a syntax element, and wherein the syntax element indicates the format of the video.
2. A method for encoding video data comprising:
selecting at least one quantization parameter prediction method from a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more video formats of standard dynamic range, high dynamic range, or virtual reality video;
determining a predicted value of the quantization parameter for the block based on the selected at least one quantization parameter prediction method, wherein if more than one quantization parameter prediction methods are selected, the method further comprises:
obtaining a first quantization parameter prediction value based on a first selected quantization parameter prediction method,
obtaining a second quantization parameter prediction value based on a second selected quantization parameter prediction method, and
obtaining a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value; and
encoding the video data based on the predicted value of the quantization parameter to produce encoded video data wherein the video data further comprises a syntax element, and wherein the syntax element indicates the format of the video.
3. An apparatus for decoding video data comprising:
one or more processors, wherein the one or more processors are configured to:
obtain at least one quantization parameter prediction method of a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more of standard dynamic range, high dynamic range, or virtual reality, and wherein the format of the video is determined based on at least one syntax element in the video data;
determine a predicted value of the quantization parameter for the block based on the obtained at least one quantization parameter prediction method, wherein if more than one quantization parameter perdition methods are obtained, the one or more processors are configured to:
obtain a first quantization parameter prediction value based on a first obtained quantization parameter prediction method,
obtain a second quantization parameter prediction value based on a second obtained quantization parameter prediction method, and
obtain a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value; and
decode the video data to produce decoded video data based on the predicted value of the quantization parameter.
4. A method for decoding video data comprising:
obtaining at least one quantization parameter prediction method of a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more of standard dynamic range, high dynamic range, or virtual reality, and wherein the format of the video is determined based on at least one syntax element in the video data:
determining a predicted value of the quantization parameter for the block based on the obtained at least one quantization parameter prediction method, wherein if more than one quantization parameter prediction methods are obtained, the method further comprises:
obtaining a first quantization parameter prediction value based on a first obtained quantization parameter prediction method,
obtaining a second quantization parameter prediction value based on a second obtained quantization parameter prediction method, and
obtaining a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value decoding the video data to produce decoded video data based on the predicted value of the quantization parameter.
5. The apparatus of claim 1 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.
6. The apparatus of claim 1 , wherein the one or more processors are further configured to:
include an indication in the video data, wherein the indication indicates the plurality of quantization parameter prediction methods.
7. The method of claim 2 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.
8. The method of claim 2 , further comprising:
including an indication in the video data, wherein the indication indicates the plurality of quantization parameter prediction methods.
9. A non-transitory computer readable medium storing computing instructions for encoding video data, the instructions causing one or more processors to perform:
selecting at least one quantization parameter prediction method from a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more video formats of standard dynamic range, high dynamic range, or virtual reality video;
determining a predicted value of the quantization parameter for the block based on the selected at least one quantization parameter prediction method, wherein if more than one quantization parameter prediction methods are selected, the method further comprises:
obtaining a first quantization parameter prediction value based on a first selected quantization parameter prediction method,
obtaining a second quantization parameter prediction value based on a second selected quantization parameter prediction method, and
obtaining a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value; and
encoding the video data based on the predicted value of the quantization parameter to produce encoded video data, wherein the video data further comprises a syntax element, and wherein the syntax element indicates the format of the video.
10. The apparatus of claim 3 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.
11. The apparatus of claim 3 , wherein the one or more processors are configured to:
obtain an indication in the video data, wherein the indication indicates the plurality of quantization parameter prediction methods.
12. The method of claim 4 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.
13. The method of claim 4 , further comprising:
obtaining an indication in the video data, wherein the indication indicates the plurality of quantization parameter prediction methods.
14. A non-transitory computer readable medium storing computing instructions for decoding video data, the instructions causing one or more processors to perform:
obtaining at least one quantization parameter prediction method of a plurality of quantization parameter prediction methods for predicting a quantization parameter for a block of a picture of a video based on a format of the video, wherein the format of video comprises one or more of standard dynamic range, high dynamic range, or virtual reality, and wherein the format of the video is determined based on at least one syntax element in the video data;
determining a predicted value of the quantization parameter for the block based on the obtained at least one quantization parameter prediction method, wherein if more than one quantization parameter prediction methods are obtained, the method further comprises:
obtaining a first quantization parameter prediction value based on a first obtained quantization parameter prediction method,
obtaining a second quantization parameter prediction value based on a second obtained quantization parameter prediction method, and
obtaining a refined quantization parameter prediction value based on a combination of the first quantization parameter prediction value and the second quantization parameter prediction value, wherein the predicted value of the quantization parameter for the block is determined based on the refined quantization parameter prediction value; and
decoding the video data to produce decoded video data based on the predicted value of the quantization parameter.
15. The non-transitory computer readable medium of claim 14 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.
16. The non-transitory computer readable medium of claim 9 , wherein the plurality of quantization parameter prediction methods comprises at least one of:
an average luma dependent quantization parameter adaptation method, a luma activity dependent quantization parameter adaptation method, or a position dependent quantization parameter adaptation method.