Hi, Here’s the ported legacy code. It’s ready for review. A couple of notes about the patch.
1. The lookahead operates on 16x16 blocks (8x8 blocks in the subsampled domain for intra/inter cost evaluation). 2. There currently isn’t multithreading support. I’ve added FIXME tags about that in fenc_la_add_frame and fenc_la_process_frames. 3. The lookahead currently ignores the rate control strategy. 4. Weighted prediction isn’t supported. 5. The assembly code for the subsampling code is missing. 6. Scene cut detection looks like it’s working. I concatenated 10 frames from 3 different sequences. Scene cuts are correctly detected. 7. All features are currently enabled. It isn’t possible to deactivate AQ or block flow. 8. From my simple tests, the analysis flag don’t seem to be required. I still kept them. 9. Cost penalties haven’t been ported. This requires running experiments. I’ve left FIXME tags about the subject. 10. To activate the lookahead on the command-line, use -p “lookahead=n,m”, where n is the decision delay, and m is the process delay. 11. The legacy “dec_stats” structure hasn’t been ported. It isn’t clear if we wish to include this eventually or not. Cheers, François
lookahead.patch
Description: lookahead.patch
