/* * Class: h264_com_VView * Method: UninitDecoder * Signature: ()I */ jint Java_h264_com_VView_UninitDecoder(JNIEnv* env, jobject thiz,jlong pDecoder) { DeleteYUVTab(); if (pDecoder) { Decoder * de=(Decoder * )pDecoder; if(de->c) { decode_end(de->c); free(de->c->priv_data); free(de->c); de->c = NULL; } if(de->picture) { free(de->picture); de->picture = NULL; } free(de); return 1; } else return 0; }
/* * Class: h264_com_VView * Method: UninitDecoder * Signature: ()I */ jint Java_h264_com_VView_UninitDecoder(JNIEnv* env, jobject thiz) { if(c) { decode_end(c); free(c->priv_data); free(c); c = NULL; } if(picture) { free(picture); picture = NULL; } DeleteYUVTab(); return 1; }
/* * Class: com_zhutieju_testservice_H264Android * Method: releaseDecoder * Signature: ()I */ JNIEXPORT jint JNICALL Java_com_zhutieju_testservice_H264Android_releaseDecoder (JNIEnv* env, jobject thiz) { if(c) { avcodec_close(c); free(c->priv_data); free(c); c = NULL; } if(picture) { free(picture); picture = NULL; } DeleteYUVTab(); return 1; }