A method of decoding video data, the method comprising: receiving, from an encoded bitstream, a first syntax element indicating a range of values based on a bit-depth, wherein the range of values is used to represent absolute values of transform coefficients of a coding unit of the video data, wherein the range of values includes a minimum value and a maximum value, wherein the bit-depth represents a number of bits used to represent luma or chroma video components of the coding unit of the video data, and wherein the coding unit of the video data is a region of the video data; receiving, from the encoded bitstream, a second syntax element indicating an absolute value of a first transform coefficient of the transform coefficients of the coding unit of the video data, wherein the second syntax element is represented by a Golomb-Rice/Exponential-Golomb coding prefix codeword and a Golomb-Rice/Exponential-Golomb coding suffix codeword concatenated to the prefix codeword; determining a maximum number of suffix bits to be used when decoding the suffix codeword of the second syntax element, wherein the maximum number of suffix bits is based on the maximum value of the range indicated by the first syntax element that is based on the bit-depth representing the number of bits used to represent luma or chroma video components of the coding unit of the video data; determining a maximum number of prefix bits to be used when decoding the prefix codeword of the second syntax element, wherein the maximum number of prefix bits is based on a difference between the determined maximum number of suffix bits and a value representative of a maximum number of bits used to represent the transfom coefficients of the coding unit of the video data; decoding the prefix codeword of the second syntax element based on the determined maximum number of prefix bits, wherein the prefix codeword has a number of bits that is less than or equal to the determined maximum number of prefix bits; decoding the suffix codeword of the second syntax element based on the determined maximum number of suffix bits, wherein the suffix codeword has a number of bits that is less than or equal to the determined maximum number of suffix bits; determining the absolute value of the first transform coefficient based on the decoded prefix codeword and the decoded suffix codeword; and decoding the coding unit based on the determined absolute value of the first transform coefficient. receiving, from an encoded bitstream, a first syntax element indicating a range of values based on a bit-depth, wherein the range of values is used to represent absolute values of transform coefficients of a coding unit of the video data, wherein the range of values includes a minimum value and a maximum value, wherein the bit-depth represents a number of bits used to represent luma or chroma video components of the coding unit of the video data, and wherein the coding unit of the video data is a region of the video data; receiving, from the encoded bitstream, a second syntax element indicating an absolute value of a first transform coefficient of the transform coefficients of the coding unit of the video data, wherein the second syntax element is represented by a Golomb-Rice/Exponential-Golomb coding prefix codeword and a Golomb-Rice/Exponential-Golomb coding suffix codeword concatenated to the prefix codeword; determining a maximum number of suffix bits to be used when decoding the suffix codeword of the second syntax element, wherein the maximum number of suffix bits is based on the maximum value of the range indicated by the first syntax element that is based on the bit-depth representing the number of bits used to represent luma or chroma video components of the coding unit of the video data; determining a maximum number of prefix bits to be used when decoding the prefix codeword of the second syntax element, wherein the maximum number of prefix bits is based on a difference between the determined maximum number of suffix bits and a value representative of a maximum number of bits used to represent the transfom coefficients of the coding unit of the video data; decoding the prefix codeword of the second syntax element based on the determined maximum number of prefix bits, wherein the prefix codeword has a number of bits that is less than or equal to the determined maximum number of prefix bits; decoding the suffix codeword of the second syntax element based on the determined maximum number of suffix bits, wherein the suffix codeword has a number of bits that is less than or equal to the determined maximum number of suffix bits; determining the absolute value of the first transform coefficient based on the decoded prefix codeword and the decoded suffix codeword; and decoding the coding unit based on the determined absolute value of the first transform coefficient.