#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <KHR/khr_df.h>
#include "dfd.h"
enum { … };
const char* dfdToStringVendorID(khr_df_vendorid_e value) { … }
const char* dfdToStringDescriptorType(khr_df_khr_descriptortype_e value) { … }
const char* dfdToStringVersionNumber(khr_df_versionnumber_e value) { … }
const char* dfdToStringFlagsBit(uint32_t bit_index, bool bit_value) { … }
const char* dfdToStringTransferFunction(khr_df_transfer_e value) { … }
const char* dfdToStringColorPrimaries(khr_df_primaries_e value) { … }
const char* dfdToStringColorModel(khr_df_model_e value) { … }
const char* dfdToStringSampleDatatypeQualifiers(uint32_t bit_index, bool bit_value) { … }
const char* dfdToStringChannelId(khr_df_model_e model, khr_df_model_channels_e value) { … }
static void printFlagBits(uint32_t flags, const char*(*toStringFn)(uint32_t, bool)) { … }
static void printFlagBitsJSON(uint32_t indent, const char* nl, uint32_t flags, const char*(*toStringFn)(uint32_t, bool)) { … }
void printDFD(uint32_t *DFD, uint32_t dataSize)
{ … }
void printDFDJSON(uint32_t* DFD, uint32_t dataSize, uint32_t base_indent, uint32_t indent_width, bool minified)
{ … }