Searched refs:height (Results 1 - 25 of 144) sorted by relevance

123456

/development/tools/emulator/system/camera/
H A DJpegCompressor.cpp44 int height,
47 ALOGV("%s: %p[%dx%d]", __FUNCTION__, image, width, height);
51 offsets[1] = width * height;
54 if (encode(&mStream, pY, width, height, offsets, quality)) {
56 __FUNCTION__, (width * height * 12) / 8, width, height, mStream.getOffset());
42 compressRawImage(const void* image, int width, int height, int quality) argument
H A DConverters.cpp34 int height)
39 for (int y = 0; y < height; y++) {
64 int height)
69 for (int y = 0; y < height; y++) {
88 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) argument
90 const int pix_total = width * height;
94 _YUV420SToRGB565(Y, U, V, 1, reinterpret_cast<uint16_t*>(rgb), width, height);
97 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) argument
99 const int pix_total = width * height;
103 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height);
28 _YUV420SToRGB565(const uint8_t* Y, const uint8_t* U, const uint8_t* V, int dUV, uint16_t* rgb, int width, int height) argument
58 _YUV420SToRGB32(const uint8_t* Y, const uint8_t* U, const uint8_t* V, int dUV, uint32_t* rgb, int width, int height) argument
106 YU12ToRGB32(const void* yu12, void* rgb, int width, int height) argument
118 _NVXXToRGB565(const uint8_t* Y, const uint8_t* U, const uint8_t* V, uint16_t* rgb, int width, int height) argument
131 _NVXXToRGB32(const uint8_t* Y, const uint8_t* U, const uint8_t* V, uint32_t* rgb, int width, int height) argument
141 NV12ToRGB565(const void* nv12, void* rgb, int width, int height) argument
149 NV12ToRGB32(const void* nv12, void* rgb, int width, int height) argument
157 NV21ToRGB565(const void* nv21, void* rgb, int width, int height) argument
165 NV21ToRGB32(const void* nv21, void* rgb, int width, int height) argument
[all...]
H A DJpegCompressor.h51 * width, height - Image dimensions.
59 int height,
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/
H A DGL2JNILib.java29 * @param height the current view height
31 public static native void init(int width, int height); argument
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Dapp.h43 extern void appRender(long tick, int width, int height);
/development/tools/emulator/opengl/system/GLESv1_enc/
H A DGLEncoderUtils.h20 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pack);
H A DGLEncoderUtils.cpp20 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pack) argument
23 return ctx->pixelDataSize(width, height, format, type, pack);
/development/tools/yuv420sp2rgb/
H A Dcmdline.h8 int *height,
H A Dyuv420sp2rgb.c35 int height; member in struct:rgb_context
52 int width, int height,
67 ctx.height = height;
71 for (i = 0; i < height; i++) {
81 for (i = 0; i < height; i++) {
145 offset = ctx->height * (ctx->j + 1) - ctx->i;
148 offset = (ctx->height - 1 - ctx->i) * ctx->width + ctx->j;
151 offset = (ctx->width - 1 - ctx->j) * ctx->height + ctx->i;
193 int height,
50 color_convert_common( unsigned char *pY, unsigned char *pUV, int width, int height, unsigned char *buffer, int size, int gray, int rotate, rgb_cb cb) argument
191 convert(const char *infile, const char *outfile, int height, int width, int gray, int type, int rotate) argument
273 int height, width, gray, rotate; local
[all...]
H A Dcmdline.c14 {"height", required_argument, 0, 'h'},
27 "image height in pixels",
40 "\t%s infile --height <height> --width <width> --output <outfile> -t <ppm|grb|argb> [ --gray ] [ --rotate <degrees> ] [ --verbose ]\n"
59 int *height,
68 ASSERT(height); *height = -1;
124 SET_INT_OPTION(height);
57 get_options(int argc, char **argv, char **outfile, int *height, int *width, int *gray, char **type, int *rotate, int *verbose) argument
/development/tools/emulator/system/camera/fake-pipeline2/
H A DBase.h38 uint32_t width, height; member in struct:android::StreamBuffer
48 uint32_t width, height; member in struct:android::Stream
55 uint32_t width, height; member in struct:android::ReprocessStream
/development/tools/emulator/opengl/system/GLESv2_enc/
H A DGL2EncoderUtils.cpp21 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pack) argument
25 return ctx->state()->pixelDataSize(width, height, format, type, pack);
28 size_t pixelDataSize3D(void *self, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, int pack) argument
30 size_t layerSize = pixelDataSize(self, width, height, format, type, pack);
H A DGL2EncoderUtils.h20 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pack);
21 size_t pixelDataSize3D(void *self, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, int pack);
/development/samples/BrowserPlugin/jni/animation/
H A DAnimationThread.cpp63 SkBitmap* AnimationThread::constructBitmap(int width, int height) { argument
65 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
95 int width, height; local
96 getDimensions(width, height);
98 if (m_bitmap->width() != width || m_bitmap->height() != height) {
101 m_bitmap = constructBitmap(width, height);
106 m_dy = height * .007f;
112 const float OH = height * .125f;
119 bounce(&m_y, &m_dy, height
[all...]
/development/samples/BrowserPlugin/src/com/android/sampleplugin/
H A DPaintSurface.java45 public PaintSurface(Context context, int NPP, int width, int height) { argument
53 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
56 nativeSurfaceChanged(npp, format, width, height);
79 this.getHolder().setFixedSize(width, height);
93 private native void nativeSurfaceChanged(int npp, int format, int width, int height); argument
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DCameraPreview.java199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
211 final int height = resolveSize(getSuggestedMinimumHeight(), heightMeasureSpec);
212 setMeasuredDimension(width, height);
215 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, height);
225 final int height = b - t;
228 int previewHeight = height;
231 previewHeight = mPreviewSize.height;
235 if (width * previewHeight > height * previewWidth) {
236 final int scaledChildWidth = previewWidth * height / previewHeight;
238 (width + scaledChildWidth) / 2, height);
[all...]
H A DFrameBufferObjectActivity.java80 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
83 mSurfaceHeight = height;
84 gl.glViewport(0, 0, width, height);
98 private void drawOnscreen(GL10 gl, int width, int height) { argument
99 gl.glViewport(0, 0, width, height);
100 float ratio = (float) width / height;
136 private void drawOffscreenImage(GL10 gl, int width, int height) { argument
137 gl.glViewport(0, 0, width, height);
138 float ratio = (float) width / height;
174 private int createTargetTexture(GL10 gl, int width, int height) { argument
194 createFrameBuffer(GL10 gl, int width, int height, int targetTextureId) argument
[all...]
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
H A DCameraFragment.java218 final int height = resolveSize(getSuggestedMinimumHeight(),
220 setMeasuredDimension(width, height);
224 height);
229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
241 final int height = b - t;
244 int previewHeight = height;
247 previewHeight = mPreviewSize.height;
251 if (width * previewHeight > height * previewWidth) {
252 final int scaledChildWidth = previewWidth * height
255 (width + scaledChildWidth) / 2, height);
[all...]
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
H A DImageResizer.java31 * and height. Useful for when the input images might be too large to simply load directly into
40 * Initialize providing a single target image size (used for both width and height);
52 * Initialize providing a single target image size (used for both width and height);
63 * Set the target image width and height.
66 * @param height
68 public void setImageSize(int width, int height) { argument
70 mImageHeight = height;
74 * Set the target image size (width and height will be the same).
102 * Decode and sample down a bitmap from resources to the requested width and height.
107 * @param reqHeight The requested height o
[all...]
/development/tools/etc1tool/
H A Detc1tool.cpp25 int writePNGFile(const char* pOutput, png_uint_32 width, png_uint_32 height,
144 png_uint_32 height = 0; local
196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
202 pSourceImage = new etc1_byte[stride * height];
208 for (etc1_uint32 y = 0; y < height; y++) {
213 *pHeight = height;
243 png_uint_32 height = 0; local
265 height = etc1_pkm_get_height(header);
266 encodedSize = etc1_get_encoded_data_size(width, height);
284 pImageData = new png_byte[stride * height];
316 etc1_uint32 height = 0; local
405 writePNGFile(const char* pOutput, png_uint_32 width, png_uint_32 height, const png_bytep pImageData, png_uint_32 imageStride) argument
457 etc1_uint32 height = 0; local
[all...]
/development/ndk/platforms/android-9/include/android/
H A Dnative_window.h43 int32_t height; member in struct:ANativeWindow_Buffer
77 * Return the current height in pixels of the window surface. Returns a
91 * The width and height control the number of pixels in the buffers, not the
99 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format);
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
H A DNativeMedia.java76 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
77 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height="
78 + height);
98 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
99 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height="
100 + height);
122 int height = mediaPlayer.getVideoHeight();
123 Log.v(TAG, "onPrepared width=" + width + ", height=" + height);
124 if (width != 0 && height !
345 setFixedSize(int width, int height) argument
359 setFixedSize(int width, int height) argument
388 setFixedSize(int width, int height) argument
[all...]
/development/tools/emulator/opengl/system/renderControl_enc/
H A DrenderControl_entry.cpp19 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height);
21 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat);
32 void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels);
33 int rcUpdateColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels);
103 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height) argument
106 return ctx->rcCreateWindowSurface(ctx, config, width, height);
115 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat) argument
118 return ctx->rcCreateColorBuffer(ctx, width, height, internalFormat);
181 void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) argument
184 ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, forma
187 rcUpdateColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) argument
[all...]
/development/samples/BrowserPlugin/jni/
H A DRenderingThread.cpp86 void RenderingThread::setDimensions(int width, int height) { argument
89 m_height = height;
92 void RenderingThread::getDimensions(int& width, int& height) { argument
95 height = m_height;
147 bitmap.height(), WINDOW_FORMAT_RGBA_8888);
175 if (bitmap.height() == 0 || bitmap.width() == 0)
190 for (row = 0 ; row < bitmap.height(); row ++) {
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
H A DLabelMaker.java54 * the strike width and height must be powers of two,
60 * @param strikeHeight height of strike
201 int height = Math.max(minHeight, textHeight + padHeight);
203 int effectiveTextHeight = height - padHeight;
228 lineHeight = Math.max(lineHeight, height);
235 int v2 = v + height;
238 background.setBounds(u, v, u + width, v + height);
253 mLabels.add(new Label(width, height, ascent,
254 u, v + height, width, -height));
371 Label(float width, float height, float baseLine, int cropU, int cropV, int cropW, int cropH) argument
385 public float height; field in class:LabelMaker.Label
[all...]

Completed in 666 milliseconds

123456