title: How pass android.media.Image to other plugin on Flutter
body: <p>I added the Camera plugin to my flutter project. I need to send the image got through ImageStream (CameraImage) to MlKit face detection, but the android API requires android.media.Image.</p>
  <p>I tried,</p>
  <ol>
  <li>Convert the CameraImage to android.media.Image on my plugin, but, I can't extend the class because the constructor is only allowed at the package level.</li>
  <li>Read from memory. But the ImageReader only accepts one ByteBuffer(or byte array) and CameraImage has three planes (each of them with a ByteBuffer).</li>
  </ol>
  <p>How can I convert the CameraImage to android.media.Image or pass the value directly from the Camera Plugin?</p>
  <p>My last option is: create my own camera plugin with face detection. But I think there is a better solution</p>
  <p>(PD: I cannot use firebase_ml_vision to avoid the use of Google Services)</p>