Class AudioFrameHolder
java.lang.Object
com.zakgof.velvetvideo.impl.middle.AudioFrameHolder
- All Implemented Interfaces:
IFrameHolder,java.lang.AutoCloseable
public class AudioFrameHolder extends java.lang.Object implements java.lang.AutoCloseable, IFrameHolder
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AudioFrameHolder(AVRational timebase, boolean encode, AVCodecContext codecCtx, javax.sound.sampled.AudioFormat userFormat) -
Method Summary
Modifier and Type Method Description voidclose()IAudioFramedecode(AVFrame frame, VelvetVideoLib.DemuxerImpl.AbstractDecoderStream stream)AVFrameframe()intframeBytes()intput(byte[] samples, int offset)
-
Field Details
-
Constructor Details
-
AudioFrameHolder
public AudioFrameHolder(AVRational timebase, boolean encode, AVCodecContext codecCtx, javax.sound.sampled.AudioFormat userFormat)
-
-
Method Details
-
frameBytes
public int frameBytes() -
put
public int put(byte[] samples, int offset) -
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceIFrameHolder
-
frame
- Specified by:
framein interfaceIFrameHolder
-
decode
- Specified by:
decodein interfaceIFrameHolder
-