Searched refs:cinfo (Results 1 – 7 of 7) sorted by relevance
28 void InitCinfo(jpeg_compress_struct* cinfo, jpeg_error_mgr* err, in InitCinfo() argument30 cinfo->err = jpeg_std_error(err); in InitCinfo()31 jpeg_create_compress(cinfo); in InitCinfo()33 cinfo->image_width = width; in InitCinfo()34 cinfo->image_height = height; in InitCinfo()35 cinfo->input_components = cuttlefish::ScreenConnector::BytesPerPixel(); in InitCinfo()36 cinfo->in_color_space = JCS_EXT_RGBX; in InitCinfo()38 jpeg_set_defaults(cinfo); in InitCinfo()39 jpeg_set_quality(cinfo, jpeg_quality, true); in InitCinfo()48 jpeg_compress_struct cinfo{}; in Compress() local[all …]
156 void Compressor::ErrorManager::onJpegError(j_common_ptr cinfo) { in onJpegError() argument161 ErrorManager* errorManager = reinterpret_cast<ErrorManager*>(cinfo->err); in onJpegError()165 (*errorManager->format_message)(cinfo, errorMessage); in onJpegError()168 jpeg_destroy(cinfo); in onJpegError()180 void Compressor::DestinationManager::initDestination(j_compress_ptr cinfo) { in initDestination() argument181 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in initDestination()190 j_compress_ptr cinfo) { in emptyOutputBuffer() argument191 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in emptyOutputBuffer()202 void Compressor::DestinationManager::termDestination(j_compress_ptr cinfo) { in termDestination() argument203 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in termDestination()
53 static void initDestination(j_compress_ptr cinfo);54 static boolean emptyOutputBuffer(j_compress_ptr cinfo);55 static void termDestination(j_compress_ptr cinfo);62 static void onJpegError(j_common_ptr cinfo);
181 void Compressor::ErrorManager::onJpegError(j_common_ptr cinfo) { in onJpegError() argument186 ErrorManager* errorManager = reinterpret_cast<ErrorManager*>(cinfo->err); in onJpegError()190 (*errorManager->format_message)(cinfo, errorMessage); in onJpegError()193 jpeg_destroy(cinfo); in onJpegError()205 void Compressor::DestinationManager::initDestination(j_compress_ptr cinfo) { in initDestination() argument206 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in initDestination()215 j_compress_ptr cinfo) { in emptyOutputBuffer() argument216 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in emptyOutputBuffer()227 void Compressor::DestinationManager::termDestination(j_compress_ptr cinfo) { in termDestination() argument228 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in termDestination()
100 static void jpegErrorHandler(j_common_ptr cinfo);102 static void jpegInitDestination(j_compress_ptr cinfo);103 static boolean jpegEmptyOutputBuffer(j_compress_ptr cinfo);104 static void jpegTermDestination(j_compress_ptr cinfo);
261 void JpegCompressor::jpegErrorHandler(j_common_ptr cinfo) { in jpegErrorHandler() argument262 JpegError *error = static_cast<JpegError *>(cinfo->err); in jpegErrorHandler()263 error->parent->mJpegErrorInfo = cinfo; in jpegErrorHandler()266 void JpegCompressor::jpegInitDestination(j_compress_ptr cinfo) { in jpegInitDestination() argument267 JpegDestination *dest = static_cast<JpegDestination *>(cinfo->dest); in jpegInitDestination()279 void JpegCompressor::jpegTermDestination(j_compress_ptr cinfo) { in jpegTermDestination() argument281 cinfo->dest->free_in_buffer); in jpegTermDestination()