Class VideoEncoderHelper
- java.lang.Object
-
- com.sfu_3dlg_hcvc.multiscan.a3dscannerapp.helpers.VideoEncoderHelper
-
public class VideoEncoderHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedOutputStreambufferedOutputStreamprivate intframeCountprivate intmBitrateprivate MediaCodecmediaCodecprivate MediaMuxermediaMuxerprivate intmFrameRateprivate intmHeightprivate intmWidthprivate static java.lang.StringTAG
-
Constructor Summary
Constructors Constructor Description VideoEncoderHelper(int mWidth, int mHeight, int mFrameRate, int mBitrate, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidconfigureMediaCodec()private voidconfigureMediaMuxer(java.io.File file)private voidcreateFile(java.io.File file)voidencode(java.nio.ByteBuffer byteBuffer, int byteBufferSize, long timestamp)intgetFrameCount()private voidrelease()
-
-
-
Field Detail
-
TAG
private static final java.lang.String TAG
- See Also:
- Constant Field Values
-
mediaCodec
private MediaCodec mediaCodec
-
mediaMuxer
private MediaMuxer mediaMuxer
-
frameCount
private int frameCount
-
bufferedOutputStream
private java.io.BufferedOutputStream bufferedOutputStream
-
mWidth
private final int mWidth
-
mHeight
private final int mHeight
-
mFrameRate
private final int mFrameRate
-
mBitrate
private final int mBitrate
-
-
Method Detail
-
getFrameCount
public int getFrameCount()
-
configureMediaCodec
private void configureMediaCodec()
-
configureMediaMuxer
private void configureMediaMuxer(java.io.File file)
-
encode
public void encode(java.nio.ByteBuffer byteBuffer, int byteBufferSize, long timestamp)
-
release
private void release()
-
createFile
private void createFile(java.io.File file)
-
-