A method for decoding image content from an encoded bitstream comprising one or more blocks, each block comprising a number of samples, the method comprising: Dividing , by a decoder circuit, at least one of the one or more blocks comprising one or more components of the image content into N single samples and M sample groups corresponding to one of the one or more components, where N is greater than or equal to one and M is greater than or equal to one; Decoding , by the decoder circuit, each of the N single samples using a symbol variable length code (SVLC) to generate one or more decoded single samples; Decoding , by the decoder circuit, each of the M sample groups using a common prefix entropy code (CPEC) to generate one or more decoded sample groups, each of the M sample groups comprising a variable length prefix and one or more fixed length suffixes representing a plurality of samples; concatenating , by the decoder circuit, the decoded single samples and the decoded sample groups into a block of residuals; and reconstructing , by the decoder circuit, the image content based on previously reconstructed neighboring blocks of the image content and the block of residuals, characterised in that N and M are set in accordance with a target decoder throughput by: calculating M based on the number of samples and a highest available throughput for at least one of the one or more blocks; calculating a number of variable length codes based on the number of samples of the block and the target decoder throughput; and calculating N based on the number of variable length codes and M . Dividing , by a decoder circuit, at least one of the one or more blocks comprising one or more components of the image content into N single samples and M sample groups corresponding to one of the one or more components, where N is greater than or equal to one and M is greater than or equal to one; Decoding , by the decoder circuit, each of the N single samples using a symbol variable length code (SVLC) to generate one or more decoded single samples; Decoding , by the decoder circuit, each of the M sample groups using a common prefix entropy code (CPEC) to generate one or more decoded sample groups, each of the M sample groups comprising a variable length prefix and one or more fixed length suffixes representing a plurality of samples; concatenating , by the decoder circuit, the decoded single samples and the decoded sample groups into a block of residuals; and reconstructing , by the decoder circuit, the image content based on previously reconstructed neighboring blocks of the image content and the block of residuals, characterised in that N and M are set in accordance with a target decoder throughput by: calculating M based on the number of samples and a highest available throughput for at least one of the one or more blocks; calculating a number of variable length codes based on the number of samples of the block and the target decoder throughput; and calculating N based on the number of variable length codes and M . calculating M based on the number of samples and a highest available throughput for at least one of the one or more blocks; calculating a number of variable length codes based on the number of samples of the block and the target decoder throughput; and calculating N based on the number of variable length codes and M . <EOS>