48 pdfium::span<
const uint8_t> src_span,
50 pdfium::span<
const uint8_t> global_span,
52 pdfium::span<uint8_t> dest_buf,
57 pJbig2Context->m_pSrcSpan = src_span;
59 pJbig2Context->m_pGlobalSpan = global_span;
63 fxcrt::spanset(dest_buf.first(Fx2DSizeOrDie(height, dest_pitch)), 0);
64 pJbig2Context->m_pContext =
65 CJBig2_Context::Create(global_span, global_key, src_span, src_key,
66 pJBig2DocumentContext->GetSymbolDictCache());
67 bool succeeded = pJbig2Context->m_pContext->GetFirstPage(
68 dest_buf, width, height, dest_pitch, pPause);
69 return Decode(pJbig2Context, succeeded);
UNOWNED_PTR_EXCLUSION uint8_t * m_dest_buf
static FXCODEC_STATUS StartDecode(Jbig2Context *pJbig2Context, JBig2_DocumentContext *pJbig2DocumentContext, uint32_t width, uint32_t height, pdfium::span< const uint8_t > src_span, uint64_t src_key, pdfium::span< const uint8_t > global_span, uint64_t global_key, pdfium::span< uint8_t > dest_buf, uint32_t dest_pitch, PauseIndicatorIface *pPause)