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 |
55 * |
57 * |
56 * The test pattern to produce. |
58 * The test pattern to produce. |
57 */ |
59 */ |
58 typedef enum { |
60 typedef enum { |
59 GST_VIDEO_TEST_SRC_SMPTE, |
61 GST_VIDEO_TEST_SRC_SMPTE, |
66 GST_VIDEO_TEST_SRC_CHECKERS1, |
68 GST_VIDEO_TEST_SRC_CHECKERS1, |
67 GST_VIDEO_TEST_SRC_CHECKERS2, |
69 GST_VIDEO_TEST_SRC_CHECKERS2, |
68 GST_VIDEO_TEST_SRC_CHECKERS4, |
70 GST_VIDEO_TEST_SRC_CHECKERS4, |
69 GST_VIDEO_TEST_SRC_CHECKERS8, |
71 GST_VIDEO_TEST_SRC_CHECKERS8, |
70 GST_VIDEO_TEST_SRC_CIRCULAR, |
72 GST_VIDEO_TEST_SRC_CIRCULAR, |
71 GST_VIDEO_TEST_SRC_BLINK |
73 GST_VIDEO_TEST_SRC_BLINK, |
|
74 GST_VIDEO_TEST_SRC_SMPTE75, |
|
75 GST_VIDEO_TEST_SRC_ZONE_PLATE |
72 } GstVideoTestSrcPattern; |
76 } 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; |
73 |
89 |
74 typedef struct _GstVideoTestSrc GstVideoTestSrc; |
90 typedef struct _GstVideoTestSrc GstVideoTestSrc; |
75 typedef struct _GstVideoTestSrcClass GstVideoTestSrcClass; |
91 typedef struct _GstVideoTestSrcClass GstVideoTestSrcClass; |
76 |
92 |
77 /** |
93 /** |
98 |
117 |
99 /* private */ |
118 /* private */ |
100 gint64 timestamp_offset; /* base offset */ |
119 gint64 timestamp_offset; /* base offset */ |
101 GstClockTime running_time; /* total running time */ |
120 GstClockTime running_time; /* total running time */ |
102 gint64 n_frames; /* total frames sent */ |
121 gint64 n_frames; /* total frames sent */ |
|
122 gboolean peer_alloc; |
103 |
123 |
|
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 |
104 void (*make_image) (GstVideoTestSrc *v, unsigned char *dest, int w, int h); |
138 void (*make_image) (GstVideoTestSrc *v, unsigned char *dest, int w, int h); |
105 }; |
139 }; |
106 |
140 |
107 struct _GstVideoTestSrcClass { |
141 struct _GstVideoTestSrcClass { |
108 GstPushSrcClass parent_class; |
142 GstPushSrcClass parent_class; |
109 }; |
143 }; |
|
144 #ifdef __SYMBIAN32__ |
|
145 IMPORT_C |
|
146 #endif |
|
147 |
110 |
148 |
111 GType gst_video_test_src_get_type (void); |
149 GType gst_video_test_src_get_type (void); |
112 |
150 |
113 G_END_DECLS |
151 G_END_DECLS |
114 |
152 |