/* creates a planar buffer from the bitmap data.
The planar buffer is dynamically allocated, and should
be destroyed with the planar_buf_free function when no longer
/* creates a planar buffer from the bitmap data.
The planar buffer is dynamically allocated, and should
be destroyed with the planar_buf_free function when no longer