Patent attributes
Aspects of the disclosure provide methods, apparatuses, and non-transitory computer-readable storage mediums for video encoding/decoding. In a method, prediction information for a current block is decoded. The prediction information indicates a first intra prediction mode and a secondary transform index, based on which a secondary transform core is determined. A first transform coefficient block is de-quantized from the prediction information. A size of the first transform coefficient block is less than a size of the secondary transform core. A part of a second transform coefficient block is generated based on the first transform coefficient block and the secondary transform core. A size of the second transform coefficient block equals the size of the secondary transform core. A size of the part of the second transform coefficient equals the size of the first transform coefficient block. The current block is reconstructed based on the part of the second transform coefficient block.