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
IOExceptionvoid outputVideoFrame(VideoFrameWithPacket videoFrame) throws IOException
decodedFrame - IOExceptionvoid outputAudioFrame(AudioFrameWithPacket audioFrame) throws IOException
audioFrame - IOExceptionvoid finish()
throws IOException
IOExceptionColorSpace getInputColor()
boolean isVideo()
boolean isAudio()
Copyright © 2019. All rights reserved.