/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Interp.h | 46 inline double ciCalc(PyramidShort *img, int xi, int yi, double xfrac, double yfrac) argument 51 ImageTypeShortBase *in = img->ptr[yi-1] + xi - 1; 58 in += img->pitch; 63 in += img->pitch; 68 in += img->pitch;
|
H A D | ImageUtils.cpp | 397 void YUVinfo::mapYUVInfoToImage(YUVinfo *img, unsigned char *position) argument 400 for (i = 0; i < img->Y.height; i++, position += img->Y.width) 401 img->Y.ptr[i] = position; 402 for (i = 0; i < img->V.height; i++, position += img->V.width) 403 img->V.ptr[i] = position; 404 for (i = 0; i < img->U.height; i++, position += img->U.width) 405 img [all...] |
H A D | Pyramid.cpp | 33 PyramidShort *img = (PyramidShort *) calloc(sizeof(PyramidShort) * levels local 37 if (img) { 39 ImageTypeShort *y = (ImageTypeShort *) &img[levels]; 41 for (last = (curr = img) + levels; curr < last; curr++) { 58 return img; 65 PyramidShort *img = (PyramidShort *) local 69 if (img) { 70 short **y = (short **) &img[1]; 72 img->width = width; 73 img [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Interp.h | 46 inline double ciCalc(PyramidShort *img, int xi, int yi, double xfrac, double yfrac) argument 51 ImageTypeShortBase *in = img->ptr[yi-1] + xi - 1; 58 in += img->pitch; 63 in += img->pitch; 68 in += img->pitch;
|
H A D | ImageUtils.cpp | 397 void YUVinfo::mapYUVInfoToImage(YUVinfo *img, unsigned char *position) argument 400 for (i = 0; i < img->Y.height; i++, position += img->Y.width) 401 img->Y.ptr[i] = position; 402 for (i = 0; i < img->V.height; i++, position += img->V.width) 403 img->V.ptr[i] = position; 404 for (i = 0; i < img->U.height; i++, position += img->U.width) 405 img [all...] |
H A D | Pyramid.cpp | 33 PyramidShort *img = (PyramidShort *) calloc(sizeof(PyramidShort) * levels local 37 if (img) { 39 ImageTypeShort *y = (ImageTypeShort *) &img[levels]; 41 for (last = (curr = img) + levels; curr < last; curr++) { 58 return img; 65 PyramidShort *img = (PyramidShort *) local 69 if (img) { 70 short **y = (short **) &img[1]; 72 img->width = width; 73 img [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | JpegUtilNative.java | 74 * @param img the image to compress 78 public static int compressJpegFromYUV420Image(Image img, ByteBuffer outBuf, int quality) { argument 79 if (img.getFormat() != ImageFormat.YUV_420_888) { 85 if (img.getPlanes().length != NUM_PLANES) { 98 Plane plane = img.getPlanes()[i]; 112 img.getWidth(), img.getHeight(),
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities.cpp | 26 float **img; local 28 img=new float* [h]; 31 img[i]=im+w*i; 33 return(img); 39 unsigned char **img; local 43 img=new unsigned char* [h]; 46 img[i]=im+w*i; 48 return(img); 52 float **img,*im; local 55 img 62 unsigned char **img,*im; local 70 db_FreeImage_f(float **img,int h) argument 76 db_FreeImage_u(unsigned char **img,int h) argument [all...] |
H A D | db_feature_detection.cpp | 38 float **img,*aim,*p; local 53 img=new float* [h]; 57 img[i]=aim+aw*i+1; 60 return(img); 63 void db_FreeStrengthImage_f(float *im,float **img,int h) argument 66 delete [] img; 69 /*Compute derivatives Ix,Iy for a subrow of img with upper left (i,j) and width chunk_width 71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) argument 77 Ix[c]=img[i][j+c-1]-img[ 84 db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) argument 616 db_HarrisStrengthChunk_f(float **s,const float * const *img,int left,int top,int right,int bottom, float *temp) argument 659 db_HarrisStrengthChunk_u(float **s,const unsigned char * const *img,int left,int top,int bottom, int *temp, int nc) argument 700 db_HarrisStrength_f(float **s,const float * const *img,int w,int h, float *temp, int chunk_width) argument 724 db_HarrisStrength_u(float **s, const unsigned char * const *img,int w,int h, int *temp) argument 1056 db_MaxImage_Aligned16_f(float **img,int left,int top,int w,int h) argument 1629 DetectCorners(const float * const *img,double *x_coord,double *y_coord,int *nr_corners) const argument 1727 DetectCorners(const unsigned char * const *img,double *x_coord,double *y_coord,int *nr_corners, const unsigned char * const *msk, unsigned char fgnd) const argument [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | redEyeMath.c | 104 void stuff(int r, int g, int b, unsigned char *img, int off) { argument 105 img[off + 2] = b; 106 img[off + 1] = g; 107 img[off] = r;
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities.cpp | 26 float **img; local 28 img=new float* [h]; 31 img[i]=im+w*i; 33 return(img); 39 unsigned char **img; local 43 img=new unsigned char* [h]; 46 img[i]=im+w*i; 48 return(img); 52 float **img,*im; local 55 img 62 unsigned char **img,*im; local 70 db_FreeImage_f(float **img,int h) argument 76 db_FreeImage_u(unsigned char **img,int h) argument [all...] |
H A D | db_feature_detection.cpp | 38 float **img,*aim,*p; local 53 img=new float* [h]; 57 img[i]=aim+aw*i+1; 60 return(img); 63 void db_FreeStrengthImage_f(float *im,float **img,int h) argument 66 delete [] img; 69 /*Compute derivatives Ix,Iy for a subrow of img with upper left (i,j) and width chunk_width 71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) argument 77 Ix[c]=img[i][j+c-1]-img[ 84 db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) argument 616 db_HarrisStrengthChunk_f(float **s,const float * const *img,int left,int top,int right,int bottom, float *temp) argument 659 db_HarrisStrengthChunk_u(float **s,const unsigned char * const *img,int left,int top,int bottom, int *temp, int nc) argument 700 db_HarrisStrength_f(float **s,const float * const *img,int w,int h, float *temp, int chunk_width) argument 724 db_HarrisStrength_u(float **s, const unsigned char * const *img,int w,int h, int *temp) argument 1056 db_MaxImage_Aligned16_f(float **img,int left,int top,int w,int h) argument 1629 DetectCorners(const float * const *img,double *x_coord,double *y_coord,int *nr_corners) const argument 1727 DetectCorners(const unsigned char * const *img,double *x_coord,double *y_coord,int *nr_corners, const unsigned char * const *msk, unsigned char fgnd) const argument [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | OneCameraZslImpl.java | 930 * @param img the image from which to extract jpeg bytes or compress to 934 private byte[] acquireJpegBytes(Image img) { argument 937 if (img.getFormat() == ImageFormat.JPEG) { 938 Image.Plane plane0 = img.getPlanes()[0]; 945 } else if (img.getFormat() == ImageFormat.YUV_420_888) { 948 buffer = ByteBuffer.allocateDirect(img.getWidth() * img.getHeight() * 3); 951 int numBytes = JpegUtilNative.compressJpegFromYUV420Image(img, buffer, JPEG_QUALITY);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageGallery.java | 181 IImage img = getCurrentImage(); 182 if (img == null) { 183 img = mAllImages.getImageAt(0); 184 if (img == null) { 188 Uri targetUri = img.fullSizeImageUri(); 277 private void launchCropperOrFinish(IImage img) { argument 280 long size = MenuHelper.getImageFileSize(img); 310 cropIntent.setData(img.fullSizeImageUri()); 318 Intent result = new Intent(null, img.fullSizeImageUri()); 321 Bitmap bitmap = img [all...] |