VideoEncoder
Created by pedro on 19/01/17. This class need use same resolution, fps and imageFormat that Camera1ApiManagerGl
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun outputAvailable(@NonNull mediaCodec: MediaCodec, outBufferIndex: Int, @NonNull bufferInfo: MediaCodec.BufferInfo)
abstract fun outputAvailable(mediaCodec: MediaCodec, outBufferIndex: Int, bufferInfo: MediaCodec.BufferInfo)
Link copied to clipboard
Prepare encoder with default parameters
open fun prepareVideoEncoder(width: Int, height: Int, fps: Int, bitRate: Int, rotation: Int, iFrameInterval: Int, formatVideoEncoder: FormatVideoEncoder): Boolean
open fun prepareVideoEncoder(width: Int, height: Int, fps: Int, bitRate: Int, rotation: Int, iFrameInterval: Int, formatVideoEncoder: FormatVideoEncoder, profile: Int, level: Int): Boolean
Prepare encoder with custom parameters
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard