void contourextract_free(void *d) { if(d) { contourextract_data *my = (contourextract_data*) d; if(my->current) free(my->current); if(my->bitmap) free(my->bitmap); free(d); } if( shrink_ ) { yuv_free_swscaler( shrink_ ); shrink_ = NULL; } int i; for( i = 0; i < 255; i++ ) if( proj_[i] ) viewport_destroy( proj_[i] ); for( i = 0; i < 12000; i ++ ) { if(points[i]) free(points[i]); } free(points); d = NULL; }
void avhelper_close_decoder( void *ptr ) { el_decoder_t *e = (el_decoder_t*) ptr; avcodec_close( e->codec_ctx ); avhelper_close_input_file( e->avformat_ctx ); yuv_free_swscaler( e->scaler ); if(e->input) free(e->input); if(e->output) free(e->output); if(e->frame) av_free(e->frame); free(e); }
static void net_thread_free(vj_tag *tag) { threaded_t *t = (threaded_t*) tag->priv; if( t->scaler ) yuv_free_swscaler( t->scaler ); if( t->a ) free(t->a); if( t->b ) free(t->b); t->a = NULL; t->b = NULL; t->scaler = NULL; }
void vj_sdl_free(vj_sdl * vjsdl) { #ifdef HAVE_SDL_TTF if( vjsdl->font ) vj_sdl_font_free(vjsdl->font); #endif if( vjsdl->yuv_overlay) SDL_FreeYUVOverlay(vjsdl->yuv_overlay); if( vjsdl->scaler ) yuv_free_swscaler(vjsdl->scaler); if( vjsdl->src_frame ) free(vjsdl->src_frame ); if( vjsdl->dst_frame ) free(vjsdl->dst_frame ); free(vjsdl); }