Part Number: J722SXH01EVM
This is a follow-up thread of
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1534945/processor-sdk-j722s-debugging-msc-lib-function-for-host-emulation
I was able to make some progress on scaling down NV12 image by looking into the test code pointed to by Gullipalli Suneetha. (take note of the the last message in the thread above)
Before the new developments, when trying to use this "scaler_top_processing" function via 92_j722s/vhwa_c_models/vpac3/lib/PC/x86_64/LINUX/release/libscalar.a library, I got back garbage data in the imgOutPut output parameter.
Now, I am getting back somewhat meaningful data.
The "Y" values are scaled properly, but the "UV" values are filled with zeroes.
I have tried these two experiments.
1. imgInput[0] = YUV.data());
imgInput[1] = nullptr;
But what I have found is that both results in the same output.
Could you provide some information on how the input should be prepared?
-
int scaler_top_processing(unsigned short *imgInput[2], unsigned short * imgOutput[SCALER_NUM_PIPES], Scaler_Config *config);