Method for determining prediction direction, decoder, and computer storage medium
Provided are a method for determining a prediction direction, a decoder and a computer storage medium. The method is implemented by a decoder. The method includes that: a Direct Mode (DM) in a chroma intra prediction mode of a block to be decoded is acquired (S 101 ); and an index number of a prediction direction in a DM derived mode is determined based on an offset N and an index number M of a prediction direction in the DM to determine the DM derived mode (S 102 ).
1 . A method for determining a prediction direction, implemented by a decoder and comprising:
determining a chroma intra prediction mode of a block to be decoded;
acquiring a Direct Mode (DM) in the chroma intra prediction mode; and
determining an index number of the prediction direction in a DM derived mode based on M, N, K1 and K2 to determine the DM derived mode,
wherein the N is an offset, the M is an index value of prediction direction of the DM, the K1 is a minimum value of index values of prediction directions in the DM and the K2 is a maximum value of the index values of the prediction directions in the DM, and
wherein decoding of a Cross-Component Linear Model Prediction (CCLM) is prior to decoding of the DM derived mode.
2 . A method for determining a prediction direction, implemented by an encoder and comprising:
determining a chroma intra prediction mode of an encoding block;
acquiring a Direct Mode (DM) in the chroma intra prediction mode; and
determining an index number of the prediction direction in a DM derived mode based on M, N, K1 and K2 to determine the DM derived mode;
wherein the N is an offset, the M is an index value of prediction direction of the DM, the K1 is a minimum value of index values of prediction directions in the DM and the K2 is a maximum value of the index values of the prediction directions in the DM, and
wherein encoding of a Cross-Component Linear Model Prediction (CCLM) is decoded prior to encoding of the DM derived mode.
3 . A decoder, comprising:
a processor; and
a storage medium storing instructions executable by the processor,
wherein the storage medium is configured to communicate with the processor through a communication bus to execute an operation, and the instructions are executed by the processor to implement a method for determining a prediction direction, the method comprising:
determining a chroma intra prediction mode of a block to be decoded;
acquiring a Direct Mode (DM) in the chroma intra prediction mode; and
determining an index number of the prediction direction in a DM derived mode based on M, N, K1 and K2 to determine the DM derived mode;
wherein the N is an offset, the M is an index value of prediction direction of the DM, the K1 is a minimum value of index values of prediction directions in the DM and the K2 is a maximum value of the index values of the prediction directions in the DM, and
wherein decoding of a Cross-Component Linear Model Prediction (CCLM) is decoded prior to decoding of the DM derived mode.
4 . An encoder, comprising:
a processor; and
a storage medium storing instructions executable by the processor,
wherein the storage medium is configured to communicate with the processor through a communication bus to execute an operation, and the instructions are executed by the processor to implement a method for determining a prediction direction, the method comprising:
determining a chroma intra prediction mode of an encoding block;
acquiring a Direct Mode (DM) in the chroma intra prediction mode; and
determining an index number of the prediction direction in a DM derived mode based on M, N, K1 and K2 to determine the DM derived mode;
wherein the N is an offset, the M is an index value of prediction direction of the DM, the K1 is a minimum value of index values of prediction directions in the DM and the K2 is a maximum value of the index values of the prediction directions in the DM, and
wherein encoding of a Cross-Component Linear Model Prediction (CCLM) is decoded prior to encoding of the DM derived mode.