mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
add GESVideoTestPattern enum
This commit is contained in:
parent
66351c03ef
commit
e73c98630e
4 changed files with 99 additions and 1 deletions
|
@ -29,6 +29,9 @@ GESTextVAlign
|
|||
DEFAULT_VALIGNMENT
|
||||
GES_TEXT_VALIGN_TYPE
|
||||
ges_text_valign_get_type
|
||||
GESVideoTestPattern
|
||||
GES_VIDEO_TEST_PATTERN_TYPE
|
||||
ges_video_test_pattern_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
@ -428,7 +431,6 @@ GES_TYPE_TIMELINE_TEXT_OVERLAY
|
|||
<TITLE>GESTrackVideoTestSource</TITLE>
|
||||
GESTrackVideoTestSource
|
||||
GESTrackVideoTestSourceClass
|
||||
GESTrackVideoBgSrcPattern
|
||||
ges_track_video_test_source_new
|
||||
ges_track_video_test_source_get_type
|
||||
<SUBSECTION Standard>
|
||||
|
|
|
@ -16,3 +16,5 @@ ges_timeline_transition_get_type
|
|||
ges_cust_timeline_src_get_type
|
||||
ges_simple_timeline_layer_get_type
|
||||
ges_video_transition_type_get_type
|
||||
ges_text_valign_get_type
|
||||
ges_text_halign_get_type
|
||||
|
|
|
@ -463,3 +463,52 @@ ges_text_halign_get_type (void)
|
|||
}
|
||||
return text_overlay_halign_type;
|
||||
}
|
||||
|
||||
/* table more-or-less copied from gstvideotestsrc.c */
|
||||
GEnumValue vpattern_enum_values[] = {
|
||||
{GES_VIDEO_TEST_PATTERN_SMPTE, "SMPTE 100% color bars", "smpte"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_SNOW, "Random (television snow)", "snow"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_BLACK, "100% Black", "black"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_WHITE, "100% White", "white"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_RED, "Red", "red"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_GREEN, "Green", "green"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_BLUE, "Blue", "blue"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_CHECKERS1, "Checkers 1px", "checkers-1"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_CHECKERS2, "Checkers 2px", "checkers-2"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_CHECKERS4, "Checkers 4px", "checkers-4"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_CHECKERS8, "Checkers 8px", "checkers-8"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_CIRCULAR, "Circular", "circular"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_BLINK, "Blink", "blink"}
|
||||
,
|
||||
{GES_VIDEO_TEST_PATTERN_SMPTE75, "SMPTE 75% color bars", "smpte75"}
|
||||
,
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
|
||||
GType
|
||||
ges_video_test_pattern_get_type (void)
|
||||
{
|
||||
|
||||
static gsize once = 0;
|
||||
static GType theType = 0;
|
||||
|
||||
if (g_once_init_enter (&once)) {
|
||||
theType = g_enum_register_static ("GESTimelineTestSourceVPattern",
|
||||
vpattern_enum_values);
|
||||
g_once_init_leave (&once, 1);
|
||||
};
|
||||
|
||||
return theType;
|
||||
}
|
||||
|
|
|
@ -251,6 +251,51 @@ typedef enum {
|
|||
|
||||
GType ges_text_halign_get_type (void);
|
||||
|
||||
/**
|
||||
* GESVideoTestPattern:
|
||||
* @GES_VIDEO_TEST_PATTERN_SMPTE: A standard SMPTE test pattern
|
||||
* @GES_VIDEO_TEST_PATTERN_SNOW: Random noise
|
||||
* @GES_VIDEO_TEST_PATTERN_BLACK: A black image
|
||||
* @GES_VIDEO_TEST_PATTERN_WHITE: A white image
|
||||
* @GES_VIDEO_TEST_PATTERN_RED: A red image
|
||||
* @GES_VIDEO_TEST_PATTERN_GREEN: A green image
|
||||
* @GES_VIDEO_TEST_PATTERN_BLUE: A blue image
|
||||
* @GES_VIDEO_TEST_PATTERN_CHECKERS1: Checkers pattern (1px)
|
||||
* @GES_VIDEO_TEST_PATTERN_CHECKERS2: Checkers pattern (2px)
|
||||
* @GES_VIDEO_TEST_PATTERN_CHECKERS4: Checkers pattern (4px)
|
||||
* @GES_VIDEO_TEST_PATTERN_CHECKERS8: Checkers pattern (8px)
|
||||
* @GES_VIDEO_TEST_PATTERN_CIRCULAR: Circular pattern
|
||||
* @GES_VIDEO_TEST_PATTERN_BLINK: Alternate between black and white
|
||||
* @GES_VIDEO_TEST_PATTERN_SMPTE75: SMPTE test pattern (75% color bars)
|
||||
*
|
||||
* The test pattern to produce
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
GES_VIDEO_TEST_PATTERN_SMPTE,
|
||||
GES_VIDEO_TEST_PATTERN_SNOW,
|
||||
GES_VIDEO_TEST_PATTERN_BLACK,
|
||||
GES_VIDEO_TEST_PATTERN_WHITE,
|
||||
GES_VIDEO_TEST_PATTERN_RED,
|
||||
GES_VIDEO_TEST_PATTERN_GREEN,
|
||||
GES_VIDEO_TEST_PATTERN_BLUE,
|
||||
GES_VIDEO_TEST_PATTERN_CHECKERS1,
|
||||
GES_VIDEO_TEST_PATTERN_CHECKERS2,
|
||||
GES_VIDEO_TEST_PATTERN_CHECKERS4,
|
||||
GES_VIDEO_TEST_PATTERN_CHECKERS8,
|
||||
GES_VIDEO_TEST_PATTERN_CIRCULAR,
|
||||
GES_VIDEO_TEST_PATTERN_BLINK,
|
||||
GES_VIDEO_TEST_PATTERN_SMPTE75,
|
||||
} GESVideoTestPattern;
|
||||
|
||||
|
||||
#define GES_VIDEO_TEST_PATTERN_TYPE\
|
||||
ges_video_test_pattern_get_type()
|
||||
|
||||
extern GEnumValue vpattern_enum_values[];
|
||||
|
||||
GType ges_video_test_pattern_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GES_ENUMS_H__ */
|
||||
|
|
Loading…
Reference in a new issue