Documentation ¶
Index ¶
- func Encoder(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
- func FixJPEG(b []byte) []byte
- func MakeHeaders(p []byte, t byte, w, h uint16, lqt, cqt []byte) []byte
- func MakeHuffmanHeader(p, codelens, symbols []byte, tableNo, tableClass byte) []byte
- func MakeQuantHeader(p []byte, qt []byte, tableNo byte) []byte
- func MakeTables(q byte) (lqt, cqt []byte)
- func NewWriter(w io.Writer) io.Writer
- func RTPDepay(handlerFunc core.HandlerFunc) core.HandlerFunc
- func RTPPay(handlerFunc core.HandlerFunc) core.HandlerFunc
- func Transcode(b []byte) ([]byte, error)
- type Consumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encoder ¶
func Encoder(codec *core.Codec, handler core.HandlerFunc) core.HandlerFunc
func FixJPEG ¶
FixJPEG - reencode JPEG if it has wrong header
for example, this app produce "bad" images: https://github.com/jacksonliam/mjpg-streamer
and they can't be uploaded to the Telegram servers: {"ok":false,"error_code":400,"description":"Bad Request: IMAGE_PROCESS_FAILED"}
func MakeHuffmanHeader ¶
func MakeTables ¶
func RTPDepay ¶
func RTPDepay(handlerFunc core.HandlerFunc) core.HandlerFunc
func RTPPay ¶
func RTPPay(handlerFunc core.HandlerFunc) core.HandlerFunc
Types ¶
type Consumer ¶
type Consumer struct { core.Connection // contains filtered or unexported fields }
func NewConsumer ¶
func NewConsumer() *Consumer
Click to show internal directories.
Click to hide internal directories.