예제 #1
0
    bool VideoDecoder::acceptsInputPortVideoCodecType(eVideoCodecType vct) const
    {
        if(!vct)
            return false;

        return vct == getVideoCodecType();
    }
JNIEXPORT jlong JNICALL createVideoEncoder(JNIEnv* env, jclass clasz,
							jobject typeObj, jint width, jint height, jint bitrate, jint framerate)
{
	jclass clazz = NULL;
	clazz = env->GetObjectClass(typeObj);
	if (clazz == NULL){
		LOGD("GetObjectClass error");
		return JNI_FALSE;
	}
	jmethodID getTypeMethodID = env->GetMethodID(clazz, "type", "()I");
	jint type = env->CallIntMethod(typeObj, getTypeMethodID);
	return create_video_encoder(getVideoCodecType(type), width, height, bitrate, framerate);
}
예제 #3
0
 SampleType VideoEncoder::getOutputPortSampleType() const
 {
     return SampleType(getVideoCodecType());
 }