Hi all,
If anyone is interested I put together some intermediate presets for 2.20:1, 2:1, and 1.85.1. I was looking for something a little in the middle of the 16:9's crop and the 2.35 aspect ratio. All are continuous on a 1000x KombuterBay without spanning or anything.
I will try to put it up on bitbucket, but have to get my head back around that process again. I don't use it enough to be comfortable or even remember the basics, and might not have time to work through it this weekend.
All changes in crop_rec.c from Danne's crop_rec_4k_mlv_snd_isogain_1x3_presets branch. Thank's Danne for your work. It was super easy to build on.
Regards,
Eric
menu definition
static struct menu_entry ratios_menu[] =
{
{
.name = "Ratio",
.priv = &ratios,
.max = 6,
.choices = CHOICES("OFF", "2.39:1", "2.35:1", "2.2:1", "2:1","1.85:1","16:9"),
.help = "Access six global ratios",
.help2 = "only anamorphic preset\n"
},
};
in crop_rec_needs_lv_refresh
if (ratios == 1) menu_set_str_value_from_script("RAW video", "Aspect ratio", "2.39:1", 5);
if (ratios == 2) menu_set_str_value_from_script("RAW video", "Aspect ratio", "2.35:1", 6);
if (ratios == 3) menu_set_str_value_from_script("RAW video", "Aspect ratio", "2.2:1", 7);
if (ratios == 4) menu_set_str_value_from_script("RAW video", "Aspect ratio", "2:1", 8);
if (ratios == 5) menu_set_str_value_from_script("RAW video", "Aspect ratio", "1.85:1", 9);
if (ratios == 6) menu_set_str_value_from_script("RAW video", "Aspect ratio", "16:9", 10);
In LVINFO_UPDATE_FUNC
if (CROP_PRESET_MENU == CROP_PRESET_1x3)
{
if (ratios == 0x1)
{
snprintf(buffer, sizeof(buffer), "anamorph 2.39:1");
}
if (ratios == 0x2)
{
snprintf(buffer, sizeof(buffer), "anamorph 2.35:1");
}
if (ratios == 0x3)
{
snprintf(buffer, sizeof(buffer), "anamorph 2.2:1");
}
if (ratios == 0x4)
{
snprintf(buffer, sizeof(buffer), "anamorph 2:1");
}
if (ratios == 0x5)
{
snprintf(buffer, sizeof(buffer), "anamorph 1.85:1");
}
if (ratios == 0x6)
{
snprintf(buffer, sizeof(buffer), "anamorph 16:9");
}
if (ratios == 0x0)
{
snprintf(buffer, sizeof(buffer), "anamorphic");
}
}
in calc_skip_offsets
case CROP_PRESET_1x3:
if (ratios == 0x1)
{
skip_left = 206;
skip_right = 62;
skip_top = 60;
skip_bottom = 30;
}
if (ratios == 0x1 && set_25fps == 0x1)
{
skip_left = 248;
skip_right = 110;
skip_top = 60;
skip_bottom = 42;
}
if (ratios == 0x2)
{
skip_left = 206;
skip_right = 62;
skip_top = 60;
}
if (ratios == 0x2 && set_25fps == 0x1)
{
skip_left = 248;
skip_right = 110;
skip_top = 60;
}
if (ratios == 0x3)
{
skip_left = 268;
skip_right = 124;
skip_top = 60;
}
if (ratios == 0x3 && set_25fps == 0x1)
{
skip_left = 360;
skip_right = 118;
skip_top = 60;
}
if (ratios == 0x4)
{
skip_left = 340;
skip_right = 196;
skip_top = 60;
}
if (ratios == 0x4 && set_25fps == 0x1)
{
skip_left = 432;
skip_right = 190;
skip_top = 60;
}
if (ratios == 0x5)
{
skip_left = 402;
skip_right = 258;
skip_top = 60;
}
if (ratios == 0x5 && set_25fps == 0x1)
{
skip_left = 488;
skip_right = 246;
skip_top = 60;
}
if (ratios == 0x6)
{
skip_left = 426;
skip_right = 282;
skip_top = 60;
}
if (ratios == 0x6 && set_25fps == 0x1)
{
skip_left = 512;
skip_right = 270;
skip_top = 60;
}
break;