public interface Source
Modifier and Type | Method and Description |
---|---|
void |
finish()
Closes the input and flushes all the buffers related to this source.
|
AudioCodecMeta |
getAudioCodecMeta()
Gets the metadata about audio
|
AudioFrameWithPacket |
getNextAudioFrame()
Gets the next decoded audio frame from this source
|
VideoFrameWithPacket |
getNextVideoFrame()
Gets the next video frame from this source
|
VideoCodecMeta |
getVideoCodecMeta()
Gets the metadata about video
|
boolean |
haveAudio() |
void |
init(PixelStore pixelStore)
Starts reading media data from the source.
|
boolean |
isAudio() |
boolean |
isVideo() |
void |
seekFrames(int seekFrames)
Skips some number of frames in this source
|
void |
setOption(Options option,
Object value) |
void init(PixelStore pixelStore) throws IOException
pixelStore
- The pixel store where the buffers for the returned pictures
will be borrowed from.IOException
void seekFrames(int seekFrames) throws IOException
skipFrames
- The number of frames to skipIOException
VideoFrameWithPacket getNextVideoFrame() throws IOException
IOException
AudioFrameWithPacket getNextAudioFrame() throws IOException
IOException
void finish()
boolean haveAudio()
VideoCodecMeta getVideoCodecMeta()
AudioCodecMeta getAudioCodecMeta()
boolean isVideo()
boolean isAudio()
Copyright © 2019. All rights reserved.