docs: public static Bitmap generateBitmapFlipV(final byte[] byteArray, final int width,
              final int height) {
          int[] pixels = new int[width * height];
          for (int row = 0; row < height; row++) {
              int start_position = row * width;
              int reverse_start_position = (height - 1 - row) * width;
              for (int col = 0; col < width; col++) {
                  int position = (start_position + col) * 4;
                  int r = byteArray[position++] & 0xff;
                  int g = byteArray[position++] & 0xff;
                  int b = byteArray[position] & 0xff;
                  // flip the image vertically
                  pixels[reverse_start_position + col] = Color.rgb(r, g, b);
              }
          }
          return Bitmap.createBitmap(pixels, width, height,
                  Bitmap.Config.ARGB_8888);
      }