remove filterSse
This commit is contained in:
parent
02f13a5195
commit
81ec4b860c
|
@ -236,11 +236,7 @@ func (d *Decoder) frameInit(frame uint32, seekNeeded bool) (err error) {
|
|||
d.flen = d.flenStd
|
||||
}
|
||||
for i := 0; i < d.channels; i++ {
|
||||
if sseEnabled {
|
||||
d.codecs[i].filter = NewSSEFilter(d.data, shift)
|
||||
} else {
|
||||
d.codecs[i].filter = NewCompatibleFilter(d.data, shift)
|
||||
}
|
||||
d.codecs[i].filter = NewCompatibleFilter(d.data, shift)
|
||||
d.codecs[i].adapter.init(10, 10)
|
||||
d.codecs[i].prev = 0
|
||||
}
|
||||
|
|
|
@ -231,11 +231,7 @@ func (e *Encoder) frameInit(frame uint32) (err error) {
|
|||
}
|
||||
// init entropy encoder
|
||||
for i := 0; i < e.channels; i++ {
|
||||
if sseEnabled {
|
||||
e.codecs[i].filter = NewSSEFilter(e.data, shift)
|
||||
} else {
|
||||
e.codecs[i].filter = NewCompatibleFilter(e.data, shift)
|
||||
}
|
||||
e.codecs[i].filter = NewCompatibleFilter(e.data, shift)
|
||||
e.codecs[i].adapter.init(10, 10)
|
||||
e.codecs[i].prev = 0
|
||||
}
|
||||
|
|
23
filter.go
23
filter.go
|
@ -17,7 +17,7 @@ type filterCompat struct {
|
|||
dl [24]int32
|
||||
}
|
||||
|
||||
type filterSse filterCompat
|
||||
// type filterSse filterCompat
|
||||
|
||||
func NewCompatibleFilter(data [8]byte, shift uint32) Filter {
|
||||
t := filterCompat{}
|
||||
|
@ -136,24 +136,3 @@ func (t *filterCompat) Encode(in *int32) {
|
|||
*in -= (sum >> uint32(t.shift))
|
||||
t.error = *in
|
||||
}
|
||||
|
||||
func NewSSEFilter(data [8]byte, shift uint32) Filter {
|
||||
t := filterSse{}
|
||||
t.shift = shift
|
||||
t.round = 1 << uint32(shift-1)
|
||||
t.qm[0] = int32(int8(data[0]))
|
||||
t.qm[1] = int32(int8(data[1]))
|
||||
t.qm[2] = int32(int8(data[2]))
|
||||
t.qm[3] = int32(int8(data[3]))
|
||||
t.qm[4] = int32(int8(data[4]))
|
||||
t.qm[5] = int32(int8(data[5]))
|
||||
t.qm[6] = int32(int8(data[6]))
|
||||
t.qm[7] = int32(int8(data[7]))
|
||||
return &t
|
||||
}
|
||||
|
||||
func (t *filterSse) Decode(in *int32) {
|
||||
}
|
||||
|
||||
func (t *filterSse) Encode(in *int32) {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue