Searched refs:width (Results 51 - 75 of 1506) sorted by relevance

1234567891011>>

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp42 void computeGradient(unsigned char* dataPtr, int width, int height, short* gxPtr, short* gyPtr) { argument
44 for (int j = 0; j < width; j++) {
46 const int right = (j < width - 1) ? 4 : 0;
47 const int curr = (i * width + j) * 4;
48 const int above = (i > 0) ? curr - 4 * width : curr;
49 const int below = (i < height - 1) ? curr + 4 * width : curr;
50 const int offset = (i * width + j) * 3;
66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer,
78 int numPixels = width * height;
82 computeGradient(srcPtr, width, heigh
65 Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, jobject magBuffer, jobject dirBuffer) argument
[all...]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h15 IonBuffer(uint32_t width, uint32_t height, uint32_t format, uint64_t usage);
16 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
18 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
34 int Alloc(uint32_t width, uint32_t height, uint32_t layer_count,
39 void Reset(buffer_handle_t handle, uint32_t width, uint32_t height,
46 int Import(buffer_handle_t handle, uint32_t width, uint32_t height,
54 int int_count, uint32_t width, uint32_t height,
64 int Lock(uint32_t usage, int x, int y, int width, int height, void** address);
65 int LockYUV(uint32_t usage, int x, int y, int width, int height,
73 uint32_t width() cons function in class:android::dvr::IonBuffer
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchingTaskPositioner.java94 int width = mAvailableRect.width();
96 mDefaultFreeformStartX = mAvailableRect.left + width / MARGIN_SIZE_DENOMINATOR;
98 mDefaultFreeformWidth = width / WINDOW_SIZE_DENOMINATOR;
100 mDefaultFreeformStepHorizontal = Math.max(width / STEP_DENOMINATOR, MINIMAL_STEP);
124 int width = getFinalWidth(windowLayout);
130 positionTopRight(task, tasks, width, height);
132 positionTopLeft(task, tasks, width, height);
136 positionBottomRight(task, tasks, width, height);
138 positionBottomLeft(task, tasks, width, heigh
171 positionBottomLeft(TaskRecord task, ArrayList<TaskRecord> tasks, int width, int height) argument
178 positionBottomRight(TaskRecord task, ArrayList<TaskRecord> tasks, int width, int height) argument
185 positionTopLeft(TaskRecord task, ArrayList<TaskRecord> tasks, int width, int height) argument
192 positionTopRight(TaskRecord task, ArrayList<TaskRecord> tasks, int width, int height) argument
199 positionCenter(TaskRecord task, ArrayList<TaskRecord> tasks, int width, int height) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4dec_lib.h95 void BlockIDCT(uint8 *dst, uint8 *pred, int16 *blk, int width, int nzcoefs,
149 int width, /* i */
163 int width, /* i */
200 int width, /* i */
211 int width,
220 int width, /* i */
227 int width, /* i */
234 int width, /* i */
241 int width, /* i */
252 int width,
[all...]
H A Dpost_filter.cpp43 int width, height; local
50 width = video->width;
52 size = (int32)width * height;
75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod);
83 CombinedHorzVertFilter(output, width, height,
88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height,
94 Deringing_Luma(output, width, height, QP_store,
107 CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mod);
115 CombinedHorzVertFilter(output, (int)(width >>
176 H263_Deblock(uint8 *rec, int width, int height, int16 *QP_store, uint8 *mode, int chr, int annex_T) argument
[all...]
H A Dadaptive_smooth_no_mmx.cpp51 width = value of type int that specifies the width of the display
90 location of pelc0 = [(y_start+1) * width] + x_start
93 incrementing or decrementing "width" elements within Rec_Y.
97 (y_blk_start, x_blk_start). The width and height of the block is BLKSIZE.
219 int width, /* i */
248 addr_v = (int32)(y_start + 1) * width; /* y coord of 1st element in the row /
264 pelu = *(Rec_Y_ptr - width); /* assigning value of pelu0 to pelu */
269 pell = *(Rec_Y_ptr + width); /* assigning value of pell0 to pell */
278 pelu = *(Rec_Y_ptr - width); /* assignin
212 AdaptiveSmooth_NoMMX( uint8 *Rec_Y, int y_start, int x_start, int y_blk_start, int x_blk_start, int thr, int width, int max_diff ) argument
[all...]
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp74 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
78 const float current_ratio = width / height;
80 const float dx = width * (ratio / current_ratio - 1.0f);
82 width += dx;
92 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
96 const float current_length = width > height ? width : height;
98 const float dx = width * (length / current_length - 1.0f);
100 width += dx;
109 if (width <
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DSimpleGradientAnimation.cpp33 void createContent(int width, int height, Canvas& canvas) override {
36 sp<RenderNode> card = createCard(0, 0, width, height);
49 sp<RenderNode> createCard(int x, int y, int width, int height) { argument
50 return TestUtils::createNode(x, y, x + width, y + height,
51 [width, height](RenderProperties& props, Canvas& canvas) {
53 SkPoint pts[] = { SkPoint::Make(0, 0), SkPoint::Make(width, height) };
61 canvas.drawRect(i, i, width, height, paint);
H A DRecentsAnimation.cpp31 void createContent(int width, int height, Canvas& renderer) override {
39 thumbnailSize = std::min(std::min(width, height) / 2, 720);
40 int cardsize = std::min(width, height) - dp(64);
73 sp<RenderNode> createCard(int x, int y, int width, int height, Bitmap& thumb) { argument
74 return TestUtils::createNode(x, y, x + width, y + height,
75 [&thumb, width, height](RenderProperties& props, Canvas& canvas) {
77 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1);
81 canvas.drawBitmap(thumb, 0, 0, thumb.width(), thumb.height(),
82 0, 0, width, height, nullptr);
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java192 int width = pixels.getWidth();
195 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
196 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
202 nativeSetThumbnail(rgbBuffer, width, height);
233 int width = pixels.getWidth();
236 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
237 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
243 nativeSetThumbnail(rgbBuffer, width, heigh
492 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
664 nativeSetThumbnail(ByteBuffer buffer, int width, int height) argument
666 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument
671 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DBlur.cpp95 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) {
101 const uint8_t* input = source + y * width;
102 uint8_t* output = dest + y * width;
104 for (int32_t x = 0; x < width; x ++) {
108 if (x > radius && x < (width - radius)) {
123 if (validW > width - 1) {
124 validW = width - 1;
139 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) {
144 uint8_t* output = dest + y * width;
146 for (int32_t x = 0; x < width;
94 horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
138 vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DSize.java70 flatSizes.add(s.width());
86 int width = Integer.parseInt(flatSizes[i]);
88 list.add(new Size(width,height));
98 public Size(int width, int height) { argument
99 val = new Point(width, height);
109 val = new Point(other.width(), other.height());
122 val = new Point(other.width, other.height);
152 public int width() { method in class:Size
176 return "Size: (" + this.width() + " x " + this.height() + ")";
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
H A DUT_global_query.java31 private boolean Test(int width, int height, int depth) { argument
36 typeBuilder.setX(width);
56 int g[] = new int[width * height * depth];
57 int d[] = new int[width * height * depth];
58 int r[] = new int[width * height * depth];
62 for (int i = 0; i < width * height * depth; i++) {
84 for (int i = 0; i < width * height * depth; i++) {
85 if (r[i] != width) {
86 Log.e(name, "expects " + width + " for element " + i +
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
H A Dh264bsdWriteMacroblock.s27 width RN 2 label
93 LDR width, [image, #4]
101 LSL width, width, #4
103 LSR cwidth, width, #1
104 VST1 {qRow0}, [luma@128], width
106 VST1 {qRow1}, [luma@128], width
108 VST1 {qRow2}, [luma@128], width
110 VST1 {qRow3}, [luma@128], width
112 VST1 {qRow4}, [luma@128], width
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dh264bsdWriteMacroblock.S29 #define width r2 define
95 LDR width, [image, #4]
103 LSL width, width, #4
105 LSR cwidth, width, #1
106 VST1.8 {qRow0}, [luma,:128], width
108 VST1.8 {qRow1}, [luma,:128], width
110 VST1.8 {qRow2}, [luma,:128], width
112 VST1.8 {qRow3}, [luma,:128], width
114 VST1.8 {qRow4}, [luma,:128], width
[all...]
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.h27 * @param width Width of the the Yuv data in terms of pixels.
33 bool encode(SkWStream* stream, void* inYuv, int width,
41 void setJpegCompressStruct(jpeg_compress_struct* cinfo, int width,
55 void deinterleaveYuv(uint8_t* yuv, int width, int height,
58 int rowIndex, int width, int height);
71 uint8_t* vRows, int rowIndex, int width, int height);
H A DYuvToJpegEncoder.cpp26 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, argument
41 setJpegCompressStruct(&cinfo, width, height, jpegQuality);
53 int width, int height, int quality) {
54 cinfo->image_width = width;
84 int width = cinfo->image_width; local
87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
88 uint8_t* uRows = new uint8_t [8 * (width >> 1)];
89 uint8_t* vRows = new uint8_t [8 * (width >> 1)];
95 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height);
104 // height and width ar
52 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument
117 deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
160 int width = cinfo->image_width; local
192 deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
221 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, jint format, jint width, jint height, jintArray offsets, jintArray strides, jint jpegQuality, jobject jstream, jbyteArray jstorage) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
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;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_reconstruct.c100 width width of the reference frame chrominance in pixels
103 chromaPartWidth width of the predicted part in pixels
115 u32 width,
137 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) ||
140 h264bsdFillBlock(pRef, block, x0, y0, width, height,
142 pRef += width * height;
144 x0, y0, width, height, chromaPartWidth + 1,
150 width = chromaPartWidth+1;
159 ptrA = pRef + (comp * height + (u32)y0) * width
110 h264bsdInterpolateChromaHor( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
206 h264bsdInterpolateChromaVer( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
302 h264bsdInterpolateChromaHorVer( u8 *ref, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
428 u32 xFrac, yFrac, width, height, chromaPartWidth, chromaPartHeight; local
491 h264bsdInterpolateVerHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
609 h264bsdInterpolateVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument
743 h264bsdInterpolateHorHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
866 h264bsdInterpolateHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument
1004 h264bsdInterpolateHorVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horVerOffset) argument
1210 h264bsdInterpolateMidHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
1396 h264bsdInterpolateMidVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument
1600 h264bsdInterpolateMidHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument
1834 u32 xFrac, yFrac, width, height; local
1983 u32 width, height; local
2222 h264bsdFillBlock( u8 *ref, u8 *fill, i32 x0, i32 y0, u32 width, u32 height, u32 blockWidth, u32 blockHeight, u32 fillScanLength) argument
[all...]
H A Dh264bsd_reconstruct.h76 u32 width,
87 u32 width,
98 u32 width,
109 u32 width,
121 u32 width,
131 u32 width,
142 u32 width,
152 u32 width,
163 u32 width,
174 u32 width,
[all...]
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp43 status_t FrameOutput::createInputSurface(int width, int height, argument
47 err = mEglWindow.createPbuffer(width, height);
53 glViewport(0, 0, width, height);
76 mGlConsumer->setDefaultBufferSize(width, height);
82 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel];
123 int width = mEglWindow.getWidth(); local
126 width, height, true);
139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf);
147 reduceRgbaToRgb(mPixelBuf, width * height);
155 size_t rgbDataLen = width * heigh
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java30 * <p>This comparator totally orders by rectangle area. Tie-breaks on width.</p>
45 long width = size.getWidth();
47 long area = width * size.getHeight();
51 return (width > width2) ? 1 : -1;
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java108 Bitmap(long nativeBitmap, int width, int height, int density, argument
115 mWidth = width;
143 * width/height values
146 void reinit(int width, int height, boolean requestPremultiplied) { argument
147 mWidth = width;
198 * <p>Modifies the bitmap to have a specified width, height, and {@link
246 public void reconfigure(int width, int height, Config config) { argument
248 if (width <= 0 || height <= 0) {
249 throw new IllegalArgumentException("width and height must be > 0");
255 nativeReconfigure(mNativePtr, width, heigh
273 setWidth(int width) argument
409 checkWidthHeight(int width, int height) argument
737 createBitmap(@onNull Bitmap source, int x, int y, int width, int height) argument
766 createBitmap(@onNull Bitmap source, int x, int y, int width, int height, @Nullable Matrix m, boolean filter) argument
878 createBitmap(int width, int height, @NonNull Config config) argument
896 createBitmap(@ullable DisplayMetrics display, int width, int height, @NonNull Config config) argument
916 createBitmap(int width, int height, @NonNull Config config, boolean hasAlpha) argument
943 createBitmap(int width, int height, @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) argument
966 createBitmap(@ullable DisplayMetrics display, int width, int height, @NonNull Config config, boolean hasAlpha) argument
998 createBitmap(@ullable DisplayMetrics display, int width, int height, @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) argument
1063 createBitmap(@onNull @olorInt int[] colors, int offset, int stride, int width, int height, @NonNull Config config) argument
1090 createBitmap(@onNull DisplayMetrics display, @NonNull @ColorInt int[] colors, int offset, int stride, int width, int height, @NonNull Config config) argument
1131 createBitmap(@onNull @olorInt int[] colors, int width, int height, Config config) argument
1155 createBitmap(@ullable DisplayMetrics display, @NonNull @ColorInt int colors[], int width, int height, @NonNull Config config) argument
1639 getPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1681 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1756 setPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1917 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable, @Nullable @Size(9) float[] xyzD50, @Nullable ColorSpace.Rgb.TransferParameters p) argument
1928 nativeReconfigure(long nativeBitmap, int width, int height, int config, boolean isPremultiplied) argument
1939 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1944 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/base/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);
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAsyncStructure.java38 final int width = getWidth();
50 child.setDimens(width / 4, height / 4, 0, 0, width / 2, height / 2);

Completed in 596 milliseconds

1234567891011>>