Patent attributes
Aspects of the disclosure provide methods and apparatuses for video encoding/decoding. Processing circuitry in an apparatus decodes coded information of a coding unit (CU) from a coded video bitstream. The coded information indicates a last position of non-zero transform coefficients of a first coding block (CB) of the CU. The processing circuitry determines whether a secondary transform index is signaled in the coded information based at least on comparison to a threshold value and whether to perform a secondary transform on a second CB of the CU based on whether the secondary transform index is determined to be signaled in the coded information. When the secondary transform is determined to be performed, the processing circuitry performs the secondary transform on the second CB and reconstructs the second CB. When the secondary transform is determined not performed, the second CB is reconstructed without performing the secondary transform on the second CB.