unity3d - iOS; Unsupported Pixel Format -


my unity app uses camera feed multiple systems app uses; such vuforia, arkit, , general camera feed input.

the issue i'm having each 1 of these requests different pixel format, seems cause issue arkit. requires yuv, , don't know how natively switch camera pixel format this. error when try , launch arkit after others;

2017-08-21 08:51:38.749452+0100 ar_app[399:105849] [sensor] unsupported pixel format: 875704438

2017-08-21 08:51:38.749876+0100 ar_app[399:105849] [session] session did fail error: error domain=com.apple.arkit.error code=104 "unsupported capture session configuration."

userinfo={ nslocalizedrecoverysuggestion=make sure correct device , format being used capture.,

nslocalizeddescription=unsupported capture session configuration.,

nslocalizedfailurereason=input device and/or format of provided capture session not supported given configuration. }

at least, thats think issue is; it's not getting format in yuv. appreciated. . thanks.

yuv color space, there multiple formats.

ar_app[399:105849] [sensor] unsupported pixel format: 875704438

875704438 translates 420v (nv12) or kcvpixelformattype_420ypcbcr8biplanarvideorange:

kcvpixelformattype_420ypcbcr8biplanarvideorange = '420v' 

so have yuv pixel format, biplanar video range.

the arkit docs mention biplanar yuv format not type of range:

the pixel buffer’s contents encoded in biplanar ycbcr (also called yuv) data format

however unity arkit plugin check kcvpixelformattype_420ypcbcr8biplanarfullrange in didupdateframe:

 if (cvpixelbuffergetplanecount(pixelbuffer) < 2 || cvpixelbuffergetpixelformattype(pixelbuffer) != kcvpixelformattype_420ypcbcr8biplanarfullrange) {         return;     } 

so in conclusion might not fact it's not full range, have no easy way test it. maybe can try forcing full range if camera , other modules support it.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -