#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

# include "psvideophot.h"

psvideophotOptions *psvideophotParseCamera(pmConfig *config)
{
    if (!psvideophotDefineFile(config, NULL, "PSVIDEOPHOT.INPUT", "INPUT", PM_FPA_FILE_IMAGE, PM_DETREND_TYPE_NONE)) {
        psError(PS_ERR_IO, false, "Can't find an input image source");
        return NULL;
    }
    pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSVIDEOPHOT.INPUT"); // Input file
    psAssert(input, "We just put it there!");

#ifdef notyet
    // add recipe options supplied on command line
    bool status = false;
    psMetadata *recipe  = psMetadataLookupPtr(&status, config->recipes, RECIPE_NAME);
#endif

    // parse the options from the metadata format to the psvideophotOptions structure
    psvideophotOptions *options = psvideophotOptionsParse(config);

    return (options);
}
