static void enc_postprocess(MSFilter *f) {
	EncData *d=(EncData*)f->data;
	rfc3984_destroy(d->packer);
	AMediaCodec_flush(d->codec);
	AMediaCodec_stop(d->codec);
	d->packer=NULL;
}
Example #2
0
static void enc_postprocess(MSFilter *f){
	EncData *d=(EncData*)f->data;
	if(d->packer!=NULL) {
	    rfc3984_destroy(d->packer);
        d->packer=NULL;
    }
	x264_encoder_free_framebuffer(d->enc);
	x264_encoder_close(d->enc);
}
Example #3
0
static void enc_postprocess(MSFilter *f){
	EncData *d=(EncData*)f->data;
	rfc3984_destroy(d->packer);
	d->packer=NULL;
	if (d->enc!=NULL){
		x264_encoder_close(d->enc);
		d->enc=NULL;
	}
}
Example #4
0
void MSOpenH264Encoder::uninitialize()
{
	if (mPacker != 0) {
		rfc3984_destroy(mPacker);
		mPacker = 0;
	}
	if (mEncoder != 0) {
		mEncoder->Uninitialize();
	}
	mInitialized = false;
}