A method of decoding video data, the method comprising: receiving , by a video decoder , a bitstream that comprises an encoded representation of the video data; determining , by the video decoder, that a coding unit, CU, of the video data is partitioned into transform units, TUs, of the CU based on a tree structure, wherein the CU consists of a coding block that has the same size as the CU, wherein the CU is partitioned into PUs, and each PU consists of a prediction block that has the same size as the PU, wherein determining that the CU is partitioned into the TUs of the CU based on the tree structure comprises determining , by the video decoder, that a node in the tree structure has exactly two child nodes in the tree structure, and wherein a root node of the tree structure corresponds to a coding block of the CU, each respective non-root node of the tree structure corresponds to a respective block that is a partition of a block that corresponds to a parent node of the respective non-root node, and leaf nodes of the tree structure correspond to the TUs of the CU; and for at least one of the TUs of the CU applying , by the video decoder, an inverse transform to a block of transform coefficients of the TU to generate a transform block of residual data of the TU, wherein the transform block of residual data of the TU has the same size as the TU; and reconstructing , by the video decoder, samples of a coding block of the CU by adding samples of a predictive block of a PU of the CU to corresponding samples of the transform block of residual data of the TU of the CU; characterized in that the CU contains both intra-prediction and inter-prediction PUs. receiving , by a video decoder , a bitstream that comprises an encoded representation of the video data; determining , by the video decoder, that a coding unit, CU, of the video data is partitioned into transform units, TUs, of the CU based on a tree structure, wherein the CU consists of a coding block that has the same size as the CU, wherein the CU is partitioned into PUs, and each PU consists of a prediction block that has the same size as the PU, wherein determining that the CU is partitioned into the TUs of the CU based on the tree structure comprises determining , by the video decoder, that a node in the tree structure has exactly two child nodes in the tree structure, and wherein a root node of the tree structure corresponds to a coding block of the CU, each respective non-root node of the tree structure corresponds to a respective block that is a partition of a block that corresponds to a parent node of the respective non-root node, and leaf nodes of the tree structure correspond to the TUs of the CU; and for at least one of the TUs of the CU applying , by the video decoder, an inverse transform to a block of transform coefficients of the TU to generate a transform block of residual data of the TU, wherein the transform block of residual data of the TU has the same size as the TU; and reconstructing , by the video decoder, samples of a coding block of the CU by adding samples of a predictive block of a PU of the CU to corresponding samples of the transform block of residual data of the TU of the CU; characterized in that the CU contains both intra-prediction and inter-prediction PUs. <EOS>