A method of decoding video data, the method comprising: determining values for coded sub-block flags of one or more neighboring sub-blocks of transform coefficients to a current sub-block; determining that a coded sub-block flag of the current sub-block indicates that the current sub-block includes at least one non-zero transform coefficient; in response to the determination that the coded sub-block flag of the current sub block indicates that the current sub-block includes the at least one non-zero transform coefficient using the values for the coded sub-block flags of the neighboring sub-blocks to determine a context for entropy decoding one or more syntax elements of the at least one non-zero transform coefficient of the current sub-block, wherein using the values comprises: determining a first context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a first set of values; and determining a second context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a second set of values, the first context being different than the second context and the first set of values being different than the second set of values; and entropy decoding the one or more syntax elements of the transform coefficient using the determined context. determining values for coded sub-block flags of one or more neighboring sub-blocks of transform coefficients to a current sub-block; determining that a coded sub-block flag of the current sub-block indicates that the current sub-block includes at least one non-zero transform coefficient; in response to the determination that the coded sub-block flag of the current sub block indicates that the current sub-block includes the at least one non-zero transform coefficient using the values for the coded sub-block flags of the neighboring sub-blocks to determine a context for entropy decoding one or more syntax elements of the at least one non-zero transform coefficient of the current sub-block, wherein using the values comprises: determining a first context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a first set of values; and determining a second context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a second set of values, the first context being different than the second context and the first set of values being different than the second set of values; and entropy decoding the one or more syntax elements of the transform coefficient using the determined context. determining a first context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a first set of values; and determining a second context for entropy decoding the one or more syntax elements of the at least one non-zero transform coefficient when the values for the coded sub-block flags of the neighboring sub-blocks have a second set of values, the first context being different than the second context and the first set of values being different than the second set of values; and entropy decoding the one or more syntax elements of the transform coefficient using the determined context.