Lines Matching refs:dmgr
359 } dmgr; in CompressYUV420Frame() local
370 auto& dmgr = *static_cast<CustomJpegDestMgr*>(cinfo->client_data); in CompressYUV420Frame() local
371 dmgr.success = false; in CompressYUV420Frame()
380 dmgr.buffer = static_cast<JOCTET*>(frame.output_buffer); in CompressYUV420Frame()
381 dmgr.buffer_size = frame.output_buffer_size; in CompressYUV420Frame()
382 dmgr.encoded_size = 0; in CompressYUV420Frame()
383 dmgr.success = true; in CompressYUV420Frame()
384 cinfo->client_data = static_cast<void*>(&dmgr); in CompressYUV420Frame()
385 dmgr.init_destination = [](j_compress_ptr cinfo) { in CompressYUV420Frame()
386 auto& dmgr = static_cast<CustomJpegDestMgr&>(*cinfo->dest); in CompressYUV420Frame() local
387 dmgr.next_output_byte = dmgr.buffer; in CompressYUV420Frame()
388 dmgr.free_in_buffer = dmgr.buffer_size; in CompressYUV420Frame()
389 ALOGV("%s:%d jpeg start: %p [%zu]", __FUNCTION__, __LINE__, dmgr.buffer, in CompressYUV420Frame()
390 dmgr.buffer_size); in CompressYUV420Frame()
393 dmgr.empty_output_buffer = [](j_compress_ptr) { in CompressYUV420Frame()
398 dmgr.term_destination = [](j_compress_ptr cinfo) { in CompressYUV420Frame()
399 auto& dmgr = static_cast<CustomJpegDestMgr&>(*cinfo->dest); in CompressYUV420Frame() local
400 dmgr.encoded_size = dmgr.buffer_size - dmgr.free_in_buffer; in CompressYUV420Frame()
402 dmgr.encoded_size); in CompressYUV420Frame()
405 cinfo->dest = reinterpret_cast<struct jpeg_destination_mgr*>(&dmgr); in CompressYUV420Frame()
523 return dmgr.encoded_size; in CompressYUV420Frame()