I am trying to draw into a Surface from native code and can't understand why the stride in my ANativeWindow_Buffer is not "width * 2" for an RGB 565 format?
My window is 533x732 and format is RGB565. The stride comes back as 544.
I don't get how the stride can be 544 or how I can tweak my buffer of RGB 565 data to account for it.
This is a similar question that was answered but this guy is using Skia which I'm not using: Native window rendering issue on Samsung Galaxy S3