Convert DPX image sequence to TGA image sequence
Posted: 2007-08-06T08:49:50-07:00
Hi
I want to convert a DPX image sequence to a TGA image sequence with adding watermark (image logo), timecode that came from the DPX header, and annotations.
I already did a small function into a MFC C++ program that do the job. I'm calling the function for each sequence that I have to convert to TGA :
But after a 5or 6 hours of conversion ( this function is called for each dpx image sequence that I have to convert... and I have many of them), my software crash in a middle of a sequence conversion
Is anybody have an idea of how to optimize it ? Is something wrong in my code ?
Thanks
I want to convert a DPX image sequence to a TGA image sequence with adding watermark (image logo), timecode that came from the DPX header, and annotations.
I already did a small function into a MFC C++ program that do the job. I'm calling the function for each sequence that I have to convert to TGA :
Code: Select all
string input, output, tc;
Image img, logoImg
logoImg.read(m_sLogoPath);
for(int j = 0; j <= inputFileList.GetUpperBound(); j++){
input = inputFileList.GetAt(j);//DPX image - Source
output = outputFileList.GetAt(j);//TGA image - Destination
img.read(input);
img.type(TrueColorMatteType);
img.font("arial");
img.fontPointsize(38);
img.fillColor("white");
img.boxColor("#00000072");
img.annotate( "Shot #12345", "+310+50");
img.boxColor("#00000000");
tc = img.attribute("dpx:television.time.code");
img.annotate(tc, positionTC);
img.composite( logoImg, "+215+120", BumpmapCompositeOp);
img.write(output);
}
But after a 5or 6 hours of conversion ( this function is called for each dpx image sequence that I have to convert... and I have many of them), my software crash in a middle of a sequence conversion
Is anybody have an idea of how to optimize it ? Is something wrong in my code ?
Thanks