codec/h264/h264dec: started added TestNewPredWeightTable

This commit is contained in:
Saxon 2019-08-05 00:18:15 +09:30
parent 34ce81370d
commit b6eb39f4e0
1 changed files with 18 additions and 0 deletions

View File

@ -123,3 +123,21 @@ func TestNewRefPicListModification(t *testing.T) {
}
}
}
func TestNewPredWeightTable(t *testing.T){
tests := []struct{
in string
s SliceHeader
want PredWeightTable
}{
{
in: "011" + // ue(v) luma_log2_weight_denom = 2
"00100" + // ue(v) chroma_log2_weigght_denom = 3
"1" + // u(1) luma_weight_l0_flag = true
"011" + // se(v) luma_weight_l0[0] = -1
"010" + // se(v) luma_offset_l0[0] = 1
"1" + // u(1) chroma_weight_l0_flag = true
},
}
}