22. An apparatus comprising: a processor; and memory storing executable instructions configured to, with the processor, cause the 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.
22. An apparatus comprising: a processor; and memory storing executable instructions configured to, with the processor, cause the 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. 23. The apparatus according to claim 22 , wherein the tree structure comprises a coding tree.