FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
Loading...
Searching...
No Matches
Functions
fdl_template.h File Reference

Internal implementation of canvas template application. More...

#include "fdl/fdl_core.h"

Go to the source code of this file.

Functions

fdl_template_result_t fdl::detail::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.
 

Detailed Description

Internal implementation of canvas template application.

Runs the full template pipeline: resolve geometry layers, normalize+scale, round, offset, crop, and produce the output FDL document.

Function Documentation

◆ apply_canvas_template()

fdl_template_result_t fdl::detail::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.

Internal implementation — see fdl_apply_canvas_template() for full docs.

Parameters
tmplCanvas template handle.
source_canvasSource canvas handle.
source_framingSource framing decision handle.
new_canvas_idID for the output canvas.
new_fd_nameName for the output framing decision.
source_context_labelLabel from source context (may be NULL).
context_creatorCreator string for the output context.
Returns
Template result with output_fdl on success, error on failure.

< POSIX strdup.

< POSIX strdup.

< POSIX strdup.