High-level codec interface. More...
#include "volksdata/codec/codec_nt.h"#include "volksdata/codec/codec_ttl.h"#include "volksdata/codec/codec_trig.h"

Go to the source code of this file.
Macros | |
| #define | CODEC_TBL |
| #define | ENTRY(a, b, c) |
Functions | |
| const VOLK_Codec * | VOLK_codec_from_fmt (const char *fmt) |
| Get a codec by its format string. | |
| VOLK_rc | VOLK_codec_decode_str (const char *data, const char *fmt, VOLK_Graph *gr) |
| Populate a graph from a RDF string. | |
| VOLK_rc | VOLK_codec_decode_file (FILE *fh, const char *fmt, VOLK_Graph *gr) |
| Populate a graph from a RDF file handle. | |
High-level codec interface.
This module, similarly to the store module, provides a high-level API to the individual codec interfaces. It allows programmatic access to a specified codec and fails gracefully when a codec is missing a requested feature.
Users of this library normally need not access codecs any deeper than this level.
Implementers of new codecs should consult the codec_interface.h documentation for implementation details. New codecs MUST be registered in two places in codec.h: 1) an #include "volksdata/codec/codec_<new_format>.h" line, and 2) an additional entry to the CODEC_TBL X-macro, which takes care of generating all necessary helper functions.
Definition in file codec.h.
| #define CODEC_TBL |
| #define ENTRY | ( | a, | |
| b, | |||
| c ) |