Searched refs:cinfo (Results 1 – 3 of 3) sorted by relevance
53 void JpegCompressor::InitDestination(j_compress_ptr cinfo) { in InitDestination() argument54 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in InitDestination()61 boolean JpegCompressor::EmptyOutputBuffer(j_compress_ptr cinfo) { in EmptyOutputBuffer() argument62 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in EmptyOutputBuffer()71 void JpegCompressor::TerminateDestination(j_compress_ptr cinfo) { in TerminateDestination() argument72 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in TerminateDestination()77 void JpegCompressor::OutputErrorMessage(j_common_ptr cinfo) { in OutputErrorMessage() argument81 (*cinfo->err->format_message)(cinfo, buffer); in OutputErrorMessage()88 jpeg_compress_struct cinfo; in Encode() local91 cinfo.err = jpeg_std_error(&jerr); in Encode()[all …]
48 static void InitDestination(j_compress_ptr cinfo);49 static boolean EmptyOutputBuffer(j_compress_ptr cinfo);50 static void TerminateDestination(j_compress_ptr cinfo);51 static void OutputErrorMessage(j_common_ptr cinfo);56 void SetJpegDestination(jpeg_compress_struct* cinfo);58 jpeg_compress_struct* cinfo);60 bool Compress(jpeg_compress_struct* cinfo, const uint8_t* yuv);
1282 jpeg_compress_struct cinfo = {}; in encodeJpegYU12() local1289 cinfo.err = jpeg_std_error(&jerr); in encodeJpegYU12()1291 cinfo.err->output_message = [](j_common_ptr cinfo) { in encodeJpegYU12() argument1295 (*cinfo->err->format_message)(cinfo, buffer); in encodeJpegYU12()1298 cinfo.err->error_exit = [](j_common_ptr cinfo) { in encodeJpegYU12() argument1299 (*cinfo->err->output_message)(cinfo); in encodeJpegYU12()1300 if(cinfo->client_data) { in encodeJpegYU12()1302 *reinterpret_cast<CustomJpegDestMgr*>(cinfo->client_data); in encodeJpegYU12()1307 jpeg_create_compress(&cinfo); in encodeJpegYU12()1314 cinfo.client_data = static_cast<void*>(&dmgr); in encodeJpegYU12()[all …]