|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
Framing-from-intent computation — aspect ratio fitting with protection. More...
Functions | |
| fdl_from_intent_result_t | fdl::detail::compute_framing_from_intent (fdl_dimensions_f64_t canvas_dims, fdl_dimensions_f64_t working_dims, double squeeze, fdl_dimensions_i64_t aspect_ratio, double protection, fdl_round_strategy_t rounding) |
| Compute a framing decision from a framing intent. | |
Framing-from-intent computation — aspect ratio fitting with protection.
Algorithm:
| fdl_from_intent_result_t fdl::detail::compute_framing_from_intent | ( | fdl_dimensions_f64_t | canvas_dims, |
| fdl_dimensions_f64_t | working_dims, | ||
| double | squeeze, | ||
| fdl_dimensions_i64_t | aspect_ratio, | ||
| double | protection, | ||
| fdl_round_strategy_t | rounding | ||
| ) |
Compute a framing decision from a framing intent.
Returns a zeroed result if aspect_ratio.height or working_dims.height is zero (guards against division by zero).
| canvas_dims | Full canvas dimensions (for anchor centering). |
| working_dims | Effective dimensions if available, else canvas dims. |
| squeeze | Anamorphic squeeze factor. |
| aspect_ratio | Target aspect ratio as integer width:height (height must be > 0). |
| protection | Protection factor (0.0 for no protection). |
| rounding | Rounding strategy. |