Documentation
¶
Overview ¶
Package resize provides a pure-Go planar 4:2:0 video resize filter adapter.
Each plane is resampled separably: an axis that shrinks averages area (each output sample is the coverage-weighted mean of the source span it covers), so downscaled renditions do not alias, and an axis that grows interpolates linearly. Coefficients are fixed point, built once per geometry, and a plane that keeps its size is copied.
Index ¶
- func Descriptor() filter.Descriptor
- func Register(registry *filter.SimpleRegistry)
- type Factory
- type Filter
- func (f *Filter) Close() error
- func (f *Filter) Descriptor() filter.Descriptor
- func (f *Filter) FilterInto(ctx context.Context, frame *av.Frame, out *filter.Result) error
- func (f *Filter) FlushInto(context.Context, *filter.Result) error
- func (f *Filter) HandleEvent(context.Context, *av.Event) error
- func (f *Filter) Open(ctx context.Context, config filter.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Descriptor ¶
func Descriptor() filter.Descriptor
func Register ¶
func Register(registry *filter.SimpleRegistry)
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) Descriptor ¶
func (f *Filter) Descriptor() filter.Descriptor