gst_plugins_base/gst/videotestsrc/gstvideotestsrc.h
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    50  * @GST_VIDEO_TEST_SRC_CHECKERS2: Checkers pattern (2px)
    50  * @GST_VIDEO_TEST_SRC_CHECKERS2: Checkers pattern (2px)
    51  * @GST_VIDEO_TEST_SRC_CHECKERS4: Checkers pattern (4px)
    51  * @GST_VIDEO_TEST_SRC_CHECKERS4: Checkers pattern (4px)
    52  * @GST_VIDEO_TEST_SRC_CHECKERS8: Checkers pattern (8px)
    52  * @GST_VIDEO_TEST_SRC_CHECKERS8: Checkers pattern (8px)
    53  * @GST_VIDEO_TEST_SRC_CIRCULAR: Circular pattern
    53  * @GST_VIDEO_TEST_SRC_CIRCULAR: Circular pattern
    54  * @GST_VIDEO_TEST_SRC_BLINK: Alternate between black and white
    54  * @GST_VIDEO_TEST_SRC_BLINK: Alternate between black and white
    55  * @GST_VIDEO_TEST_SRC_SMPTE75: SMPTE test pattern (75% color bars)
       
    56  * @GST_VIDEO_TEST_SRC_ZONE_PLATE: Zone plate
       
    57  *
    55  *
    58  * The test pattern to produce.
    56  * The test pattern to produce.
    59  */
    57  */
    60 typedef enum {
    58 typedef enum {
    61   GST_VIDEO_TEST_SRC_SMPTE,
    59   GST_VIDEO_TEST_SRC_SMPTE,
    68   GST_VIDEO_TEST_SRC_CHECKERS1,
    66   GST_VIDEO_TEST_SRC_CHECKERS1,
    69   GST_VIDEO_TEST_SRC_CHECKERS2,
    67   GST_VIDEO_TEST_SRC_CHECKERS2,
    70   GST_VIDEO_TEST_SRC_CHECKERS4,
    68   GST_VIDEO_TEST_SRC_CHECKERS4,
    71   GST_VIDEO_TEST_SRC_CHECKERS8,
    69   GST_VIDEO_TEST_SRC_CHECKERS8,
    72   GST_VIDEO_TEST_SRC_CIRCULAR,
    70   GST_VIDEO_TEST_SRC_CIRCULAR,
    73   GST_VIDEO_TEST_SRC_BLINK,
    71   GST_VIDEO_TEST_SRC_BLINK
    74   GST_VIDEO_TEST_SRC_SMPTE75,
       
    75   GST_VIDEO_TEST_SRC_ZONE_PLATE
       
    76 } GstVideoTestSrcPattern;
    72 } GstVideoTestSrcPattern;
    77 
       
    78 /**
       
    79  * GstVideoTestSrcColorSpec:
       
    80  * @GST_VIDEO_TEST_SRC_BT601: ITU-R Rec. BT.601
       
    81  * @GST_VIDEO_TEST_SRC_BT709: ITU-R Rec. BT.601
       
    82  *
       
    83  * The color specification to use.
       
    84  */
       
    85 typedef enum {
       
    86   GST_VIDEO_TEST_SRC_BT601,
       
    87   GST_VIDEO_TEST_SRC_BT709
       
    88 } GstVideoTestSrcColorSpec;
       
    89 
    73 
    90 typedef struct _GstVideoTestSrc GstVideoTestSrc;
    74 typedef struct _GstVideoTestSrc GstVideoTestSrc;
    91 typedef struct _GstVideoTestSrcClass GstVideoTestSrcClass;
    75 typedef struct _GstVideoTestSrcClass GstVideoTestSrcClass;
    92 
    76 
    93 /**
    77 /**
   101   /*< private >*/
    85   /*< private >*/
   102 
    86 
   103   /* type of output */
    87   /* type of output */
   104   GstVideoTestSrcPattern pattern_type;
    88   GstVideoTestSrcPattern pattern_type;
   105 
    89 
   106   /* Color spec of output */
       
   107   GstVideoTestSrcColorSpec color_spec;
       
   108 
       
   109   /* video state */
    90   /* video state */
   110   char *format_name;
    91   char *format_name;
   111   gint width;
    92   gint width;
   112   gint height;
    93   gint height;
   113   struct fourcc_list_struct *fourcc;
    94   struct fourcc_list_struct *fourcc;
   117 
    98 
   118   /* private */
    99   /* private */
   119   gint64 timestamp_offset;              /* base offset */
   100   gint64 timestamp_offset;              /* base offset */
   120   GstClockTime running_time;            /* total running time */
   101   GstClockTime running_time;            /* total running time */
   121   gint64 n_frames;                      /* total frames sent */
   102   gint64 n_frames;                      /* total frames sent */
   122   gboolean peer_alloc;
       
   123 
   103 
   124   /* zoneplate */
       
   125   gint k0;
       
   126   gint kx;
       
   127   gint ky;
       
   128   gint kt;
       
   129   gint kxt;
       
   130   gint kyt;
       
   131   gint kxy;
       
   132   gint kx2;
       
   133   gint ky2;
       
   134   gint kt2;
       
   135   gint xoffset;
       
   136   gint yoffset;
       
   137   
       
   138   void (*make_image) (GstVideoTestSrc *v, unsigned char *dest, int w, int h);
   104   void (*make_image) (GstVideoTestSrc *v, unsigned char *dest, int w, int h);
   139 };
   105 };
   140 
   106 
   141 struct _GstVideoTestSrcClass {
   107 struct _GstVideoTestSrcClass {
   142   GstPushSrcClass parent_class;
   108   GstPushSrcClass parent_class;
   143 };
   109 };
   144 #ifdef __SYMBIAN32__
       
   145 IMPORT_C
       
   146 #endif
       
   147 
       
   148 
   110 
   149 GType gst_video_test_src_get_type (void);
   111 GType gst_video_test_src_get_type (void);
   150 
   112 
   151 G_END_DECLS
   113 G_END_DECLS
   152 
   114