title: Save depth images from TrueDepth camera
body: <p>
  I am trying to save depth images from the iPhoneX TrueDepth camera. Using the <a href="https://developer.apple.com/library/content/samplecode/AVCamPhotoFilter/Listings/README_md.html" rel="noreferrer">AVCamPhotoFilter</a> sample code, I am able to view the depth, converted to grayscale format, on the screen of the phone in real-time. I cannot figure out how to save the sequence of depth images in the raw (16 bits or more) format.</p>
  
  <p>
  I have <code>depthData</code> which is an instance of <code>AVDepthData</code>. One of its members is <code>depthDataMap</code> which is an instance of <code>CVPixelBuffer</code> and image format type <code>kCVPixelFormatType_DisparityFloat16</code>. Is there a way to save it to the phone to transfer for offline manipulation?</p>