update VP8/VP9 examples to decode/encode frames (#704)

This commit is contained in:
Alessandro Ros
2025-02-19 22:45:31 +01:00
committed by GitHub
parent a17e1f776e
commit 3829fef787
29 changed files with 1513 additions and 195 deletions

View File

@@ -16,7 +16,7 @@ import (
// 1. connect to a RTSP server
// 2. check if there's a M-JPEG format
// 3. get JPEG images of that format
// 4. decode JPEG images into raw images
// 4. decode JPEG images into RGBA frames
func main() {
c := gortsplib.Client{}
@@ -77,7 +77,7 @@ func main() {
return
}
// convert JPEG images into raw images
// convert JPEG images into RGBA frames
image, err := jpeg.Decode(bytes.NewReader(enc))
if err != nil {
panic(err)