54 return "Physics Model";
60 return "Vector Graphic";
96 return "application/x.sf3-archive";
100 return "image/x.sf3";
102 return "application/x.sf3-log";
104 return "model/x.sf3";
106 return "model/x.sf3-physics";
108 return "application/x.sf3-table";
110 return "application/x.sf3-text";
112 return "image/x.sf3-vector";
114 return "application/x.sf3";
SF3_EXPORT char * sf3_kind(int type)
Returns a human-readable string description of the SF3 format_id.
SF3_EXPORT char * sf3_file_type(int type)
Returns the standard file type suffix for the given SF3 format_id.
SF3_EXPORT char * sf3_mime_type(int type)
Returns the standard media mime-type for the given SF3 format_id.
#define SF3_FORMAT_ID_ARCHIVE
The format_id for an archive file.
SF3_EXPORT size_t sf3_archive_size(const struct sf3_archive *archive)
Computes the size of the archive file in bytes.
SF3_EXPORT size_t sf3_audio_size(const struct sf3_audio *audio)
Computes the size of the audio file in bytes.
#define SF3_FORMAT_ID_AUDIO
The format_id for an audio file.
#define SF3_FORMAT_ID_IMAGE
The format_id for an image file.
SF3_EXPORT size_t sf3_image_size(const struct sf3_image *image)
Computes the size of the image file in bytes.
SF3_EXPORT size_t sf3_log_size(const struct sf3_log *log)
Computes the size of the log file in bytes.
#define SF3_FORMAT_ID_LOG
The format_id for a log file.
SF3_EXPORT size_t sf3_model_size(const struct sf3_model *model)
Computes the size of the model file in bytes.
#define SF3_FORMAT_ID_MODEL
The format_id for a model file.
SF3_EXPORT size_t sf3_physics_model_size(const struct sf3_physics_model *physics_model)
Computes the size of the physics model file in bytes.
#define SF3_FORMAT_ID_PHYSICS_MODEL
The format_id for a physics model file.
#define SF3_FORMAT_ID_TABLE
The format_id for a table file.
SF3_EXPORT size_t sf3_table_size(const struct sf3_table *table)
Computes the size of the table file in bytes.
#define SF3_FORMAT_ID_TEXT
The format_id for a text file.
SF3_EXPORT size_t sf3_text_size(const struct sf3_text *text)
Computes the size of the text file in bytes.
#define SF3_FORMAT_ID_VECTOR_GRAPHIC
The format_id for a vector graphic file.
SF3_EXPORT size_t sf3_vector_graphic_size(const struct sf3_vector_graphic *vector_graphic)
Computes the size of the vector graphic file in bytes.
The basic header structure of every SF3 file.
sf3_format_id format_id
The ID of the actual file type contained within.
Description of an extent on the canvas.