Home
last modified time | relevance | path

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

/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp26 float **img; in db_SetupImageReferences_f() local
28 img=new float* [h]; in db_SetupImageReferences_f()
31 img[i]=im+w*i; in db_SetupImageReferences_f()
33 return(img); in db_SetupImageReferences_f()
39 unsigned char **img; in db_SetupImageReferences_u() local
43 img=new unsigned char* [h]; in db_SetupImageReferences_u()
46 img[i]=im+w*i; in db_SetupImageReferences_u()
48 return(img); in db_SetupImageReferences_u()
52 float **img,*im; in db_AllocImage_f() local
55 img=db_SetupImageReferences_f(im,w,h); in db_AllocImage_f()
[all …]
Ddb_feature_detection.cpp38 float **img,*aim,*p; in db_AllocStrengthImage_f() local
53 img=new float* [h]; in db_AllocStrengthImage_f()
57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f()
60 return(img); in db_AllocStrengthImage_f()
63 void db_FreeStrengthImage_f(float *im,float **img,int h) in db_FreeStrengthImage_f() argument
66 delete [] img; in db_FreeStrengthImage_f()
71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
[all …]
Ddb_feature_detection.h72 …void DetectCorners(const float * const *img,double *x_coord,double *y_coord,int *nr_corners) const;
141 …virtual void DetectCorners(const unsigned char * const *img,double *x_coord,double *y_coord,int *n…
Ddb_utilities.h424 DB_API void db_FreeImage_f(float **img,int h);
446 DB_API void db_FreeImage_u(unsigned char **img,int h);
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp26 float **img; in db_SetupImageReferences_f() local
28 img=new float* [h]; in db_SetupImageReferences_f()
31 img[i]=im+w*i; in db_SetupImageReferences_f()
33 return(img); in db_SetupImageReferences_f()
39 unsigned char **img; in db_SetupImageReferences_u() local
43 img=new unsigned char* [h]; in db_SetupImageReferences_u()
46 img[i]=im+w*i; in db_SetupImageReferences_u()
48 return(img); in db_SetupImageReferences_u()
52 float **img,*im; in db_AllocImage_f() local
55 img=db_SetupImageReferences_f(im,w,h); in db_AllocImage_f()
[all …]
Ddb_feature_detection.cpp38 float **img,*aim,*p; in db_AllocStrengthImage_f() local
53 img=new float* [h]; in db_AllocStrengthImage_f()
57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f()
60 return(img); in db_AllocStrengthImage_f()
63 void db_FreeStrengthImage_f(float *im,float **img,int h) in db_FreeStrengthImage_f() argument
66 delete [] img; in db_FreeStrengthImage_f()
71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument
77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f()
78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f()
84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument
[all …]
Ddb_feature_detection.h72 …void DetectCorners(const float * const *img,double *x_coord,double *y_coord,int *nr_corners) const;
141 …virtual void DetectCorners(const unsigned char * const *img,double *x_coord,double *y_coord,int *n…
Ddb_utilities.h424 DB_API void db_FreeImage_f(float **img,int h);
446 DB_API void db_FreeImage_u(unsigned char **img,int h);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp33 PyramidShort *img = (PyramidShort *) calloc(sizeof(PyramidShort) * levels in allocatePyramidPacked() local
37 if (img) { in allocatePyramidPacked()
39 ImageTypeShort *y = (ImageTypeShort *) &img[levels]; in allocatePyramidPacked()
41 for (last = (curr = img) + levels; curr < last; curr++) { in allocatePyramidPacked()
58 return img; in allocatePyramidPacked()
65 PyramidShort *img = (PyramidShort *) in allocateImage() local
69 if (img) { in allocateImage()
70 short **y = (short **) &img[1]; in allocateImage()
72 img->width = width; in allocateImage()
73 img->height = height; in allocateImage()
[all …]
DImageUtils.cpp397 void YUVinfo::mapYUVInfoToImage(YUVinfo *img, unsigned char *position) in mapYUVInfoToImage() argument
400 for (i = 0; i < img->Y.height; i++, position += img->Y.width) in mapYUVInfoToImage()
401 img->Y.ptr[i] = position; in mapYUVInfoToImage()
402 for (i = 0; i < img->V.height; i++, position += img->V.width) in mapYUVInfoToImage()
403 img->V.ptr[i] = position; in mapYUVInfoToImage()
404 for (i = 0; i < img->U.height; i++, position += img->U.width) in mapYUVInfoToImage()
405 img->U.ptr[i] = position; in mapYUVInfoToImage()
DInterp.h46 inline double ciCalc(PyramidShort *img, int xi, int yi, double xfrac, double yfrac) in ciCalc() argument
51 ImageTypeShortBase *in = img->ptr[yi-1] + xi - 1; in ciCalc()
58 in += img->pitch; in ciCalc()
63 in += img->pitch; in ciCalc()
68 in += img->pitch; in ciCalc()
DImageUtils.h155 static void mapYUVInfoToImage(YUVinfo *img, unsigned char *position);
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DPyramid.cpp33 PyramidShort *img = (PyramidShort *) calloc(sizeof(PyramidShort) * levels in allocatePyramidPacked() local
37 if (img) { in allocatePyramidPacked()
39 ImageTypeShort *y = (ImageTypeShort *) &img[levels]; in allocatePyramidPacked()
41 for (last = (curr = img) + levels; curr < last; curr++) { in allocatePyramidPacked()
58 return img; in allocatePyramidPacked()
65 PyramidShort *img = (PyramidShort *) in allocateImage() local
69 if (img) { in allocateImage()
70 short **y = (short **) &img[1]; in allocateImage()
72 img->width = width; in allocateImage()
73 img->height = height; in allocateImage()
[all …]
DImageUtils.cpp397 void YUVinfo::mapYUVInfoToImage(YUVinfo *img, unsigned char *position) in mapYUVInfoToImage() argument
400 for (i = 0; i < img->Y.height; i++, position += img->Y.width) in mapYUVInfoToImage()
401 img->Y.ptr[i] = position; in mapYUVInfoToImage()
402 for (i = 0; i < img->V.height; i++, position += img->V.width) in mapYUVInfoToImage()
403 img->V.ptr[i] = position; in mapYUVInfoToImage()
404 for (i = 0; i < img->U.height; i++, position += img->U.width) in mapYUVInfoToImage()
405 img->U.ptr[i] = position; in mapYUVInfoToImage()
DInterp.h46 inline double ciCalc(PyramidShort *img, int xi, int yi, double xfrac, double yfrac) in ciCalc() argument
51 ImageTypeShortBase *in = img->ptr[yi-1] + xi - 1; in ciCalc()
58 in += img->pitch; in ciCalc()
63 in += img->pitch; in ciCalc()
68 in += img->pitch; in ciCalc()
DImageUtils.h155 static void mapYUVInfoToImage(YUVinfo *img, unsigned char *position);
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java470 final Image img = reader.acquireLatestImage();
472 if (img != null) {
480 img.getTimestamp(), new SwapTask<CapturedImage>() {
484 image.addImage(img);
491 oldElement.addImage(img);
497 existingElement.addImage(img);
505 img.close();
512 tryExecutePendingCaptureRequest(img.getTimestamp());
678 CapturedImage img = toCapture.second;
679 callback.onImageCaptured(img.tryGetImage(),
[all …]
DOneCameraImpl.java677 Image img = reader.acquireLatestImage(); in acquireJpegBytesAndClose() local
681 if (img.getFormat() == ImageFormat.JPEG) { in acquireJpegBytesAndClose()
682 Image.Plane plane0 = img.getPlanes()[0]; in acquireJpegBytesAndClose()
684 } else if (img.getFormat() == ImageFormat.YUV_420_888) { in acquireJpegBytesAndClose()
685 buffer = ByteBuffer.allocateDirect(img.getWidth() * img.getHeight() * 3); in acquireJpegBytesAndClose()
688 int numBytes = JpegUtilNative.compressJpegFromYUV420Image(img, buffer, JPEG_QUALITY); in acquireJpegBytesAndClose()
702 img.close(); in acquireJpegBytesAndClose()
DOneCameraZslImpl.java934 private byte[] acquireJpegBytes(Image img) { in acquireJpegBytes() argument
937 if (img.getFormat() == ImageFormat.JPEG) { in acquireJpegBytes()
938 Image.Plane plane0 = img.getPlanes()[0]; in acquireJpegBytes()
945 } else if (img.getFormat() == ImageFormat.YUV_420_888) { in acquireJpegBytes()
948 buffer = ByteBuffer.allocateDirect(img.getWidth() * img.getHeight() * 3); in acquireJpegBytes()
951 int numBytes = JpegUtilNative.compressJpegFromYUV420Image(img, buffer, JPEG_QUALITY); in acquireJpegBytes()
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java78 public static int compressJpegFromYUV420Image(Image img, ByteBuffer outBuf, int quality) { in compressJpegFromYUV420Image() argument
79 if (img.getFormat() != ImageFormat.YUV_420_888) { in compressJpegFromYUV420Image()
85 if (img.getPlanes().length != NUM_PLANES) { in compressJpegFromYUV420Image()
98 Plane plane = img.getPlanes()[i]; in compressJpegFromYUV420Image()
112 img.getWidth(), img.getHeight(), in compressJpegFromYUV420Image()
/packages/apps/Gallery/src/com/android/camera/
DImageGallery.java181 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) {
280 long size = MenuHelper.getImageFileSize(img);
310 cropIntent.setData(img.fullSizeImageUri());
318 Intent result = new Intent(null, img.fullSizeImageUri());
321 Bitmap bitmap = img.fullSizeBitmap(
DViewImage.java1131 IImage img = mViewImage.mAllImages
1134 new Intent().setData(img.fullSizeImageUri()));
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java263 MasterImage img = MasterImage.getImage(); in onDraw() local
266 if ((img.getLoadedPreset() == null) in onDraw()
267 || (img.getLoadedPreset() != null in onDraw()
268 && img.getLoadedPreset().equals(img.getCurrentPreset()))) { in onDraw()
270 } else if (img.getLoadedPreset() != null) { in onDraw()
925 MasterImage img = MasterImage.getImage();
926 float scaleFactor = img.getScaleFactor();
936 scaleFactor = img.getScaleFactor();
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c104 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
105 img[off + 2] = b; in stuff()
106 img[off + 1] = g; in stuff()
107 img[off] = r; in stuff()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java423 Bitmap img = params[0]; in doInBackground() local
440 assert (img != null); in doInBackground()
441 Bitmap ret = getCroppedImage(img, mCrop, mPhoto); in doInBackground()