// This file was generated by gir (https://github.com/gtk-rs/gir @ f5fca82) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT extern crate gstreamer_editing_services_sys; extern crate shell_words; extern crate tempdir; use std::env; use std::error::Error; use std::path::Path; use std::mem::{align_of, size_of}; use std::process::Command; use std::str; use gstreamer_editing_services_sys::*; static PACKAGES: &[&str] = &["gst-editing-services-1.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Compiler { args }) } pub fn define<'a, V: Into>>(&mut self, var: &str, val: V) { let arg = match val.into() { None => format!("-D{}", var), Some(val) => format!("-D{}={}", var, val), }; self.args.push(arg); } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {:?} failed, {}", &cmd, status).into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{} {}", name, err).into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let mut cmd = Command::new("pkg-config"); cmd.arg("--cflags"); cmd.args(packages); let out = cmd.output()?; if !out.status.success() { return Err(format!("command {:?} returned {}", &cmd, out.status).into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, /// Number of tests that failed to compile. failed_to_compile: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn record_failed_to_compile(&mut self) { self.failed += 1; self.failed_to_compile += 1; } fn summary(&self) -> String { format!( "{} passed; {} failed (compilation errors: {})", self.passed, self.failed, self.failed_to_compile) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!("1", get_c_value(tmpdir.path(), &cc, "1").expect("C constant"), "failed to obtain correct constant value for 1"); let mut results : Results = Default::default(); for (i, &(name, rust_value)) in RUST_CONSTANTS.iter().enumerate() { match get_c_value(tmpdir.path(), &cc, name) { Err(e) => { results.record_failed_to_compile(); eprintln!("{}", e); }, Ok(ref c_value) => { if rust_value == c_value { results.record_passed(); } else { results.record_failed(); eprintln!("Constant value mismatch for {}\nRust: {:?}\nC: {:?}", name, rust_value, c_value); } } }; if (i + 1) % 25 == 0 { println!("constants ... {}", results.summary()); } } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!(Layout {size: 1, alignment: 1}, get_c_layout(tmpdir.path(), &cc, "char").expect("C layout"), "failed to obtain correct layout for char type"); let mut results : Results = Default::default(); for (i, &(name, rust_layout)) in RUST_LAYOUTS.iter().enumerate() { match get_c_layout(tmpdir.path(), &cc, name) { Err(e) => { results.record_failed_to_compile(); eprintln!("{}", e); }, Ok(c_layout) => { if rust_layout == c_layout { results.record_passed(); } else { results.record_failed(); eprintln!("Layout mismatch for {}\nRust: {:?}\nC: {:?}", name, rust_layout, &c_layout); } } }; if (i + 1) % 25 == 0 { println!("layout ... {}", results.summary()); } } results.expect_total_success(); } fn get_c_layout(dir: &Path, cc: &Compiler, name: &str) -> Result> { let exe = dir.join("layout"); let mut cc = cc.clone(); cc.define("ABI_TYPE_NAME", name); cc.compile(Path::new("tests/layout.c"), &exe)?; let mut abi_cmd = Command::new(exe); let output = abi_cmd.output()?; if !output.status.success() { return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into()); } let stdout = str::from_utf8(&output.stdout)?; let mut words = stdout.trim().split_whitespace(); let size = words.next().unwrap().parse().unwrap(); let alignment = words.next().unwrap().parse().unwrap(); Ok(Layout {size, alignment}) } fn get_c_value(dir: &Path, cc: &Compiler, name: &str) -> Result> { let exe = dir.join("constant"); let mut cc = cc.clone(); cc.define("ABI_CONSTANT_NAME", name); cc.compile(Path::new("tests/constant.c"), &exe)?; let mut abi_cmd = Command::new(exe); let output = abi_cmd.output()?; if !output.status.success() { return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into()); } Ok(str::from_utf8(&output.stdout)?.trim().to_owned()) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ("GESAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESAssetLoadingReturn", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTestSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTestSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTrack", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTrackClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTransition", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioTransitionClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioUriSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESAudioUriSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseEffect", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseEffectClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseEffectClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseEffectClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseTransitionClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseTransitionClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseXmlFormatter", Layout {size: size_of::(), alignment: align_of::()}), ("GESBaseXmlFormatterClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESChildrenControlMode", Layout {size: size_of::(), alignment: align_of::()}), ("GESClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESClipAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESClipAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESCommandLineFormatter", Layout {size: size_of::(), alignment: align_of::()}), ("GESCommandLineFormatterClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESContainer", Layout {size: size_of::(), alignment: align_of::()}), ("GESContainerClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESEdge", Layout {size: size_of::(), alignment: align_of::()}), ("GESEditMode", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffect", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffectAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffectAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffectClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffectClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESEffectClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESError", Layout {size: size_of::(), alignment: align_of::()}), ("GESExtractableInterface", Layout {size: size_of::(), alignment: align_of::()}), ("GESFormatter", Layout {size: size_of::(), alignment: align_of::()}), ("GESFormatterClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESGroup", Layout {size: size_of::(), alignment: align_of::()}), ("GESGroupClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESImageSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESImageSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESLayer", Layout {size: size_of::(), alignment: align_of::()}), ("GESLayerClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESMetaContainerInterface", Layout {size: size_of::(), alignment: align_of::()}), ("GESMetaFlag", Layout {size: size_of::(), alignment: align_of::()}), ("GESMultiFileSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESMultiFileSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESOperation", Layout {size: size_of::(), alignment: align_of::()}), ("GESOperationClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESOperationClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESOperationClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESOverlayClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESOverlayClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESPipeline", Layout {size: size_of::(), alignment: align_of::()}), ("GESPipelineClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESPipelineFlags", Layout {size: size_of::(), alignment: align_of::()}), ("GESPitiviFormatter", Layout {size: size_of::(), alignment: align_of::()}), ("GESPitiviFormatterClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESProject", Layout {size: size_of::(), alignment: align_of::()}), ("GESProjectClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESSourceClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESSourceClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTestClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESTestClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextHAlign", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextOverlay", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextOverlayClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextOverlayClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextOverlayClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTextVAlign", Layout {size: size_of::(), alignment: align_of::()}), ("GESTimeline", Layout {size: size_of::(), alignment: align_of::()}), ("GESTimelineClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTimelineElement", Layout {size: size_of::(), alignment: align_of::()}), ("GESTimelineElementClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTitleClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESTitleClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTitleSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESTitleSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrack", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackElement", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackElementAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackElementAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackElementClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTrackType", Layout {size: size_of::(), alignment: align_of::()}), ("GESTransition", Layout {size: size_of::(), alignment: align_of::()}), ("GESTransitionClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESTransitionClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESTransitionClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriClip", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriClipAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriClipAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriClipClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriSourceAsset", Layout {size: size_of::(), alignment: align_of::()}), ("GESUriSourceAssetClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoStandardTransitionType", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTestPattern", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTestSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTestSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTrack", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTrackClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTransition", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoTransitionClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoUriSource", Layout {size: size_of::(), alignment: align_of::()}), ("GESVideoUriSourceClass", Layout {size: size_of::(), alignment: align_of::()}), ("GESXmlFormatter", Layout {size: size_of::(), alignment: align_of::()}), ("GESXmlFormatterClass", Layout {size: size_of::(), alignment: align_of::()}), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("GES_ASSET_LOADING_ASYNC", "1"), ("GES_ASSET_LOADING_ERROR", "0"), ("GES_ASSET_LOADING_OK", "2"), ("GES_CHILDREN_IGNORE_NOTIFIES", "1"), ("GES_CHILDREN_LAST", "4"), ("GES_CHILDREN_UPDATE", "0"), ("GES_CHILDREN_UPDATE_ALL_VALUES", "3"), ("GES_CHILDREN_UPDATE_OFFSETS", "2"), ("GES_EDGE_END", "1"), ("GES_EDGE_NONE", "2"), ("GES_EDGE_START", "0"), ("GES_EDIT_MODE_NORMAL", "0"), ("GES_EDIT_MODE_RIPPLE", "1"), ("GES_EDIT_MODE_ROLL", "2"), ("GES_EDIT_MODE_SLIDE", "4"), ("GES_EDIT_MODE_TRIM", "3"), ("GES_ERROR_ASSET_LOADING", "1"), ("GES_ERROR_ASSET_WRONG_ID", "0"), ("GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE", "2"), ("GES_META_DESCRIPTION", "description"), ("GES_META_FORMATTER_EXTENSION", "extension"), ("GES_META_FORMATTER_MIMETYPE", "mimetype"), ("GES_META_FORMATTER_NAME", "name"), ("GES_META_FORMATTER_RANK", "rank"), ("GES_META_FORMATTER_VERSION", "version"), ("GES_META_FORMAT_VERSION", "format-version"), ("GES_META_READABLE", "1"), ("GES_META_READ_WRITE", "3"), ("GES_META_VOLUME", "volume"), ("GES_META_VOLUME_DEFAULT", "1.000000"), ("GES_META_WRITABLE", "2"), ("GES_MULTI_FILE_URI_PREFIX", "multifile://"), ("GES_PADDING", "4"), ("GES_PADDING_LARGE", "20"), ("GES_PIPELINE_MODE_PREVIEW", "3"), ("GES_PIPELINE_MODE_PREVIEW_AUDIO", "1"), ("GES_PIPELINE_MODE_PREVIEW_VIDEO", "2"), ("GES_PIPELINE_MODE_RENDER", "4"), ("GES_PIPELINE_MODE_SMART_RENDER", "8"), ("GES_TEXT_HALIGN_ABSOLUTE", "5"), ("GES_TEXT_HALIGN_CENTER", "1"), ("GES_TEXT_HALIGN_LEFT", "0"), ("GES_TEXT_HALIGN_POSITION", "4"), ("GES_TEXT_HALIGN_RIGHT", "2"), ("GES_TEXT_VALIGN_ABSOLUTE", "5"), ("GES_TEXT_VALIGN_BASELINE", "0"), ("GES_TEXT_VALIGN_BOTTOM", "1"), ("GES_TEXT_VALIGN_CENTER", "4"), ("GES_TEXT_VALIGN_POSITION", "3"), ("GES_TEXT_VALIGN_TOP", "2"), ("GES_TRACK_TYPE_AUDIO", "2"), ("GES_TRACK_TYPE_CUSTOM", "16"), ("GES_TRACK_TYPE_TEXT", "8"), ("GES_TRACK_TYPE_UNKNOWN", "1"), ("GES_TRACK_TYPE_VIDEO", "4"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL", "45"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL", "46"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H", "22"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V", "21"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D", "65"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_L", "66"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_R", "68"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_U", "67"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR", "1"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_TB", "2"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H", "44"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V", "43"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC", "25"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL", "6"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR", "5"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC", "26"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC", "24"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC", "23"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TL", "3"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR", "4"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW12", "201"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW3", "202"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW6", "203"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW9", "204"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE", "512"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL", "41"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR", "42"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIH", "236"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIV", "235"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOH", "214"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOV", "213"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OH", "228"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OV", "227"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PD", "226"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDBL", "246"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDTL", "245"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PV", "225"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B", "233"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CR", "212"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CT", "211"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_L", "234"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_R", "232"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_T", "231"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI", "7"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO", "8"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_IRIS_RECT", "101"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD", "47"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD", "48"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE", "0"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_FB", "207"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBH", "206"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBV", "205"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_B", "253"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_L", "252"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_R", "254"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_T", "251"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWB", "223"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBL", "242"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBR", "243"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWL", "224"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWR", "222"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWT", "221"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTL", "241"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTR", "244"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D", "61"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L", "62"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R", "64"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U", "63"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H", "264"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_R", "261"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U", "262"), ("GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V", "263"), ("GES_VIDEO_TEST_CHROMA_ZONE_PLATE", "16"), ("GES_VIDEO_TEST_GAMUT", "15"), ("GES_VIDEO_TEST_PATTERN_BLACK", "2"), ("GES_VIDEO_TEST_PATTERN_BLINK", "12"), ("GES_VIDEO_TEST_PATTERN_BLUE", "6"), ("GES_VIDEO_TEST_PATTERN_CHECKERS1", "7"), ("GES_VIDEO_TEST_PATTERN_CHECKERS2", "8"), ("GES_VIDEO_TEST_PATTERN_CHECKERS4", "9"), ("GES_VIDEO_TEST_PATTERN_CHECKERS8", "10"), ("GES_VIDEO_TEST_PATTERN_CIRCULAR", "11"), ("GES_VIDEO_TEST_PATTERN_GREEN", "5"), ("GES_VIDEO_TEST_PATTERN_RED", "4"), ("GES_VIDEO_TEST_PATTERN_SMPTE", "0"), ("GES_VIDEO_TEST_PATTERN_SMPTE75", "13"), ("GES_VIDEO_TEST_PATTERN_SNOW", "1"), ("GES_VIDEO_TEST_PATTERN_SOLID", "17"), ("GES_VIDEO_TEST_PATTERN_WHITE", "3"), ("GES_VIDEO_TEST_ZONE_PLATE", "14"), ];