/external/skqp/tests/ |
D | GrUploadPixelsTests.cpp | 26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test() local 29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test() 32 kTopLeft_GrSurfaceOrigin, srcBuffer, 0); in basic_texture_test() 41 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 47 result = sContext->writePixels(dstInfo, srcBuffer, 0, 2, 10); in basic_texture_test() 55 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 62 kBottomLeft_GrSurfaceOrigin, srcBuffer, 0); in basic_texture_test() 71 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 77 result = sContext->writePixels(dstInfo, srcBuffer, 0, 5, 4); in basic_texture_test() 85 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test()
|
D | GrTestingBackendTextureUploadTest.cpp | 21 SkAutoTMalloc<GrColor> srcBuffer; in testing_only_texture_test() local 23 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 24 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in testing_only_texture_test() 38 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(srcBuffer, in testing_only_texture_test() 65 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test() 69 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, dstBuffer, in testing_only_texture_test()
|
D | TransferPixelsTest.cpp | 38 bool does_full_buffer_contain_correct_values(GrColor* srcBuffer, in does_full_buffer_contain_correct_values() argument 44 GrColor* srcPtr = srcBuffer; in does_full_buffer_contain_correct_values() 79 SkAutoTMalloc<GrColor> srcBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test() local 82 fill_transfer_data(0, 0, kTextureWidth, kTextureHeight, kBufferWidth, srcBuffer.get()); in basic_transfer_test() 96 memcpy(data, srcBuffer.get(), size); in basic_transfer_test() 135 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_values(srcBuffer, in basic_transfer_test() 157 fill_transfer_data(kLeft, kTop, kWidth, kHeight, kBufferWidth, srcBuffer.get()); in basic_transfer_test() 159 memcpy(data, srcBuffer.get(), size); in basic_transfer_test() 171 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_values(srcBuffer, in basic_transfer_test()
|
/external/skia/tests/ |
D | GrUploadPixelsTests.cpp | 26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test() local 29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test() 32 kTopLeft_GrSurfaceOrigin, srcBuffer, 0); in basic_texture_test() 41 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 47 result = sContext->writePixels(dstInfo, srcBuffer, 0, 2, 10); in basic_texture_test() 55 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 62 kBottomLeft_GrSurfaceOrigin, srcBuffer, 0); in basic_texture_test() 71 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test() 77 result = sContext->writePixels(dstInfo, srcBuffer, 0, 5, 4); in basic_texture_test() 85 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, in basic_texture_test()
|
D | GrTestingBackendTextureUploadTest.cpp | 21 SkAutoTMalloc<GrColor> srcBuffer; in testing_only_texture_test() local 23 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 24 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in testing_only_texture_test() 38 GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(srcBuffer, in testing_only_texture_test() 65 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test() 69 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, dstBuffer, in testing_only_texture_test()
|
D | TransferPixelsTest.cpp | 38 bool does_full_buffer_contain_correct_values(GrColor* srcBuffer, in does_full_buffer_contain_correct_values() argument 44 GrColor* srcPtr = srcBuffer; in does_full_buffer_contain_correct_values() 79 SkAutoTMalloc<GrColor> srcBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test() local 82 fill_transfer_data(0, 0, kTextureWidth, kTextureHeight, kBufferWidth, srcBuffer.get()); in basic_transfer_test() 93 memcpy(data, srcBuffer.get(), size); in basic_transfer_test() 132 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_values(srcBuffer, in basic_transfer_test() 154 fill_transfer_data(kLeft, kTop, kWidth, kHeight, kBufferWidth, srcBuffer.get()); in basic_transfer_test() 156 memcpy(data, srcBuffer.get(), size); in basic_transfer_test() 168 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_values(srcBuffer, in basic_transfer_test()
|
/external/lz4/programs/ |
D | bench.c | 163 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument 198 { const char* srcPtr = (const char*)srcBuffer; in BMK_benchMem() 224 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem() 334 if (((const BYTE*)srcBuffer)[u] != ((const BYTE*)resultBuffer)[u]) { in BMK_benchMem() 398 static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, in BMK_benchCLevel() argument 416 BMK_benchMem(srcBuffer, benchedSize, in BMK_benchCLevel() 461 void* srcBuffer; in BMK_benchFileTable() local 480 srcBuffer = malloc(benchedSize + !benchedSize); /* avoid alloc of zero */ in BMK_benchFileTable() 481 if (!srcBuffer) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable() 484 BMK_loadFiles(srcBuffer, benchedSize, fileSizes, fileNamesTable, nbFiles); in BMK_benchFileTable() [all …]
|
D | lz4io.c | 413 void* srcBuffer; member 501 ress.srcBuffer = malloc(blockSize); in LZ4IO_createCResources() 505 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "Allocation error : not enough memory"); in LZ4IO_createCResources() 514 free(ress.srcBuffer); in LZ4IO_freeCResources() 535 void* const srcBuffer = ress.srcBuffer; in LZ4IO_compressFilename_extRess() local 567 readSize = fread(srcBuffer, (size_t)1, blockSize, srcFile); in LZ4IO_compressFilename_extRess() 574 …size_t cSize = LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, r… in LZ4IO_compressFilename_extRess() 601 outSize = LZ4F_compressUpdate(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, NULL); in LZ4IO_compressFilename_extRess() 611 readSize = fread(srcBuffer, (size_t)1, (size_t)blockSize, srcFile); in LZ4IO_compressFilename_extRess() 852 void* srcBuffer; member [all …]
|
/external/mesa3d/src/gallium/state_trackers/wgl/ |
D | stw_ext_rendertexture.c | 111 GLenum texFormat, srcBuffer, target; in wglBindTexImageARB() local 146 srcBuffer = translate_ibuffer(iBuffer); in wglBindTexImageARB() 147 if (srcBuffer == GL_NONE) { in wglBindTexImageARB() 184 st_copy_framebuffer_to_texture(srcBuffer, fb->width, fb->height, in wglBindTexImageARB() 204 GLenum srcBuffer; in wglReleaseTexImageARB() local 214 srcBuffer = translate_ibuffer(iBuffer); in wglReleaseTexImageARB() 215 if (srcBuffer == GL_NONE) { in wglReleaseTexImageARB()
|
/external/drrickorang/LoopbackApp/app/src/main/cpp/ |
D | byte_buffer.c | 25 const char *srcBuffer, size_t frameCount, int channels) { in byteBuffer_write() argument 43 memcpy(byteBuffer + (tempRear * frameSize), srcBuffer, in byteBuffer_write() 48 memcpy(byteBuffer, (srcBuffer + (part1 * frameSize)), in byteBuffer_write()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blit.c | 45 const GLvoid *srcBuffer, GLvoid *dstBuffer, \ 48 const PIXELTYPE *src = (const PIXELTYPE *) srcBuffer;\ 145 GLvoid *srcBuffer, *dstBuffer; in blit_nearest() local 149 const GLvoid *srcBuffer, GLvoid *dstBuffer, in blit_nearest() 193 srcBuffer = malloc(MAX_PIXEL_BYTES * srcWidth); in blit_nearest() 195 if (!srcBuffer || !dstBuffer) in blit_nearest() 315 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth); in blit_nearest() 319 srcBuffer); in blit_nearest() 323 srcBuffer); in blit_nearest() 327 srcBuffer); in blit_nearest() [all …]
|
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/ |
D | Tensor.java | 112 ByteBuffer srcBuffer = (ByteBuffer) src; in setTo() local 115 if (srcBuffer.isDirect() && srcBuffer.order() == ByteOrder.nativeOrder()) { in setTo() 116 writeDirectBuffer(nativeHandle, srcBuffer); in setTo() 118 buffer().put(srcBuffer); in setTo()
|
/external/dng_sdk/source/ |
D | dng_mosaic_info.cpp | 1003 void Interpolate (dng_pixel_buffer &srcBuffer, 1029 void dng_bilinear_interpolator::Interpolate (dng_pixel_buffer &srcBuffer, in Interpolate() argument 1061 const void *sPtr = srcBuffer.ConstPixel (srcRow, in Interpolate() 1063 srcBuffer.fPlane); in Interpolate() 1129 dng_pixel_buffer &srcBuffer, 1215 dng_pixel_buffer &srcBuffer, in ProcessArea() argument 1219 dng_rect srcArea = srcBuffer.fArea; in ProcessArea() 1252 const uint16 *sPtr = srcBuffer.ConstPixel_uint16 (srcRow, in ProcessArea() 1297 ssPtr += srcBuffer.fRowStep; in ProcessArea() 1837 dng_pixel_buffer srcBuffer (dng_rect (srcTileSize), srcPlane, 1, in InterpolateGeneric() local [all …]
|
D | dng_filter_task.cpp | 112 dng_pixel_buffer srcBuffer(srcArea, fSrcPlane, fSrcPlanes, fSrcPixelType, in Process() local 124 fSrcImage.Get (srcBuffer, in Process() 132 srcBuffer, in Process()
|
D | dng_bad_pixels.cpp | 155 dng_pixel_buffer &srcBuffer, in ProcessArea() argument 161 dstBuffer.CopyArea (srcBuffer, in ProcessArea() 171 const uint16 *sPtr = srcBuffer.ConstPixel_uint16 (dstRow, dstArea.l, 0); in ProcessArea() 188 value = sPtr [-srcBuffer.fRowStep - 1]; in ProcessArea() 196 value = sPtr [-srcBuffer.fRowStep + 1]; in ProcessArea() 204 value = sPtr [srcBuffer.fRowStep - 1]; in ProcessArea() 212 value = sPtr [srcBuffer.fRowStep + 1]; in ProcessArea() 225 value = sPtr [-srcBuffer.fRowStep * 2]; in ProcessArea() 233 value = sPtr [srcBuffer.fRowStep * 2]; in ProcessArea() 1722 dng_pixel_buffer &srcBuffer, in ProcessArea() argument [all …]
|
D | dng_render.cpp | 757 dng_pixel_buffer &srcBuffer, 990 dng_pixel_buffer &srcBuffer, in ProcessArea() argument 994 dng_rect srcArea = srcBuffer.fArea; in ProcessArea() 1013 srcBuffer.ConstPixel (srcRow, in ProcessArea() 1032 const real32 *sPtrB = sPtrA + srcBuffer.fPlaneStep; in ProcessArea() 1033 const real32 *sPtrC = sPtrB + srcBuffer.fPlaneStep; in ProcessArea() 1053 const real32 *sPtrD = sPtrC + srcBuffer.fPlaneStep; in ProcessArea()
|
D | dng_utils.cpp | 567 dng_const_tile_buffer srcBuffer (fSrcImage, tile); in Process() local 574 int32 sStep0 = srcBuffer.fRowStep; in Process() 575 int32 sStep1 = srcBuffer.fColStep; in Process() 576 int32 sStep2 = srcBuffer.fPlaneStep; in Process() 582 const void *sPtr = srcBuffer.ConstPixel (tile.t, in Process() 592 srcBuffer.fPixelSize, in Process()
|
D | dng_resample.cpp | 524 dng_pixel_buffer &srcBuffer, 696 dng_pixel_buffer &srcBuffer, in ProcessArea() argument 700 dng_rect srcArea = srcBuffer.fArea; in ProcessArea() 740 const real32 *sPtr = srcBuffer.ConstPixel_real32 (srcRow, in ProcessArea() 747 srcBuffer.fRowStep, in ProcessArea() 794 const uint16 *sPtr = srcBuffer.ConstPixel_uint16 (srcRow, in ProcessArea() 801 srcBuffer.fRowStep, in ProcessArea()
|
/external/lz4/lib/ |
D | lz4frame.h | 216 const void* srcBuffer, size_t srcSize, 288 const void* srcBuffer, size_t srcSize, 371 const void* srcBuffer, size_t* srcSizePtr); 404 const void* srcBuffer, size_t* srcSizePtr, 533 const void* srcBuffer, size_t* srcSizePtr,
|
/external/skqp/src/codec/ |
D | SkBmpStandardCodec.cpp | 223 if (this->stream()->read(this->srcBuffer(), this->srcRowBytes()) != this->srcRowBytes()) { in decodeRows() 235 fSwizzler->swizzle(this->xformBuffer(), this->srcBuffer()); in decodeRows() 238 fSwizzler->swizzle(dstRow, this->srcBuffer()); in decodeRows() 311 if (stream->read(this->srcBuffer(), fAndMaskRowBytes) != fAndMaskRowBytes) { in decodeIcoMask() 336 uint64_t alphaBit = (this->srcBuffer()[quotient] >> shift) & 0x1; in decodeIcoMask()
|
/external/skia/src/codec/ |
D | SkBmpStandardCodec.cpp | 223 if (this->stream()->read(this->srcBuffer(), this->srcRowBytes()) != this->srcRowBytes()) { in decodeRows() 235 fSwizzler->swizzle(this->xformBuffer(), this->srcBuffer()); in decodeRows() 238 fSwizzler->swizzle(dstRow, this->srcBuffer()); in decodeRows() 311 if (stream->read(this->srcBuffer(), fAndMaskRowBytes) != fAndMaskRowBytes) { in decodeIcoMask() 336 uint64_t alphaBit = (this->srcBuffer()[quotient] >> shift) & 0x1; in decodeIcoMask()
|
/external/swiftshader/src/Vulkan/ |
D | VkCommandBuffer.cpp | 203 srcBuffer(pSrcBuffer), dstBuffer(pDstBuffer), region(pRegion) in BufferToBufferCopy() 209 Cast(srcBuffer)->copyTo(Cast(dstBuffer), region); in play() 213 VkBuffer srcBuffer; member 239 srcBuffer(pSrcBuffer), dstImage(pDstImage), region(pRegion) in BufferToImageCopy() 245 Cast(dstImage)->copyFrom(srcBuffer, region); in play() 249 VkBuffer srcBuffer; member 686 void CommandBuffer::copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const … in copyBuffer() argument 692 addCommand<BufferToBufferCopy>(srcBuffer, dstBuffer, pRegions[i]); in copyBuffer() 726 void CommandBuffer::copyBufferToImage(VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageL… in copyBufferToImage() argument 733 addCommand<BufferToImageCopy>(srcBuffer, dstImage, pRegions[i]); in copyBufferToImage()
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemCopyBufferToImageTests.cpp | 133 de::MovePtr<vk::BufferWithMemory> srcBuffer (makeBuffer(ctx, in iterate() local 177 **srcBuffer, // VkBuffer buffer in iterate() 189 vk.cmdFillBuffer(targetCmdBuffer, **srcBuffer, 0u, VK_WHOLE_SIZE, m_fillValue); in iterate() 201 **srcBuffer, // VkBuffer buffer in iterate() 255 …vk.cmdCopyBufferToImage(targetCmdBuffer, **srcBuffer, **colorImage, vk::VK_IMAGE_LAYOUT_TRANSFER_D… in iterate()
|
/external/mesa3d/src/mesa/main/ |
D | buffers.c | 833 gl_buffer_index srcBuffer; in read_buffer() local 842 srcBuffer = BUFFER_NONE; in read_buffer() 848 srcBuffer = BUFFER_NONE; in read_buffer() 850 srcBuffer = read_buffer_enum_to_index(ctx, buffer); in read_buffer() 855 if (srcBuffer == BUFFER_NONE) { in read_buffer() 863 if (((1 << srcBuffer) & supportedMask) == 0) { in read_buffer() 874 _mesa_readbuffer(ctx, fb, buffer, srcBuffer); in read_buffer()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_copytex.c | 48 st_copy_framebuffer_to_texture(GLenum srcBuffer, in st_copy_framebuffer_to_texture() argument 63 _mesa_ReadBuffer(srcBuffer); in st_copy_framebuffer_to_texture()
|