homerHEVC代码阅读(23)——去方块滤波、SAO、熵编码的主要流程

来源:互联网 发布:数控攻牙编程 编辑:程序博客网 时间:2024/06/05 12:44
hmr_deblock_sao_pad_sync_ctu是去方块滤波、sao、熵编码的主函数,它的流程如下:
1、对cu进行去方块滤波——hmr_deblock_filter_cu
2、选择比特流——wfpp_encode_select_bitstream
3、对cu进行sao操作——hmr_wpp_sao_ctu
4、对cu进行熵编码——wfpp_encode_ctu
5、sao的偏移操作——sao_offset_ctu
6、参考图像边缘填充——reference_picture_border_padding_ctu

wfpp_encode_ctu流程:
1、比特流中比特数的统计——hmr_bitstream_bitcount
2、对sao信息进行熵编码——ee_encode_sao
3、对CTU进行熵编码——ee_encode_ctu
4、对比特流中的比特数进行统计——hmr_bitstream_bitcount
5、复制熵编码模型——ee_copy_entropy_model
6、对片的熵编码结束——ee_end_slice

ee_encode_ctu流程:
1、对划分标志进行编码——encode_split_flag
2、对编码单元进行编码——ee_encode_coding_unit

ee_encode_coding_unit流程:
1、对skip标志进行编码——encode_skip_flag
2、对merge的索引进行编码——encode_merge_index
3、对预测模式进行编码——encode_pred_mode
4、对划分模式进行编码——encode_part_size
5、对帧内预测的亮度分量的角度预测进行编码——encode_intra_dir_luma_ang
6、对帧内预测的色度分量的角度预测进行编码——encode_intra_dir_chroma
7、对帧间预测的运动信息进行编码——encode_inter_motion_info
8、对一个cu的熵编码结束——encode_end_of_cu
0 0