Masking a region of multimedia data
Several methods and systems for masking multimedia data are disclosed. In an embodiment, a method for masking includes performing a prediction for at least one multimedia data block based on a prediction mode of a plurality of prediction modes. The at least one multimedia data block is associated with a region of interest (ROI). A residual multimedia data associated with the at least one multimedia data block is generated based on the prediction. A quantization of the residual multimedia data is performed based on a quantization parameter (QP) value. The QP value is variable such that varying the QP value controls a degree of masking of the ROI.
1 . A method comprising:
determining that a first coding unit is within a mask region of a picture;
selecting a first intra-prediction mode in response to determining that the first coding unit is within the mask region;
generating first residual data for the first coding unit using the first intra-prediction mode;
selecting a first quantization parameter (QP) value using a desired degree of masking; and
quantizing the first residual data using the first QP value.
2 . The method of claim 1 , wherein the first intra-prediction mode is a DC intra-prediction mode.
3 . The method of claim 1 , wherein the first intra-prediction mode is a worst intra-prediction mode.
4 . The method of claim 1 , wherein the first QP value is higher than an average QP value of the picture.
5 . The method of claim 1 , wherein selecting the first QP value uses the desired degree of masking and an average QP value of the picture.
6 . The method of claim 1 , further comprising:
determining that a second coding unit is within a guard band, wherein the guard band is adjacent to the mask region;
selecting a second intra-prediction mode in response to determining that the second coding unit is within the guard band, wherein the second intra-prediction mode is different from the first intra-prediction mode; and
generating second residual data for the second coding unit using the second intra-prediction mode.
7 . The method of claim 6 ,
wherein the guard band is a right-side guard band, and
wherein the second intra-prediction mode is a vertical intra-prediction mode.
8 . The method of claim 6 ,
wherein the guard band is a bottom-side guard band, and
wherein the second intra-prediction mode is a horizontal intra-prediction mode.
9 . The method of claim 1 , further comprising:
determining that a second coding unit is outside of the mask region;
selecting a second intra-prediction mode in response to determining that the second coding unit is outside of the mask region, wherein the second intra-prediction mode is different from the first intra-prediction mode; and
generating second residual data for the second coding unit using the second intra-prediction mode.
10 . The method of claim 9 , further comprising:
selecting a second QP value, wherein the second QP value is smaller than the first QP value, wherein the second QP value is smaller than the first QP value; and
quantizing the second residual data using the second QP value.
11 . A non-transitory computer-readable medium having executable instructions stored thereon, configured to be executable by processing circuitry for causing the processing circuitry to:
determine that a first coding unit is within a mask region of a picture;
select a first intra-prediction mode in response to determining that the first coding unit is within the mask region;
generate first residual data for the first coding unit using the first intra-prediction mode;
select a first quantization parameter (QP) value using a desired degree of masking; and
quantize the first residual data using the first QP value.
12 . The non-transitory computer-readable medium of claim 11 , wherein the first intra-prediction mode is a DC intra-prediction mode.
13 . The non-transitory computer-readable medium of claim 11 , wherein the first intra-prediction mode is a worst intra-prediction mode.
14 . The non-transitory computer-readable medium of claim 11 , wherein the first QP value is higher than an average QP value of the picture.
15 . The non-transitory computer-readable medium of claim 11 , wherein the instructions to select the first QP value use the desired degree of masking and an average QP value of the picture.
16 . The non-transitory computer-readable medium of claim 11 , wherein the instructions are executable by the processing circuitry for further causing the processing circuitry to:
determine that a second coding unit is within a guard band, wherein the guard band is adjacent to the mask region;
select a second intra-prediction mode in response to determining that the second coding unit is within the guard band, wherein the second intra-prediction mode is different from the first intra-prediction mode; and
generate second residual data for the second coding unit using the second intra-prediction mode.
17 . The non-transitory computer-readable medium of claim 16 ,
wherein the guard band is a right-side guard band, and
wherein the second intra-prediction mode is a vertical intra-prediction mode.
18 . The non-transitory computer-readable medium of claim 16 ,
wherein the guard band is a bottom-side guard band, and
wherein the second intra-prediction mode is a horizontal intra-prediction mode.
19 . The non-transitory computer-readable medium of claim 11 , wherein the instructions are executable by the processing circuitry for further causing the processing circuitry to:
determine that a second coding unit is outside of the mask region;
select a second intra-prediction mode in response to determining that the second coding unit is outside of the mask region, wherein the second intra-prediction mode is different from the first intra-prediction mode; and
generate second residual data for the second coding unit using the second intra-prediction mode.
20 . The non-transitory computer-readable medium of claim 19 , wherein the instructions are executable by the processing circuitry for further causing the processing circuitry to:
select a second QP value, wherein the second QP value is smaller than the first QP value, wherein the second QP value is smaller than the first QP value; and
quantize the second residual data using the second QP value.