Searched refs:cinfo (Results 1 – 5 of 5) sorted by relevance
51 void JpegCompressor::InitDestination(j_compress_ptr cinfo) { in InitDestination() argument52 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in InitDestination()59 boolean JpegCompressor::EmptyOutputBuffer(j_compress_ptr cinfo) { in EmptyOutputBuffer() argument60 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in EmptyOutputBuffer()69 void JpegCompressor::TerminateDestination(j_compress_ptr cinfo) { in TerminateDestination() argument70 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in TerminateDestination()75 void JpegCompressor::OutputErrorMessage(j_common_ptr cinfo) { in OutputErrorMessage() argument79 (*cinfo->err->format_message)(cinfo, buffer); in OutputErrorMessage()86 jpeg_compress_struct cinfo; in Encode() local89 cinfo.err = jpeg_std_error(&jerr); in Encode()[all …]
47 static void InitDestination(j_compress_ptr cinfo);48 static boolean EmptyOutputBuffer(j_compress_ptr cinfo);49 static void TerminateDestination(j_compress_ptr cinfo);50 static void OutputErrorMessage(j_common_ptr cinfo);55 void SetJpegDestination(jpeg_compress_struct* cinfo);57 jpeg_compress_struct* cinfo);59 bool Compress(jpeg_compress_struct* cinfo, const uint8_t* yuv);
235 auto cinfo = std::make_unique<jpeg_compress_struct>(); in CompressYUV420Frame() local236 cinfo->err = jpeg_std_error(&jerr); in CompressYUV420Frame()237 cinfo->err->error_exit = [](j_common_ptr cinfo) { in CompressYUV420Frame() argument238 (*cinfo->err->output_message)(cinfo); in CompressYUV420Frame()239 if (cinfo->client_data) { in CompressYUV420Frame()240 auto& dmgr = *static_cast<CustomJpegDestMgr*>(cinfo->client_data); in CompressYUV420Frame()245 jpeg_create_compress(cinfo.get()); in CompressYUV420Frame()254 cinfo->client_data = static_cast<void*>(&dmgr); in CompressYUV420Frame()255 dmgr.init_destination = [](j_compress_ptr cinfo) { in CompressYUV420Frame() argument256 auto& dmgr = static_cast<CustomJpegDestMgr&>(*cinfo->dest); in CompressYUV420Frame()[all …]
106 inline void operator()(jpeg_compress_struct* cinfo) const {107 if (cinfo != nullptr) {108 jpeg_destroy_compress(cinfo);109 delete cinfo;
402 jpeg_compress_struct cinfo = {}; in encodeJpegYU12() local409 cinfo.err = jpeg_std_error(&jerr); in encodeJpegYU12()411 cinfo.err->output_message = [](j_common_ptr cinfo) { in encodeJpegYU12() argument415 (*cinfo->err->format_message)(cinfo, buffer); in encodeJpegYU12()418 cinfo.err->error_exit = [](j_common_ptr cinfo) { in encodeJpegYU12() argument419 (*cinfo->err->output_message)(cinfo); in encodeJpegYU12()420 if(cinfo->client_data) { in encodeJpegYU12()422 *reinterpret_cast<CustomJpegDestMgr*>(cinfo->client_data); in encodeJpegYU12()427 jpeg_create_compress(&cinfo); in encodeJpegYU12()434 cinfo.client_data = static_cast<void*>(&dmgr); in encodeJpegYU12()[all …]