Home
last modified time | relevance | path

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

1234

/external/skqp/tests/
DGrUploadPixelsTests.cpp27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() local
39 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
42 dstBuffer, in basic_texture_test()
50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
52 result = sContext->readPixels(dstInfo, dstBuffer, 0, 2, 10); in basic_texture_test()
56 dstBuffer, in basic_texture_test()
69 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
72 dstBuffer, in basic_texture_test()
80 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
82 result = sContext->readPixels(dstInfo, dstBuffer, 0, 5, 4); in basic_texture_test()
[all …]
DTransferPixelsTest.cpp39 GrColor* dstBuffer, in does_full_buffer_contain_correct_values() argument
45 GrColor* dstPtr = dstBuffer; in does_full_buffer_contain_correct_values()
80 SkAutoTMalloc<GrColor> dstBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test() local
131 memset(dstBuffer.get(), 0xCDCD, size); in basic_transfer_test()
133 dstBuffer.get(), rowBytes); in basic_transfer_test()
136 dstBuffer, in basic_transfer_test()
167 memset(dstBuffer.get(), 0xCDCD, size); in basic_transfer_test()
169 dstBuffer.get(), rowBytes); in basic_transfer_test()
172 dstBuffer, in basic_transfer_test()
DGrTestingBackendTextureUploadTest.cpp26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test() local
60 kHeight, ct, dstBuffer, rowBytes); in testing_only_texture_test()
69 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, dstBuffer, in testing_only_texture_test()
DRenderTargetContextTest.cpp63 SkAutoTMalloc<uint32_t> dstBuffer(kSize * kSize);
66 bool result = rtCtx->readPixels(dstInfo, dstBuffer.get(), kRowBytes, 0, 0);
/external/skia/tests/
DGrUploadPixelsTests.cpp27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() local
39 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
42 dstBuffer, in basic_texture_test()
50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
52 result = sContext->readPixels(dstInfo, dstBuffer, 0, 2, 10); in basic_texture_test()
56 dstBuffer, in basic_texture_test()
69 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
72 dstBuffer, in basic_texture_test()
80 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
82 result = sContext->readPixels(dstInfo, dstBuffer, 0, 5, 4); in basic_texture_test()
[all …]
DTransferPixelsTest.cpp39 GrColor* dstBuffer, in does_full_buffer_contain_correct_values() argument
45 GrColor* dstPtr = dstBuffer; in does_full_buffer_contain_correct_values()
80 SkAutoTMalloc<GrColor> dstBuffer(kBufferWidth*kBufferHeight); in basic_transfer_test() local
128 memset(dstBuffer.get(), 0xCDCD, size); in basic_transfer_test()
130 dstBuffer.get(), rowBytes); in basic_transfer_test()
133 dstBuffer, in basic_transfer_test()
164 memset(dstBuffer.get(), 0xCDCD, size); in basic_transfer_test()
166 dstBuffer.get(), rowBytes); in basic_transfer_test()
169 dstBuffer, in basic_transfer_test()
DGrTestingBackendTextureUploadTest.cpp26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test() local
60 kHeight, ct, dstBuffer, rowBytes); in testing_only_texture_test()
69 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(srcBuffer, dstBuffer, in testing_only_texture_test()
DRenderTargetContextTest.cpp63 SkAutoTMalloc<uint32_t> dstBuffer(kSize * kSize);
66 bool result = rtCtx->readPixels(dstInfo, dstBuffer.get(), kRowBytes, 0, 0);
/external/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()
335 (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX); in blit_nearest()
342 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); in blit_nearest()
345 _mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
349 _mesa_pack_float_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
[all …]
/external/swiftshader/src/Vulkan/
DVkCommandBuffer.cpp203 srcBuffer(pSrcBuffer), dstBuffer(pDstBuffer), region(pRegion) in BufferToBufferCopy()
209 Cast(srcBuffer)->copyTo(Cast(dstBuffer), region); in play()
214 VkBuffer dstBuffer; member
221 srcImage(pSrcImage), dstBuffer(pDstBuffer), region(pRegion) in ImageToBufferCopy()
227 Cast(srcImage)->copyTo(dstBuffer, region); in play()
232 VkBuffer dstBuffer; member
256 FillBuffer(VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data) : in FillBuffer()
257 dstBuffer(dstBuffer), dstOffset(dstOffset), size(size), data(data) in FillBuffer()
263 Cast(dstBuffer)->fill(dstOffset, size, data); in play()
267 VkBuffer dstBuffer; member
[all …]
DVkCommandBuffer.hpp71 … VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags);
90 …void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* …
97 void copyImageToBuffer(VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer,
99 …void updateBuffer(VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* p…
100 void fillBuffer(VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data);
DVkBuffer.cpp87 void Buffer::copyTo(Buffer* dstBuffer, const VkBufferCopy& pRegion) const in copyTo() argument
89 copyTo(dstBuffer->getOffsetPointer(pRegion.dstOffset), pRegion.size, pRegion.srcOffset); in copyTo()
/external/lz4/lib/
Dlz4frame.h215 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity,
259 void* dstBuffer, size_t dstCapacity,
287 void* dstBuffer, size_t dstCapacity,
300 void* dstBuffer, size_t dstCapacity,
313 void* dstBuffer, size_t dstCapacity,
403 void* dstBuffer, size_t* dstSizePtr,
521 void* dstBuffer, size_t dstCapacity,
532 void* dstBuffer, size_t* dstSizePtr,
Dlz4frame.c358 void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame_usingCDict() argument
365 BYTE* const dstStart = (BYTE*) dstBuffer; in LZ4F_compressFrame_usingCDict()
387 …{ size_t const headerSize = LZ4F_compressBegin_usingCDict(cctx, dstBuffer, dstCapacity, cdict, &pr… in LZ4F_compressFrame_usingCDict()
410 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame() argument
438 result = LZ4F_compressFrame_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressFrame()
582 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin_usingCDict() argument
587 BYTE* const dstStart = (BYTE*)dstBuffer; in LZ4F_compressBegin_usingCDict()
692 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin() argument
695 return LZ4F_compressBegin_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressBegin()
799 void* dstBuffer, size_t dstCapacity, in LZ4F_compressUpdate() argument
[all …]
/external/lz4/programs/
Dlz4io.c415 void* dstBuffer; member
504 ress.dstBuffer = malloc(ress.dstBufferSize); in LZ4IO_createCResources()
505 if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "Allocation error : not enough memory"); in LZ4IO_createCResources()
515 free(ress.dstBuffer); in LZ4IO_freeCResources()
536 void* const dstBuffer = ress.dstBuffer; in LZ4IO_compressFilename_extRess() local
574 …size_t cSize = LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, r… in LZ4IO_compressFilename_extRess()
581 { size_t const sizeCheck = fwrite(dstBuffer, 1, cSize, dstFile); in LZ4IO_compressFilename_extRess()
590 …size_t headerSize = LZ4F_compressBegin_usingCDict(ctx, dstBuffer, dstBufferSize, ress.cdict, &pref… in LZ4IO_compressFilename_extRess()
592 { size_t const sizeCheck = fwrite(dstBuffer, 1, headerSize, dstFile); in LZ4IO_compressFilename_extRess()
601 outSize = LZ4F_compressUpdate(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, NULL); in LZ4IO_compressFilename_extRess()
[all …]
/external/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()
Ddng_opcodes.cpp294 dng_pixel_buffer &dstBuffer) in ProcessArea() argument
300 dstBuffer, in ProcessArea()
301 dstBuffer.Area (), in ProcessArea()
/external/skqp/src/gpu/vk/
DGrVkCommandBuffer.cpp686 GrVkTransferBuffer* dstBuffer, in copyImageToBuffer() argument
692 this->addResource(dstBuffer->resource()); in copyImageToBuffer()
696 dstBuffer->buffer(), in copyImageToBuffer()
722 GrVkBuffer* dstBuffer, in copyBuffer() argument
732 SkASSERT(region.dstOffset < dstBuffer->size()); in copyBuffer()
734 SkASSERT(region.dstOffset + region.size <= dstBuffer->size()); in copyBuffer()
738 this->addResource(dstBuffer->resource()); in copyBuffer()
741 dstBuffer->buffer(), in copyBuffer()
747 GrVkBuffer* dstBuffer, in updateBuffer() argument
757 this->addResource(dstBuffer->resource()); in updateBuffer()
[all …]
/external/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp696 GrVkTransferBuffer* dstBuffer, in copyImageToBuffer() argument
702 this->addResource(dstBuffer->resource()); in copyImageToBuffer()
706 dstBuffer->buffer(), in copyImageToBuffer()
732 GrVkBuffer* dstBuffer, in copyBuffer() argument
742 SkASSERT(region.dstOffset < dstBuffer->size()); in copyBuffer()
744 SkASSERT(region.dstOffset + region.size <= dstBuffer->size()); in copyBuffer()
748 this->addResource(dstBuffer->resource()); in copyBuffer()
751 dstBuffer->buffer(), in copyBuffer()
757 GrVkBuffer* dstBuffer, in updateBuffer() argument
767 this->addResource(dstBuffer->resource()); in updateBuffer()
[all …]
/external/skqp/src/gpu/
DGrSurfaceContext.cpp39 bool GrSurfaceContext::readPixels(const SkImageInfo& dstInfo, void* dstBuffer, in readPixels() argument
56 colorType, dstInfo.colorSpace(), dstBuffer, in readPixels()
/external/skia/src/gpu/
DGrSurfaceContext.cpp50 bool GrSurfaceContext::readPixels(const SkImageInfo& dstInfo, void* dstBuffer, in readPixels() argument
73 colorType, dstInfo.colorSpace(), dstBuffer, in readPixels()

1234