|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
C ABI wrapper for canvas template application and result management. More...
Functions | |
| fdl_template_result_t | fdl_apply_canvas_template (const fdl_canvas_template_t *tmpl, const fdl_canvas_t *source_canvas, const fdl_framing_decision_t *source_framing, const char *new_canvas_id, const char *new_fd_name, const char *source_context_label, const char *context_creator) |
| Apply a canvas template to a source canvas/framing. | |
| void | fdl_template_result_free (fdl_template_result_t *result) |
| Free a template result (doc + all allocated strings). | |
C ABI wrapper for canvas template application and result management.
| fdl_template_result_t fdl_apply_canvas_template | ( | const fdl_canvas_template_t * | tmpl, |
| const fdl_canvas_t * | source_canvas, | ||
| const fdl_framing_decision_t * | source_framing, | ||
| const char * | new_canvas_id, | ||
| const char * | new_fd_name, | ||
| const char * | source_context_label, | ||
| const char * | context_creator | ||
| ) |
Apply a canvas template to a source canvas/framing.
Runs the full template pipeline: normalize, scale, round, offset, crop. Produces a new FDL document with the transformed canvas and framing decision.
| tmpl | Canvas template to apply. |
| source_canvas | Source canvas to transform. |
| source_framing | Source framing decision to transform. |
| new_canvas_id | ID for the output canvas (caller provides). |
| new_fd_name | Name/label for the output framing decision. |
| source_context_label | Label from source context (for label generation, may be NULL). |
| context_creator | Creator string for the output context. |
| void fdl_template_result_free | ( | fdl_template_result_t * | result | ) |
Free a template result (doc + all allocated strings).
Safe to call with NULL.
| result | Template result to free. |