Lines Matching refs:thumblen
222 size_t thumblen = encoder->CompressThumbnail(); in tCompressThumbnail() local
223 return reinterpret_cast<void *>(thumblen); in tCompressThumbnail()
401 size_t thumblen = 0; in encode() local
444 ssize_t mainlen = GetCompressor().Compress(&thumblen, block_mode); in encode()
455 *size = static_cast<int>(FinishCompression(mainlen, thumblen)); in encode()
465 ssize_t ExynosJpegEncoderForCamera::FinishCompression(size_t mainlen, size_t thumblen) in FinishCompression() argument
492 thumblen = reinterpret_cast<size_t>(len); in FinishCompression()
494 …thumblen = CompressThumbnailOnly(m_pAppWriter->GetMaxThumbnailSize(), m_nThumbQuality, getColorFor… in FinishCompression()
501 if (thumblen > max_thumb) { in FinishCompression()
503 m_nThumbWidth, m_nThumbHeight, thumblen, max_thumb, m_nThumbQuality); in FinishCompression()
505 thumblen = CompressThumbnailOnly(max_thumb, 50, getColorFormat(), checkInBufType()); in FinishCompression()
506 if (thumblen == 0) in FinishCompression()
512 PTR_TO_ULONG(mainbase + mainlen + thumblen - JPEG_MARKER_SIZE)) { in FinishCompression()
514 max_streamsize, m_pAppWriter->CalculateAPPSize(thumblen), mainlen, thumblen); in FinishCompression()
519 memmove(m_pAppWriter->GetApp1End() + thumblen, m_pAppWriter->GetApp1End(), in FinishCompression()
521 m_pAppWriter->UpdateApp1Size(thumblen); in FinishCompression()
527 if (thumblen > 0) { in FinishCompression()
528 memcpy(m_pAppWriter->GetThumbStreamBase(), m_pIONThumbJpegBuffer, thumblen); in FinishCompression()
529 m_pAppWriter->Finalize(thumblen); in FinishCompression()
534 memset(m_pAppWriter->GetThumbStreamBase() + thumblen, 0, in FinishCompression()
535 … m_pAppWriter->GetMaxThumbnailSize() - thumblen + m_pAppWriter->GetAPP1ResrevedSize()); in FinishCompression()
538 thumblen = 0; in FinishCompression()
541 m_nStreamSize += m_pAppWriter->CalculateAPPSize(thumblen) + mainlen; in FinishCompression()
550 mainlen, thumblen, TestState(STATE_HWFC_ENABLED), btb); in FinishCompression()
564 size_t thumblen = 0; in WaitForCompression() local
565 ssize_t streamlen = GetCompressor().WaitForCompression(&thumblen); in WaitForCompression()
569 return FinishCompression(streamlen, thumblen); in WaitForCompression()