主权项 |
1. A method for decoding a video signal performed by a decoding apparatus, comprising:
receiving the video signal, the video signal including a bitstream of an enhanced layer and a bitstream of a base layer; parsing, from the bitstream of the enhanced layer, coding information of a current block in the enhanced layer, the coding information of the current block indicating whether prediction information of the base layer is used to decode the current block in the enhanced layer, the prediction information including a prediction mode, partition information and motion information; and decoding the video signal based on the coding information of the current block, wherein the parsing comprises: parsing, from the bitstream of the enhanced layer, coding information of a neighboring block in the enhanced layer, the coding information of the neighboring block indicating whether the prediction information of the base layer is used to decode the neighboring block in the enhanced layer, the neighboring block including at least one of an upper block and a left block adjacent to the current block; deriving flag information of the neighboring block based on the coding information of the neighboring block, the flag information indicating a value determined based on an availability of the neighboring block and the coding information of the neighboring block; deriving a first index variable using the flag information of the neighboring block, the first index variable being derived by adding the flag information of the upper block to the flag information of the left block; deriving a second index variable using a context index offset for the coding information of the current block and the first index variable; determining an initial value of a function for probability coding based on the second index variable; and modeling the coding information of the current block using the initial value. |