mirror of https://bitbucket.org/ausocean/av.git
codec/h264/h264dec: started added TestNewPredWeightTable
This commit is contained in:
parent
34ce81370d
commit
b6eb39f4e0
|
@ -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
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue