--[[ Film format presets shared by the run dialog and the Settings & Preview
dialog. A format is just a convenience that sets the aspect-target tunable;
"custom" leaves whatever the aspect slider says untouched. Aspects are the
long/short ratio of the nominal frame (6x7 is really 56x67mm, etc). ]]

local FilmFormats = {}

FilmFormats.items = {
	{ title = '35mm full frame (3:2)', value = '135' },
	{ title = '35mm half frame (4:3)', value = '135half' },
	{ title = '35mm panoramic / XPan (65x24)', value = 'xpan' },
	{ title = '120 6x4.5', value = '645' },
	{ title = '120 6x6 (square)', value = '66' },
	{ title = '120 6x7', value = '67' },
	{ title = '120 6x9', value = '69' },
	{ title = 'Large format 4x5', value = '45' },
	{ title = 'Custom (set aspect target)', value = 'custom' },
}

FilmFormats.aspect = {
	['135'] = 1.5,
	['135half'] = 1.333,
	['xpan'] = 2.708,
	['645'] = 1.35,
	['66'] = 1.0,
	['67'] = 1.196,
	['69'] = 1.5,
	['45'] = 1.25,
}

return FilmFormats
