Beispiel #1
0
int avcodec_thread_execute2(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count){
    ThreadContext *c= s->thread_opaque;
    int i;
    for(i=0; i<s->thread_count; i++)
        c[i].func2 = func;
    avcodec_thread_execute(s, NULL, arg, ret, count, 0);
}
Beispiel #2
0
static int avcodec_thread_execute2(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count)
{
/*
	参数:
		1、
		
	返回:
		1、
		
	说明:
		1、
*/
	ThreadContext *c= s->thread_opaque;
	int i;

	/* 设定相应的功能函数*/
	for(i=0; i<s->thread_count; i++)
		c[i].func2 = func;
	
	avcodec_thread_execute(s, NULL, arg, ret, count, 0); /* 见函数说明*/
}
Beispiel #3
0
static int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
{
    ThreadContext *c= avctx->thread_opaque;
    c->func2 = func2;
    return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0);
}