public static interface IMediaCodecSdk.ISnapshotFactory
ISnapshotFactory
- snapshot factory.Modifier and Type | Method and Description |
---|---|
VideoFrame |
generate(ByteArray frame)
Generates video snapshot.
|
VideoFrame |
generate(ByteArray[] frames)
Generates video snapshot for the sequence of I,P,P frames.
|
void |
generateAsJpg(java.io.OutputStream os,
ByteArray frame)
Generates video snapshot.
|
void |
generateAsJpg(java.io.OutputStream os,
ByteArray[] frames)
Generates video snapshot for the sequence of I,P,P frames.
|
VideoFrame generate(ByteArray frame) throws java.lang.Exception
frame
- encoded I-frame datajava.lang.Exception
- if an exception occurredVideoFrame generate(ByteArray[] frames) throws java.lang.Exception
frames
- encoded I-frame and following P,B-frames datajava.lang.Exception
- if an exception occurredvoid generateAsJpg(java.io.OutputStream os, ByteArray frame) throws java.lang.Exception
os
- output stream to write jpgframe
- encoded I-frame datajava.lang.Exception
- if an exception occurredvoid generateAsJpg(java.io.OutputStream os, ByteArray[] frames) throws java.lang.Exception
os
- output stream to write jpgframes
- encoded I-frame and following P,B-frames datajava.lang.Exception
- if an exception occurred