code: public synchronized void dispose() {
      CloseableReference.closeSafely(mPreviewBitmap);
      mPreviewBitmap = null;
      CloseableReference.closeSafely(mDecodedFrames);
      mDecodedFrames = null;
    }
docs: Disposes the result, which releases the reference to any bitmaps.