Home
last modified time | relevance | path

Searched refs:dstBuffer (Results 1 – 25 of 150) sorted by relevance

123456

/third_party/flutter/skia/tests/
DGrUploadPixelsTests.cpp27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() local
41 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test()
44 dstBuffer, in basic_texture_test()
52 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
54 result = sContext->readPixels(dstInfo, dstBuffer, 0, {2, 10}); in basic_texture_test()
58 dstBuffer, in basic_texture_test()
73 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test()
76 dstBuffer, in basic_texture_test()
84 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
86 result = sContext->readPixels(dstInfo, dstBuffer, 0, {5, 4}); in basic_texture_test()
[all …]
DRenderTargetContextTest.cpp59 SkAutoTMalloc<uint32_t> dstBuffer(kSize * kSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
62 bool result = rtCtx->readPixels(dstInfo, dstBuffer.get(), kRowBytes, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/mesa3d/src/mesa/swrast/
Ds_blit.c45 const GLvoid *srcBuffer, GLvoid *dstBuffer, \
49 PIXELTYPE *dst = (PIXELTYPE *) dstBuffer; \
145 GLvoid *srcBuffer, *dstBuffer; in blit_nearest() local
149 const GLvoid *srcBuffer, GLvoid *dstBuffer, in blit_nearest()
194 dstBuffer = malloc(MAX_PIXEL_BYTES * dstWidth); in blit_nearest()
195 if (!srcBuffer || !dstBuffer) in blit_nearest()
337 resampleRow(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX); in blit_nearest()
344 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); in blit_nearest()
347 _mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
351 _mesa_pack_float_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
[all …]
/third_party/lz4/tests/
DcheckFrame.c94 void* dstBuffer; member
104 ress->dstBuffer = malloc(ress->dstBufferSize); in createCResources()
106 if (!ress->srcBuffer || !ress->dstBuffer) { in createCResources()
108 free(ress->dstBuffer); in createCResources()
114 free(ress->dstBuffer); in createCResources()
123 free(ress.dstBuffer); in freeCResources()
163 …nextToLoad = LZ4F_decompress(ress.ctx, ress.dstBuffer, &decodedBytes, (char*)(ress.srcBuffer)+pos,… in frameCheck()
179 …nextToLoad = LZ4F_decompress(ress.ctx, ress.dstBuffer, &decodedBytes, (char*)(ress.srcBuffer)+pos,… in frameCheck()
/third_party/ffmpeg/libswscale/tests/
Dcolorspace.c41 uint8_t *dstBuffer = av_malloc(SIZE); in main() local
45 if (!srcBuffer || !dstBuffer) in main()
111 memset(dstBuffer, dstByte, SIZE); in main()
115 uint8_t *dst = dstBuffer + dstOffset; in main()
141 if (dstBuffer[i] != dstByte) { in main()
150 if (dstBuffer[i] != dstByte) { in main()
/third_party/lz4/lib/
Dlz4frame.h224 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity,
279 void* dstBuffer, size_t dstCapacity,
311 void* dstBuffer, size_t dstCapacity,
325 void* dstBuffer, size_t dstCapacity,
339 void* dstBuffer, size_t dstCapacity,
466 void* dstBuffer, size_t* dstSizePtr,
603 void* dstBuffer, size_t dstCapacity,
614 void* dstBuffer, size_t* dstSizePtr,
Dlz4frame.c374 void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame_usingCDict() argument
381 BYTE* const dstStart = (BYTE*) dstBuffer; in LZ4F_compressFrame_usingCDict()
403 …{ size_t const headerSize = LZ4F_compressBegin_usingCDict(cctx, dstBuffer, dstCapacity, cdict, &pr… in LZ4F_compressFrame_usingCDict()
429 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame() argument
457 result = LZ4F_compressFrame_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressFrame()
599 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin_usingCDict() argument
604 BYTE* const dstStart = (BYTE*)dstBuffer; in LZ4F_compressBegin_usingCDict()
711 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin() argument
714 return LZ4F_compressBegin_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressBegin()
826 void* dstBuffer, size_t dstCapacity, in LZ4F_compressUpdate() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkCommandBuffer.cpp656 CmdCopyBuffer(const vk::Buffer *srcBuffer, vk::Buffer *dstBuffer, const VkBufferCopy2KHR &region) in CmdCopyBuffer() argument
658 , dstBuffer(dstBuffer) in CmdCopyBuffer()
665 srcBuffer->copyTo(dstBuffer, region); in execute()
672 vk::Buffer *const dstBuffer; member in __anon8991f80c0111::CmdCopyBuffer
679 …CmdCopyImageToBuffer(vk::Image *srcImage, vk::Buffer *dstBuffer, const VkBufferImageCopy2KHR &regi… in CmdCopyImageToBuffer() argument
681 , dstBuffer(dstBuffer) in CmdCopyImageToBuffer()
688 srcImage->copyTo(dstBuffer, region); in execute()
695 vk::Buffer *const dstBuffer; member in __anon8991f80c0111::CmdCopyImageToBuffer
725 CmdFillBuffer(vk::Buffer *dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data) in CmdFillBuffer() argument
726 : dstBuffer(dstBuffer) in CmdFillBuffer()
[all …]
DVkStructConversion.hpp25 …CopyBufferInfo(VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy *p… in CopyBufferInfo()
30 dstBuffer, in CopyBufferInfo()
161 …CopyImageToBufferInfo(VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t… in CopyImageToBufferInfo()
167 dstBuffer, in CopyImageToBufferInfo()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_mosaic_info.cpp1004 dng_pixel_buffer &dstBuffer);
1030 dng_pixel_buffer &dstBuffer) in Interpolate() argument
1041 int32 dstCol = dstBuffer.fArea.l; in Interpolate()
1047 for (int32 dstRow = dstBuffer.fArea.t; in Interpolate()
1048 dstRow < dstBuffer.fArea.b; in Interpolate()
1057 dstPlane < dstBuffer.fPlanes; in Interpolate()
1065 void *dPtr = dstBuffer.DirtyPixel (dstRow, in Interpolate()
1069 if (dstBuffer.fPixelType == ttShort) in Interpolate()
1074 dstBuffer.fArea.W (), in Interpolate()
1089 dstBuffer.fArea.W (), in Interpolate()
[all …]
Ddng_filter_task.cpp118 dng_pixel_buffer dstBuffer(area, fDstPlane, fDstPlanes, fDstPixelType, in Process() local
133 dstBuffer); in Process()
137 fDstImage.Put (dstBuffer); in Process()
Ddng_render.cpp758 dng_pixel_buffer &dstBuffer);
991 dng_pixel_buffer &dstBuffer) in ProcessArea() argument
995 dng_rect dstArea = dstBuffer.fArea; in ProcessArea()
1143 real32 *dPtrG = dstBuffer.DirtyPixel_real32 (dstRow, in ProcessArea()
1164 real32 *dPtrR = dstBuffer.DirtyPixel_real32 (dstRow, in ProcessArea()
1168 real32 *dPtrG = dPtrR + dstBuffer.fPlaneStep; in ProcessArea()
1169 real32 *dPtrB = dPtrG + dstBuffer.fPlaneStep; in ProcessArea()
Ddng_utils.cpp568 dng_dirty_tile_buffer dstBuffer (fDstImage, tile); in Process() local
578 int32 dStep0 = dstBuffer.fRowStep; in Process()
579 int32 dStep1 = dstBuffer.fColStep; in Process()
580 int32 dStep2 = dstBuffer.fPlaneStep; in Process()
586 void *dPtr = dstBuffer.DirtyPixel (tile.t, in Process()
593 dstBuffer.fPixelSize, in Process()
Ddng_resample.cpp525 dng_pixel_buffer &dstBuffer);
697 dng_pixel_buffer &dstBuffer) in ProcessArea() argument
701 dng_rect dstArea = dstBuffer.fArea; in ProcessArea()
737 for (uint32 plane = 0; plane < dstBuffer.fPlanes; plane++) in ProcessArea()
751 real32 *dPtr = dstBuffer.DirtyPixel_real32 (dstRow, in ProcessArea()
791 for (uint32 plane = 0; plane < dstBuffer.fPlanes; plane++) in ProcessArea()
806 uint16 *dPtr = dstBuffer.DirtyPixel_uint16 (dstRow, in ProcessArea()
/third_party/mesa3d/src/vulkan/util/
Dvk_cmd_copy.c31 VkBuffer dstBuffer, in vk_common_CmdCopyBuffer() argument
54 .dstBuffer = dstBuffer, in vk_common_CmdCopyBuffer()
151 VkBuffer dstBuffer, in vk_common_CmdCopyImageToBuffer() argument
178 .dstBuffer = dstBuffer, in vk_common_CmdCopyImageToBuffer()
/third_party/flutter/skia/src/gpu/ops/
DGrTransferFromOp.h26 sk_sp<GrGpuBuffer> dstBuffer,
51 sk_sp<GrGpuBuffer> dstBuffer, in GrTransferFromOp() argument
54 , fDstBuffer(std::move(dstBuffer)) in GrTransferFromOp()
DGrTransferFromOp.cpp19 sk_sp<GrGpuBuffer> dstBuffer, in Make() argument
23 srcRect, surfaceColorType, dstColorType, std::move(dstBuffer), dstOffset); in Make()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Dmtl_default_shaders_src_autogen.inc3013 device uchar *dstBuffer)
3020dstBuffer); } break; case FormatID::R8_SNORM: { auto data = readR8_SNORM(bufferOffset, srcBuffer);…
3030 device uchar *dstBuffer [[buffer(2)]])
3033 convertToFloatVertexFormat(index, options, srcBuffer, dstBuffer);
3040 device uchar *dstBuffer [[buffer(2)]])
3042 convertToFloatVertexFormat(index, options, srcBuffer, dstBuffer);
3049 device uchar *dstBuffer)
3061 dstBuffer[dstOffset + byte] = srcBuffer[srcOffset + byte];
3070 dstBuffer[dstOffset + byte] = 0;
3079 dstBuffer[dstOffset + byte] = options.srcDefaultAlphaData[byte];
[all …]
/third_party/lz4/programs/
Dlz4io.c537 void* dstBuffer; member
624 ress.dstBuffer = malloc(ress.dstBufferSize); in LZ4IO_createCResources()
625 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "Allocation error : not enough memory"); in LZ4IO_createCResources()
635 free(ress.dstBuffer); in LZ4IO_freeCResources()
658 void* const dstBuffer = ress.dstBuffer; in LZ4IO_compressFilename_extRess() local
695 …size_t const cSize = LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readS… in LZ4IO_compressFilename_extRess()
703 if (fwrite(dstBuffer, 1, cSize, dstFile) != cSize) { in LZ4IO_compressFilename_extRess()
712 …size_t const headerSize = LZ4F_compressBegin_usingCDict(ctx, dstBuffer, dstBufferSize, ress.cdict,… in LZ4IO_compressFilename_extRess()
714 if (fwrite(dstBuffer, 1, headerSize, dstFile) != headerSize) in LZ4IO_compressFilename_extRess()
720 …size_t const outSize = LZ4F_compressUpdate(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, NUL… in LZ4IO_compressFilename_extRess()
[all …]
/third_party/skia/src/gpu/
DGrTransferFromRenderTask.h19 sk_sp<GrGpuBuffer> dstBuffer, in GrTransferFromRenderTask() argument
26 , fDstBuffer(std::move(dstBuffer)) in GrTransferFromRenderTask()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DBufferZeroInitTests.cpp530 wgpu::Buffer dstBuffer = in TEST_P() local
539 encoder.CopyBufferToBuffer(srcBuffer, 0, dstBuffer, 0, kBufferSize); in TEST_P()
556 encoder.CopyBufferToBuffer(srcBuffer, kSrcOffset, dstBuffer, 0, kCopySize); in TEST_P()
572 encoder.CopyBufferToBuffer(srcBuffer, kSrcOffset, dstBuffer, 0, kCopySize); in TEST_P()
588 encoder.CopyBufferToBuffer(srcBuffer, kSrcOffset, dstBuffer, 0, kCopySize); in TEST_P()
615 wgpu::Buffer dstBuffer = device.CreateBuffer(&bufferDescriptor); in TEST_P() local
617 encoder.CopyBufferToBuffer(srcBuffer, 0, dstBuffer, 0, kBufferSize); in TEST_P()
624 dstBuffer, 0, kBufferSize / sizeof(uint32_t))); in TEST_P()
633 wgpu::Buffer dstBuffer = device.CreateBuffer(&bufferDescriptor); in TEST_P() local
635 encoder.CopyBufferToBuffer(srcBuffer, 0, dstBuffer, kDstOffset, kCopySize); in TEST_P()
[all …]
/third_party/flutter/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp704 GrVkTransferBuffer* dstBuffer, in copyImageToBuffer() argument
711 this->addResource(dstBuffer->resource()); in copyImageToBuffer()
715 dstBuffer->buffer(), in copyImageToBuffer()
742 GrVkBuffer* dstBuffer, in copyBuffer() argument
753 SkASSERT(region.dstOffset < dstBuffer->size()); in copyBuffer()
755 SkASSERT(region.dstOffset + region.size <= dstBuffer->size()); in copyBuffer()
759 this->addResource(dstBuffer->resource()); in copyBuffer()
762 dstBuffer->buffer(), in copyBuffer()
768 GrVkBuffer* dstBuffer, in updateBuffer() argument
779 this->addResource(dstBuffer->resource()); in updateBuffer()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DDeviceD3D12.cpp295 Buffer* dstBuffer = ToBackend(destination); in ClearBufferToZero() local
299 dstBuffer->TrackUsageAndTransitionNow(commandContext, wgpu::BufferUsage::CopyDst); in ClearBufferToZero()
304 dstBuffer->GetD3D12Resource(), offset, mZeroBuffer->GetD3D12Resource(), 0, in ClearBufferToZero()
466 Buffer* dstBuffer = ToBackend(destination); in CopyFromStagingToBuffer() local
469 DAWN_TRY_ASSIGN(cleared, dstBuffer->EnsureDataInitializedAsDestination( in CopyFromStagingToBuffer()
486 Buffer* dstBuffer = ToBackend(destination); in CopyFromStagingToBufferImpl() local
488 dstBuffer->TrackUsageAndTransitionNow(commandContext, wgpu::BufferUsage::CopyDst); in CopyFromStagingToBufferImpl()
491 dstBuffer->GetD3D12Resource(), destinationOffset, srcBuffer->GetResource(), in CopyFromStagingToBufferImpl()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_render_utils.h122 BufferRef dstBuffer; member
134 const BufferRef &dstBuffer; member
145 BufferRef dstBuffer; member
184 BufferRef dstBuffer; member
337 const BufferRef &dstBuffer,
392 const BufferRef &dstBuffer,
405 const BufferRef &dstBuffer,
639 const BufferRef &dstBuffer,
/third_party/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp756 sk_sp<GrGpuBuffer> dstBuffer, in copyImageToBuffer() argument
762 GrVkBuffer* vkBuffer = static_cast<GrVkBuffer*>(dstBuffer.get()); in copyImageToBuffer()
770 this->addGrBuffer(std::move(dstBuffer)); in copyImageToBuffer()
794 sk_sp<GrGpuBuffer> dstBuffer, in copyBuffer() argument
805 SkASSERT(region.dstOffset < dstBuffer->size()); in copyBuffer()
807 SkASSERT(region.dstOffset + region.size <= dstBuffer->size()); in copyBuffer()
812 const GrVkBuffer* dstVk = static_cast<GrVkBuffer*>(dstBuffer.get()); in copyBuffer()
820 this->addGrBuffer(std::move(dstBuffer)); in copyBuffer()
824 sk_sp<GrVkBuffer> dstBuffer, in updateBuffer() argument
838 fCmdBuffer, dstBuffer->vkBuffer(), dstOffset, dataSize, (const uint32_t*)data)); in updateBuffer()
[all …]

123456