/frameworks/base/media/java/android/media/tv/ |
H A D | TvView.java | 109 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 111 Log.d(TAG, "surfaceChanged(holder=" + holder + ", format=" + format + ", width=" 112 + width + ", height=" + height + ")"); 115 mSurfaceWidth = width; 590 int width = mSurfaceView.getMeasuredWidth(); 593 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, childState), 602 int width = getWidth(); 604 if (width > 0 && height > 0) { 609 region.op(left, top, left + width, top + height, Region.Op.UNION); 685 private void dispatchSurfaceChanged(int format, int width, in argument 793 onVideoSizeChanged(String inputId, int width, int height) argument 990 onVideoSizeChanged(Session session, int width, int height) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 98 void setBufferWidth(int width) { mWidth = width; } argument 293 uint32_t width = buffer->width; local 297 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; 301 uint8_t* header = jpegBuffer + (width - sizeof(struct camera3_jpeg_blob)); 316 ALOGW("%s: No JPEG header detected, defaulting to size=width=%d", 317 __FUNCTION__, width); 318 size = width; 681 ImageReader_init(JNIEnv* env, jobject thiz, jobject weakThiz, jint width, jint height, jint format, jint maxImages) argument [all...] |
H A D | android_media_MediaMetadataRetriever.cpp | 176 static void rotate0(T* dst, const T* src, size_t width, size_t height) argument 178 memcpy(dst, src, width * height * sizeof(T)); 182 static void rotate90(T* dst, const T* src, size_t width, size_t height) argument 185 for (size_t j = 0; j < width; ++j) { 186 dst[j * height + height - 1 - i] = src[i * width + j]; 192 static void rotate180(T* dst, const T* src, size_t width, size_t height) argument 195 for (size_t j = 0; j < width; ++j) { 196 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width 202 rotate270(T* dst, const T* src, size_t width, size_t height) argument 212 rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 260 uint32_t width, height; local [all...] |
H A D | android_media_MediaRecorder.cpp | 269 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument 271 ALOGV("setVideoSize(%d, %d)", width, height); 274 if (width <= 0 || height <= 0) { 278 process_media_recorder_call(env, mr->setVideoSize(width, height), "java/lang/RuntimeException", "setVideoSize failed.");
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
H A D | Effect.java | 55 * <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 D | FilterEffect.java | 85 protected Frame frameFromTexture(int texId, int width, int height) { argument 87 FrameFormat format = ImageFormat.create(width, height,
|
H A D | FilterGraphEffect.java | 83 public void apply(int inputTexId, int width, int height, int outputTexId) { argument 88 src.setInputValue("width", width);
|
H A D | SingleFilterEffect.java | 67 public void apply(int inputTexId, int width, int height, int outputTexId) { argument 70 Frame inputFrame = frameFromTexture(inputTexId, width, height); 71 Frame outputFrame = frameFromTexture(outputTexId, width, height);
|
H A D | SizeChangeEffect.java | 41 public void apply(int inputTexId, int width, int height, int outputTexId) { argument 44 Frame inputFrame = frameFromTexture(inputTexId, width, height);
|
/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
H A D | IdentityEffect.java | 34 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);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FilterSurfaceView.java | 117 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 D | GLEnvironment.java | 110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { argument 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); argument
|
H A D | GLFrame.java | 127 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 D | MutableFrameFormat.java | 64 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 D | ShaderProgram.java | 184 public void setSourceRect(float x, float y, float width, float height) { argument 185 setSourceRegion(x, y, x + width, y, x, y + height, x + width, y + height); 188 public void setTargetRect(float x, float y, float width, float height) { argument 189 setTargetRegion(x, y, x + width, y, x, y + height, x + width, y + height);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
H A D | ImageFormat.java | 36 public static MutableFrameFormat create(int width, argument 42 result.setDimensions(width, height); 51 public static MutableFrameFormat create(int width, argument 55 return create(width,
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Rectangle.java | 31 public Rectangle(float x, float y, float width, float height) { argument 33 new Point(x + width, y), 35 new Point(x + width, y + height));
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_environment.cpp | 196 jint width, 211 // anyway), but do care about width and height 215 ANativeWindow_setBuffersGeometry(window, width, height, 0); 193 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
|
H A D | jni_gl_frame.cpp | 47 jint width, 52 if (frame->Init(width, height)) { 64 jint width, 69 if (frame->InitWithTexture(tex_id, width, height)) { 81 jint width, 86 if (frame->InitWithFbo(fbo_id, width, height)) { 252 jint width, 255 return frame ? ToJBool(frame->SetViewport(x, y, width, height)) : JNI_FALSE; 44 Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env, jobject thiz, jobject gl_env, jint width, jint height) argument 60 Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env, jobject thiz, jobject gl_env, jint tex_id, jint width, jint height) argument 77 Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env, jobject thiz, jobject gl_env, jint fbo_id, jint width, jint height) argument 248 Java_android_filterfw_core_GLFrame_setNativeViewport(JNIEnv* env, jobject thiz, jint x, jint y, jint width, jint height) argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.h | 72 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 D | gl_frame.cpp | 56 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...] |
H A D | shader_program.cpp | 230 void ShaderProgram::SetSourceRect(float x, float y, float width, float height) { argument 232 Point(x + width, y), 234 Point(x + width, y + height)); 246 void ShaderProgram::SetTargetRect(float x, float y, float width, float height) { argument 248 Point(x + width, y), 250 Point(x + width, y + height));
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | AutoFixFilter.java | 269 private void createHistogramFrame(FilterContext context, int width, int height, int[] data) { argument 275 int x_border_thickness = (int) (width * border_thickness_ratio); 276 int pixels = (width - 2 * x_border_thickness) * (height - 2 * y_border_thickness); 280 for (int x = x_border_thickness; x < width - x_border_thickness; ++x) { 281 int index = y * width + x;
|
H A D | CropRectFilter.java | 39 @GenerateFieldPort(name = "width") 119 void updateSourceRect(int width, int height) { argument 120 mWidth = width;
|
H A D | FisheyeFilter.java | 136 private void updateFrameSize(int width, int height) { argument 137 mWidth = width;
|