Patent ID: 11924469
Assignee: BYTEDANCE INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 10:
11. 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, during a conversion between a current video block of a video and a bitstream of the video, whether side information of the current video block relating to a secondary transform tool is included in the bitstream, based on a relationship between at least one of a width (W) and a height (H) of the current video block and an allowed maximum transform size (T); and, perform the conversion based on the determining,
wherein using the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of the current video block prior to quantization, or
wherein using the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization of the current video block before applying an inverse primary transform, and
wherein whether the side information is included in the bitstream is determined further based on a location of a last non-zero coefficient in a residual of the current video block, and when the side information is included in the bitstream, the last non-zero coefficient is located in a region of the current video block to which that the secondary transform tool is applied;
wherein the side information is excluded from the bitstream in a case satisfying at least one of W>T or H>T.