mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
rename rtpcodecs into formatdecenc
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
"github.com/aler9/gortsplib/v2"
|
||||
"github.com/aler9/gortsplib/v2/pkg/base"
|
||||
"github.com/aler9/gortsplib/v2/pkg/format"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
|
||||
"github.com/aler9/gortsplib/v2/pkg/media"
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtph264"
|
||||
)
|
||||
|
||||
// This example shows how to
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpsimpleaudio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
|
||||
)
|
||||
|
||||
// G711 is a G711 format, encoded with mu-law or A-law.
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpsimpleaudio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
|
||||
)
|
||||
|
||||
// G722 is a G722 format.
|
||||
|
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264"
|
||||
"github.com/aler9/gortsplib/v2/pkg/h264"
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtph264"
|
||||
)
|
||||
|
||||
// check whether a RTP/H264 packet contains a IDR, without decoding the packet.
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtph265"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph265"
|
||||
)
|
||||
|
||||
// H265 is a H265 format.
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtplpcm"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtplpcm"
|
||||
)
|
||||
|
||||
// LPCM is an uncompressed, Linear PCM format.
|
||||
|
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpmpeg4audio"
|
||||
)
|
||||
|
||||
// MPEG4Audio is a MPEG-4 audio format.
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpsimpleaudio"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpsimpleaudio"
|
||||
)
|
||||
|
||||
// Opus is a Opus format.
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpvp8"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp8"
|
||||
)
|
||||
|
||||
// VP8 is a VP8 format.
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/gortsplib/v2/pkg/rtpcodecs/rtpvp9"
|
||||
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp9"
|
||||
)
|
||||
|
||||
// VP9 is a VP9 format.
|
||||
|
2
pkg/formatdecenc/formatdecenc.go
Normal file
2
pkg/formatdecenc/formatdecenc.go
Normal file
@@ -0,0 +1,2 @@
|
||||
// Package formatdecenc contains decoders and encoders to decode and encode RTP packets.
|
||||
package formatdecenc
|
@@ -1,2 +0,0 @@
|
||||
// Package rtpcodecs contains utilities that convert RTP packets into codec-specific elements and vice versa.
|
||||
package rtpcodecs
|
Reference in New Issue
Block a user