comparison options.c @ 10386:98501365c3aa libavcodec

Add an execute2 function that is more flexible and allows to use parallel processing with jobs > threads without wasting too much memory. It also avoids needing a separate int array when the only additional data the jobs needs is a single int running from 0 to count-1.
author reimar
date Mon, 12 Oct 2009 11:35:35 +0000
parents 0bfb23c7633d
children 7ca185b4bc42
comparison
equal deleted inserted replaced
10385:bc98e5724513 10386:98501365c3aa
431 s->time_base= (AVRational){0,1}; 431 s->time_base= (AVRational){0,1};
432 s->get_buffer= avcodec_default_get_buffer; 432 s->get_buffer= avcodec_default_get_buffer;
433 s->release_buffer= avcodec_default_release_buffer; 433 s->release_buffer= avcodec_default_release_buffer;
434 s->get_format= avcodec_default_get_format; 434 s->get_format= avcodec_default_get_format;
435 s->execute= avcodec_default_execute; 435 s->execute= avcodec_default_execute;
436 s->execute2= avcodec_default_execute2;
436 s->sample_aspect_ratio= (AVRational){0,1}; 437 s->sample_aspect_ratio= (AVRational){0,1};
437 s->pix_fmt= PIX_FMT_NONE; 438 s->pix_fmt= PIX_FMT_NONE;
438 s->sample_fmt= SAMPLE_FMT_S16; // FIXME: set to NONE 439 s->sample_fmt= SAMPLE_FMT_S16; // FIXME: set to NONE
439 440
440 s->palctrl = NULL; 441 s->palctrl = NULL;