36. One or more non-transitory computer-readable media having stored thereon executable instructions configured to, when executed, cause an apparatus at least to: receive a syntax element to be encoded as a code word, wherein the syntax element relates to at least one of a coded block pattern, a transform split pattern, or motion partition information; determine a mapping between the syntax element and the code word on the basis of a hierarchy level in a tree structure, wherein the tree structure relates to at least one of a transform block size, a prediction block size, or a block size, and wherein the hierarchy level represents division of a block into smaller blocks; use the mapping to obtain the code word; and update the mapping.
36. One or more non-transitory computer-readable media having stored thereon executable instructions configured to, when executed, cause an apparatus at least to: receive a syntax element to be encoded as a code word, wherein the syntax element relates to at least one of a coded block pattern, a transform split pattern, or motion partition information; determine a mapping between the syntax element and the code word on the basis of a hierarchy level in a tree structure, wherein the tree structure relates to at least one of a transform block size, a prediction block size, or a block size, and wherein the hierarchy level represents division of a block into smaller blocks; use the mapping to obtain the code word; and update the mapping. 40. The one or more non-transitory computer-readable media according to claim 36 , having stored thereon further executable instructions configured to, when executed, cause the apparatus to: use at least two sorting tables, wherein each of said at least two sorting tables comprises a set of code words; use the hierarchy level to select a sorting table from said at least two sorting tables; and use said syntax element to select the code word.