/* H.264 slice threading seems to be buggy with more than 16 threads,
* limit the number of threads to 16 for automatic detection */ #define MAX_AUTO_THREADS 16
int ff_slice_thread_init(AVCodecContext *avctx); void ff_slice_thread_free(AVCodecContext *avctx);
int ff_frame_thread_init(AVCodecContext *avctx); void ff_frame_thread_free(AVCodecContext *avctx, int thread_count);
#define THREAD_SENTINEL 0// This forbids putting a mutex/condition variable at the front. /** *Initialize/destroyalistofmutexes/conditionscontainedinastructure. *Thepositionsofthesemutexes/conditionsinthestructurearegivenby *theiroffsets.Becauseitisundefinedbehaviourtodestroy *anuninitializedmutex/condition,ff_pthread_init()storesthenumber *ofsuccessfullyinitializedmutexesandconditionsintheobjectitself *andff_pthread_free()usesthisnumbertodestroyexactlythemutexesand *conditionvariablesthathavebeensuccessfullyinitialized. * *@paramobjTheobjectcontainingthemutexes/conditions. *@param[in]offsetsAnarrayofoffsets.Itsfirstmembergivestheoffset *ofthevariablethatcontainsthecountofsuccessfully *initializedmutexes/conditionvariables;saidvariable *mustbeanunsignedint.Twoarraysofoffsets,each *delimitedbyaTHREAD_SENTINELfollow.Thefirst *containstheoffsetsofallthemutexes,thesecond *containstheoffsetsofalltheconditionvariables.
*/ int ff_pthread_init(void *obj, constunsigned offsets[]); void ff_pthread_free(void *obj, constunsigned offsets[]);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.