Home
last modified time | relevance | path

Searched refs:srcPtr (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dexposure.cpp35 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator() local
40 tempLuminance = (0.2126f * *(srcPtr + 4 * i) + in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
41 0.7152f * *(srcPtr + 4 * i + 1) + in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
42 0.0722f * *(srcPtr + 4 * i + 2)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
57 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator() local
62 tempLuminance = (0.2126f * *(srcPtr + 4 * i) + in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
63 0.7152f * *(srcPtr + 4 * i + 1) + in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
64 0.0722f * *(srcPtr + 4 * i + 2)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
Dbrightness.cpp36 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator() local
38 pixelTotals[0] += *(srcPtr + 4 * i); in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
39 pixelTotals[1] += *(srcPtr + 4 * i + 1); in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
40 pixelTotals[2] += *(srcPtr + 4 * i + 2); in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
Dcontrast.cpp36 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local
39 lumArray[i] = (0.2126f * *(srcPtr + 4 * i) + 0.7152f * in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
40 *(srcPtr + 4 * i + 1) + 0.0722f * *(srcPtr + 4 * i + 2)) / 255; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
Dsobeloperator.cpp72 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator() local
82 computeGradient(srcPtr, width, height, gxPtr, gyPtr); in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
/frameworks/base/core/jni/
Dandroid_util_CharsetUtils.cpp47 char *srcPtr = reinterpret_cast<char*>(src); in android_util_CharsetUtils_fromModifiedUtf8Bytes() local
51 char tmp = srcPtr[srcOff + srcLen]; in android_util_CharsetUtils_fromModifiedUtf8Bytes()
52 srcPtr[srcOff + srcLen] = '\0'; in android_util_CharsetUtils_fromModifiedUtf8Bytes()
53 jstring res = env->NewStringUTF(srcPtr + srcOff); in android_util_CharsetUtils_fromModifiedUtf8Bytes()
54 srcPtr[srcOff + srcLen] = tmp; in android_util_CharsetUtils_fromModifiedUtf8Bytes()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DCryptoPlugin.cpp36 Mode mode, const Pattern &/* pattern */, const void* srcPtr, in decrypt() argument
59 reinterpret_cast<const uint8_t*>(srcPtr) + offset, in decrypt()
67 status_t res = mSession->decrypt(keyId, iv, srcPtr, dstPtr, subSamples, in decrypt()
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp386 uint8_t* srcPtr = (uint8_t*)data + mWidth * mCropTop * 3 + mCropLeft * 3; in render() local
390 memcpy(dstPtr, srcPtr, mCropWidth * 3); in render()
391 srcPtr += mWidth * 3; in render()
395 uint8_t *srcPtr, *dstPtr; in render() local
398 srcPtr = (uint8_t*)data + mWidth * 4 * (y + mCropTop) + mCropLeft * 4; in render()
401 uint8_t a = *srcPtr++; in render()
403 *dstPtr++ = *srcPtr++; in render()
409 uint8_t* srcPtr = (uint8_t*)data + mWidth * mCropTop * 4 + mCropLeft * 4; in render() local
413 memcpy(dstPtr, srcPtr, mCropWidth * 4); in render()
414 srcPtr += mWidth * 4; in render()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp57 const void *srcPtr,
206 const void *srcPtr, in descramble() argument
224 (const void*)((const uint8_t*)srcPtr + srcOffset), totalLength); in descramble()
399 void *srcPtr = NULL, *dstPtr = NULL; in android_media_MediaDescrambler_native_descramble() local
402 env, srcBuf, srcOffset, srcLimit, totalLength, &srcPtr, &srcArray); in android_media_MediaDescrambler_native_descramble()
406 dstPtr = srcPtr; in android_media_MediaDescrambler_native_descramble()
431 srcPtr, srcOffset, dstPtr, dstOffset, in android_media_MediaDescrambler_native_descramble()
436 env->ReleaseByteArrayElements(srcArray, (jbyte *)srcPtr, 0); in android_media_MediaDescrambler_native_descramble()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp45 void *srcPtr = nullptr; \
59 srcPtr = ptr; \
66 copyWithPadding(ptr, srcPtr, mSize, count); \
70 copyWithUnPadding(srcPtr, ptr, mSize, count); \
73 ptr = srcPtr; \
84 srcPtr = ptr; \
91 copyWithPadding(ptr, srcPtr, mSize, count); \
95 copyWithUnPadding(srcPtr, ptr, mSize, count); \
98 ptr = srcPtr; \
110 srcPtr = ptr; \
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DSession.cpp59 const uint8_t* srcPtr, uint8_t* destPtr, in decrypt() argument
79 auto status = decryptor.decrypt(itr->second /*key*/, iv, srcPtr, destPtr, in decrypt()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp55 void *srcPtr = nullptr; \
73 srcPtr = ptr; \
80 copyWithPadding(ptr, srcPtr, mSize, count); \
84 copyWithUnPadding(srcPtr, ptr, mSize, count); \
87 ptr = srcPtr; \
102 srcPtr = ptr; \
109 copyWithPadding(ptr, srcPtr, mSize, count); \
113 copyWithUnPadding(srcPtr, ptr, mSize, count); \
116 ptr = srcPtr; \
132 srcPtr = ptr; \
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyCasPlugin.cpp404 const void *srcPtr, void *dstPtr, AString * /* errorDetailMsg */) { in decrypt() argument
426 uint8_t *src = (uint8_t*)srcPtr; in decrypt()
497 const void *srcPtr, in descramble() argument
507 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
519 (uint8_t*)srcPtr + srcOffset, in descramble()
DClearKeySessionLibrary.h43 const void *srcPtr,
DClearKeyCasPlugin.h134 const void *srcPtr,
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp318 const float * srcPtr = &mGFlop.srcBuffer[x - halfKX]; in GflopKernelC() local
321 sum += srcPtr[0] * krnPtr[0]; in GflopKernelC()
323 srcPtr++; in GflopKernelC()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DCryptoPlugin.cpp93 uint8_t* srcPtr = src->mBase + in_args.source.offset + in_args.offset; in decrypt() local
131 reinterpret_cast<const uint8_t*>(srcPtr) + offset, in decrypt()
157 srcPtr, static_cast<uint8_t*>(destPtr), in decrypt()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DCryptoPlugin.h47 Mode mode, const Pattern &pattern, const void* srcPtr,
/frameworks/native/headers/media_plugin/media/cas/
DDescramblerAPI.h92 const void *srcPtr,
/frameworks/native/headers/media_plugin/media/hardware/
DCryptoAPI.h108 const void *srcPtr,
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/
DSession.h43 CdmResponseType decrypt(const KeyId keyId, const Iv iv, const uint8_t* srcPtr, uint8_t* dstPtr,
/frameworks/av/drm/mediacas/plugins/mock/
DMockCasPlugin.cpp251 const void *srcPtr, in descramble() argument
260 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
DMockCasPlugin.h124 const void *srcPtr,
/frameworks/rs/cpp/
DAllocation.cpp192 static void copyWithPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithPadding() argument
196 const uint8_t *src = static_cast<const uint8_t *>(srcPtr); in copyWithPadding()
204 static void copyWithUnPadding(void* ptr, const void* srcPtr, int mSize, int count) { in copyWithUnPadding() argument
208 const uint8_t *src = static_cast<const uint8_t *>(srcPtr); in copyWithUnPadding()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h166 const Pattern &pattern, const void *srcPtr,
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp872 int32_t *srcPtr = reinterpret_cast<int32_t *>(mScriptExec->getFieldAddress(slot)); in getGlobalVar() local
873 if (!srcPtr) { in getGlobalVar()
877 memcpy(data, srcPtr, dataLength); in getGlobalVar()

12