Documentation ¶
Index ¶
- type Decoder
- type EXR
- func (e EXR) Compress(b bool) (EXR, error)
- func (_ EXR) Decode(r io.Reader) (image.Image, error)
- func (e EXR) Encode(w io.Writer, img image.Image) error
- func (e EXR) EncodeBytes(img image.Image) ([]byte, error)
- func (_ EXR) EncodeFFMPEG(_ image.Image) ([]string, error)
- func (_ EXR) Encoder() RawEncoder
- func (e EXR) Float16() (EXR, error)
- func (e EXR) Float32() (EXR, error)
- type Encoder
- type FFMPegSession
- type FFMPegSessionSource
- type FrameSession
- type ImageCodec
- type Iterator
- type JPEG
- func (_ JPEG) Decode(r io.Reader) (image.Image, error)
- func (_ JPEG) DecodeConfig(r io.Reader) (image.Config, error)
- func (_ JPEG) Encode(w io.Writer, img image.Image) error
- func (_ JPEG) EncodeBytes(img image.Image) ([]byte, error)
- func (_ JPEG) EncodeFFMPEG(img image.Image) ([]string, error)
- func (_ JPEG) Encoder() RawEncoder
- type PNG
- func (_ PNG) Decode(r io.Reader) (image.Image, error)
- func (_ PNG) DecodeConfig(r io.Reader) (image.Config, error)
- func (_ PNG) Encode(w io.Writer, img image.Image) error
- func (_ PNG) EncodeBytes(img image.Image) ([]byte, error)
- func (_ PNG) EncodeFFMPEG(img image.Image) ([]string, error)
- func (_ PNG) Encoder() RawEncoder
- type Raw
- type RawEncoder
- type Render
- type RenderStream
- type RenderStreamBase
- func (s *RenderStreamBase) EncodeBytes(img image.Image) ([]byte, error)
- func (s *RenderStreamBase) ForFrames(count int) *Iterator
- func (s *RenderStreamBase) FrameRate() int
- func (s *RenderStreamBase) FrameRateF() float64
- func (s *RenderStreamBase) Init(_ image.Image) error
- func (s *RenderStreamBase) TimeCode() *time.TimeCode
- func (s *RenderStreamBase) Until(ts string) (*Iterator, error)
- func (s *RenderStreamBase) WriteBytes(b []byte) (int, error)
- func (s *RenderStreamBase) WriteImage(img image.Image) error
- func (s *RenderStreamBase) WriteImageN(img image.Image, num int) error
- type TIFF
- func (_ TIFF) Decode(r io.Reader) (image.Image, error)
- func (_ TIFF) DecodeConfig(r io.Reader) (image.Config, error)
- func (_ TIFF) Encode(w io.Writer, img image.Image) error
- func (_ TIFF) EncodeBytes(img image.Image) ([]byte, error)
- func (_ TIFF) EncodeFFMPEG(img image.Image) ([]string, error)
- func (_ TIFF) Encoder() RawEncoder
- type TarWriter
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EXR ¶
type EXR struct {
// contains filtered or unexported fields
}
func (EXR) Encoder ¶
func (_ EXR) Encoder() RawEncoder
type Encoder ¶
type Encoder interface { RawEncoder Encoder() RawEncoder EncodeBytes(img image.Image) ([]byte, error) EncodeFFMPEG(img image.Image) ([]string, error) }
type FFMPegSession ¶
type FFMPegSession struct { RenderStreamBase // contains filtered or unexported fields }
FFMPegSession handles sending frames to FFMPeg
func (*FFMPegSession) Close ¶
func (s *FFMPegSession) Close() error
type FFMPegSessionSource ¶
type FrameSession ¶
type FrameSession struct {
RenderStreamBase
}
FrameSession handles sending frames to individual images on disk
func (*FrameSession) Close ¶
func (s *FrameSession) Close() error
Close closes the FrameSession. Normally this is handled by try-resources
type ImageCodec ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is returned by a renderer to handle spanning over a range of TimeCode's. Unlike the iterator returned by TimeCode, this one does not advance the TimeCode when Next() is called as that's done when writing an image.
type Raw ¶
type Raw struct{}
Raw package handles raw images. Currently, RGBA and RGBA64 are supported as those are the most common and the way they are stored in memory is directly supported by ffmpeg.
func (Raw) Encoder ¶
func (r Raw) Encoder() RawEncoder
type Render ¶
type Render struct {
// contains filtered or unexported fields
}
func (Render) Exr ¶
func (r Render) Exr() ImageCodec
func (Render) Jpeg ¶
func (r Render) Jpeg() ImageCodec
func (Render) Png ¶
func (r Render) Png() ImageCodec
func (Render) Tiff ¶
func (r Render) Tiff() ImageCodec
type RenderStream ¶
type RenderStreamBase ¶
type RenderStreamBase struct { Writer // contains filtered or unexported fields }
func (*RenderStreamBase) EncodeBytes ¶
func (s *RenderStreamBase) EncodeBytes(img image.Image) ([]byte, error)
func (*RenderStreamBase) ForFrames ¶
func (s *RenderStreamBase) ForFrames(count int) *Iterator
func (*RenderStreamBase) FrameRate ¶
func (s *RenderStreamBase) FrameRate() int
func (*RenderStreamBase) FrameRateF ¶
func (s *RenderStreamBase) FrameRateF() float64
func (*RenderStreamBase) TimeCode ¶
func (s *RenderStreamBase) TimeCode() *time.TimeCode
func (*RenderStreamBase) WriteBytes ¶
func (s *RenderStreamBase) WriteBytes(b []byte) (int, error)
func (*RenderStreamBase) WriteImage ¶
func (s *RenderStreamBase) WriteImage(img image.Image) error
WriteImage writes an image to the stream.
func (*RenderStreamBase) WriteImageN ¶
func (s *RenderStreamBase) WriteImageN(img image.Image, num int) error
WriteImageN writes an image to stream multiple times
type TarWriter ¶
type TarWriter struct { RenderStreamBase // contains filtered or unexported fields }
TarWriter writes frames to a tar file rather than a directory.
type Writer ¶
type Writer interface { // Close the Writer, normally used in try-resources Close() error // WriteBytes the byte slice as a frame WriteBytes(b []byte) (int, error) // WriteImage writes the image as a frame WriteImage(img image.Image) error // WriteImageMulti writes the image as num frames WriteImageN(img image.Image, num int) error }
Writer exposes the interface provided by FFMPegSession and FrameSession to scripts