// automatically generated by admSerialization.py, do not edit!
#include "ADM_default.h"
#include "ADM_paramList.h"
#include "ADM_coreJson.h"
#include "ffv1_encoder.h"
bool  ffv1_encoder_jserialize(const char *file, const ffv1_encoder *key){
admJson json;
json.addUint32("coder",key->coder);
json.addUint32("context",key->context);
json.addUint32("threads",key->threads);
json.addBool("slicecrc",key->slicecrc);
return json.dumpToFile(file);
};
bool  ffv1_encoder_jdeserialize(const char *file, const ADM_paramList *tmpl,ffv1_encoder *key){
admJsonToCouple json;
CONFcouple *c=json.readFromFile(file);
if(!c) {ADM_error("Cannot read json file");return false;}
bool r= ADM_paramLoadPartial(c,tmpl,key);
delete c;
return r;
};
