Remember this?

Here is what’s new with the Camera Native Extension:

  1. Fixed a memory leak in applyFilters(), reported by our reader decapyre.
  2. Improved thread synchronisation.
  3. Introduced a separate frame rate for consuming frames (see REFRESH_RATE_FRAMES_PER_SECOND in CameraTestAppHomeView.mxml).
  4. Introduced NativeCameraExtensionEvent.CAMERA_STARTED to signal when the camera is ready to produce frames.
  5. The byte order in the frame ByteArray is now taken care of by the ANE.
  6. Note: getFrameBuffer()’s signature has changed:
 public function getFrameBuffer(
 _bufferData : ByteArray,
 _lastFrameIndex : Number,
 _previewFrameSize : Point ) : Number

Download the ANE

April 2014 update: We have turned this project into a step-by-step tutorial with complete source code. Check it out on our new website,

Want more functionality and Android support?

Check out our DiaDraw Native Camera Driver

About the Author

Radoslava is co-founder of DiaDraw. Prefers to communicate with images. Verbal communication always caused trouble with her parents. Started speaking Basic early on, followed by four years of Delphi, six years of C++, four years of ActionScript, lately converses in Objective-C. Her mum and dad hope she'll start speaking human at some point.