Patent ID: 11856196

Abstract:
Embodiments of the present invention provide a method and device for processing a video signal. A method for processing a video signal according to an embodiment of the present specification comprises the steps of: acquiring position information of a last significant coefficient according to scanning order in a transform block; and performing residual coding on the basis of the position information of the last significant coefficient. The position information of the last significant coefficient includes a first prefix for a column position of the last significant coefficient and a second prefix for a row position of the last significant coefficient; a range of the first prefix is determined on the basis of an effective width of the transform block; a range of the second prefix is determined on the basis of an effective height of the transform block; if a width of the transform block corresponds to a first size, the effective width of the transform block is determined to be a second size; if a height of the transform block corresponds to the first size, the effective height of the transform block is determined to be the second size; and the second size is configured to be smaller than the first size.