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.BufferedOutputStream
bufferedOutputStream
private int
frameCount
private int
mBitrate
private MediaCodec
mediaCodec
private MediaMuxer
mediaMuxer
private int
mFrameRate
private int
mHeight
private int
mWidth
private static java.lang.String
TAG
-
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 void
configureMediaCodec()
private void
configureMediaMuxer(java.io.File file)
private void
createFile(java.io.File file)
void
encode(java.nio.ByteBuffer byteBuffer, int byteBufferSize, long timestamp)
int
getFrameCount()
private void
release()
-
-
-
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)
-
-