{'fraction_non_alphanumeric': 0.029495718363463368, 'fraction_numerical': 0.010466222645099905, 'mean_word_length': 5.188235294117647, '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}}
Using H.264 coded block patterns for fast inter-mode selection

The support of variable block-sizes, though significantly improves the compression efficiency, imposes a big computational challenge on an H.264 encoder. In this paper, we present a new fast inter-mode decision algorithm based on the coded block pattern (CBP). Specifying which blocks within a macroblock are uncoded, CBP is a good indicator of block-matching accuracy and can be used to reduce the rate-distortion calculation required for mode selection. Experimental results show that the proposed method achieves more than 50% reduction in computation time relative to the exhaustive mode search with negligible degradation in visual quality. Other merits of the proposed method include (1) no extra computation is needed for obtaining CBP; (2) no ad-hoc threshold is involved in the algorithm; (3) in contrast to the previous early-skip algorithm that yields very limited improvement for high-activity videos, the proposed method is highly reliable for various video characteristics.