Пример #1
0
void shutdown(Context *ctx)
{
	unsigned int i;

	imx_vpu_dec_close(ctx->vpudec);

	free(ctx->framebuffers);
	for (i = 0; i < ctx->num_framebuffers; ++i)
		imx_vpu_dma_buffer_deallocate(ctx->fb_dmabuffers[i]);
	free(ctx->fb_dmabuffers);
	imx_vpu_dma_buffer_deallocate(ctx->bitstream_buffer);

	imx_vpu_dec_unload();

	free(ctx);
}
Пример #2
0
void gst_imx_vpu_decoder_unload()
{
	g_mutex_lock(&load_mutex);
	imx_vpu_dec_unload();
	g_mutex_unlock(&load_mutex);
}