Patent ID: 8891617

Claim:
A method for processing video data, the video data being contained in a matrix, the method comprising: reading the video data along a predetermined scanning pattern through the matrix; determining a first context model for a first element of the matrix along a scanning line of the scanning pattern based on neighboring elements of the first element that are not along the scanning line by: selecting the first element of the matrix, the matrix being a significance map including a plurality of elements, the first element and each of the neighboring elements of the first element belonging to the plurality of elements and each element of the plurality of elements having a respective value indicating a respective value of a quantized transform coefficient for a video block having a same size as the matrix; combining values of each of the neighboring elements of the first element to obtain a first single value; and selecting the first context model from a plurality of context models based on the first single value matching an identifier of the first context model; and processing the element based on the first context model.