/external/pdfium/core/fxcrt/ |
D | fx_random.cpp | 87 uint32_t* pBuf = pContext->mt; in FX_Random_MT_Start() local 88 pBuf[0] = dwSeed; in FX_Random_MT_Start() 90 pBuf[i] = (1812433253UL * (pBuf[i - 1] ^ (pBuf[i - 1] >> 30)) + i); in FX_Random_MT_Start() 98 uint32_t* pBuf = pMTC->mt; in FX_Random_MT_Generate() local 104 v = (pBuf[kk] & MT_Upper_Mask) | (pBuf[kk + 1] & MT_Lower_Mask); in FX_Random_MT_Generate() 105 pBuf[kk] = pBuf[kk + MT_M] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() 108 v = (pBuf[kk] & MT_Upper_Mask) | (pBuf[kk + 1] & MT_Lower_Mask); in FX_Random_MT_Generate() 109 pBuf[kk] = pBuf[kk + (MT_M - MT_N)] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() 111 v = (pBuf[MT_N - 1] & MT_Upper_Mask) | (pBuf[0] & MT_Lower_Mask); in FX_Random_MT_Generate() 112 pBuf[MT_N - 1] = pBuf[MT_M - 1] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate() [all …]
|
D | cfx_binarybuf.cpp | 75 void CFX_BinaryBuf::AppendBlock(const void* pBuf, size_t size) { in AppendBlock() argument 80 if (pBuf) { in AppendBlock() 81 memcpy(m_pBuffer.get() + m_DataSize, pBuf, size); in AppendBlock()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_devicecs.cpp | 48 bool CPDF_DeviceCS::GetRGB(const float* pBuf, in GetRGB() argument 54 *R = NormalizeChannel(*pBuf); in GetRGB() 59 *R = NormalizeChannel(pBuf[0]); in GetRGB() 60 *G = NormalizeChannel(pBuf[1]); in GetRGB() 61 *B = NormalizeChannel(pBuf[2]); in GetRGB() 65 float k = pBuf[3]; in GetRGB() 66 *R = 1.0f - std::min(1.0f, pBuf[0] + k); in GetRGB() 67 *G = 1.0f - std::min(1.0f, pBuf[1] + k); in GetRGB() 68 *B = 1.0f - std::min(1.0f, pBuf[2] + k); in GetRGB() 71 NormalizeChannel(pBuf[0]), NormalizeChannel(pBuf[1]), in GetRGB() [all …]
|
D | cpdf_colorspace.cpp | 116 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 145 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 178 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 211 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 251 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 275 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 302 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override; 696 bool CPDF_CalGray::GetRGB(const float* pBuf, in GetRGB() argument 700 *R = *pBuf; in GetRGB() 701 *G = *pBuf; in GetRGB() [all …]
|
D | cpdf_image.cpp | 208 pdfium::span<char> pBuf = ct.GetBuffer(6); in SetImage() local 209 pBuf[0] = static_cast<char>(reset_r); in SetImage() 210 pBuf[1] = static_cast<char>(reset_g); in SetImage() 211 pBuf[2] = static_cast<char>(reset_b); in SetImage() 212 pBuf[3] = static_cast<char>(set_r); in SetImage() 213 pBuf[4] = static_cast<char>(set_g); in SetImage() 214 pBuf[5] = static_cast<char>(set_b); in SetImage()
|
D | cpdf_devicecs.h | 23 bool GetRGB(const float* pBuf, float* R, float* G, float* B) const override;
|
/external/oss-fuzz/projects/openh264/ |
D | decoder_fuzzer.cpp | 34 std::unique_ptr<uint8_t[]> pBuf(new uint8_t[size + 4]); in LLVMFuzzerTestOneInput() local 38 memcpy(pBuf.get(), data, size); in LLVMFuzzerTestOneInput() 39 memcpy(pBuf.get() + size, &uiStartCode[0], 4); in LLVMFuzzerTestOneInput() 60 …if ((pBuf[iBufPos + i] == 0 && pBuf[iBufPos + i + 1] == 0 && pBuf[iBufPos + i + 2] == 0 && pBuf[iB… in LLVMFuzzerTestOneInput() 61 …&& i > 0) || (pBuf[iBufPos + i] == 0 && pBuf[iBufPos + i + 1] == 0 && pBuf[iBufPos + i + 2] == 1 &… in LLVMFuzzerTestOneInput() 75 pDecoder->DecodeFrameNoDelay (pBuf.get() + iBufPos, iSliceSize, pData, &sDstBufInfo); in LLVMFuzzerTestOneInput()
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | rasterizer.cpp | 354 float* pBuf = &newTriBuffer[0]; in RasterizeTriPoint() local 355 *pBuf++ = lowerX; in RasterizeTriPoint() 356 *pBuf++ = lowerX; in RasterizeTriPoint() 357 *pBuf++ = upperX; in RasterizeTriPoint() 358 pBuf++; in RasterizeTriPoint() 359 *pBuf++ = lowerY; in RasterizeTriPoint() 360 *pBuf++ = upperY; in RasterizeTriPoint() 361 *pBuf++ = upperY; in RasterizeTriPoint() 362 pBuf++; in RasterizeTriPoint() 363 _mm_store_ps(pBuf, _mm_set1_ps(z)); in RasterizeTriPoint() [all …]
|
/external/OpenCL-CTS/test_conformance/SVM/ |
D | test_set_kernel_exec_info_svm_ptrs.cpp | 69 BufPtrs* pBuf = (BufPtrs*) clSVMAlloc(c, CL_MEM_READ_WRITE, sizeof(BufPtrs), 0); in test_svm_set_kernel_exec_info_svm_ptrs() local 80 bBuf = clCreateBuffer(c, CL_MEM_USE_HOST_PTR, sizeof(BufPtrs), pBuf, &error); in test_svm_set_kernel_exec_info_svm_ptrs() 94 pBuf->pA = pA; in test_svm_set_kernel_exec_info_svm_ptrs() 95 pBuf->pB = pB; in test_svm_set_kernel_exec_info_svm_ptrs() 96 pBuf->pC = pC; in test_svm_set_kernel_exec_info_svm_ptrs() 104 error = clEnqueueUnmapMemObject(queues[0], bBuf, pBuf, 0, NULL, NULL); in test_svm_set_kernel_exec_info_svm_ptrs() 108 error = clSetKernelArgSVMPointer(k, 0, pBuf); in test_svm_set_kernel_exec_info_svm_ptrs() 111 error = clSetKernelExecInfo(k, CL_KERNEL_EXEC_INFO_SVM_PTRS, sizeof(BufPtrs), pBuf); in test_svm_set_kernel_exec_info_svm_ptrs() 148 clSVMFree(c, pBuf); in test_svm_set_kernel_exec_info_svm_ptrs()
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_type3cache.cpp | 45 bool IsScanLine1bpp(uint8_t* pBuf, int width) { in IsScanLine1bpp() argument 48 if (pBuf[i]) in IsScanLine1bpp() 51 return (width % 8) && (pBuf[width / 8] & (0xff << (8 - width % 8))); in IsScanLine1bpp() 54 bool IsScanLine8bpp(uint8_t* pBuf, int width) { in IsScanLine8bpp() argument 56 if (pBuf[i] > 0x40) in IsScanLine8bpp() 69 uint8_t* pBuf = pBitmap->GetBuffer(); in DetectFirstLastScan() local 75 if (IsScanLine1bpp(pBuf + line * pitch, width)) in DetectFirstLastScan() 78 if (IsScanLine8bpp(pBuf + line * pitch, width)) in DetectFirstLastScan()
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | streamout_jit.cpp | 60 Value* pBuf = getSOBuffer(pSoCtx, buffer); in oob() local 64 Value* enabled = TRUNC(LOAD(pBuf, {0, SWR_STREAMOUT_BUFFER_enable}), IRB()->getInt1Ty()); in oob() 67 Value* bufferSize = LOAD(pBuf, {0, SWR_STREAMOUT_BUFFER_bufferSize}); in oob() 70 Value* streamOffset = LOAD(pBuf, {0, SWR_STREAMOUT_BUFFER_streamOffset}); in oob() 73 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 …]
|
D | JitManager.cpp | 775 std::unique_ptr<llvm::MemoryBuffer> pBuf = nullptr; in getObject() local 796 pBuf = llvm::MemoryBuffer::getNewUninitMemBuffer(size_t(header.GetObjectSize())); in getObject() 798 pBuf = llvm::WritableMemoryBuffer::getNewUninitMemBuffer(size_t(header.GetObjectSize())); in getObject() 800 if (!fread(const_cast<char*>(pBuf->getBufferStart()), header.GetObjectSize(), 1, fpObjIn)) in getObject() 802 pBuf = nullptr; in getObject() 806 if (header.GetObjectCRC() != ComputeCRC(0, pBuf->getBufferStart(), pBuf->getBufferSize())) in getObject() 809 pBuf = nullptr; in getObject() 823 return pBuf; in getObject()
|
/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/pdfium/testing/ |
D | fake_file_access.cpp | 28 unsigned char* pBuf, in GetBlockImpl() argument 31 position, pBuf, size); in GetBlockImpl() 100 unsigned char* pBuf, in GetBlock() argument 102 if (!pBuf || !size) in GetBlock() 108 return file_access_->m_GetBlock(file_access_->m_Param, position, pBuf, size); in GetBlock()
|
D | test_loader.cpp | 16 unsigned char* pBuf, in GetBlock() argument 24 memcpy(pBuf, &pLoader->m_Span[pos], size); in GetBlock()
|
D | test_loader.h | 16 unsigned char* pBuf,
|
/external/pdfium/testing/utils/ |
D | file_util.cpp | 55 unsigned char* pBuf, in GetBlockImpl() argument 57 memcpy(pBuf, file_contents_.get() + pos, size); in GetBlockImpl() 64 unsigned char* pBuf, in SGetBlock() argument 67 return file_access->GetBlockImpl(pos, pBuf, size); in SGetBlock()
|
D | file_util.h | 28 unsigned char* pBuf, 31 int GetBlockImpl(unsigned long pos, unsigned char* pBuf, unsigned long size);
|
/external/OpenCL-CTS/test_common/miniz/ |
D | miniz.h | 344 typedef size_t (*mz_file_read_func)(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n); 345 typedef size_t (*mz_file_write_func)(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n); 419 mz_bool mz_zip_reader_extract_to_mem_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf,… 420 …t_file_to_mem_no_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, m… 423 mz_bool mz_zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t b… 424 mz_bool mz_zip_reader_extract_file_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, … 467 mz_bool mz_zip_writer_add_mem(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, si… 468 mz_bool mz_zip_writer_add_mem_ex(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf,… 484 mz_bool mz_zip_writer_finalize_heap_archive(mz_zip_archive *pZip, void **pBuf, size_t *pSize); 494 …n_place(const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, c… [all …]
|
D | miniz.c | 942 …tinfl_decompressor decomp; void *pBuf = NULL, *pNew_buf; size_t src_buf_ofs = 0, out_buf_capacity … in tinfl_decompress_mem_to_heap() local 948 …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() 952 MZ_FREE(pBuf); *pOut_len = 0; return NULL; in tinfl_decompress_mem_to_heap() 958 pNew_buf = MZ_REALLOC(pBuf, new_out_buf_capacity); in tinfl_decompress_mem_to_heap() 961 MZ_FREE(pBuf); *pOut_len = 0; return NULL; in tinfl_decompress_mem_to_heap() 963 pBuf = pNew_buf; out_buf_capacity = new_out_buf_capacity; in tinfl_decompress_mem_to_heap() 965 return pBuf; in tinfl_decompress_mem_to_heap() 1965 mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_… in tdefl_compress_mem_to_output() argument 1967 …tdefl_compressor *pComp; mz_bool succeeded; if (((buf_len) && (!pBuf)) || (!pPut_buf_func)) return… in tdefl_compress_mem_to_output() 1970 …succeeded = succeeded && (tdefl_compress_buffer(pComp, pBuf, buf_len, TDEFL_FINISH) == TDEFL_STATU… in tdefl_compress_mem_to_output() [all …]
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_defaultappearance.cpp | 25 std::vector<uint32_t> pBuf(nParams); in FindTagParamFromStart() local 31 pBuf[buf_index++] = parser->GetCurPos(); in FindTagParamFromStart() 47 parser->SetCurPos(pBuf[buf_index]); in FindTagParamFromStart()
|
/external/fastrpc/src/ |
D | BufBound.c | 145 void BufBound_Init(BufBound *me, char *pBuf, int nLen) in BufBound_Init() argument 150 me->pcWrite = me->pcBuf = pBuf; in BufBound_Init() 151 me->pcEnd = pBuf + nLen; in BufBound_Init()
|
D | std.c | 411 void* std_memchrsend(const void* pBuf, const char* cpszChars, int nLen) in std_memchrsend() argument 414 return (void*)pBuf; in std_memchrsend() 417 return (char*)pBuf + nLen; in std_memchrsend() 420 return x_scanbytes((const char*)pBuf, cpszChars+1, nLen, in std_memchrsend()
|
/external/pdfium/core/fxcodec/tiff/ |
D | tiffmodule.cpp | 218 void TiffBGRA2RGBA(uint8_t* pBuf, int32_t pixel, int32_t spp) { in TiffBGRA2RGBA() argument 220 uint8_t tmp = pBuf[0]; in TiffBGRA2RGBA() 221 pBuf[0] = pBuf[2]; in TiffBGRA2RGBA() 222 pBuf[2] = tmp; in TiffBGRA2RGBA() 223 pBuf += spp; in TiffBGRA2RGBA()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_dataavail_embeddertest.cpp | 103 int GetBlockImpl(unsigned long pos, unsigned char* pBuf, unsigned long size) { in GetBlockImpl() argument 110 memcpy(pBuf, file_contents_.get() + pos, end - pos); in GetBlockImpl() 132 unsigned char* pBuf, in SGetBlock() argument 134 return static_cast<TestAsyncLoader*>(param)->GetBlockImpl(pos, pBuf, size); in SGetBlock()
|