Utilities for printing data format descriptors. More...
#include <assert.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include <KHR/khr_df.h>#include "dfd.h"Functions | |
| void | printDFD (uint32_t *DFD, uint32_t dataSize) |
| Print a human-readable interpretation of a data format descriptor. | |
| void | printDFDJSON (uint32_t *DFD, uint32_t dataSize, uint32_t base_indent, uint32_t indent_width, bool minified) |
| Print a JSON interpretation of a data format descriptor. | |
Utilities for printing data format descriptors.
| void printDFD | ( | uint32_t * | DFD, |
| uint32_t | dataSize | ||
| ) |
Print a human-readable interpretation of a data format descriptor.
| DFD | Pointer to a data format descriptor. |
| dataSize | The maximum size that can be considered as part of the DFD. |
| void printDFDJSON | ( | uint32_t * | DFD, |
| uint32_t | dataSize, | ||
| uint32_t | base_indent, | ||
| uint32_t | indent_width, | ||
| bool | minified | ||
| ) |
Print a JSON interpretation of a data format descriptor.
| DFD | Pointer to a data format descriptor. |
| dataSize | The maximum size that can be considered as part of the DFD. |
| base_indent | The number of indentations to include at the front of every line |
| indent_width | The number of spaces to add with each nested scope |
| minified | Specifies whether the JSON output should be minified |
Prints an enum as string or number
Prints an enum as string or number if the to string function fails with a trailing comma
Prints an enum as string or number if the to string function fails without a trailing comma