Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

StartConvert() : convert object not ready
Started by Mric at 01-15-2007 9:50. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  01-15-2007, 9:50
Mric is not online. Last active: 1/15/2007 1:44:56 PM Mric

Not Ranked
Joined on 01-09-2007
Posts 2
StartConvert() : convert object not ready
Reply Quote
Hi

I have a problem, the solution of which may be very simple (that's what I'm afraid of), but I need to ask the question...

I am trying to encode an array - representing an image, of course - to another one with the LEAD MCMP/MJPEG codec (evaluation version).
To do so, I create a IltmmConvert *g_pConvert object, where I select the MCMP/MJPEG compressor. Then, I set g_pConvert's source and target, with put_SourceArray and put_TargetArray, with the safearrays I have created.
This is where I call StartConvert on g_pConvert, but before that, if I check the object's state, it's always in the state "not ready".

What I am supposed to do to make it ready ? Did I forget something here ?

Thanks by advance,

Emeric



   Report 
  01-16-2007, 8:42
Mric is not online. Last active: 1/15/2007 1:44:56 PM Mric

Not Ranked
Joined on 01-09-2007
Posts 2
Re: StartConvert() : convert object not ready
Reply Quote

Now I've just tried with source and target files, instead of arrays, and my state is ok.

But that's not what I want to do.I think the safearrays I use are correctly initialized (put_SourceArray and put_TargetArray return S_OK), so I don't get what's happening.

Has anyone got an idea ?


Thanks


Emeric


   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » StartConvert() : convert object not ready

Powered by Community Server, by Telligent Systems