Home
last modified time | relevance | path

Searched refs:cinfo (Results 1 – 7 of 7) sorted by relevance

/device/google/cuttlefish/host/frontend/vnc_server/
Djpeg_compressor.cpp28 void InitCinfo(jpeg_compress_struct* cinfo, jpeg_error_mgr* err, in InitCinfo() argument
30 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 …]
/device/generic/goldfish/camera/jpeg-stub/
DCompressor.cpp156 void Compressor::ErrorManager::onJpegError(j_common_ptr cinfo) { in onJpegError() argument
161 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() argument
181 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in initDestination()
190 j_compress_ptr cinfo) { in emptyOutputBuffer() argument
191 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in emptyOutputBuffer()
202 void Compressor::DestinationManager::termDestination(j_compress_ptr cinfo) { in termDestination() argument
203 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in termDestination()
DCompressor.h53 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);
/device/google/cuttlefish/guest/hals/camera/
DCompressor.cpp181 void Compressor::ErrorManager::onJpegError(j_common_ptr cinfo) { in onJpegError() argument
186 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() argument
206 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in initDestination()
215 j_compress_ptr cinfo) { in emptyOutputBuffer() argument
216 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in emptyOutputBuffer()
227 void Compressor::DestinationManager::termDestination(j_compress_ptr cinfo) { in termDestination() argument
228 auto manager = reinterpret_cast<DestinationManager*>(cinfo->dest); in termDestination()
DCompressor.h53 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);
/device/google/cuttlefish/guest/hals/camera/fake-pipeline2/
DJpegCompressor.h100 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);
DJpegCompressor.cpp261 void JpegCompressor::jpegErrorHandler(j_common_ptr cinfo) { in jpegErrorHandler() argument
262 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() argument
267 JpegDestination *dest = static_cast<JpegDestination *>(cinfo->dest); in jpegInitDestination()
279 void JpegCompressor::jpegTermDestination(j_compress_ptr cinfo) { in jpegTermDestination() argument
281 cinfo->dest->free_in_buffer); in jpegTermDestination()