move codec-specific utilities into pkg/codecs

This commit is contained in:
aler9
2022-12-27 17:19:56 +01:00
parent 68d617ef51
commit aca56089c1
42 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import (
"os"
"time"
"github.com/aler9/gortsplib/v2/pkg/h264"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/asticode/go-astits"
)

View File

@@ -7,7 +7,7 @@ import (
"os"
"time"
"github.com/aler9/gortsplib/v2/pkg/h264"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/asticode/go-astits"
)

2
pkg/codecs/codecs.go Normal file
View File

@@ -0,0 +1,2 @@
// Package codecs contains codec-specific utilities.
package codecs

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/h264"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
)
var subWidthC = []uint32{

View File

@@ -10,8 +10,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
"github.com/aler9/gortsplib/v2/pkg/h264"
)
// check whether a RTP/H264 packet contains a IDR, without decoding the packet.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/h264"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
)

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/h264"
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
)
const (

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/h265"
"github.com/aler9/gortsplib/v2/pkg/codecs/h265"
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
)

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/jpeg"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/jpeg"
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
)

View File

@@ -8,8 +8,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/jpeg"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/headers"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/jpeg"
)
const (