gst_plugins_base/gst/videotestsrc/videotestsrc.h
changeset 16 8e837d1bf446
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
15:4b0c6ed43234 16:8e837d1bf446
    23 #include <glib.h>
    23 #include <glib.h>
    24 
    24 
    25 enum {
    25 enum {
    26   VTS_YUV,
    26   VTS_YUV,
    27   VTS_RGB,
    27   VTS_RGB,
       
    28   VTS_GRAY,
    28   VTS_BAYER
    29   VTS_BAYER
    29 };
    30 };
    30 
    31 
    31 struct vts_color_struct {
    32 struct vts_color_struct_yuv {
    32         guint8 Y, U, V;
    33   guint8 Y, U, V;
    33         guint8 R, G, B;
    34 };
    34 	guint8 A;
    35 struct vts_color_struct_rgb {
       
    36   guint8 R, G, B;
       
    37 };
       
    38 struct vts_color_struct_gray {
       
    39   guint16 G;
    35 };
    40 };
    36 
    41 
    37 typedef struct paintinfo_struct paintinfo;
    42 typedef struct paintinfo_struct paintinfo;
    38 struct paintinfo_struct
    43 struct paintinfo_struct
    39 {
    44 {
    45   int ystride;
    50   int ystride;
    46   int ustride;
    51   int ustride;
    47   int vstride;
    52   int vstride;
    48   int width;
    53   int width;
    49   int height;
    54   int height;
    50   const struct vts_color_struct *color;
    55   const struct vts_color_struct_rgb *rgb_colors;
       
    56   const struct vts_color_struct_yuv *yuv_colors;
       
    57   const struct vts_color_struct_gray *gray_colors;
       
    58   const struct vts_color_struct_rgb *rgb_color;
       
    59   const struct vts_color_struct_yuv *yuv_color;
       
    60   const struct vts_color_struct_gray *gray_color;
       
    61   //const struct vts_color_struct *color;
    51   void (*paint_hline) (paintinfo * p, int x, int y, int w);
    62   void (*paint_hline) (paintinfo * p, int x, int y, int w);
    52 };
    63 };
    53 
    64 
    54 struct fourcc_list_struct
    65 struct fourcc_list_struct
    55 {
    66 {
    75 GstStructure *
    86 GstStructure *
    76         paint_get_structure             (struct fourcc_list_struct *format);
    87         paint_get_structure             (struct fourcc_list_struct *format);
    77 int     gst_video_test_src_get_size     (GstVideoTestSrc * v, int w, int h);
    88 int     gst_video_test_src_get_size     (GstVideoTestSrc * v, int w, int h);
    78 void    gst_video_test_src_smpte        (GstVideoTestSrc * v,
    89 void    gst_video_test_src_smpte        (GstVideoTestSrc * v,
    79                                          unsigned char *dest, int w, int h);
    90                                          unsigned char *dest, int w, int h);
       
    91 void    gst_video_test_src_smpte75      (GstVideoTestSrc * v,
       
    92                                          unsigned char *dest, int w, int h);
    80 void    gst_video_test_src_snow         (GstVideoTestSrc * v,
    93 void    gst_video_test_src_snow         (GstVideoTestSrc * v,
    81                                          unsigned char *dest, int w, int h);
    94                                          unsigned char *dest, int w, int h);
    82 void    gst_video_test_src_black        (GstVideoTestSrc * v,
    95 void    gst_video_test_src_black        (GstVideoTestSrc * v,
    83                                          unsigned char *dest, int w, int h);
    96                                          unsigned char *dest, int w, int h);
    84 void    gst_video_test_src_white        (GstVideoTestSrc * v,
    97 void    gst_video_test_src_white        (GstVideoTestSrc * v,
    97                                          unsigned char *dest, int w, int h);
   110                                          unsigned char *dest, int w, int h);
    98 void    gst_video_test_src_checkers8    (GstVideoTestSrc * v,
   111 void    gst_video_test_src_checkers8    (GstVideoTestSrc * v,
    99                                          unsigned char *dest, int w, int h);
   112                                          unsigned char *dest, int w, int h);
   100 void    gst_video_test_src_circular     (GstVideoTestSrc * v,
   113 void    gst_video_test_src_circular     (GstVideoTestSrc * v,
   101                                          unsigned char *dest, int w, int h);
   114                                          unsigned char *dest, int w, int h);
   102 
   115 void    gst_video_test_src_zoneplate    (GstVideoTestSrc * v,
       
   116 		                         unsigned char *dest, int w, int h);
   103 extern struct fourcc_list_struct fourcc_list[];
   117 extern struct fourcc_list_struct fourcc_list[];
   104 extern int n_fourccs;
   118 extern int n_fourccs;
   105 
   119 
   106 #endif
   120 #endif