diff --git a/codec/h264/h264dec/slice_test.go b/codec/h264/h264dec/slice_test.go index b5de6a6a..375092c9 100644 --- a/codec/h264/h264dec/slice_test.go +++ b/codec/h264/h264dec/slice_test.go @@ -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 + }, + } +}