The MPEG-4 Encoder creates threads if it is compiled by compiler which supports the OpenMP. The _OPENMP macro must be defined during compilation. The number of threads is controlled via numThreads value of VideoEncoderParam during initialization stage. Synchronization is done by internal OpenMP IPPEncoder.rar mechanism
Then I tried converting .yuv to .mpg, I found the run time is no different whatever openmp is on/off.
Then I trace the code: Seems the bottlenecks do not be processed by OpenMP float.
, So, may anyone could give me a comment? if it is my wrong .. or that is nature?Please reference the attached file(win XP, VC 2005), thank you.
pParams->info.bitrate = bitrate;
pParams->numThreads = 1;
pParams->info.framerate = framerate
of course, it always enables ONE threads..... =.=