CVPixelBuffer data layout in iOS 12.1 ARKit

bug notes: ...frame.capturedImage in iOS 12.1 started to show green lines and wrong video frame.
Fix was to take real CVPixelBufferGetBytesPerRowOfPlane instead ofCVPixelBufferGetWidth
and stretch image with UV coords  based on the difference between the two.
https://lists.freedesktop.org/archives/gstreamer-devel/2012-November/037921.html








Both the stride (bytes of padding added to each row), as well as the
extended rows (rows of padding at the bottom or top of the buffer) are
important.
The extended rows are what changed in iOS6; you can find out how many rows
of padding are added to the buffer using:
CVPixelBufferGetExtendedPixels(pixelBuffer, &columnsLeft, &columnsRight,
&rowsTop, &rowsBottom)
In the example you gave (Medium preset on iOS6) you should be seeingrowsBottom = 8.

The stride is effectively CVPixelBufferGetBytesPerRowOfPlane() and includes
padding (if any).
When no padding is present CVPixelBufferGetBytesPerRowOfPlane() will be
equal to CVPixelBufferGetWidth(), otherwise it'll be greater.

 

Advertisements

Flyover mode in MapKit with WMS

Update : 3/2018 AR enabled version with ARKit available here 

Suprise, iOS 9 MapKit finally enables  flyeover mode with WMS overlays ! I have used my github  MapKit sample and only  set in MapViewController    mkMapView.mapType = MKMapTypeHybridFlyover;

Links for iOS dev. fonts etc.

Fonts for iOS:

https://github.com/mediacabinet/fawe-ios
https://github.com/nschum/FontAwesomeIconFactory
https://github.com/waterlou/WTGlyphFontSet

Commnad Master:
https://github.com/asm09fsu/CommandMaster

Obj-C (ARC) in depth :
http://adcdownload.apple.com//wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/322_objectivec_advancements_in_depth.pdf

Safari on iOS& and HTML changes
http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review

Menu on iOS with MJPopupViewController

IMG_2646

Searched a lot, didn’t want to program something that had to be part of the iOS, found lot of over-bloated components and found it finally here,  tiny (2 classes) , well written, easy to understand the code, fun concept (big button as background view to receive taps outside the control) :

Here is a snapshot of my testing code with UITableViewController using this lib, note transparency and special font used for menu:

https://github.com/martinjuhasz/MJPopupViewController

 

 

Screen Shot 2013-10-11 at 9.03.12 AM

Mapy CUZK mobile app available

pikto_100“Mapy CUZK” has been just released on both Android and iOS platforms by “CUZK”( “Czech Office For Surveying, Mapping and Cadastre”). The app enables to see various map compositions from OGC services, perform query and search in the map. it is based the  same engine that powers iKatastr2, enables flexible extensions and uses modern myVR rendering engine.

Apple App Store : https://itunes.apple.com/us/app/mapy-cuzk/id634374870?mt=8

Google Play :  https://play.google.com/store/apps/details?id=com.intergraph.cadaster