/hardware/libhardware/modules/camera/3_4/arc/ |
D | jpeg_compressor.cpp | 51 void JpegCompressor::InitDestination(j_compress_ptr cinfo) { in InitDestination() argument 52 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in InitDestination() 59 boolean JpegCompressor::EmptyOutputBuffer(j_compress_ptr cinfo) { in EmptyOutputBuffer() argument 60 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in EmptyOutputBuffer() 69 void JpegCompressor::TerminateDestination(j_compress_ptr cinfo) { in TerminateDestination() argument 70 destination_mgr* dest = reinterpret_cast<destination_mgr*>(cinfo->dest); in TerminateDestination() 75 void JpegCompressor::OutputErrorMessage(j_common_ptr cinfo) { in OutputErrorMessage() argument 79 (*cinfo->err->format_message)(cinfo, buffer); in OutputErrorMessage() 86 jpeg_compress_struct cinfo; in Encode() local 89 cinfo.err = jpeg_std_error(&jerr); in Encode() [all …]
|
D | jpeg_compressor.h | 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);
|
/hardware/google/graphics/common/libhwjpeg/include/ |
D | hwjpeglib-exynos.h | 63 bool hwjpeg_file_src(hwjpeg_decompress_ptr cinfo, const char *path); 74 bool hwjpeg_dmabuf_src(hwjpeg_decompress_ptr cinfo, int infd, size_t insize, size_t dummybytes); 85 bool hwjpeg_mem_src(hwjpeg_decompress_ptr cinfo, unsigned char *inbuffer, size_t insize, 94 void hwjpeg_config_image_format(hwjpeg_decompress_ptr cinfo, __u32 v4l2_pix_fmt); 107 bool hwjpeg_mem_dst(hwjpeg_decompress_ptr cinfo, unsigned char *outbuffer[], size_t outsize[], 121 bool hwjpeg_dmabuf_dst(hwjpeg_decompress_ptr cinfo, int outfd[], size_t outsize[], 139 void hwjpeg_set_downscale_factor(hwjpeg_decompress_ptr cinfo, unsigned int factor); 150 bool hwjpeg_read_header(hwjpeg_decompress_ptr cinfo); 161 bool hwjpeg_has_enough_stream_buffer(hwjpeg_decompress_ptr cinfo); 171 bool hwjpeg_start_decompress(hwjpeg_decompress_ptr cinfo); [all …]
|
/hardware/google/camera/devices/EmulatedCamera/hwl/ |
D | JpegCompressor.cpp | 365 auto cinfo = std::make_unique<jpeg_compress_struct>(); in CompressYUV420Frame() local 366 cinfo->err = jpeg_std_error(&jerr); in CompressYUV420Frame() 367 cinfo->err->error_exit = [](j_common_ptr cinfo) { in CompressYUV420Frame() argument 368 (*cinfo->err->output_message)(cinfo); in CompressYUV420Frame() 369 if (cinfo->client_data) { in CompressYUV420Frame() 370 auto& dmgr = *static_cast<CustomJpegDestMgr*>(cinfo->client_data); in CompressYUV420Frame() 375 jpeg_create_compress(cinfo.get()); in CompressYUV420Frame() 384 cinfo->client_data = static_cast<void*>(&dmgr); in CompressYUV420Frame() 385 dmgr.init_destination = [](j_compress_ptr cinfo) { in CompressYUV420Frame() argument 386 auto& dmgr = static_cast<CustomJpegDestMgr&>(*cinfo->dest); in CompressYUV420Frame() [all …]
|
D | JpegCompressor.h | 106 inline void operator()(jpeg_compress_struct* cinfo) const { 107 if (cinfo != nullptr) { 108 jpeg_destroy_compress(cinfo); 109 delete cinfo;
|
/hardware/google/graphics/common/libhwjpeg/ |
D | libhwjpeg-exynos.cpp | 453 bool hwjpeg_file_src(hwjpeg_decompress_ptr cinfo, const char *path) { in hwjpeg_file_src() argument 454 CLibhwjpegDecompressor *decomp = reinterpret_cast<CLibhwjpegDecompressor *>(cinfo); in hwjpeg_file_src() 458 void hwjpeg_config_image_format(hwjpeg_decompress_ptr cinfo, __u32 v4l2_pix_fmt) { in hwjpeg_config_image_format() argument 459 cinfo->output_format = v4l2_pix_fmt; in hwjpeg_config_image_format() 462 bool hwjpeg_dmabuf_src(hwjpeg_decompress_ptr cinfo, int infd, size_t insize, size_t dummybytes) { in hwjpeg_dmabuf_src() argument 463 CLibhwjpegDecompressor *decomp = reinterpret_cast<CLibhwjpegDecompressor *>(cinfo); in hwjpeg_dmabuf_src() 467 bool hwjpeg_mem_src(hwjpeg_decompress_ptr cinfo, unsigned char *inbuffer, size_t insize, in hwjpeg_mem_src() argument 469 CLibhwjpegDecompressor *decomp = reinterpret_cast<CLibhwjpegDecompressor *>(cinfo); in hwjpeg_mem_src() 473 bool hwjpeg_mem_dst(hwjpeg_decompress_ptr cinfo, unsigned char *outbuffer[], size_t outsize[], in hwjpeg_mem_dst() argument 475 CLibhwjpegDecompressor *decomp = reinterpret_cast<CLibhwjpegDecompressor *>(cinfo); in hwjpeg_mem_dst() [all …]
|
/hardware/interfaces/camera/device/3.4/default/ |
D | ExternalCameraUtils.cpp | 431 jpeg_compress_struct cinfo = {}; in encodeJpegYU12() local 438 cinfo.err = jpeg_std_error(&jerr); in encodeJpegYU12() 440 cinfo.err->output_message = [](j_common_ptr cinfo) { in encodeJpegYU12() argument 444 (*cinfo->err->format_message)(cinfo, buffer); in encodeJpegYU12() 447 cinfo.err->error_exit = [](j_common_ptr cinfo) { in encodeJpegYU12() argument 448 (*cinfo->err->output_message)(cinfo); in encodeJpegYU12() 449 if(cinfo->client_data) { in encodeJpegYU12() 451 *reinterpret_cast<CustomJpegDestMgr*>(cinfo->client_data); in encodeJpegYU12() 456 jpeg_create_compress(&cinfo); in encodeJpegYU12() 463 cinfo.client_data = static_cast<void*>(&dmgr); in encodeJpegYU12() [all …]
|
/hardware/interfaces/camera/device/default/ |
D | ExternalCameraUtils.cpp | 585 jpeg_compress_struct cinfo = {}; in encodeJpegYU12() local 592 cinfo.err = jpeg_std_error(&jerr); in encodeJpegYU12() 594 cinfo.err->output_message = [](j_common_ptr cinfo) { in encodeJpegYU12() argument 598 (*cinfo->err->format_message)(cinfo, buffer); in encodeJpegYU12() 601 cinfo.err->error_exit = [](j_common_ptr cinfo) { in encodeJpegYU12() argument 602 (*cinfo->err->output_message)(cinfo); in encodeJpegYU12() 603 if (cinfo->client_data) { in encodeJpegYU12() 604 auto& dmgr = *reinterpret_cast<CustomJpegDestMgr*>(cinfo->client_data); in encodeJpegYU12() 610 jpeg_create_compress(&cinfo); in encodeJpegYU12() 617 cinfo.client_data = static_cast<void*>(&dmgr); in encodeJpegYU12() [all …]
|