public interface Sink
Modifier and Type | Method and Description |
---|---|
void |
finish()
Finilizes encoding process, flushes the buffers and closes off the
output file (or any other resources for that matter).
|
ColorSpace |
getInputColor()
Gets the color space that the sink expects
|
void |
init()
Initializes output to this sink.
|
boolean |
isAudio() |
boolean |
isVideo() |
void |
outputAudioFrame(AudioFrameWithPacket audioFrame)
Outputs an audio frame to the sink
|
void |
outputVideoFrame(VideoFrameWithPacket videoFrame)
Outputs video frame to the sink
|
void |
setOption(Options profile,
Object value) |
void init() throws IOException
IOException
void outputVideoFrame(VideoFrameWithPacket videoFrame) throws IOException
decodedFrame
- IOException
void outputAudioFrame(AudioFrameWithPacket audioFrame) throws IOException
audioFrame
- IOException
void finish() throws IOException
IOException
ColorSpace getInputColor()
boolean isVideo()
boolean isAudio()
Copyright © 2019. All rights reserved.