draw.hpp
Go to the documentation of this file.
00001 #ifndef __DRAW_H__
00002 #define __DRAW_H__
00003 
00004 #include <stdint.h>
00005 #include <vector>
00006 
00007 struct DrawColor {
00008   DrawColor(uint8_t red, uint8_t green, uint8_t blue) : r(red), g(green), b(blue) {}
00009   uint8_t r;
00010   uint8_t g;
00011   uint8_t b;
00012 };
00013 
00014 struct DrawImage {
00015   DrawImage(int w, int h);
00016 
00017   std::vector<uint8_t> data;
00018   int width;
00019   int height;
00020   int stride;
00021 };
00022 
00023 void draw_line_rgb(int x0, int y0, int x1, int y1,
00024     DrawColor color, DrawImage* img);
00025 
00026 void draw_box_rgb(int x0, int y0, int x1, int y1,
00027     DrawColor color, DrawImage* img);
00028 
00029 void draw_gray_img_rgb(const uint8_t* gray_data,
00030     int gray_width, int gray_height, int gray_stride,
00031     int dest_x0, int dest_y0,
00032     DrawImage* rgb_img);
00033 
00034 #endif


libfovis
Author(s): Albert Huang, Maurice Fallon
autogenerated on Thu Jun 6 2019 20:16:12