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