/packages/apps/Gallery2/jni/filters/ |
H A D | negative.c | 26 char * dst = destination; local 28 dst[RED] = 255 - dst[RED]; 29 dst[GREEN] = 255 - dst[GREEN]; 30 dst[BLUE] = 255 - dst[BLUE];
|
H A D | edge.c | 35 char * dst = destination; local 110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char)); 117 memcpy((dst + second_last_row), (buf + buf_row_ring), row_stride * sizeof(char)); 121 memset((dst + last_row), 0, row_stride * sizeof(char)); 123 *(dst + last_row + j) = 255; // set alphas
|
H A D | kmeans.cc | 43 unsigned char * dst = (unsigned char *) destination; local 73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride);
|
H A D | geometry.c | 130 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterFlip, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jint dstHeight, jint flip) { argument 137 AndroidBitmap_lockPixels(env, dst, (void**) &destination); 139 AndroidBitmap_unlockPixels(env, dst); 143 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterRotate, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jint dstHeight, jint rotate) { argument 148 AndroidBitmap_lockPixels(env, dst, (void**) &destination); 150 AndroidBitmap_unlockPixels(env, dst); 154 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterCrop, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jint dstHeight, jint offsetWidth, jint offsetHeight) { argument 159 AndroidBitmap_lockPixels(env, dst, (void**) &destination); 161 AndroidBitmap_unlockPixels(env, dst); 165 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterStraighten, jobject src, jint srcWidth, jint srcHeight, jobject dst, jin argument [all...] |
H A D | kmeans.h | 26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { argument 28 // zero out dst vector 30 dst[x] = 0; 34 dst[y] += values[x + y]; 48 inline void add(T val[], N dst[], int dimension) { argument 51 dst[x] += val[x]; 56 inline void divide(T dst[], N divisor, int dimension) { argument 62 dst[x] /= divisor; 88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], argument 113 // set dst t 141 calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], T dst[]) argument [all...] |
/packages/apps/Music/tests/src/com/android/music/functional/ |
H A D | TestSongs.java | 86 private void copy(File src, File dst) throws IOException { argument 88 OutputStream out = new FileOutputStream(dst);
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | nj_str.c | 21 NJ_CHAR *nj_strcpy(NJ_CHAR *dst, NJ_CHAR *src) { argument 23 NJ_CHAR *ret = dst; 27 *dst++ = *src++; 29 *dst = *src; 33 NJ_CHAR *nj_strncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { argument 35 NJ_CHAR *d = dst; 50 return dst; 122 NJ_CHAR *nj_charncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { argument 124 NJ_CHAR *d = dst; 132 return dst; 143 nj_memcpy(NJ_UINT8 *dst, NJ_UINT8 *src, NJ_UINT16 n) argument [all...] |
/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | jpeg_hook.cpp | 25 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); local 26 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); 27 dst->mgr.free_in_buffer = dst->outStream->getBufferSize(); 31 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); local 32 int32_t len = dst->outStream->getBufferSize(); 33 if (dst->outStream->write(len, 0) != J_SUCCESS) { 36 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst 42 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | VideoUtils.java | 71 public static void startTrim(File src, File dst, int startMs, int endMs) argument 74 genVideoUsingMuxer(src.getPath(), dst.getPath(), startMs, endMs, 77 trimUsingMp4Parser(src, dst, startMs, endMs); 83 File dst = dstFileInfo.mFile; 97 writeMovieIntoFile(dst, movie); 101 private static void writeMovieIntoFile(File dst, Movie movie) argument 103 if (!dst.exists()) { 104 dst.createNewFile(); 108 FileOutputStream fos = new FileOutputStream(dst); 230 private static void trimUsingMp4Parser(File src, File dst, in argument [all...] |
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities.cpp | 102 inline void db_WarpImageLutFast_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 105 assert(src && dst); 117 dst[j][i] = 0; 119 dst[j][i] = src[yd][xd]; 123 inline void db_WarpImageLutBilinear_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 126 assert(src && dst); 136 dst[j][i] = 0; 138 dst[j][i] = db_BilinearInterpolation(yd, xd, src); 143 void db_WarpImageLut_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 149 db_WarpImageLutFast_u(src,dst, [all...] |
/packages/apps/Camera/jni/feature_stab/src/dbregtest/ |
H A D | PgmImage.cpp | 64 void PgmImage::DeepCopy(const PgmImage& src, PgmImage& dst) argument 66 dst.m_data = src.m_data; 69 dst.m_w = src.m_w; 70 dst.m_h = src.m_h; 71 dst.m_format = src.m_format; 72 dst.m_colors = src.m_colors; 74 dst.m_comment = src.m_comment;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropDrawingUtils.java | 173 public static boolean setImageToScreenMatrix(Matrix dst, RectF image, argument 176 dst.setRotate(rotation, image.centerX(), image.centerY()); 177 if (!dst.mapRect(rotatedImage, image)) { 181 boolean rToR = dst.setRectToRect(rotatedImage, screen, Matrix.ScaleToFit.CENTER); 182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY());
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities.cpp | 102 inline void db_WarpImageLutFast_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 105 assert(src && dst); 117 dst[j][i] = 0; 119 dst[j][i] = src[yd][xd]; 123 inline void db_WarpImageLutBilinear_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 126 assert(src && dst); 136 dst[j][i] = 0; 138 dst[j][i] = db_BilinearInterpolation(yd, xd, src); 143 void db_WarpImageLut_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 149 db_WarpImageLutFast_u(src,dst, [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
H A D | PgmImage.cpp | 64 void PgmImage::DeepCopy(const PgmImage& src, PgmImage& dst) argument 66 dst.m_data = src.m_data; 69 dst.m_w = src.m_w; 70 dst.m_h = src.m_h; 71 dst.m_format = src.m_format; 72 dst.m_colors = src.m_colors; 74 dst.m_comment = src.m_comment;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | StringAndJsonUtilsTests.java | 172 private static void checkCapitalize(final String src, final String dst, argument 174 assertEquals(dst, StringUtils.capitalizeEachWord(src, sortedSeparators, locale)); 175 assert(src.equals(dst)
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | NewOutgoingCallIntentBroadcaster.java | 296 * @param dst Intent where a copy of the extras will be added if applicable. 298 public void checkAndCopyProviderExtras(Intent src, Intent dst) { argument 303 dst.putExtra(EXTRA_GATEWAY_PROVIDER_PACKAGE, 305 dst.putExtra(EXTRA_GATEWAY_URI,
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | CallGatewayManager.java | 155 * @param dst Intent where a copy of the extras will be added if applicable. 157 public static void checkAndCopyPhoneProviderExtras(Intent src, Intent dst) { argument 163 dst.putExtra(EXTRA_GATEWAY_PROVIDER_PACKAGE, 165 dst.putExtra(EXTRA_GATEWAY_URI,
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | TransitionImageAnimation.java | 50 public void onRemovedView(TransitionImage src, TransitionImage dst) { argument 104 * set comparator for matching src and dst ImageTransition 334 public boolean addTransitionTarget(TransitionImage dst) { argument 340 if (mComparator.compare(view.getSourceTransition(), dst) == 0) { 341 view.setDestTransition(dst);
|
H A D | TransitionImageView.java | 52 * values for difference between src and dst 110 public void setDestTransition(TransitionImage dst) { argument 111 mDst = dst; 168 // get dst clip rect relative to the view 171 // get dst clip rect before scaling 182 // get dst rect relative to the view 187 // get dst clip rect before scaling
|
/packages/apps/Camera/jni/feature_stab/src/dbreg/ |
H A D | vp_motionmodel.c | 288 vp_copy_motion (const VP_MOTION *src, VP_MOTION *dst) 291 It is OK if src == dst. 297 dst is the destination motion 302 void vp_copy_motion (const VP_MOTION *src, VP_MOTION *dst) argument 306 memmove(dst, src, sizeof(VP_MOTION));
|
H A D | dbreg.h | 474 * \param dst destination image (w*3 by h) 480 inline void db_WarpImageLutFast_rgb(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 483 assert(src && dst); 494 dst[j][3*i ] = 0; 495 dst[j][3*i+1] = 0; 496 dst[j][3*i+2] = 0; 500 dst[j][3*i ] = src[yd][3*xd ]; 501 dst[j][3*i+1] = src[yd][3*xd+1]; 502 dst[j][3*i+2] = src[yd][3*xd+2]; 526 inline void db_WarpImageLutBilinear_rgb(const unsigned char * const * src, unsigned char ** dst, in argument [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
H A D | vp_motionmodel.c | 288 vp_copy_motion (const VP_MOTION *src, VP_MOTION *dst) 291 It is OK if src == dst. 297 dst is the destination motion 302 void vp_copy_motion (const VP_MOTION *src, VP_MOTION *dst) argument 306 memmove(dst, src, sizeof(VP_MOTION));
|
H A D | dbreg.h | 474 * \param dst destination image (w*3 by h) 480 inline void db_WarpImageLutFast_rgb(const unsigned char * const * src, unsigned char ** dst, int w, int h, argument 483 assert(src && dst); 494 dst[j][3*i ] = 0; 495 dst[j][3*i+1] = 0; 496 dst[j][3*i+2] = 0; 500 dst[j][3*i ] = src[yd][3*xd ]; 501 dst[j][3*i+1] = src[yd][3*xd+1]; 502 dst[j][3*i+2] = src[yd][3*xd+2]; 526 inline void db_WarpImageLutBilinear_rgb(const unsigned char * const * src, unsigned char ** dst, in argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionary.java | 508 * with an offset in the dst string. 515 * @param dst the right-hand side string of the comparison. 519 private static int compareCharArrays(final int[] src, final int[] dst, int dstOffset) { argument 523 if (dstOffset + i >= dst.length) return i; 524 if (src[i] != dst[dstOffset + i]) return i; 526 if (dst.length > src.length) return src.length;
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
H A D | OpenWnnDictionaryImplJni.c | 48 NJ_UINT8* dst; local 51 dst = ( NJ_UINT8* )&ret; 52 dst[ 0 ] = src[ 0 ]; 53 dst[ 1 ] = src[ 1 ]; 58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) argument 69 dst_tmp = ( NJ_UINT8* )&( dst[ o ] ); 127 dst[ o ] = NJ_CHAR_NUL; 138 char dst[ (NJ_MAX_LEN + NJ_MAX_RESULT_LEN + NJ_TERM_LEN ) * 3 + 1 ]; local 150 dst[ o + 0 ] = src_tmp[ 1 ] & 0x007f; 156 dst[ 1357 char *dst = ( char* )malloc( maxBindsOfQuery * ( ( 1 + keyLength + 18 + 1 + 5 ) + local [all...] |