/development/perftests/panorama/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height) in rgba2yvu() argument 32 ImageType vimg = yimg + width*height; in rgba2yvu() 33 ImageType uimg = vimg + width*height; in rgba2yvu() 36 for (int ii = 0; ii < height; ii++) { in rgba2yvu() 73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height) in rgb2yvu() argument 77 ImageType vimg = yimg + width*height; in rgb2yvu() 78 ImageType uimg = vimg + width*height; in rgb2yvu() 81 for (int ii = 0; ii < height; ii++) { in rgb2yvu() 116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) in rgb2gray() argument 121 ImageType out = ImageUtils::allocateImage(width, height, 1); in rgb2gray() [all …]
|
D | ImageUtils.h | 62 static void rgb2yvu(ImageType out, ImageType in, int width, int height); 64 static void rgba2yvu(ImageType out, ImageType in, int width, int height); 76 static void yvu2rgb(ImageType out, ImageType in, int width, int height); 77 static void yvu2bgr(ImageType out, ImageType in, int width, int height); 91 static ImageType rgb2gray(ImageType in, int width, int height); 92 static ImageType rgb2gray(ImageType out, ImageType in, int width, int height); 97 static ImageType readBinaryPPM(const char *filename, int &width, int &height); 102 …static void writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numCh… 107 static ImageType allocateImage(int width, int height, int numChannels, short int border = 0); 114 static ImageType *imageTypeToRowPointers(ImageType out, int width, int height); [all …]
|
D | Pyramid.cpp | 28 real width, real height, real border) in allocatePyramidPacked() argument 31 int lines, size = calcStorage(width, height, border2, levels, &lines); in allocatePyramidPacked() 43 curr->height = height; in allocatePyramidPacked() 49 for (int j = height + border2; j--; y++, position += curr->pitch) { in allocatePyramidPacked() 54 height >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 66 calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) + in allocateImage() 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 71 short *position = (short *) &y[height + border2]; in allocateImage() 73 img->height = height; in allocateImage() [all …]
|
D | MosaicTypes.h | 72 int width, height; variable 81 height = _height; 84 image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS); 100 return (image + (width*height)); in getV() 108 return (image + (width*height*2)); in getU() 116 ImageType U = image + (width*height); in getV() 125 ImageType U = image + (width*height*2); in getU()
|
D | Mosaic.cpp | 57 int Mosaic::initialize(int blendingType, int stripType, int width, int height, int nframes, bool qu… in initialize() argument 70 this->height = height; in initialize() 83 … frames[i] = new MosaicFrame(this->width,this->height,false); // Do no allocate memory for YUV data in initialize() 98 aligner->initialize(width, height,quarter_res,thresh_still); in initialize() 105 blender->initialize(blendingType, stripType, width, height); in initialize() 120 …imageYVU = ImageUtils::allocateImage(this->width, this->height, ImageUtils::IMAGE_TYPE_NUM_CHANNEL… in addFrameRGB() 121 ImageUtils::rgb2yvu(imageYVU, imageRGB, width, height); in addFrameRGB() 137 frames[frames_size] = new MosaicFrame(this->width,this->height,false); in addFrame() 224 ImageType Mosaic::getMosaic(int &width, int &height) in getMosaic() argument 227 height = mosaicHeight; in getMosaic()
|
D | AlignFeatures.cpp | 35 width = height = 0; in Align() 55 int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still) in initialize() argument 64 int nrvert = height/60; // and vertical buckets for harris corner detection. in initialize() 82 reg.Init(width, height, motion_model_type, 20, linear_polish, quarter_res, in initialize() 88 this->height = height; in initialize() 90 imageGray = ImageUtils::allocateImage(width, height, 1); in initialize() 100 ImageUtils::rgb2gray(imageGray, imageRGB, width, height); in addFrameRGB() 109 ImageType *m_rows = ImageUtils::imageTypeToRowPointers(imageGray_, width, height); in addFrame()
|
D | Pyramid.h | 35 real width, height; // Width and height of input images variable 40 static PyramidShort *allocatePyramidPacked(real width, real height, real levels, real border = 0); 41 static PyramidShort *allocateImage(real width, real height, real border); 45 static unsigned int calcStorage(real width, real height, real border2, int levels, int *lines);
|
D | Mosaic.h | 98 …int initialize(int blendingType, int stripType, int width, int height, int nframes = -1, bool quar… 127 ImageType getMosaic(int &width, int &height); 157 int width, height;
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | AutoFitTextureView.java | 51 public void setAspectRatio(int width, int height) { in setAspectRatio() argument 52 if (width < 0 || height < 0) { in setAspectRatio() 55 if (mRatioWidth == width && mRatioHeight == height) { in setAspectRatio() 59 mRatioHeight = height; in setAspectRatio() 67 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local 69 setMeasuredDimension(width, height); in onMeasure() 71 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure() 74 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | AutoFitTextureView.java | 51 public void setAspectRatio(int width, int height) { in setAspectRatio() argument 52 if (width < 0 || height < 0) { in setAspectRatio() 56 mRatioHeight = height; in setAspectRatio() 64 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local 66 setMeasuredDimension(width, height); in onMeasure() 68 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure() 71 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | AutoFitTextureView.java | 51 public void setAspectRatio(int width, int height) { in setAspectRatio() argument 52 if (width < 0 || height < 0) { in setAspectRatio() 56 mRatioHeight = height; in setAspectRatio() 64 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local 66 setMeasuredDimension(width, height); in onMeasure() 68 if (width < height * mRatioWidth / mRatioHeight) { in onMeasure() 71 setMeasuredDimension(height * mRatioWidth / mRatioHeight, height); in onMeasure()
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | OverlayDisplayWindow.java | 62 int width, int height, int gravity) { in OverlayDisplayWindow() argument 66 mHeight = height; in OverlayDisplayWindow() 71 int width, int height, int gravity) { in create() argument 73 return new JellybeanMr1Impl(context, name, width, height, gravity); in create() 75 return new LegacyImpl(context, name, width, height, gravity); in create() 91 public abstract void updateAspectRatio(int width, int height); in updateAspectRatio() argument 110 int width, int height, int gravity) { in LegacyImpl() argument 111 super(context, name, width, height, gravity); in LegacyImpl() 136 int height = (int)(display.getHeight() * INITIAL_SCALE); in show() local 138 height = mHeight * width / mWidth; in show() [all …]
|
D | LocalPlayer.java | 353 int height = mMediaPlayer.getVideoHeight(); in updateVideoRect() local 354 if (width > 0 && height > 0) { in updateVideoRect() 356 mVideoHeight = height; in updateVideoRect() 453 int width, int height) { in surfaceChanged() argument 455 Log.d(TAG, "surfaceChanged: " + width + "x" + height); in surfaceChanged() 480 int height = getVideoHeight(); in updateSize() local 481 if (width > 0 && height > 0) { in updateSize() 489 if (surfaceWidth * height < surfaceHeight * width) { in updateSize() 493 lp.height = surfaceWidth * height / width; in updateSize() 497 lp.width = surfaceHeight * width / height; in updateSize() [all …]
|
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | OverlayDisplayWindow.java | 63 int width, int height, int gravity) { in OverlayDisplayWindow() argument 67 mHeight = height; in OverlayDisplayWindow() 72 int width, int height, int gravity) { in create() argument 74 return new JellybeanMr1Impl(context, name, width, height, gravity); in create() 76 return new LegacyImpl(context, name, width, height, gravity); in create() 92 public abstract void updateAspectRatio(int width, int height); in updateAspectRatio() argument 113 int width, int height, int gravity) { in LegacyImpl() argument 114 super(context, name, width, height, gravity); in LegacyImpl() 139 int height = (int)(display.getHeight() * INITIAL_SCALE); in show() local 141 height = mHeight * width / mWidth; in show() [all …]
|
D | LocalPlayer.java | 356 int height = mMediaPlayer.getVideoHeight(); in updateVideoRect() local 357 if (width > 0 && height > 0) { in updateVideoRect() 359 mVideoHeight = height; in updateVideoRect() 456 int width, int height) { in surfaceChanged() argument 458 Log.d(TAG, "surfaceChanged: " + width + "x" + height); in surfaceChanged() 483 int height = getVideoHeight(); in updateSize() local 484 if (width > 0 && height > 0) { in updateSize() 492 if (surfaceWidth * height < surfaceHeight * width) { in updateSize() 496 lp.height = surfaceWidth * height / width; in updateSize() 500 lp.width = surfaceHeight * width / height; in updateSize() [all …]
|
/development/tools/yuv420sp2rgb/ |
D | yuv420sp2rgb.c | 35 int height; member 52 int width, int height, in color_convert_common() argument 67 ctx.height = height; in color_convert_common() 71 for (i = 0; i < height; i++) { in color_convert_common() 81 for (i = 0; i < height; i++) { in color_convert_common() 145 offset = ctx->height * (ctx->j + 1) - ctx->i; in common_rgb_cb() 148 offset = (ctx->height - 1 - ctx->i) * ctx->width + ctx->j; in common_rgb_cb() 151 offset = (ctx->width - 1 - ctx->j) * ctx->height + ctx->i; in common_rgb_cb() 193 int height, in convert() argument 211 header_size = snprintf(header, sizeof(header), "P6\n%d %d\n255\n", height, width); in convert() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CameraPreview.java | 199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in switchCamera() 211 final int height = resolveSize(getSuggestedMinimumHeight(), heightMeasureSpec); in onMeasure() local 212 setMeasuredDimension(width, height); in onMeasure() 215 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, height); in onMeasure() 225 final int height = b - t; in onLayout() local 228 int previewHeight = height; in onLayout() 231 previewHeight = mPreviewSize.height; in onLayout() 235 if (width * previewHeight > height * previewWidth) { in onLayout() 236 final int scaledChildWidth = previewWidth * height / previewHeight; in onLayout() 238 (width + scaledChildWidth) / 2, height); in onLayout() local [all …]
|
D | FrameBufferObjectActivity.java | 80 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument 83 mSurfaceHeight = height; in onSurfaceChanged() 84 gl.glViewport(0, 0, width, height); in onSurfaceChanged() 98 private void drawOnscreen(GL10 gl, int width, int height) { in drawOnscreen() argument 99 gl.glViewport(0, 0, width, height); in drawOnscreen() 100 float ratio = (float) width / height; in drawOnscreen() 136 private void drawOffscreenImage(GL10 gl, int width, int height) { in drawOffscreenImage() argument 137 gl.glViewport(0, 0, width, height); in drawOffscreenImage() 138 float ratio = (float) width / height; in drawOffscreenImage() 174 private int createTargetTexture(GL10 gl, int width, int height) { in createTargetTexture() argument [all …]
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | CameraFragment.java | 218 final int height = resolveSize(getSuggestedMinimumHeight(), in onMeasure() local 220 setMeasuredDimension(width, height); in onMeasure() 224 height); in onMeasure() 229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in onMeasure() 241 final int height = b - t; in onLayout() local 244 int previewHeight = height; in onLayout() 247 previewHeight = mPreviewSize.height; in onLayout() 251 if (width * previewHeight > height * previewWidth) { in onLayout() 252 final int scaledChildWidth = previewWidth * height in onLayout() 255 (width + scaledChildWidth) / 2, height); in onLayout() local [all …]
|
/development/tools/etc1tool/ |
D | etc1tool.cpp | 25 int writePNGFile(const char* pOutput, png_uint_32 width, png_uint_32 height, 144 png_uint_32 height = 0; in read_PNG_File() local 196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, in read_PNG_File() 202 pSourceImage = new etc1_byte[stride * height]; in read_PNG_File() 208 for (etc1_uint32 y = 0; y < height; y++) { in read_PNG_File() 213 *pHeight = height; in read_PNG_File() 243 png_uint_32 height = 0; in readPKMFile() local 265 height = etc1_pkm_get_height(header); in readPKMFile() 266 encodedSize = etc1_get_encoded_data_size(width, height); in readPKMFile() 284 pImageData = new png_byte[stride * height]; in readPKMFile() [all …]
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | FixedAspectSurfaceView.java | 90 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local 113 float boxAspectRatio = width / (float) height; in onMeasure() 136 width = (int) (height * mAspectRatio); in onMeasure() 138 height = (int) (width / mAspectRatio); in onMeasure() 143 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure() 146 setMeasuredDimension(width, height); in onMeasure()
|
/development/perftests/panorama/ |
D | benchmark.cpp | 33 int loadImages(const char* basename, int &width, int &height) in loadImages() argument 42 ImageType rgbFrame = ImageUtils::readBinaryPPM(filename, width, height); in loadImages() 43 yvuFrames[i] = ImageUtils::allocateImage(width, height, in loadImages() 45 ImageUtils::rgb2yvu(yvuFrames[i], rgbFrame, width, height); in loadImages() 55 int width, height; in main() local 70 int totalFrames = loadImages(basename, width, height); in main() 85 mosaic.initialize(blendingType, stripType, width, height, -1, false, 0); in main()
|
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
D | ImagePixelization.java | 158 int height = bitmap.getHeight(); in customImagePixelization() local 160 if (mPixelatedBitmap == null || !(width == mPixelatedBitmap.getWidth() && height == in customImagePixelization() 162 mPixelatedBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in customImagePixelization() 167 int yPixels = (int) (pixelizationFactor * ((float)height)); in customImagePixelization() 171 int[] bitmapPixels = new int[width * height]; in customImagePixelization() 172 bitmap.getPixels(bitmapPixels, 0, width, 0, 0, width, height); in customImagePixelization() 178 for (int y = 0; y < height; y+=yPixels) { in customImagePixelization() 184 maxY = Math.min(y + yPixels, height); in customImagePixelization() 201 int h = Math.min(yPixels, height - y); in customImagePixelization() 219 int height = bitmap.getHeight(); in builtInPixelization() local [all …]
|
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
D | NativeMedia.java | 76 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate() 78 + height); in onCreate() 98 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate() 100 + height); in onCreate() 122 int height = mediaPlayer.getVideoHeight(); in onCreate() 123 Log.v(TAG, "onPrepared width=" + width + ", height=" + height); in onCreate() 124 if (width != 0 && height != 0 && mJavaMediaPlayerVideoSink != null) { in onCreate() 125 mJavaMediaPlayerVideoSink.setFixedSize(width, height); in onCreate() 135 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) { in onCreate() 136 Log.v(TAG, "onVideoSizeChanged width=" + width + ", height=" + height); in onCreate() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | LabelMaker.java | 201 int height = Math.max(minHeight, textHeight + padHeight); in add() local 203 int effectiveTextHeight = height - padHeight; in add() 228 lineHeight = Math.max(lineHeight, height); in add() 235 int v2 = v + height; in add() 238 background.setBounds(u, v, u + width, v + height); in add() 253 mLabels.add(new Label(width, height, ascent, in add() 254 u, v + height, width, -height)); in add() 290 return mLabels.get(labelID).height; in getHeight() 346 (int) label.width, (int) label.height); in draw() 371 public Label(float width, float height, float baseLine, in Label() argument [all …]
|