49 pdfium::span<
const uint8_t> src_span,
51 pdfium::span<
const uint8_t> global_span,
53 pdfium::span<uint8_t> dest_buf,
58 pJbig2Context->m_pSrcSpan = src_span;
60 pJbig2Context->m_pGlobalSpan = global_span;
62 pJbig2Context->m_dest_buf = dest_buf;
64 fxcrt::Fill(dest_buf.first(Fx2DSizeOrDie(height, dest_pitch)), 0);
65 pJbig2Context->m_pContext =
66 CJBig2_Context::Create(global_span, global_key, src_span, src_key,
67 pJBig2DocumentContext->GetSymbolDictCache());
68 bool succeeded = pJbig2Context->m_pContext->GetFirstPage(
69 dest_buf, width, height, dest_pitch, pPause);
70 return Decode(pJbig2Context, succeeded);