Lines Matching refs:cinfo

1376     jpeg_compress_struct cinfo = {};  in encodeJpegYU12()  local
1383 cinfo.err = jpeg_std_error(&jerr); in encodeJpegYU12()
1385 cinfo.err->output_message = [](j_common_ptr cinfo) { in encodeJpegYU12() argument
1389 (*cinfo->err->format_message)(cinfo, buffer); in encodeJpegYU12()
1392 cinfo.err->error_exit = [](j_common_ptr cinfo) { in encodeJpegYU12() argument
1393 (*cinfo->err->output_message)(cinfo); in encodeJpegYU12()
1394 if(cinfo->client_data) { in encodeJpegYU12()
1396 *reinterpret_cast<CustomJpegDestMgr*>(cinfo->client_data); in encodeJpegYU12()
1401 jpeg_create_compress(&cinfo); in encodeJpegYU12()
1408 cinfo.client_data = static_cast<void*>(&dmgr); in encodeJpegYU12()
1412 dmgr.mgr.init_destination = [](j_compress_ptr cinfo) { in encodeJpegYU12() argument
1413 auto & dmgr = reinterpret_cast<CustomJpegDestMgr&>(*cinfo->dest); in encodeJpegYU12()
1420 dmgr.mgr.empty_output_buffer = [](j_compress_ptr cinfo __unused) { in encodeJpegYU12()
1425 dmgr.mgr.term_destination = [](j_compress_ptr cinfo) { in encodeJpegYU12() argument
1426 auto & dmgr = reinterpret_cast<CustomJpegDestMgr&>(*cinfo->dest); in encodeJpegYU12()
1430 cinfo.dest = reinterpret_cast<struct jpeg_destination_mgr*>(&dmgr); in encodeJpegYU12()
1435 cinfo.image_width = inSz.width; in encodeJpegYU12()
1436 cinfo.image_height = inSz.height; in encodeJpegYU12()
1437 cinfo.input_components = 3; in encodeJpegYU12()
1438 cinfo.in_color_space = JCS_YCbCr; in encodeJpegYU12()
1441 jpeg_set_defaults(&cinfo); in encodeJpegYU12()
1443 jpeg_set_quality(&cinfo, jpegQuality, 1); in encodeJpegYU12()
1444 jpeg_set_colorspace(&cinfo, JCS_YCbCr); in encodeJpegYU12()
1445 cinfo.raw_data_in = 1; in encodeJpegYU12()
1446 cinfo.dct_method = JDCT_IFAST; in encodeJpegYU12()
1452 cinfo.comp_info[0].h_samp_factor = 2; in encodeJpegYU12()
1453 cinfo.comp_info[0].v_samp_factor = 2; in encodeJpegYU12()
1454 cinfo.comp_info[1].h_samp_factor = 1; in encodeJpegYU12()
1455 cinfo.comp_info[1].v_samp_factor = 1; in encodeJpegYU12()
1456 cinfo.comp_info[2].h_samp_factor = 1; in encodeJpegYU12()
1457 cinfo.comp_info[2].v_samp_factor = 1; in encodeJpegYU12()
1461 cinfo.comp_info[0].v_samp_factor, in encodeJpegYU12()
1462 cinfo.comp_info[1].v_samp_factor, in encodeJpegYU12()
1463 cinfo.comp_info[2].v_samp_factor in encodeJpegYU12()
1465 int cVSubSampling = cinfo.comp_info[0].v_samp_factor / in encodeJpegYU12()
1466 cinfo.comp_info[1].v_samp_factor; in encodeJpegYU12()
1469 jpeg_start_compress(&cinfo, TRUE); in encodeJpegYU12()
1504 jpeg_write_marker(&cinfo, JPEG_APP0 + 1, in encodeJpegYU12()
1510 while (cinfo.next_scanline < cinfo.image_height) { in encodeJpegYU12()
1512 const uint32_t nl = cinfo.next_scanline; in encodeJpegYU12()
1517 uint32_t done = jpeg_write_raw_data(&cinfo, planes, batchSize); in encodeJpegYU12()
1521 __FUNCTION__, done, batchSize, cinfo.next_scanline, in encodeJpegYU12()
1522 cinfo.image_height); in encodeJpegYU12()
1528 jpeg_finish_compress(&cinfo); in encodeJpegYU12()