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

1234567891011>>

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
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.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;
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java169 int width = pixels.getWidth();
172 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
173 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
179 nativeSetThumbnail(rgbBuffer, width, height);
210 int width = pixels.getWidth();
213 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
214 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
220 nativeSetThumbnail(rgbBuffer, width, heigh
472 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
644 nativeSetThumbnail(ByteBuffer buffer, int width, int height) argument
646 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument
651 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/base/libs/hwui/tests/common/scenes/
H A DRecentsAnimation.cpp31 void createContent(int width, int height, TestCanvas& renderer) override {
39 thumbnailSize = std::min(std::min(width, height) / 2, 720);
40 int cardsize = std::min(width, height) - dp(64);
71 sp<RenderNode> createCard(int x, int y, int width, int height, argument
73 return TestUtils::createNode(x, y, x + width, y + height,
74 [&thumb, width, height](RenderProperties& props, TestCanvas& canvas) {
76 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1);
80 canvas.drawBitmap(thumb, 0, 0, thumb.width(), thumb.height(),
81 0, 0, width, height, nullptr);
/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/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...]
H A DPicture.h41 Canvas* beginRecording(int width, int height);
45 int width() const;
/frameworks/base/libs/hwui/
H A DTexture.cpp86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument
87 if (mWidth == width && mHeight == height && mFormat == format) {
90 mWidth = width;
104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height, argument
107 bool needsAlloc = updateSize(width, height, internalformat);
125 GLsizei width, GLsizei height, const GLvoid * data) {
127 const bool useStride = stride != width
129 if ((stride == width) || useStride) {
135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, heigh
124 uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument
265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument
[all...]
H A DPixelBuffer.h67 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
112 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0;
122 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument
123 upload(x, y, width, height, getOffset(x, y));
127 * Returns the width of the render buffer in pixels.
195 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
196 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
/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/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);
/frameworks/native/libs/gui/
H A DGraphicBufferAlloc.cpp34 sp<GraphicBuffer> GraphicBufferAlloc::createGraphicBuffer(uint32_t width, argument
37 new GraphicBuffer(width, height, format, usage));
46 width, height, strerror(-err), graphicBuffer->handle);
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DAccessibilityNodeInfoHelper.java31 * @param width pixel width of the display
35 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height) { argument
46 displayRect.right = width;
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp43 uint32_t width = computeIdealDimension(viewportWidth); local
45 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
47 texture.resize(width, height, GL_RGBA);
54 const float texX = 1.0f / static_cast<float>(texture.width());
76 const float texX = 1.0f / float(texture.width());
106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height());
126 int deltaInt = int(lhs.width) - int(rhs.width);
141 const uint32_t width, const uint32_t height) {
144 Entry entry(width, heigh
140 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument
162 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument
[all...]

Completed in 596 milliseconds

1234567891011>>