Home
last modified time | relevance | path

Searched refs:srcData (Results 1 – 25 of 61) sorted by relevance

123

/external/pdfium/core/fxcodec/jpx/
Djpx_decode_utils.cpp19 DecodeData* srcData = static_cast<DecodeData*>(p_user_data); in opj_read_from_memory() local
20 if (!srcData || !srcData->src_data || srcData->src_size == 0) in opj_read_from_memory()
24 if (srcData->offset >= srcData->src_size) in opj_read_from_memory()
27 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_read_from_memory()
29 memcpy(p_buffer, &srcData->src_data[srcData->offset], readlength); in opj_read_from_memory()
30 srcData->offset += readlength; in opj_read_from_memory()
35 DecodeData* srcData = static_cast<DecodeData*>(p_user_data); in opj_skip_from_memory() local
36 if (!srcData || !srcData->src_data || srcData->src_size == 0) in opj_skip_from_memory()
51 std::numeric_limits<OPJ_SIZE_T>::max() - srcData->offset) { in opj_skip_from_memory()
52 srcData->offset = srcData->src_size; in opj_skip_from_memory()
[all …]
/external/angle/src/tests/gl_tests/
DD3D11EmulatedIndexedBufferTest.cpp111 void emulateAndCompare(rx::SourceIndexData *srcData) in emulateAndCompare() argument
115 mContext, srcData, mTranslatedAttribute, 0, &emulatedBuffer); in emulateAndCompare()
137 rx::SourceIndexData srcData = {nullptr, mubyteIndices.data(), in TEST_P() local
140 emulateAndCompare(&srcData); in TEST_P()
147 rx::SourceIndexData srcData = {nullptr, mushortIndices.data(), in TEST_P() local
150 emulateAndCompare(&srcData); in TEST_P()
157 rx::SourceIndexData srcData = {nullptr, muintIndices.data(), in TEST_P() local
160 emulateAndCompare(&srcData); in TEST_P()
174 rx::SourceIndexData srcData = {nullptr, muintIndices.data(), in TEST_P() local
177 emulateAndCompare(&srcData); in TEST_P()
DBufferDataTest.cpp418 std::vector<uint8_t> srcData(numElements); in TEST_P() local
421 for (uint8_t i = 0; i < srcData.size(); i++) in TEST_P()
423 srcData[i] = 128; in TEST_P()
434 glBufferData(GL_ARRAY_BUFFER, srcData.size(), srcData.data(), GL_STATIC_DRAW); in TEST_P()
462 EXPECT_EQ(srcData[i], data[i]); in TEST_P()
493 std::vector<uint8_t> srcData(numElements); in TEST_P() local
496 for (uint8_t i = 0; i < srcData.size(); i++) in TEST_P()
498 srcData[i] = 128; in TEST_P()
509 glBufferData(GL_ARRAY_BUFFER, srcData.size(), srcData.data(), GL_STATIC_DRAW); in TEST_P()
538 memcpy(data, srcData.data(), srcData.size()); in TEST_P()
[all …]
DVertexAttributeTest.cpp2562 static std::vector<GLfloat> GetExpectedData(const std::vector<GLubyte> &srcData,
2627 const std::vector<GLubyte> &srcData, in GetExpectedData() argument
2633 const DestT *typedSrcPtr = reinterpret_cast<const DestT *>(srcData.data()); in GetExpectedData()
2634 size_t iterations = srcData.size() / TypeStride(attribType); in GetExpectedData()
2660 std::vector<GLubyte> srcData; in testSetUp() local
2665 srcData.push_back(i); in testSetUp()
2669 glBufferData(GL_ARRAY_BUFFER, srcData.size(), srcData.data(), GL_STATIC_DRAW); in testSetUp()
2704 mExpectedData[GL_BYTE] = GetExpectedData<GLbyte>(srcData, GL_BYTE, GL_FALSE); in testSetUp()
2705 mExpectedData[GL_UNSIGNED_BYTE] = GetExpectedData<GLubyte>(srcData, GL_UNSIGNED_BYTE, GL_FALSE); in testSetUp()
2706 mExpectedData[GL_SHORT] = GetExpectedData<GLshort>(srcData, GL_SHORT, GL_FALSE); in testSetUp()
[all …]
/external/OpenCL-CTS/test_conformance/compiler/
Dtest_preprocessor.cpp48 cl_int *srcData, *resultData; in test_preprocessor_define_udef() local
63 srcData = (cl_int*)malloc(sizeof(cl_int)*num_elements); in test_preprocessor_define_udef()
64 if (srcData == NULL) { in test_preprocessor_define_udef()
71 srcData[i] = (int)get_random_float(-1024, 1024,d); in test_preprocessor_define_udef()
76 free(srcData); in test_preprocessor_define_udef()
89 …error = clEnqueueWriteBuffer(queue, buffer[0], CL_TRUE, 0, num_elements*sizeof(cl_int), srcData, 0… in test_preprocessor_define_udef()
100 if (resultData[i] != srcData[i]*2) { in test_preprocessor_define_udef()
101 free(srcData); in test_preprocessor_define_udef()
110 if (resultData[i] != srcData[i]*4) { in test_preprocessor_define_udef()
111 free(srcData); in test_preprocessor_define_udef()
[all …]
/external/skia/include/gpu/
DGrDirectContext.h520 GrBackendTexture createBackendTexture(const SkPixmap srcData[],
531 GrBackendTexture createBackendTexture(const SkPixmap& srcData,
537 return this->createBackendTexture(&srcData, 1, textureOrigin, renderable, isProtected,
542 GrBackendTexture createBackendTexture(const SkPixmap srcData[],
548 return this->createBackendTexture(srcData,
556 GrBackendTexture createBackendTexture(const SkPixmap& srcData,
561 return this->createBackendTexture(&srcData,
619 const SkPixmap srcData[],
629 const SkPixmap& srcData,
634 &srcData,
[all …]
/external/angle/src/libANGLE/renderer/vulkan/shaders/src/
DConvertIndexIndirectLineLoop.comp46 uint srcData[];
68 // Read offset in bytes into the srcData array, divided by four.
91 return srcData[index];
93 // srcData points to 32bit words, get the word with our index value
94 uint srcBlock = srcData[index >> IDXSHIFT];
/external/skia/tests/
DTransferPixelsTest.cpp147 std::unique_ptr<char[]> srcData(new char[kTexDims.fHeight * srcRowBytes]); in basic_transfer_to_test() local
150 allowedSrc.fColorType, srcData.get()); in basic_transfer_to_test()
164 memcpy(data, srcData.get(), size); in basic_transfer_to_test()
195 ComparePixels(GrCPixmap(srcInfo, srcData.get(), srcRowBytes), in basic_transfer_to_test()
226 srcData.get()); in basic_transfer_to_test()
228 memcpy(data, srcData.get(), size); in basic_transfer_to_test()
247 ComparePixels(GrCPixmap(srcInfo, srcData.get(), srcRowBytes), in basic_transfer_to_test()
/external/skia/src/gpu/effects/generated/
DGrConfigConversionEffect.cpp92 uint32_t* srcData = data.get(); in TestForPreservingPMConversions() local
99 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize * y + x]); in TestForPreservingPMConversions()
121 bitmap.installPixels(pmII, srcData, 4 * kSize); in TestForPreservingPMConversions()
/external/skqp/src/pdf/
DSkPDFConvertType1FontStream.cpp152 const uint8_t* const srcData = srcHeader + *headerLen + kPFBSectionHeaderLength; in SkPDFConvertType1FontStream() local
153 const uint8_t* const srcTrailer = srcData + *headerLen; in SkPDFConvertType1FontStream()
162 memcpy(resultData, srcData, *dataLen); in SkPDFConvertType1FontStream()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageTranscodingSupportTests.cpp275 …virtual void transcode (std::vector<deUint8>& srcData, std::vector<deUint8>& dstData, de:…
286 std::vector<deUint8> srcData; in iterate() local
290 transcode(srcData, dstData, outputImage); in iterate()
292 DE_ASSERT(srcData.size() > 0 && srcData.size() == dstData.size()); in iterate()
294 if (!compareAndLog(&srcData[0], &dstData[0], srcData.size())) in iterate()
300 void GraphicsAttachmentsTestInstance::transcode (std::vector<deUint8>& srcData, std::vector<deUint8… in transcode() argument
324 …ceSize srcImageSizeInBytes = getUncompressedImageData(srcFormat, m_parameters.size, srcData); in transcode()
398 deMemcpy(alloc.getHostPtr(), &srcData[0], (size_t)srcImageSizeInBytes); in transcode()
542 …void transcode (std::vector<deUint8>& srcData, std::vector<deUint8>& dstData, de::MovePtr<…
550 void GraphicsTextureTestInstance::transcode (std::vector<deUint8>& srcData, std::vector<deUint8>& d… in transcode() argument
[all …]
/external/skqp/src/gpu/effects/
DGrConfigConversionEffect.h31 uint32_t* srcData = data.get(); in TestForPreservingPMConversions() local
40 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize * y + x]); in TestForPreservingPMConversions()
66 SkPixmap pixmap(ii, srcData, 4 * kSize); in TestForPreservingPMConversions()
DGrConfigConversionEffect.fp24 uint32_t* srcData = data.get();
33 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize*y + x]);
63 SkPixmap pixmap(ii, srcData, 4 * kSize);
/external/skia/src/core/
DSkCompressedDataUtils.cpp86 static bool decompress_etc1(SkISize dimensions, const uint8_t* srcData, SkBitmap* dst) { in decompress_etc1() argument
87 const ETC1Block* srcBlocks = reinterpret_cast<const ETC1Block*>(srcData); in decompress_etc1()
180 static bool decompress_bc1(SkISize dimensions, const uint8_t* srcData, in decompress_bc1() argument
182 const BC1Block* srcBlocks = reinterpret_cast<const BC1Block*>(srcData); in decompress_bc1()
/external/skia/src/gpu/
DGrDirectContext.cpp606 GrBackendTexture GrDirectContext::createBackendTexture(const SkPixmap srcData[], in createBackendTexture() argument
621 if (!srcData || numProvidedLevels <= 0) { in createBackendTexture()
625 SkColorType colorType = srcData[0].colorType(); in createBackendTexture()
633 GrBackendTexture beTex = this->createBackendTexture(srcData[0].width(), in createBackendTexture()
634 srcData[0].height(), in createBackendTexture()
643 srcData, in createBackendTexture()
694 const SkPixmap srcData[], in updateBackendTexture() argument
705 if (!srcData || numLevels <= 0) { in updateBackendTexture()
719 srcData, in updateBackendTexture()
/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/
Daudio_buffer.h168 T *srcData = src.getData(); in forEachFrame() local
172 ++i, srcData += src.getChannelCount(), dstData += dst.getChannelCount()) { in forEachFrame()
173 op(srcData, dstData); in forEachFrame()
/external/OpenCL-CTS/test_conformance/images/clCopyImage/
Dtest_copy_generic.cpp288 BufferOwningPtr<char> srcData; variable
314 if (srcBytes > srcData.getSize()) in test_copy_image_generic()
319 generate_random_image_data( srcImageInfo, srcData, d ); in test_copy_image_generic()
327 memcpy(srcHost,srcData,srcBytes); in test_copy_image_generic()
334 srcImage = create_image( context, queue, srcData, srcImageInfo, &error ); in test_copy_image_generic()
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.fp26 uint32_t* srcData = data.get();
33 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize*y + x]);
55 bitmap.installPixels(pmII, srcData, 4 * kSize);
/external/dng_sdk/source/
Ddng_lossless_jpeg.h56 void EncodeLosslessJPEG (const uint16 *srcData,
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DAlternateLocaleData.java115 AltData(CldrData srcData, String localeId) { in AltData() argument
116 super(srcData); in AltData()
/external/skia/src/ports/
DSkTypeface_mac_ct.cpp890 SkUniqueCFRef<CFDataRef> srcData = copy_table_from_font(fFontRef.get(), tag); in onGetTableData() local
891 if (!srcData) { in onGetTableData()
895 size_t srcSize = CFDataGetLength(srcData.get()); in onGetTableData()
903 memcpy(dstData, CFDataGetBytePtr(srcData.get()) + offset, length); in onGetTableData()
909 SkUniqueCFRef<CFDataRef> srcData = copy_table_from_font(fFontRef.get(), tag); in onCopyTableData() local
910 if (!srcData) { in onCopyTableData()
913 const UInt8* data = CFDataGetBytePtr(srcData.get()); in onCopyTableData()
914 CFIndex length = CFDataGetLength(srcData.get()); in onCopyTableData()
918 }, (void*)srcData.release()); in onCopyTableData()
/external/skqp/src/gpu/
DGrTextureProxy.cpp21 const void* srcData, size_t /*rowBytes*/, in GrTextureProxy() argument
27 SkASSERT(!srcData); // currently handled in Make() in GrTextureProxy()
/external/skia/src/pdf/
DSkPDFType1Font.cpp160 const uint8_t* const srcData = srcHeader + *headerLen + kPFBSectionHeaderLength; in convert_type1_font_stream() local
161 const uint8_t* const srcTrailer = srcData + *headerLen; in convert_type1_font_stream()
170 memcpy(resultData, srcData, *dataLen); in convert_type1_font_stream()
/external/mesa3d/src/mesa/main/
Dmipmap.h44 const GLubyte **srcData,
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrCopyTests.cpp588 MultiPlaneImageData srcData (config.src.format, config.src.size); in imageCopyTest() local
601 fillRandom(&rng, &srcData, config.dst.format, noNan); in imageCopyTest()
623 …etUniversalQueueFamilyIndex(), context.getDefaultAllocator(), *srcImage, srcData, vk::VK_ACCESS_TR… in imageCopyTest()
625 …vice, context.getUniversalQueueFamilyIndex(), *srcImage, srcImageMemory, srcData, vk::VK_ACCESS_TR… in imageCopyTest()
693 …const UVec2 srcPlaneExtent (getPlaneExtent(srcData.getDescription(), config.src.size, srcPlane… in imageCopyTest()
727 ((const deUint8*)srcData.getPlanePtr(srcPlaneNdx)) + srcPos, size); in imageCopyTest()
731 bool ignoreLsb6Bits = areLsb6BitsDontCare(srcData.getFormat(), dstData.getFormat()); in imageCopyTest()
732 bool ignoreLsb4Bits = areLsb4BitsDontCare(srcData.getFormat(), dstData.getFormat()); in imageCopyTest()

123