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.
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!
----------------------------------------------------------------------------------------------- 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
);
---------------------------------------------------------------------------------
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.