Home
last modified time | relevance | path

Searched refs:srcPtr (Results 1 – 25 of 26) 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/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp319 uint8_t* srcPtr = (uint8_t*)data + mWidth * mCropTop * 3 + mCropLeft * 3; in render() local
323 memcpy(dstPtr, srcPtr, mCropWidth * 3); in render()
324 srcPtr += mWidth * 3; in render()
328 uint8_t *srcPtr, *dstPtr; in render() local
331 srcPtr = (uint8_t*)data + mWidth * 4 * (y + mCropTop) + mCropLeft * 4; in render()
334 uint8_t a = *srcPtr++; in render()
336 *dstPtr++ = *srcPtr++; in render()
342 uint8_t* srcPtr = (uint8_t*)data + mWidth * mCropTop * 4 + mCropLeft * 4; in render() local
346 memcpy(dstPtr, srcPtr, mCropWidth * 4); in render()
347 srcPtr += mWidth * 4; in render()
/frameworks/av/drm/mediadrm/plugins/clearkey/
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()
DCryptoPlugin.h47 Mode mode, const Pattern &pattern, const void* srcPtr,
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp166 const void *srcPtr, in descramble() argument
184 (const void*)((const uint8_t*)srcPtr + srcOffset), totalLength); in descramble()
352 void *srcPtr = NULL, *dstPtr = NULL; in android_media_MediaDescrambler_native_descramble() local
355 env, srcBuf, srcOffset, srcLimit, totalLength, &srcPtr, &srcArray); in android_media_MediaDescrambler_native_descramble()
359 dstPtr = srcPtr; in android_media_MediaDescrambler_native_descramble()
378 srcPtr, srcOffset, dstPtr, dstOffset, in android_media_MediaDescrambler_native_descramble()
383 env->ReleaseByteArrayElements(srcArray, (jbyte *)srcPtr, 0); in android_media_MediaDescrambler_native_descramble()
Dandroid_media_MediaDescrambler.h44 const void *srcPtr,
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp43 void *srcPtr = nullptr; \
57 srcPtr = ptr; \
64 copyWithPadding(ptr, srcPtr, mSize, count); \
68 copyWithUnPadding(srcPtr, ptr, mSize, count); \
71 ptr = srcPtr; \
82 srcPtr = ptr; \
89 copyWithPadding(ptr, srcPtr, mSize, count); \
93 copyWithUnPadding(srcPtr, ptr, mSize, count); \
96 ptr = srcPtr; \
108 srcPtr = ptr; \
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyCasPlugin.cpp345 const void *srcPtr, void *dstPtr, AString * /* errorDetailMsg */) { in decrypt() argument
364 uint8_t *src = (uint8_t*)srcPtr; in decrypt()
435 const void *srcPtr, in descramble() argument
445 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
457 (uint8_t*)srcPtr + srcOffset, in descramble()
DClearKeySessionLibrary.h44 const void *srcPtr,
DClearKeyCasPlugin.h116 const void *srcPtr,
/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/base/libs/hwui/
DSkiaCanvasProxy.cpp136 void SkiaCanvasProxy::onDrawBitmapRect(const SkBitmap& skBitmap, const SkRect* srcPtr, in onDrawBitmapRect() argument
138 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(skBitmap.width(), skBitmap.height()); in onDrawBitmapRect()
160 void SkiaCanvasProxy::onDrawImageRect(const SkImage* image, const SkRect* srcPtr, const SkRect& dst, in onDrawImageRect() argument
166 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(image->width(), image->height()); in onDrawImageRect()
/frameworks/av/drm/mediacas/plugins/mock/
DMockCasPlugin.cpp215 const void *srcPtr, in descramble() argument
224 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
DMockCasPlugin.h109 const void *srcPtr,
/frameworks/native/headers/media_plugin/media/cas/
DDescramblerAPI.h88 const void *srcPtr,
/frameworks/native/headers/media_plugin/media/hardware/
DCryptoAPI.h108 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/media/libstagefright/matroska/
DMatroskaExtractor.cpp715 const uint8_t *srcPtr = in read() local
730 case 1: NALsize = srcPtr[srcOffset]; break; in read()
731 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; in read()
732 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; in read()
733 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; in read()
752 &srcPtr[srcOffset + mNALSizeLen], in read()
/frameworks/rs/rsov/driver/
DrsovAllocation.cpp509 uint8_t *srcPtr = in rsovAllocationData2D_alloc_script() local
511 memcpy(dstPtr, srcPtr, w * elementSize); in rsovAllocationData2D_alloc_script()
526 uint8_t *srcPtr = in rsovAllocationData3D_alloc_script() local
529 memcpy(dstPtr, srcPtr, w * elementSize); in rsovAllocationData3D_alloc_script()
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp871 int32_t *srcPtr = reinterpret_cast<int32_t *>(mScriptExec->getFieldAddress(slot)); in getGlobalVar() local
872 if (!srcPtr) { in getGlobalVar()
876 memcpy(data, srcPtr, dataLength); in getGlobalVar()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h166 const Pattern &pattern, const void *srcPtr,
DMockDrmCryptoPlugin.cpp797 const Pattern &pattern, const void *srcPtr, in decrypt() argument
807 (int)mode, pattern.mEncryptBlocks, pattern.mSkipBlocks, srcPtr, in decrypt()

12