slicetype_mb_cost 函數
函數功能
- 計算每個宏塊 MB 的代價 cost。
函數參數分析
- x264_t *h:全局編碼結構體
- x264_mb_analysis_t *a:宏塊分析結構體
- x264_frame_t **frames:系列幀數據結構體
- int p0:幀序號之一,一般指向靠前幀
- int p1:幀序號之一,一般指向靠后幀
- int b:幀標志位,一般指向當前幀
- int dist_scale_factor:距離縮放因子,一般用于預測相關
- int do_search[2]:是否進行搜索的布爾數組,用來標記是否需要對兩個參考幀進行運動搜索;
- const x264_weight_t *w:加權結構體指針
- int *output_inter:幀間預測代價輸出結果指針
- int *output_intra:幀內預測代價輸出結果指針