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.

function declared implicitly

Hi, guys.
Prompt, please, as it can be. In the folder inclule file prototypes lies, the path is correct, in project->build options->preprocessor->include search path, too, is all. Previously, at the old project  it works. Why is this possible?
Thanks.
  • I'm not sure I understand what your question is. Would you please reiterate?

  • Dear Tim,

    I want to use the function VLIB_extractLumaFromUYUV_i() in my program. I included the header file "VLIB_prototypes.h" and "vlib.l64p" but can't build the project. Compiler writes "function declared implicitly". I can't understand why? As I think the compiler doesn't "see" the header file. What should I do?

    Thanks,

    Igor. 

  • It may be a header file issue. I don't see the function: VLIB_extractLumaFromUYUV_i in the User's Guide. What I see is: VLIB_extractLumaFromUYUV. Not the _i at the end is missing. The name in the document is also consistent with how the other APIs are defined.
    I recommend modifying the header file by changing the API name to VLIB_extractLumaFromUYUV and see if you still get the error
    Gagan

  • Dear Gagan!

    You are absolutely right. This is my child mistake.
    Thank you very much.
    Igor.
  • Hi everyone,

    I can't understand:

    There is in example file VLIB_testExtractLumaFromUYUV :

    -----------------------------------------------------------------------------------------------

    VLIB_extractLumaFromUYUV_i(YUV422Data, // input YUV422 image 
                                                         ^^^
    8, // width of input image
    8, // pitch of input image
    4, // height of input image
    extractedLumaData); // luma-only output image

    ---------------------------------------------------------------------------------------------

    But in file VLIB_prototypes.h there is  without   _i   ( VLIB_extractLumaFromUYUV_i  vs. VLIB_extractLumaFromUYUV):  

    ---------------------------------------------------------------------------------

    int VLIB_extractLumaFromUYUV
    (
    unsigned char* restrict pInUYVY,
    unsigned short inCols,
    unsigned short inPitch,
    unsigned short inRows,
    unsigned char* restrict pOutY
    );

    ---------------------------------------------------------------------------------

    And example works o'k.

    But if I use function with  "..._i "  I get an error " function declared implcitly.

    If I use function without "..._i " I get an error  after "rebuild all "   - " relocation from function to symbol  "_VLIB_extractLumaFromUYUV" overflowed ;

    Please, explain, what is wrong and what is right.

    Thanks a lot,
    Igor.

  • Hello Igor,

    VLIB_extractLumaFromUYUV (without  _i ) is the right way to use this API.

    In the VLIB_prototypes, there was an error in this definition. Please remove the _i there and ignore the _i .

    If you had done this change, the API should work.

    You mentioned that the example works ok. Did you run the test project VLIB_testExamples.pjt and checked whether this function passed the test ?

    If it is possible to send the source file where u r using this function, I can try debugging.

    Regards

    Senthil

     

     

  • Hello, Senthil.

    Yes, of couse it it possible. More to say it is the most important thing at this moment for me.

    I don't know where to send files. My email   ars-sec@mail.ru .

    Another thing - I tested with both (_i) in source file and VLIB_prototypes and works properly. Magic... Without (_i) doesn't work.

    Thanks, Senthil.

    I am waiting your replay,

    Warm regards,

    Igor.