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