Simplified parameter derivation for intra prediction
A method for video processing is provided. The method includes determining, for a conversion between a current video block of a video that is a chroma block and a coded representation of the video, parameters of a cross-component linear model that are completely determinable by two chroma samples and corresponding two luma samples; and performing the conversion based on the determining.
1. A method of video processing, comprising:
determining, for a conversion between a current video block of a video that is a chroma block and a bitstream of the video, parameters of a cross-component linear model that are determinable by two chroma values and two luma values; and
performing the conversion based on the determining;
wherein the two chroma values are denoted as C0 and C1, and the two luma values are denoted as L0 and L1, and wherein the parameters of a cross-component linear model are derived based on a difference between C1 and C0, and a difference between L1 and L0;
wherein predicted samples of the current video block are derived based on reconstructed samples of a luma block corresponding to the current video block and the parameters of the cross-component linear model;
wherein if L1 is equal to L0, then the predicted samples of the current video block are based on C0 and not based on L0, L1 and C1, and the predicted samples of the current video block are set to the C0; and
wherein the parameters of the cross-component linear model are derived by using Logarithmic operation.
2. The method of claim 1 , wherein if L1 is equal to L0, other intra prediction mode than the cross-component linear model mode is used.
3. The method of claim 1 , wherein the parameters of the cross-component linear model are derived by excluding a division operation.
4. The method of claim 1 , wherein the parameters of the cross-component linear model are derived by using an operation without a look up table, the operation excluding a division operation.
5. The method of claim 1 , wherein the parameters of the cross-component linear model are derived based on a value of Floor(Log 2(L1−L0)), and wherein Floor(x) is a floor function that outputs an integer portion of x.
6. The method of claim 1 , wherein the performing of the conversion includes generating the bitstream from the current video block.
7. The method of claim 1 , wherein the performing of the conversion includes generating the current video block from the bitstream.
8. An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
determine, for a conversion between a current video block of a video that is a chroma block and a bitstream of the video, parameters of a cross-component linear model that are determinable by two chroma values and two luma values; and
perform the conversion based on the determining;
wherein the two chroma values are denoted as C0 and C1, and the two luma values are denoted as L0 and L1, and wherein the parameters of a cross-component linear model are derived based on a difference between C1 and C0, and a difference between L1 and L0;
wherein predicted samples of the current video block are derived based on reconstructed samples of a luma block corresponding to the current video block and the parameters of the cross-component linear model, and
wherein if L1 is equal to L0, then the predicted samples of the current video block are based on C0 and not based on L0, L1 and C1, and the predicted samples of the current video block are set to the C0; and
wherein the parameters of the cross-component linear model are derived by using Logarithmic operation.
9. The apparatus of claim 8 , wherein the parameters of the cross-component linear model are derived by excluding a division operation.
10. The apparatus of claim 8 , wherein the parameters of the cross-component linear model are derived by using an operation without a look up table, the operation excluding a division operation.
11. The apparatus of claim 8 , wherein the parameters of the cross-component linear model are derived based on a value of Floor(Log 2(L1−L0)), and wherein Floor(x) is a floor function that outputs an integer portion of x.
12. The apparatus of claim 8 , wherein the performing of the conversion includes generating the bitstream from the current video block.
13. The apparatus of claim 8 , wherein the performing of the conversion includes generating the current video block from the bitstream.
14. The apparatus of claim 8 , wherein if L1 is equal to L0, other intra prediction mode than the cross-component linear model mode is used.
15. A non-transitory computer-readable storage medium storing instructions that cause a processor to:
determine, for a conversion between a current video block of a video that is a chroma block and a bitstream of the video, parameters of a cross-component linear model that are determinable by two chroma values and two luma values; and
perform the conversion based on the determining;
wherein the two chroma values are denoted as C0 and C1, and the two luma values are denoted as L0 and L1, and wherein the parameters of a cross-component linear model are derived based on a difference between C1 and C0, and a difference between L1 and L0;
wherein predicted samples of the current video block are derived based on reconstructed samples of a luma block corresponding to the current video block and the parameters of the cross-component linear model, and
wherein if L1 is equal to L0, then the predicted samples of the current video block are based on C0 and not based on L0, L1 and C1, and the predicted samples of the current video block are set to the C0; and
wherein the parameters of the cross-component linear model are derived by using Logarithmic operation.
16. The non-transitory computer-readable storage medium of claim 15 , wherein if L1 is equal to L0, other intra prediction mode than the cross-component linear model mode is used.
17. The non-transitory computer-readable storage medium of claim 15 , wherein the parameters of the cross-component linear model are derived by excluding a division operation.
18. The non-transitory computer-readable storage medium of claim 15 , wherein the parameters of the cross-component linear model are derived by using an operation without a look up table, the operation excluding a division operation.
19. The non-transitory computer-readable storage medium of claim 15 , wherein the parameters of the cross-component linear model are derived based on a value of Floor(Log 2(L1−L0)), and wherein Floor(x) is a floor function that outputs an integer portion of x.
20. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
determining, that parameters of a cross-component linear model that are determinable by two chroma values and two luma values; and
generating the bitstream based on the determining;
wherein the two chroma values are denoted as C0 and C1, and the two luma values are denoted as L0 and L1, and wherein the parameters of a cross-component linear model are derived based on a difference between C1 and C0, and a difference between L1 and L0;
wherein predicted samples of the current video block are derived based on reconstructed samples of a luma block corresponding to the current video block and the parameters of the cross-component linear model;
wherein if L1 is equal to L0, then the predicted samples of the current video block are based on C0 and not based on L0, L1 and C1, and the predicted samples of the current video block are set to the C0; and
wherein the parameters of the cross-component linear model are derived by using Logarithmic operation.