11-05-2009 09:49 PM
Are you looking at the ipp-samplesaudio-video-codecsapplicationumc_h264_dec_con, right?
The decoder can output RGB24 raw data directly. (frame by frame)
umc_h264_dec_con.exe [Options] InputFile [OutputYUVFile]
there are also optional command line switches:
|command line switch||description|
||number of threads to limit (If num is equals 0 then decoder creates optimal number of threads based on the number of CPU on the host. Zero value used by default.)|
||number of frames to limit. (Unlimited number of frames will be decoded by default.)|
||select output color format|
About convertthem to DIB, do you mean that toadd BMP file header to each frame, then save them frame by frame?
You mayadd code to create a DIB imageformat asthe sampleipp-samplesimage-processingimage-processing-mfcippiImage.cpp, then copy the RGB24 raw data to the DIB image.
or use some readyDIB image class provided by some software, for exampleOpenCV Image class
open the decoder RGB24 file. read data frame by frame, suppose thedata are indataBuffer
ippicopy (dataBuffer to img->imageData(