Lines Matching refs:jfields
167 struct JNIAMediaFormatFields jfields; member
280 struct JNIAMediaCodecFields jfields; member
320 struct JNIAMediaCodecListFields jfields = { 0 }; in ff_AMediaCodecProfile_getProfileFromAVCodecContext() local
325 if (ff_jni_init_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, avctx) < 0) { in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
333 field_id = jfields.avc_profile_baseline_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
336 field_id = jfields.avc_profile_main_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
339 field_id = jfields.avc_profile_extended_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
342 field_id = jfields.avc_profile_high_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
346 field_id = jfields.avc_profile_high10_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
350 field_id = jfields.avc_profile_high422_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
355 field_id = jfields.avc_profile_high444_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
362 field_id = jfields.hevc_profile_main_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
365 field_id = jfields.hevc_profile_main10_id; in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
371 ret = (*env)->GetStaticIntField(env, jfields.codec_profile_level_class, field_id); in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
379 ff_jni_reset_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, avctx); in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
394 struct JNIAMediaCodecListFields jfields = { 0 }; in ff_AMediaCodecList_getCodecNameByType() local
409 if ((ret = ff_jni_init_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, log_ctx)) < 0) { in ff_AMediaCodecList_getCodecNameByType()
417 …codec_count = (*env)->CallStaticIntMethod(env, jfields.mediacodec_list_class, jfields.get_codec_co… in ff_AMediaCodecList_getCodecNameByType()
427 …info = (*env)->CallStaticObjectMethod(env, jfields.mediacodec_list_class, jfields.get_codec_info_a… in ff_AMediaCodecList_getCodecNameByType()
432 types = (*env)->CallObjectMethod(env, info, jfields.get_supported_types_id); in ff_AMediaCodecList_getCodecNameByType()
437 is_encoder = (*env)->CallBooleanMethod(env, info, jfields.is_encoder_id); in ff_AMediaCodecList_getCodecNameByType()
446 if (jfields.is_software_only_id) { in ff_AMediaCodecList_getCodecNameByType()
447 … int is_software_only = (*env)->CallBooleanMethod(env, info, jfields.is_software_only_id); in ff_AMediaCodecList_getCodecNameByType()
457 codec_name = (*env)->CallObjectMethod(env, info, jfields.get_name_id); in ff_AMediaCodecList_getCodecNameByType()
500 … capabilities = (*env)->CallObjectMethod(env, info, jfields.get_codec_capabilities_id, type); in ff_AMediaCodecList_getCodecNameByType()
505 profile_levels = (*env)->GetObjectField(env, capabilities, jfields.profile_levels_id); in ff_AMediaCodecList_getCodecNameByType()
527 supported_profile = (*env)->GetIntField(env, profile_level, jfields.profile_id); in ff_AMediaCodecList_getCodecNameByType()
616 ff_jni_reset_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, log_ctx); in ff_AMediaCodecList_getCodecNameByType()
644 if (ff_jni_init_jfields(env, &format->jfields, jni_amediaformat_mapping, 1, format) < 0) { in ff_AMediaFormat_new()
648 object = (*env)->NewObject(env, format->jfields.mediaformat_class, format->jfields.init_id); in ff_AMediaFormat_new()
664 ff_jni_reset_jfields(env, &format->jfields, jni_amediaformat_mapping, 1, format); in ff_AMediaFormat_new()
688 if (ff_jni_init_jfields(env, &format->jfields, jni_amediaformat_mapping, 1, format) < 0) { in ff_AMediaFormat_newFromObject()
699 ff_jni_reset_jfields(env, &format->jfields, jni_amediaformat_mapping, 1, format); in ff_AMediaFormat_newFromObject()
721 ff_jni_reset_jfields(env, &format->jfields, jni_amediaformat_mapping, 1, format); in ff_AMediaFormat_delete()
739 description = (*env)->CallObjectMethod(env, format->object, format->jfields.to_string_id); in ff_AMediaFormat_toString()
771 …contains_key = (*env)->CallBooleanMethod(env, format->object, format->jfields.contains_key_id, key… in ff_AMediaFormat_getInt32()
777 *out = (*env)->CallIntMethod(env, format->object, format->jfields.get_integer_id, key); in ff_AMediaFormat_getInt32()
810 …contains_key = (*env)->CallBooleanMethod(env, format->object, format->jfields.contains_key_id, key… in ff_AMediaFormat_getInt64()
816 *out = (*env)->CallLongMethod(env, format->object, format->jfields.get_long_id, key); in ff_AMediaFormat_getInt64()
849 …contains_key = (*env)->CallBooleanMethod(env, format->object, format->jfields.contains_key_id, key… in ff_AMediaFormat_getFloat()
855 *out = (*env)->CallFloatMethod(env, format->object, format->jfields.get_float_id, key); in ff_AMediaFormat_getFloat()
889 …contains_key = (*env)->CallBooleanMethod(env, format->object, format->jfields.contains_key_id, key… in ff_AMediaFormat_getBuffer()
895 result = (*env)->CallObjectMethod(env, format->object, format->jfields.get_bytebuffer_id, key); in ff_AMediaFormat_getBuffer()
947 …contains_key = (*env)->CallBooleanMethod(env, format->object, format->jfields.contains_key_id, key… in ff_AMediaFormat_getString()
953 result = (*env)->CallObjectMethod(env, format->object, format->jfields.get_string_id, key); in ff_AMediaFormat_getString()
992 (*env)->CallVoidMethod(env, format->object, format->jfields.set_integer_id, key, value); in ff_AMediaFormat_setInt32()
1017 (*env)->CallVoidMethod(env, format->object, format->jfields.set_long_id, key, value); in ff_AMediaFormat_setInt64()
1042 (*env)->CallVoidMethod(env, format->object, format->jfields.set_float_id, key, value); in ff_AMediaFormat_setFloat()
1073 (*env)->CallVoidMethod(env, format->object, format->jfields.set_string_id, key, string); in ff_AMediaFormat_setString()
1120 (*env)->CallVoidMethod(env, format->object, format->jfields.set_bytebuffer_id, key, buffer); in ff_AMediaFormat_setBuffer()
1142 …TRY_AGAIN_LATER = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.i… in codec_init_static_fields()
1147 …AG_CODEC_CONFIG = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.b… in codec_init_static_fields()
1152 …G_END_OF_STREAM = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.b… in codec_init_static_fields()
1157 if (codec->jfields.buffer_flag_key_frame_id) { in codec_init_static_fields()
1158 …_FLAG_KEY_FRAME = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.b… in codec_init_static_fields()
1164 …URE_FLAG_ENCODE = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.c… in codec_init_static_fields()
1169 …TRY_AGAIN_LATER = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.i… in codec_init_static_fields()
1174 …BUFFERS_CHANGED = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.i… in codec_init_static_fields()
1179 …_FORMAT_CHANGED = (*env)->GetStaticIntField(env, codec->jfields.mediacodec_class, codec->jfields.i… in codec_init_static_fields()
1215 if (ff_jni_init_jfields(env, &codec->jfields, jni_amediacodec_mapping, 1, codec) < 0) { in codec_create()
1225 case CREATE_CODEC_BY_NAME: create_id = codec->jfields.create_by_codec_name_id; break; in codec_create()
1226 case CREATE_DECODER_BY_TYPE: create_id = codec->jfields.create_decoder_by_type_id; break; in codec_create()
1227 case CREATE_ENCODER_BY_TYPE: create_id = codec->jfields.create_encoder_by_type_id; break; in codec_create()
1233 codec->jfields.mediacodec_class, in codec_create()
1249 if (codec->jfields.get_input_buffer_id && codec->jfields.get_output_buffer_id) { in codec_create()
1253 buffer_info = (*env)->NewObject(env, codec->jfields.mediainfo_class, codec->jfields.init_id); in codec_create()
1286 ff_jni_reset_jfields(env, &codec->jfields, jni_amediacodec_mapping, 1, codec); in codec_create()
1315 (*env)->CallVoidMethod(env, codec->object, codec->jfields.release_id); in DECLARE_FF_AMEDIACODEC_CREATE_FUNC()
1332 ff_jni_reset_jfields(env, &codec->jfields, jni_amediacodec_mapping, 1, codec); in DECLARE_FF_AMEDIACODEC_CREATE_FUNC()
1347 name = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_name_id); in ff_AMediaCodec_getName()
1369 …(*env)->CallVoidMethod(env, codec->object, codec->jfields.configure_id, format->object, surface, N… in ff_AMediaCodec_configure()
1386 (*env)->CallVoidMethod(env, codec->object, codec->jfields.start_id); in ff_AMediaCodec_start()
1403 (*env)->CallVoidMethod(env, codec->object, codec->jfields.stop_id); in ff_AMediaCodec_stop()
1420 (*env)->CallVoidMethod(env, codec->object, codec->jfields.flush_id); in ff_AMediaCodec_flush()
1437 …(*env)->CallVoidMethod(env, codec->object, codec->jfields.release_output_buffer_id, (jint)idx, (jb… in ff_AMediaCodec_releaseOutputBuffer()
1454 …(*env)->CallVoidMethod(env, codec->object, codec->jfields.release_output_buffer_at_time_id, (jint)… in ff_AMediaCodec_releaseOutputBufferAtTime()
1471 …ret = (*env)->CallIntMethod(env, codec->object, codec->jfields.dequeue_input_buffer_id, timeoutUs); in ff_AMediaCodec_dequeueInputBuffer()
1488 …(*env)->CallVoidMethod(env, codec->object, codec->jfields.queue_input_buffer_id, (jint)idx, (jint)… in ff_AMediaCodec_queueInputBuffer()
1505 …ret = (*env)->CallIntMethod(env, codec->object, codec->jfields.dequeue_output_buffer_id, codec->bu… in ff_AMediaCodec_dequeueOutputBuffer()
1510 info->flags = (*env)->GetIntField(env, codec->buffer_info, codec->jfields.flags_id); in ff_AMediaCodec_dequeueOutputBuffer()
1515 info->offset = (*env)->GetIntField(env, codec->buffer_info, codec->jfields.offset_id); in ff_AMediaCodec_dequeueOutputBuffer()
1520 …info->presentationTimeUs = (*env)->GetLongField(env, codec->buffer_info, codec->jfields.presentati… in ff_AMediaCodec_dequeueOutputBuffer()
1525 info->size = (*env)->GetIntField(env, codec->buffer_info, codec->jfields.size_id); in ff_AMediaCodec_dequeueOutputBuffer()
1544 …buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_input_buffer_id, (jint)id… in ff_AMediaCodec_getInputBuffer()
1550 … input_buffers = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_input_buffers_id); in ff_AMediaCodec_getInputBuffer()
1592 …buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_output_buffer_id, (jint)i… in ff_AMediaCodec_getOutputBuffer()
1598 …output_buffers = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_output_buffers_id… in ff_AMediaCodec_getOutputBuffer()
1638 mediaformat = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_output_format_id); in ff_AMediaCodec_getOutputFormat()