mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
move codec-specific utilities into pkg/codecs
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/aler9/gortsplib/v2/pkg/h264"
|
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
|
||||||
"github.com/asticode/go-astits"
|
"github.com/asticode/go-astits"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/aler9/gortsplib/v2/pkg/h264"
|
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
|
||||||
"github.com/asticode/go-astits"
|
"github.com/asticode/go-astits"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
2
pkg/codecs/codecs.go
Normal file
2
pkg/codecs/codecs.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package codecs contains codec-specific utilities.
|
||||||
|
package codecs
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/aler9/gortsplib/v2/pkg/bits"
|
"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{
|
var subWidthC = []uint32{
|
@@ -10,8 +10,8 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"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/formatdecenc/rtph264"
|
||||||
"github.com/aler9/gortsplib/v2/pkg/h264"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// check whether a RTP/H264 packet contains a IDR, without decoding the packet.
|
// check whether a RTP/H264 packet contains a IDR, without decoding the packet.
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"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"
|
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"github.com/pion/rtp"
|
||||||
|
|
||||||
"github.com/aler9/gortsplib/v2/pkg/h264"
|
"github.com/aler9/gortsplib/v2/pkg/codecs/h264"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"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"
|
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"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/headers"
|
||||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/jpeg"
|
|
||||||
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
|
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/rtp"
|
"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/headers"
|
||||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmjpeg/jpeg"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Reference in New Issue
Block a user