Lines Matching refs:mainlen
444 ssize_t mainlen = GetCompressor().Compress(&thumblen, block_mode); in encode() local
445 if (mainlen < 0) { in encode()
446 ALOGE("Error occured while JPEG compression: %zd", mainlen); in encode()
450 if (mainlen == 0) { /* non-blocking compression */ 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
474 mainlen = RemoveTrailingDummies(mainbase, mainlen); in FinishCompression()
499 …m_pAppWriter->GetMaxThumbnailSize(), max_streamsize - m_pAppWriter->CalculateAPPSize(0) - mainlen); 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()
520 … mainlen + PTR_DIFF(m_pAppWriter->GetApp1End(), m_pAppWriter->GetMainStreamBase())); in FinishCompression()
541 m_nStreamSize += m_pAppWriter->CalculateAPPSize(thumblen) + mainlen; in FinishCompression()
550 mainlen, thumblen, TestState(STATE_HWFC_ENABLED), btb); in FinishCompression()