mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
videotestsrc: clean up code
Merge various color structures into one.
This commit is contained in:
parent
c831456188
commit
f3a989319b
2 changed files with 250 additions and 456 deletions
File diff suppressed because it is too large
Load diff
|
@ -29,15 +29,12 @@ enum {
|
||||||
VTS_BAYER
|
VTS_BAYER
|
||||||
};
|
};
|
||||||
|
|
||||||
struct vts_color_struct_yuv {
|
struct vts_color_struct {
|
||||||
guint8 Y, U, V, A;
|
guint8 Y, U, V, A;
|
||||||
|
guint8 R, G, B;
|
||||||
|
guint16 gray;
|
||||||
};
|
};
|
||||||
struct vts_color_struct_rgb {
|
|
||||||
guint8 R, G, B, A;
|
|
||||||
};
|
|
||||||
struct vts_color_struct_gray {
|
|
||||||
guint16 G;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct paintinfo_struct paintinfo;
|
typedef struct paintinfo_struct paintinfo;
|
||||||
struct paintinfo_struct
|
struct paintinfo_struct
|
||||||
|
@ -52,12 +49,8 @@ struct paintinfo_struct
|
||||||
int vstride;
|
int vstride;
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
const struct vts_color_struct_rgb *rgb_colors;
|
const struct vts_color_struct *colors;
|
||||||
const struct vts_color_struct_yuv *yuv_colors;
|
const struct vts_color_struct *color;
|
||||||
const struct vts_color_struct_gray *gray_colors;
|
|
||||||
const struct vts_color_struct_rgb *rgb_color;
|
|
||||||
const struct vts_color_struct_yuv *yuv_color;
|
|
||||||
const struct vts_color_struct_gray *gray_color;
|
|
||||||
/* const struct vts_color_struct *color; */
|
/* const struct vts_color_struct *color; */
|
||||||
void (*paint_hline) (paintinfo * p, int x, int y, int w);
|
void (*paint_hline) (paintinfo * p, int x, int y, int w);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue