Exemple #1
0
void format_t::init_presets()
{
	static bool inited = false;
	
	if( !inited)
	{
		// make a small list of presets inline.
		add_preset( preset_type( "PAL Square: 768 x 576"		, format_t( 768, 576, 1.0f)));
		add_preset( preset_type( "PAL D1: 720 x 576 x 1.067"	, format_t( 720, 576, 1.067f)));
		add_preset( preset_type( "PAL 16:9: 720 x 576 x 1.422"	, format_t( 720, 576, 1.422f)));
		
		add_preset( preset_type( "NTSC Square: 640 x 486"		, format_t( 640, 486, 1.0f)));
		add_preset( preset_type( "NTSC D1: 720 x 486 x 0.9"		, format_t( 720, 486, 0.9f)));
		add_preset( preset_type( "NTSC 16:9: 720 x 486 x 1.21"	, format_t( 720, 486, 1.21f)));

		add_preset( preset_type( "HD 720: 1280 x 720"	, format_t( 1280, 720, 1.0f)));
		add_preset( preset_type( "HD 1080: 1440 x 1080"	, format_t( 1440, 1080, 1.33f)));
		add_preset( preset_type( "HD 1080: 1920 x 1080"	, format_t( 1920, 1080, 1.0f)));
	
		add_preset( preset_type( "2K Super35: 2048 x 1556"			, format_t( 2048, 1556, 1.0f)));
		add_preset( preset_type( "2K Cinemascope: 1828 x 1556 x 2.0", format_t( 1828, 1556, 2.0f)));
			
		add_preset( preset_type( "4K Super35: 4096 x 3112"			, format_t( 4096, 3112, 1.0f)));
		add_preset( preset_type( "4K Cinemascope: 3656 x 3112 x 2.0", format_t( 3656, 3112, 2.0f)));
			
		add_preset( preset_type( "Cineon Full: 3656 x 2664"	, format_t( 3656, 2664, 1.0f)));
		inited = true;
	}
}
Exemple #2
0
    
	*_argv = argv - 1;
	*_argc = argc + 1;
    
	return new_ctl_param;
}

struct file_format_t
{
	const char *name;
	format_t output_fmt;
};

file_format_t allowed_formats[] =
{
	{ "exr",    format_t("exr",   0) },
    { "exr16",  format_t("exr",  16) },
    { "exr32",  format_t("exr",  32) },
    { "aces",   format_t("aces", 16) },
	{ "dpx",    format_t("dpx",   0) },
	{ "dpx8",   format_t("dpx",   8) },
	{ "dpx10",  format_t("dpx",  10) },
	{ "dpx12",  format_t("dpx",  12) },
	{ "dpx16",  format_t("dpx",  16) },
	{ "tif",    format_t("tif",   0) },
	{ "tiff",   format_t("tiff",  0) },
	{ "tiff32", format_t("tiff", 32) },
	{ "tiff16", format_t("tiff", 16) },
	{ "tiff8",  format_t("tiff",  8) },
	{ "tif32",  format_t("tif",  32) },
	{ "tif16",  format_t("tif",  16) },