Documentation
¶
Overview ¶
Package deint deinterlaces 8-bit 4:2:0 pictures, one frame out for each frame in (the field shown first kept, the other interpolated), as NVDEC's adaptive deinterlacer and ffmpeg's bwdif do for the other decoders here.
The interpolation is yadif's (Michael Niedermayer's "yet another deinterlacing filter"), written from the algorithm: each missing line's sample is the temporal average of the frames around it, kept within how much the picture moves there, and replaced by an edge-directed spatial interpolation where that is nearer: still areas keep their full resolution, moving ones lose no sharpness to combing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deinterlacer ¶
type Deinterlacer struct {
// contains filtered or unexported fields
}
Deinterlacer holds the frame before and after the one it outputs.
func New ¶
func New(out func(*Frame) error) *Deinterlacer
New makes a deinterlacer giving its frames to out (valid during the call).
func (*Deinterlacer) Push ¶
func (d *Deinterlacer) Push(f *Frame) error
Push takes the next frame (which must stay valid until the next Push or Flush returns), giving out the one before it.