Lines Matching refs:pContext

155     PackedFont::ConstructContext*   pContext,  in InitStreamingConstruct()  argument
161 NN_POINTER_ASSERT(pContext); in InitStreamingConstruct()
167 pContext->Init( outBuffer, outBufferSize, glyphGroups ); in InitStreamingConstruct()
168 pContext->op = ConstructContext::ANALYZE_FILE_HEADER; in InitStreamingConstruct()
173 PackedFont::ConstructContext* pContext, in StreamingConstruct() argument
178 NN_POINTER_ASSERT(pContext); in StreamingConstruct()
187 return pContext->HasMoreBlock() ? CONSTRUCT_ERROR: CONSTRUCT_FINISH; in StreamingConstruct()
191 CachedStreamReader& s = pContext->GetStreamReader(); in StreamingConstruct()
196 switch (pContext->op) in StreamingConstruct()
198 case ConstructContext::DISPATCH: ret = ConstructOpDispatch(pContext, &s); break; in StreamingConstruct()
199 …case ConstructContext::ANALYZE_FILE_HEADER: ret = ConstructOpAnalyzeFileHeader(pContext, &s); bre… in StreamingConstruct()
200 …case ConstructContext::ANALYZE_GLGR: ret = ConstructOpAnalyzeGLGRPacked(pContext, &s); bre… in StreamingConstruct()
201 … case ConstructContext::ANALYZE_FINF: ret = ConstructOpAnalyzeFINF(pContext, &s); break; in StreamingConstruct()
202 … case ConstructContext::ANALYZE_CMAP: ret = ConstructOpAnalyzeCMAP(pContext, &s); break; in StreamingConstruct()
203 … case ConstructContext::ANALYZE_CWDH: ret = ConstructOpAnalyzeCWDH(pContext, &s); break; in StreamingConstruct()
204 case ConstructContext::COPY: ret = ConstructOpCopy(pContext, &s); break; in StreamingConstruct()
205 case ConstructContext::SKIP: ret = ConstructOpSkip(pContext, &s); break; in StreamingConstruct()
206 … case ConstructContext::FATAL_ERROR: ret = ConstructOpFatalError(pContext, &s); break; in StreamingConstruct()
207 … case ConstructContext::ANALYZE_TGLP: ret = ConstructOpAnalyzeTGLP(pContext, &s); break; in StreamingConstruct()
210 ret = ConstructOpPrepairCopyPackedSheet(pContext, &s); in StreamingConstruct()
211 if (pContext->op == PackedFont::ConstructContext::COPY) in StreamingConstruct()
214 m_pCompSheetArray[m_NumCompSheet] = pContext->GetCurrentPtr<u8*>(); in StreamingConstruct()
222 pContext->op = ConstructContext::FATAL_ERROR; in StreamingConstruct()
226 NN_ASSERTMSG(false, "NW FONT Internal error\n" "invalid operation(%d)", pContext->op); in StreamingConstruct()
227 pContext->op = ConstructContext::FATAL_ERROR; in StreamingConstruct()
239 pContext->Finish(&pUserBuffer, &pFontInfo, &pAdjustArray); in StreamingConstruct()
791 PackedFont::ConstructContext* pContext, in ConstructOpAnalyzeGLGRPacked() argument
795 NN_POINTER_ASSERT(pContext); in ConstructOpAnalyzeGLGRPacked()
802 … const ut::BinaryFileHeader& header = *pContext->GetCurrentPtr<const ut::BinaryFileHeader*>(); in ConstructOpAnalyzeGLGRPacked()
803 const u32 requireSize = pContext->header.size - sizeof(ut::BinaryBlockHeader); in ConstructOpAnalyzeGLGRPacked()
804 const u32 infoSize = sizeof(ut::BinaryFileHeader) + pContext->header.size; in ConstructOpAnalyzeGLGRPacked()
814 return RequestData(pContext, pStream, requireSize); in ConstructOpAnalyzeGLGRPacked()
816 if (pContext->GetRemain() < infoSize) in ConstructOpAnalyzeGLGRPacked()
825 pTempFileHead = pContext->GetCurrentPtr<u8*>(); in ConstructOpAnalyzeGLGRPacked()
828 pTempGLGRTail = blockHeaderPos + pContext->header.size; in ConstructOpAnalyzeGLGRPacked()
829 std::memcpy(blockHeaderPos, &pContext->header, sizeof(ut::BinaryBlockHeader)); in ConstructOpAnalyzeGLGRPacked()
839 const u32 bufferSize = pContext->GetRemain(); in ConstructOpAnalyzeGLGRPacked()
881 … if (IsNullString(pContext->GetGlyphGroups()) || IncludeName(pContext->GetGlyphGroups(), setName)) in ConstructOpAnalyzeGLGRPacked()
911 sizeResLoadBuffer = CalcCopySize(gg, pContext->GetGlyphGroups(), NULL); in ConstructOpAnalyzeGLGRPacked()
941 pContext->SetGLGR( pTrueAdjustArray, in ConstructOpAnalyzeGLGRPacked()
946 pContext->Advance(offsetResLoadBuffer); // 既に確保した分 in ConstructOpAnalyzeGLGRPacked()
947 pContext->op = ConstructContext::DISPATCH; in ConstructOpAnalyzeGLGRPacked()
955 PackedFont::ConstructContext* pContext, in ConstructOpPrepairCopyPackedSheet() argument
959 NN_POINTER_ASSERT(pContext); in ConstructOpPrepairCopyPackedSheet()
962 if (! pContext->HasMoreSheet()) in ConstructOpPrepairCopyPackedSheet()
964 pContext->op = ConstructContext::DISPATCH; in ConstructOpPrepairCopyPackedSheet()
973 return RequestData(pContext, pStream, requireSize); in ConstructOpPrepairCopyPackedSheet()
982 if (pContext->IsRequireSheet()) in ConstructOpPrepairCopyPackedSheet()
986 if (pContext->GetRemain() < srcSize) in ConstructOpPrepairCopyPackedSheet()
993 pContext->SetupCopyTask(srcSize, ConstructContext::PREPAIR_EXPAND_SHEET); in ConstructOpPrepairCopyPackedSheet()
998 pContext->SetupSkipTask(srcSize, ConstructContext::PREPAIR_EXPAND_SHEET); in ConstructOpPrepairCopyPackedSheet()
1002 pContext->NextSheet(); in ConstructOpPrepairCopyPackedSheet()