toojpeg
toojpeg copied to clipboard
How to use it in class.
How to do it if I want to write it in class variable? There is conflict with class member and WRITE_ONE_BYTE.
I must add "this" and it causes an error. For example
auto myOutput = [](unsigned char oneByte) { fputc(oneByte, output); };
but
auto f = [this](unsigned char oneByte) { public_jpeg.push_back(oneByte); };
error:
cannot convert ‘AirSimCamera::readAirsimCamera()::<lambda(unsigned char)>’ to ‘TooJpeg::WRITE_ONE_BYTE’ {aka ‘void (*)(unsigned char)’}