Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Feb 10, 2021
1 parent f67eb4a commit 372a69e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mimagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func NewMultiImageRGBAPool(funcs ...multiImageBufferPoolOptionFunc) *MultiImageR
}

tuples := uniqImagepoolTuple(mOpt.tuples)

sortTuples(tuples)

pools := make([]*ImageRGBAPool, len(tuples))
for i, t := range tuples {
pools[i] = NewImageRGBAPool(t.poolSize, t.rect, mOpt.poolFuncs...)
Expand Down Expand Up @@ -136,8 +136,8 @@ func NewMultiImageNRGBAPool(funcs ...multiImageBufferPoolOptionFunc) *MultiImage
}

tuples := uniqImagepoolTuple(mOpt.tuples)

sortTuples(tuples)

pools := make([]*ImageNRGBAPool, len(tuples))
for i, t := range tuples {
pools[i] = NewImageNRGBAPool(t.poolSize, t.rect, mOpt.poolFuncs...)
Expand Down Expand Up @@ -194,12 +194,11 @@ func NewMultiImageYCbCrPool(sample image.YCbCrSubsampleRatio, funcs ...multiImag
}

tuples := uniqImagepoolTuple(mOpt.tuples)
poolFuncs := mOpt.poolFuncs

sortTuples(tuples)

pools := make([]*ImageYCbCrPool, len(tuples))
for i, t := range tuples {
pools[i] = NewImageYCbCrPool(t.poolSize, t.rect, sample, poolFuncs...)
pools[i] = NewImageYCbCrPool(t.poolSize, t.rect, sample, mOpt.poolFuncs...)
}
return &MultiImageYCbCrPool{
tuples: tuples,
Expand Down

0 comments on commit 372a69e

Please sign in to comment.