streamy

package module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 5 Imported by: 1

README

Streamy

A library that reads RGBA32 image data from a file using libav. And it loops. At least it's better than my old FFmpeg pipe solution.

Notes

I have not yet determined if this works properly on little-endian systems. It probably depends on how the returned array is used, but I'd like to make sure. I know sdl should handle it, so ImageSort should be fine, but raylib...

While the source code of this library is licensed under the zlib License, this library links with FFmpeg's libraries, which may be licensed under the GPL depending on compile options. As such, the compiled version may be licensed under the GPL. If you wish to avoid this, consider using an LGPL-compliant version of the libav libraries.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVideoFrame

func GetVideoFrame(file string, i int) (*image.RGBA, error)

Types

type AvVideoReader

type AvVideoReader C.LibavReader

func NewAvVideoReader

func NewAvVideoReader(file string, userAgent string, loop bool) (*AvVideoReader, error)

func (*AvVideoReader) Destroy

func (v *AvVideoReader) Destroy() error

func (*AvVideoReader) GetDimensions

func (v *AvVideoReader) GetDimensions() (int32, int32)

func (*AvVideoReader) GetFPS

func (v *AvVideoReader) GetFPS() float32

func (*AvVideoReader) Read

func (v *AvVideoReader) Read(b []uint8) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL