Searched refs:width (Results 1 - 25 of 67) sorted by relevance

123

/system/media/mca/filterfw/native/core/
H A Dgeometry.cpp73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
77 const float current_ratio = width / height;
79 const float dx = width * (ratio / current_ratio - 1.0f);
81 width += dx;
91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
95 const float current_length = width > height ? width : height;
97 const float dx = width * (length / current_length - 1.0f);
99 width += dx;
108 if (width <
[all...]
H A Dgeometry.h72 float x, y, width, height; member in struct:android::filterfw::Rect
76 width = height = 1.0f;
79 Rect(float x, float y, float width, float height) { argument
82 this->width = width;
H A Dgl_frame.h46 // Initialize a GL frame to the given width, height, format. Also specify
48 bool Init(int width, int height);
54 bool InitWithTexture(GLint texture_id, int width, int height);
57 bool InitWithFbo(GLint fbo_id, int width, int height);
93 bool SetViewport(int x, int y, int width, int height);
130 void InitDimensions(int width, int height);
185 // The width, height and format of the frame
H A Dgl_frame.cpp56 bool GLFrame::Init(int width, int height) { argument
59 InitDimensions(width, height);
65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) { argument
68 InitDimensions(width, height);
72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) { argument
76 InitDimensions(width, height);
87 void GLFrame::InitDimensions(int width, int height) { argument
88 width_ = width;
90 vp_width_ = width;
187 bool GLFrame::SetViewport(int x, int y, int width, in argument
[all...]
/system/media/mca/effect/java/android/media/effect/
H A DEffect.java55 * <p>The input texture must be a valid texture name with the given width and height and must be
70 * @param width The width of the input texture in pixels.
74 public abstract void apply(int inputTexId, int width, int height, int outputTexId); argument
H A DSingleFilterEffect.java70 public void apply(int inputTexId, int width, int height, int outputTexId) { argument
73 Frame inputFrame = frameFromTexture(inputTexId, width, height);
74 Frame outputFrame = frameFromTexture(outputTexId, width, height);
H A DFilterEffect.java88 protected Frame frameFromTexture(int texId, int width, int height) { argument
90 FrameFormat format = ImageFormat.create(width, height,
H A DSizeChangeEffect.java47 public void apply(int inputTexId, int width, int height, int outputTexId) { argument
50 Frame inputFrame = frameFromTexture(inputTexId, width, height);
/system/core/toolbox/
H A Dr.c15 int width = 4, set = 0, fd; local
24 width = 1;
28 width = 2;
41 endaddr = addr + width - 1;
72 switch(width){
92 addr += width;
/system/media/mca/filterpacks/base/native/
H A Dgeometry.cpp72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
76 const float current_ratio = width / height;
78 const float dx = width * (ratio / current_ratio - 1.0f);
80 width += dx;
90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
94 const float current_length = width > height ? width : height;
96 const float dx = width * (length / current_length - 1.0f);
98 width += dx;
107 if (width <
[all...]
H A Dgeometry.h80 float width() const { return width_; } function in class:android::filterfw::SlantedRect
89 float x, y, width, height; member in struct:android::filterfw::Rect
93 width = height = 1.0f;
96 Rect(float x, float y, float width, float height) { argument
99 this->width = width;
/system/media/mca/effect/java/android/media/effect/effects/
H A DIdentityEffect.java34 public void apply(int inputTexId, int width, int height, int outputTexId) { argument
37 Frame inputFrame = frameFromTexture(inputTexId, width, height);
38 Frame outputFrame = frameFromTexture(outputTexId, width, height);
/system/core/libpixelflinger/
H A Draster.h28 void gglCopyPixels(void* c, GGLint x, GGLint y, GGLsizei width, GGLsizei height, GGLenum type);
H A Draster.cpp30 GGLsizei width, GGLsizei height, GGLenum type);
54 GGLsizei width, GGLsizei height, GGLenum type)
62 if (uint32_t(xs) > cb->width)
66 if (uint32_t(xs + width) > cb->width)
80 width -= offset;
88 if ((xd + width) > GGLint(c->state.scissor.right)) {
89 width = GGLint(c->state.scissor.right) - xd;
95 if (width<=0 || height<=0) {
111 const size_t rowsize = width * f
53 ggl_copyPixels(void* con, GGLint xs, GGLint ys, GGLsizei width, GGLsizei height, GGLenum type) argument
[all...]
/system/media/mca/filterfw/java/android/filterfw/core/
H A DMutableFrameFormat.java64 public void setDimensions(int width, int height) { argument
66 dimensions[0] = width;
72 public void setDimensions(int width, int height, int depth) { argument
74 dimensions[0] = width;
H A DGLFrame.java127 int width = getFormat().getWidth();
129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) {
137 int width = getFormat().getWidth();
139 if (!nativeAllocateWithFbo(mGLEnvironment, fboId, width, height)) {
276 public void setViewport(int x, int y, int width, int height) { argument
278 setNativeViewport(x, y, width, height);
364 private native boolean nativeAllocate(GLEnvironment env, int width, int height); argument
368 int width,
373 int width,
396 private native boolean setNativeViewport(int x, int y, int width, in argument
366 nativeAllocateWithTexture(GLEnvironment env, int textureId, int width, int height) argument
371 nativeAllocateWithFbo(GLEnvironment env, int fboId, int width, int height) argument
[all...]
H A DFilterSurfaceView.java117 int width,
121 mWidth = width;
127 mListener.surfaceChanged(holder, format, width, height);
115 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
H A DGLEnvironment.java106 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { argument
107 int result = nativeAddSurfaceTexture(surfaceTexture, width, height);
167 private native int nativeAddSurfaceTexture(SurfaceTexture surface, int width, int height); argument
/system/media/mca/filterfw/java/android/filterfw/format/
H A DImageFormat.java36 public static MutableFrameFormat create(int width, argument
42 result.setDimensions(width, height);
51 public static MutableFrameFormat create(int width, argument
55 return create(width,
/system/media/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DNativeMedia.java86 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
87 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" + height);
107 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
108 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" + height);
129 int width = mediaPlayer.getVideoWidth();
131 Log.v(TAG, "onPrepared width=" + width + ", height=" + height);
132 if (width !
344 setFixedSize(int width, int height) argument
358 setFixedSize(int width, int height) argument
380 setFixedSize(int width, int height) argument
[all...]
/system/core/init/
H A Dutil.c253 int width; local
258 width = slash - pathname;
260 if (width < 0)
262 if (width == 0)
264 if ((unsigned int)width > sizeof(buf) - 1) {
268 memcpy(buf, pathname, width);
269 buf[width] = 0;
295 int width; local
300 width = slash - newpath;
301 if (width <
[all...]
/system/core/adb/
H A Dframebuffer_service.c40 unsigned int width; member in struct:fbinfo
89 fbinfo.width = w;
103 fbinfo.width = w;
117 fbinfo.width = w;
131 fbinfo.width = w;
145 fbinfo.width = w;
/system/extras/tests/framebuffer/
H A Dmdp_test.c95 static int get_framebuffer(int *fd, char **fb, int *width, int *height) argument
122 *width = vi.xres;
174 int fb_fd, width, height; local
273 if (get_framebuffer(&fb_fd, &fb, &width, &height)) {
281 src_imgw = width;
286 dst_imgw = width;
295 req->src.width = src_imgw;
305 req->dst.width = dst_imgw;
/system/core/sh/
H A Doutput.c267 * - An * may be given for the width or precision.
268 * - The obsolete practice of preceding the width with a zero to get
294 int width;
319 width = 0;
333 width = va_arg(ap, int);
337 width = 10 * width + digit_val(*f++);
419 if (width) {
424 pad = width - size;
443 if (width) {
[all...]
/system/media/mca/filterpacks/videosrc/java/
H A DCameraSource.java57 /** Frame width to request from camera. Actual size may not match requested. */
58 @GenerateFieldPort(name = "width", hasDefault = true)
283 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) { argument
287 int smallestWidth = previewSizes.get(0).width;
294 if ( size.width <= width &&
296 size.width >= closestWidth &&
298 closestWidth = size.width;
301 if ( size.width < smallestWidth &&
303 smallestWidth = size.width;
[all...]

Completed in 408 milliseconds

123