Hello,

I integrated an Android Automotive on the Hikey960 Board based on Android P.
I'm getting some troubles with the evs_app.
I have a webcam connected to USB port, the device is well recognized and 
create a /dev/video0 driver.
The EVS Hal is running as service.
Then, I start the EVS Sample Driver in one terminal and in an other I start 
evs_app.

I see a new surface constructed but then directly a crash occurs. Here is 
the full logcat.
https://gist.github.com/AhmedX6/418678675cb9334266dd614e243f2ec1 
<https://www.google.com/url?q=https://gist.github.com/AhmedX6/418678675cb9334266dd614e243f2ec1&sa=D&usg=AFQjCNF1WO13kC6bL-3enoXgyFhfq-oZyA>

I identified the problem
https://android.googlesource.com/platform/packages/services/Car/+/master/evs/sampleDriver/EvsV4lCamera.cpp#499
 
<https://www.google.com/url?q=https://android.googlesource.com/platform/packages/services/Car/%2B/master/evs/sampleDriver/EvsV4lCamera.cpp%23499&sa=D&usg=AFQjCNH6uEQuL3jN5c9TGkPPx2ZWmGelqw>
This function transfers the video image into the output buffer, and makes 
any needed format conversion along the way.
mFillBufferFromVideo is a function’s pointer: that can point in one of 
these function.
https://android.googlesource.com/platform/packages/services/Car/+/master/evs/sampleDriver/bufferCopy.cpp
 
<https://www.google.com/url?q=https://android.googlesource.com/platform/packages/services/Car/%2B/master/evs/sampleDriver/bufferCopy.cpp&sa=D&usg=AFQjCNFyM2dRZAADHbcuc3m9i0h-kxpkQg>
depending of the pixel format of the driver :
https://android.googlesource.com/platform/packages/services/Car/+/master/evs/sampleDriver/EvsV4lCamera.cpp#166
 
<https://www.google.com/url?q=https://android.googlesource.com/platform/packages/services/Car/%2B/master/evs/sampleDriver/EvsV4lCamera.cpp%23166&sa=D&usg=AFQjCNH8KY9SzaMrmxjQ5PSMCtPmwDXfmw>

Could you please help me fixing this and make it work ?

Thank you very much.

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to