Move obuwriter to utilities

This commit is contained in:
DataHoarder 2022-11-14 09:30:35 +01:00
parent d447c36648
commit 95146cec2e
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,8 @@ import "C"
import (
"errors"
"fmt"
"git.gammaspectra.live/S.O.N.G/Ignite/bitstream/obu"
"git.gammaspectra.live/S.O.N.G/Ignite/frame"
"git.gammaspectra.live/S.O.N.G/Ignite/utilities/obuwriter"
"io"
"runtime"
"strconv"
@ -20,7 +20,7 @@ import (
)
type Encoder struct {
w *obu.Writer
w *obuwriter.Writer
cleaned atomic.Bool
cfg C.aom_codec_enc_cfg_t
codec C.aom_codec_ctx_t
@ -184,7 +184,7 @@ func NewEncoder(w io.Writer, properties frame.StreamProperties, settings map[str
}
var err error
if e.w, err = obu.NewWriter(w, properties.Width, properties.Height, 0x31305641, properties.FrameRate); err != nil {
if e.w, err = obuwriter.NewWriter(w, properties.Width, properties.Height, 0x31305641, properties.FrameRate); err != nil {
return nil, err
}

View file

@ -1,4 +1,4 @@
package obu
package obuwriter
import (
"encoding/binary"