/external/pdfium/core/fpdfapi/page/ |
D | fpdf_page_colors.cpp | 82 bool CPDF_DeviceCS::GetRGB(FX_FLOAT* pBuf, in GetRGB() argument 88 R = NormalizeChannel(*pBuf); in GetRGB() 93 R = NormalizeChannel(pBuf[0]); in GetRGB() 94 G = NormalizeChannel(pBuf[1]); in GetRGB() 95 B = NormalizeChannel(pBuf[2]); in GetRGB() 99 FX_FLOAT k = pBuf[3]; in GetRGB() 100 R = 1.0f - std::min(1.0f, pBuf[0] + k); in GetRGB() 101 G = 1.0f - std::min(1.0f, pBuf[1] + k); in GetRGB() 102 B = 1.0f - std::min(1.0f, pBuf[2] + k); in GetRGB() 104 AdobeCMYK_to_sRGB(pBuf[0], pBuf[1], pBuf[2], pBuf[3], R, G, B); in GetRGB() [all …]
|
D | cpdf_colorspace.cpp | 68 bool GetRGB(FX_FLOAT* pBuf, 72 bool SetRGB(FX_FLOAT* pBuf, 96 bool GetRGB(FX_FLOAT* pBuf, 100 bool SetRGB(FX_FLOAT* pBuf, 130 bool GetRGB(FX_FLOAT* pBuf, 134 bool SetRGB(FX_FLOAT* pBuf, 158 bool GetRGB(FX_FLOAT* pBuf, 162 bool SetRGB(FX_FLOAT* pBuf, 167 bool v_GetCMYK(FX_FLOAT* pBuf, 194 bool GetRGB(FX_FLOAT* pBuf, [all …]
|
D | cpdf_colorspace.h | 51 virtual bool GetRGB(FX_FLOAT* pBuf, 55 virtual bool SetRGB(FX_FLOAT* pBuf, FX_FLOAT R, FX_FLOAT G, FX_FLOAT B) const; 57 bool GetCMYK(FX_FLOAT* pBuf, 62 bool SetCMYK(FX_FLOAT* pBuf, 87 virtual bool v_GetCMYK(FX_FLOAT* pBuf, 92 virtual bool v_SetCMYK(FX_FLOAT* pBuf,
|
D | pageint.h | 152 bool GetRGB(FX_FLOAT* pBuf, 156 bool SetRGB(FX_FLOAT* pBuf, 160 bool v_GetCMYK(FX_FLOAT* pBuf, 165 bool v_SetCMYK(FX_FLOAT* pBuf, 183 bool GetRGB(FX_FLOAT* pBuf,
|
D | cpdf_image.cpp | 203 FX_CHAR* pBuf = ct.GetBuffer(6); in SetImage() local 204 pBuf[0] = (FX_CHAR)reset_r; in SetImage() 205 pBuf[1] = (FX_CHAR)reset_g; in SetImage() 206 pBuf[2] = (FX_CHAR)reset_b; in SetImage() 207 pBuf[3] = (FX_CHAR)set_r; in SetImage() 208 pBuf[4] = (FX_CHAR)set_g; in SetImage() 209 pBuf[5] = (FX_CHAR)set_b; in SetImage()
|
/external/libvncserver/common/ |
D | zywrletemplate.c | 382 static InlineX void FilterWaveletSquare(int* pBuf, int width, int height, int level, int l) in FilterWaveletSquare() argument 392 pH = pBuf; in FilterWaveletSquare() 450 static InlineX void FilterWaveletSquare(int* pBuf, int width, int height, int level, int l) in FilterWaveletSquare() argument 460 pH = pBuf; in FilterWaveletSquare() 478 static InlineX void Wavelet(int* pBuf, int width, int height, int level) in Wavelet() argument 485 pTop = pBuf; in Wavelet() 486 pEnd = pBuf+height*width; in Wavelet() 492 pTop = pBuf; in Wavelet() 493 pEnd = pBuf+width; in Wavelet() 499 FilterWaveletSquare(pBuf, width, height, level, l); in Wavelet() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_extension.cpp | 552 uint32_t* pBuf = pContext->mt; in FX_Random_MT_Start() local 554 pBuf[i] = (1812433253UL * (pBuf[i - 1] ^ (pBuf[i - 1] >> 30)) + i); in FX_Random_MT_Start() 565 uint32_t* pBuf = pMTC->mt; in FX_Random_MT_Generate() local 572 v = (pBuf[kk] & MT_Upper_Mask) | (pBuf[kk + 1] & MT_Lower_Mask); in FX_Random_MT_Generate() 573 pBuf[kk] = pBuf[kk + MT_M] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() 576 v = (pBuf[kk] & MT_Upper_Mask) | (pBuf[kk + 1] & MT_Lower_Mask); in FX_Random_MT_Generate() 577 pBuf[kk] = pBuf[kk + (MT_M - MT_N)] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() 579 v = (pBuf[MT_N - 1] & MT_Upper_Mask) | (pBuf[0] & MT_Lower_Mask); in FX_Random_MT_Generate() 580 pBuf[MT_N - 1] = pBuf[MT_M - 1] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() 583 v = pBuf[mti++]; in FX_Random_MT_Generate() [all …]
|
D | fx_basic_buffer.cpp | 69 void CFX_BinaryBuf::AppendBlock(const void* pBuf, FX_STRSIZE size) { in AppendBlock() argument 74 if (pBuf) { in AppendBlock() 75 FXSYS_memcpy(m_pBuffer.get() + m_DataSize, pBuf, size); in AppendBlock() 83 const void* pBuf, in InsertBlock() argument 91 if (pBuf) { in InsertBlock() 92 FXSYS_memcpy(m_pBuffer.get() + pos, pBuf, size); in InsertBlock() 246 int32_t CFX_FileBufferArchive::AppendBlock(const void* pBuf, size_t size) { in AppendBlock() argument 247 if (!pBuf || size < 1) in AppendBlock() 253 const uint8_t* buffer = reinterpret_cast<const uint8_t*>(pBuf); in AppendBlock()
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | streamout_jit.cpp | 63 Value* pBuf = getSOBuffer(pSoCtx, buffer); in oob() local 67 Value* enabled = TRUNC(LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_enable }), IRB()->getInt1Ty()); in oob() 70 Value* bufferSize = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_bufferSize }); in oob() 73 Value* streamOffset = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_streamOffset }); in oob() 76 Value* pitch = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_pitch }); in oob() 223 Value* pBuf = getSOBuffer(pSoCtx, b); in buildStream() local 224 Value* pData = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_pBuffer }); in buildStream() 225 Value* streamOffset = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_streamOffset }); in buildStream() 229 outBufferPitch[b] = LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_pitch }); in buildStream() 253 Value* pBuf = getSOBuffer(pSoCtx, b); in buildStream() local [all …]
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_type3cache.cpp | 37 bool IsScanLine1bpp(uint8_t* pBuf, int width) { in IsScanLine1bpp() argument 40 if (pBuf[i]) in IsScanLine1bpp() 43 return (width % 8) && (pBuf[width / 8] & (0xff << (8 - width % 8))); in IsScanLine1bpp() 46 bool IsScanLine8bpp(uint8_t* pBuf, int width) { in IsScanLine8bpp() argument 48 if (pBuf[i] > 0x40) in IsScanLine8bpp() 61 uint8_t* pBuf = pBitmap->GetBuffer(); in DetectFirstLastScan() local 67 if (IsScanLine1bpp(pBuf + line * pitch, width)) in DetectFirstLastScan() 70 if (IsScanLine8bpp(pBuf + line * pitch, width)) in DetectFirstLastScan()
|
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/ |
D | EASLib.c | 136 static S_BUFFER_INFO *pBuf = NULL; variable 355 memset(ptrOutL, 0, pBuf->uOutFrames); in RenderProc() 356 memset(ptrOutR, 0, pBuf->uOutFrames); in RenderProc() 359 if (pBuf->ix == 0 ) in RenderProc() 368 short* pData = pBuf->pData[--(pBuf->ix)]; in RenderProc() 372 for (i = 0; i < pBuf->uOutFrames; i+=2 ) in RenderProc() 388 memcpy(pBuf->pData[(pBuf->ix)++], pAudioBuffer, 2048); in addData() 412 while(pBuf->ix == MAX_BUFFERS - 1) in EAS_RenderWaveOut() 433 while(pBuf->ix == MAX_BUFFERS - 1) in EAS_RenderAuxMixerWaveOut() 527 pBuf = (S_BUFFER_INFO *) malloc(sizeof(S_BUFFER_INFO)); in OpenWaveOutDevice() [all …]
|
/external/libvncserver/libvncserver/tightvnc-filetransfer/ |
D | handlefiletransferrequest.c | 758 void HandleFileUploadWrite(rfbClientPtr cl, rfbTightClientPtr rtcp, char* pBuf); 765 char* pBuf = NULL; in HandleFileUploadDataRequest() local 804 pBuf = (char*) calloc(msg.fud.compressedSize, sizeof(char)); in HandleFileUploadDataRequest() 805 if(pBuf == NULL) { in HandleFileUploadDataRequest() 809 if((n = rfbReadExact(cl, pBuf, msg.fud.compressedSize)) <= 0) { in HandleFileUploadDataRequest() 817 if(pBuf != NULL) { in HandleFileUploadDataRequest() 818 free(pBuf); in HandleFileUploadDataRequest() 819 pBuf = NULL; in HandleFileUploadDataRequest() 837 if(pBuf != NULL) { in HandleFileUploadDataRequest() 838 free(pBuf); in HandleFileUploadDataRequest() [all …]
|
D | filetransfermsg.c | 451 char pBuf[SZ_RFBBLOCKSIZE]; in GetFileDownloadResponseMsgInBlocks() local 454 memset(pBuf, 0, SZ_RFBBLOCKSIZE); in GetFileDownloadResponseMsgInBlocks() 465 if( (numOfBytesRead = read(rtcp->rcft.rcfd.downloadFD, pBuf, SZ_RFBBLOCKSIZE)) <= 0) { in GetFileDownloadResponseMsgInBlocks() 474 return CreateFileDownloadBlockSizeDataMsg(numOfBytesRead, pBuf); in GetFileDownloadResponseMsgInBlocks() 660 ChkFileUploadWriteErr(rfbClientPtr cl, rfbTightClientPtr rtcp, char* pBuf) in ChkFileUploadWriteErr() argument 667 numOfBytesWritten = write(rtcp->rcft.rcfu.uploadFD, pBuf, rtcp->rcft.rcfu.fSize); in ChkFileUploadWriteErr()
|
D | filetransfermsg.h | 50 FileTransferMsg ChkFileUploadWriteErr(rfbClientPtr cl, rfbTightClientPtr data, char* pBuf);
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_simple_parser.cpp | 142 uint32_t* pBuf = FX_Alloc(uint32_t, nParams); in FindTagParamFromStart() local 147 pBuf[buf_index++] = m_dwCurPos; in FindTagParamFromStart() 157 FX_Free(pBuf); in FindTagParamFromStart() 164 m_dwCurPos = pBuf[buf_index]; in FindTagParamFromStart() 165 FX_Free(pBuf); in FindTagParamFromStart()
|
/external/pdfium/testing/ |
D | test_support.cpp | 179 TestLoader::TestLoader(const char* pBuf, size_t len) in TestLoader() argument 180 : m_pBuf(pBuf), m_Len(len) { in TestLoader() 186 unsigned char* pBuf, in GetBlock() argument 192 memcpy(pBuf, pLoader->m_pBuf + pos, size); in GetBlock()
|
D | test_support.h | 93 TestLoader(const char* pBuf, size_t len); 96 unsigned char* pBuf,
|
/external/valgrind/coregrind/m_debuginfo/ |
D | tinfl.c | 110 typedef int (*tinfl_put_buf_func_ptr)(const void* pBuf, int len, void *pUser); 538 …tinfl_decompressor decomp; void *pBuf = NULL, *pNew_buf; SizeT src_buf_ofs = 0, out_buf_capacity =… in tinfl_decompress_mem_to_heap() local 544 …t mz_uint8*)pSrc_buf + src_buf_ofs, &src_buf_size, (mz_uint8*)pBuf, pBuf ? (mz_uint8*)pBuf + *pOut… in tinfl_decompress_mem_to_heap() 548 VG_(free)(pBuf); *pOut_len = 0; return NULL; in tinfl_decompress_mem_to_heap() 554 pNew_buf = VG_(realloc)("tinfl.tinfl_decompress_mem_to_heap.1", pBuf, new_out_buf_capacity); in tinfl_decompress_mem_to_heap() 557 VG_(free)(pBuf); *pOut_len = 0; return NULL; in tinfl_decompress_mem_to_heap() 559 pBuf = pNew_buf; out_buf_capacity = new_out_buf_capacity; in tinfl_decompress_mem_to_heap() 561 return pBuf; in tinfl_decompress_mem_to_heap()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_dataavail_embeddertest.cpp | 109 int GetBlockImpl(unsigned long pos, unsigned char* pBuf, unsigned long size) { in GetBlockImpl() argument 116 memcpy(pBuf, file_contents_.get() + pos, end - pos); in GetBlockImpl() 138 unsigned char* pBuf, in SGetBlock() argument 140 return static_cast<TestAsyncLoader*>(param)->GetBlockImpl(pos, pBuf, size); in SGetBlock()
|
/external/pdfium/xfa/fde/ |
D | cfde_txtedtpage.cpp | 214 CFDE_TxtEdtBuf* pBuf = m_pEditEngine->GetTextBuf(); in SelectWord() local 224 pIter->Attach(new CFDE_TxtEdtBuf::Iterator(pBuf)); in SelectWord() 240 CFDE_TxtEdtBuf* pBuf = m_pEditEngine->GetTextBuf(); in LoadPage() local 246 m_pIter.reset(new CFDE_TxtEdtBuf::Iterator(static_cast<CFDE_TxtEdtBuf*>(pBuf), in LoadPage() 318 FX_WCHAR wChar = pBuf->GetCharByIndex( in LoadPage() 320 FX_WCHAR wCharPre = pBuf->GetCharByIndex( in LoadPage() 329 FX_WCHAR wChar = pBuf->GetCharByIndex( in LoadPage()
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | tilemgr.cpp | 275 simd16scalari *pBuf = (simd16scalari *)pHotTile->pBuffer; in ClearStencilHotTile() local 285 _simd16_store_si(pBuf, valS); in ClearStencilHotTile() 286 pBuf += 1; in ClearStencilHotTile() 353 simdscalari* pBuf = (simdscalari*)pHotTile->pBuffer; in ClearStencilHotTile() local 363 _simd_store_si(pBuf, valS); in ClearStencilHotTile() 364 pBuf += 1; in ClearStencilHotTile()
|
D | rasterizer.cpp | 1328 float *pBuf = &newTriBuffer[0]; in RasterizeTriPoint() local 1329 *pBuf++ = lowerX; in RasterizeTriPoint() 1330 *pBuf++ = lowerX; in RasterizeTriPoint() 1331 *pBuf++ = upperX; in RasterizeTriPoint() 1332 pBuf++; in RasterizeTriPoint() 1333 *pBuf++ = lowerY; in RasterizeTriPoint() 1334 *pBuf++ = upperY; in RasterizeTriPoint() 1335 *pBuf++ = upperY; in RasterizeTriPoint() 1336 pBuf++; in RasterizeTriPoint() 1337 _mm_store_ps(pBuf, _mm_set1_ps(z)); in RasterizeTriPoint() [all …]
|
/external/pdfium/core/fxcodec/codec/ |
D | ccodec_tiffmodule.cpp | 207 void TiffBGRA2RGBA(uint8_t* pBuf, int32_t pixel, int32_t spp) { in TiffBGRA2RGBA() argument 209 uint8_t tmp = pBuf[0]; in TiffBGRA2RGBA() 210 pBuf[0] = pBuf[2]; in TiffBGRA2RGBA() 211 pBuf[2] = tmp; in TiffBGRA2RGBA() 212 pBuf += spp; in TiffBGRA2RGBA()
|
/external/pdfium/xfa/fxfa/parser/ |
D | xfa_localemgr.cpp | 1038 static std::unique_ptr<IFX_Locale> XFA_GetLocaleFromBuffer(const uint8_t* pBuf, in XFA_GetLocaleFromBuffer() argument 1040 if (!pBuf || nBufLen <= 0) in XFA_GetLocaleFromBuffer() 1053 pCodecMgr->GetFlateModule()->FlateOrLZWDecode(false, pBuf, nBufLen, true, 0, in XFA_GetLocaleFromBuffer()
|
/external/swiftshader/third_party/PowerVR_SDK/Shell/API/KEGL/ |
D | PVRShellAPI.cpp | 751 bool PVRShellInit::ApiScreenCaptureBuffer(int Width,int Height,unsigned char *pBuf) in ApiScreenCaptureBuffer() argument 774 pBuf[i] = pLines2[j+2]; in ApiScreenCaptureBuffer() 775 pBuf[i+1] = pLines2[j+1]; in ApiScreenCaptureBuffer() 776 pBuf[i+2] = pLines2[j]; in ApiScreenCaptureBuffer()
|