mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
ea03aa832d
- implement WebP streaming with multipart support - add snapshot endpoint for WebP format with quality options - introduce WebP encoding using pure Go library without FFmpeg - update documentation and links for new WebP features
12 lines
295 B
Go
12 lines
295 B
Go
package webp
|
|
|
|
import (
|
|
"github.com/AlexxIT/go2rtc/pkg/core"
|
|
"github.com/AlexxIT/go2rtc/pkg/mjpeg"
|
|
)
|
|
|
|
// RTPDepay depayloads RTP/JPEG packets and converts the resulting JPEG frame to WebP.
|
|
func RTPDepay(handler core.HandlerFunc) core.HandlerFunc {
|
|
return mjpeg.RTPDepay(JPEGToWebP(handler))
|
|
}
|