{'fraction_non_alphanumeric': 0.014548981571290009, 'fraction_numerical': 0.02133850630455868, 'mean_word_length': 5.2926829268292686, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Rate Distortion Optimization of H.264 with Main Profile Compatibility

Using soft decision quantization rather than the conventional hard decision quantization, this paper studies a joint rate distortion design of motion prediction, quantization and entropy coding for the H.264 main profile encoding. Specifically, a soft decision quantization algorithm is proposed based on the context adaptive binary arithmetic coding method in H.264. The proposed algorithm is proved to achieve optimal soft decision quantization for a block with given motion prediction and quantization step size in the sense of minimizing the true rate distortion cost. It is then used in jointly designing motion prediction and residual coding for H.264 main profile coding. Experiments have been conducted based on the reference encoder JM82 of H.264. Comparative studies show that the proposed joint design method achieves an average 10% rate reduction while maintaining the same quality over the rate distortion method in the reference software of H.264