This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

integrating

I successfully ran the jpeg encoder demo on my dm6435 hardware.  Now I am trying to integrate the encoder into my project, but I am getting an error returned from the algInit call.  The code up to this point is unchanged except for stripping out some file i/o functions, and I have verified the input args are similar.  I assume there must be some build setting or include path change that I have missed in my new project.  How can I track this down?

  • More information:

    In the ALG_create() function copied verbatim from the example: algNumalloc(), algAlloc(), & _ALG_allocMemory() all appear to function correctly, but algInit() returns -1.

    The fxns structure from ALG_create is identical when cross referenced with map files from the projects.

    The memTab structures are also identical with the exception of the actual buffer locations.

    The p & params structures are the same between projects.

    Questions:

    1)  It appears that there is no info about the actual image dimensions being passed into algNumAlloc() or algAlloc(), since the ALG_create is just passing an IALG_Params structure into both calls.  So is the required memory allocation always the same regardless of image size, or have I misunderstood this example?

    2) There are some preprocessor defines in the example build option:

    C6000;_DEBUG;CHIP_DM642;DMTESTBENCH

    For my project, I do not have the  CHIP_DM642;DMTESTBENCH options.  Do they have any effect?

    3) There are also some framework components in the preprocessor include search path of the example project.  Do they need to be included in a new project?

    4) In the example, I noticed that the rts6400.lib is used.  I am using the rts64plus.lib in my project.  Any reason for this to cause problems?

    I appreciate any feedback.

  • Found my problem: params.forceChromaFormat field MUST be 2, or algInit() fails.