view tools/lib64util.h @ 2576:812b16ee49db

I had been living under apparent false impression that "realfft.c" on which the FFT implementation in DMLIB was basically copied from was released in public domain at some point, but it could very well be that it never was. Correct license is (or seems to be) GNU GPL. Thus I removing the code from DMLIB, and profusely apologize to the author, Philip Van Baren. It was never my intention to distribute code based on his original work under a more liberal license than originally intended.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 16:32:50 +0200
parents bb44c48cffac
children 9807ae37ad69
line wrap: on
line source

/*
 * Common utility functions for gfxconv and 64vw
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2019-2021 Tecnic Software productions (TNSP)
 *
 * Please read file 'COPYING' for information on license and distribution.
 */
#ifndef LIB64UTIL_H
#define LIB64UTIL_H 1

#include "lib64gfx.h"

#ifdef __cplusplus
extern "C" {
#endif


//
// Global variables
//

// Some C64 palettes
extern DMC64Palette      dmC64DefaultPalettes[];
extern const int         ndmC64DefaultPalettes;


//
// Functions
//
char *    dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
void      dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent);

void      argShowC64PaletteHelp(FILE *fh);
void      argShowC64Formats(FILE *fh, const BOOL rw, const BOOL verbose);
BOOL      argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile);

int       dmHandleExternalPalette(const char *filename, DMPalette **ppal);

const char *dmGetChargenROMPath();


#ifdef __cplusplus
}
#endif

#endif // LIB64UTIL_H