Optimization

This commit is contained in:
nuknal
2024-07-12 15:59:21 +08:00
parent b8ac9cf4d4
commit 783b83b30d
8 changed files with 34 additions and 24 deletions

View File

@@ -5,6 +5,7 @@ import (
"path/filepath"
"github.com/sirupsen/logrus"
"starwiz.cn/sjy01/image-proc/pkg/payload"
"starwiz.cn/sjy01/image-proc/pkg/rrc"
)
@@ -24,7 +25,7 @@ func (r *Registrator) DoRRCbyLUT(lutDir string) error {
}
for i := 0; i < 4; i++ {
lutMSS, err := rrc.LoadLUT(filepath.Join(lutDir, fmt.Sprintf("B%d.LUT", i+1)), 2336)
lutMSS, err := rrc.LoadLUT(filepath.Join(lutDir, fmt.Sprintf("B%d.LUT", i+1)), payload.MSS_PIXEL_WIDTH)
if err != nil {
logrus.Error("load mss gray table failed")
return err