/frameworks/av/media/libstagefright/ |
H A D | CameraSource.cpp | 139 size.height = -1; 190 mVideoSize.height = -1; 232 * Check to see whether the requested video width and height is one 235 * @param height the video frame height in pixels 237 * @return true if the dimension (width and height) is supported. 240 int32_t width, int32_t height, 246 height == supportedSizes[i].height) { 303 * (width and height) an 239 isVideoSizeSupported( int32_t width, int32_t height, const Vector<Size>& supportedSizes) argument 316 configureCamera( CameraParameters* params, int32_t width, int32_t height, int32_t frameRate) argument 392 checkVideoSize( const CameraParameters& params, int32_t width, int32_t height) argument [all...] |
H A D | Utils.cpp | 99 int32_t width, height; local 101 CHECK(meta->findInt32(kKeyHeight, &height)); 104 msg->setInt32("height", height); 110 msg->setInt32("sar-height", sarHeight); 483 int32_t height; local 484 if (msg->findInt32("width", &width) && msg->findInt32("height", &height)) { 486 meta->setInt32(kKeyHeight, height); 488 ALOGW("did not find width and/or height"); [all...] |
H A D | avc_utils.cpp | 65 int32_t *width, int32_t *height, 134 *height = (2 - frame_mbs_only_flag) 168 *height -= 332 int32_t width, height; local 335 seqParamSet, &width, &height, &sarWidth, &sarHeight); 379 meta->setInt32(kKeyHeight, height); 390 height, 399 height, 500 const uint8_t *data, size_t size, int32_t *width, int32_t *height) { 574 *height 63 FindAVCDimensions( const sp<ABuffer> &seqParamSet, int32_t *width, int32_t *height, int32_t *sarWidth, int32_t *sarHeight) argument 499 ExtractDimensionsFromVOLHeader( const uint8_t *data, size_t size, int32_t *width, int32_t *height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
H A D | avcapi_common.h | 148 /** In/Out: Coded height of the luma component, must be multiple of 16. */ 149 int height; member in struct:tagAVCFrameIO 154 /** In/Out: Display height, less than height */
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | avcenc_api.h | 100 int height; /* height of an input frame in pixel */ member in struct:tagAVCEncParam
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 70 320 /* width */, 240 /* height */, callbacks, 711 uint32_t height = s_dec_op.u4_pic_ht; local 713 handlePortSettingsChange(&portWillReset, width, height);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | pvdec_api.cpp | 68 int32 *volbuf_size, int nLayers, int width, int height, MP4DecodingMode mode) 238 /* Set max width and height. In H.263 mode, we use */ 240 /* to pass in height. 04/23/2001 */ 252 video->displayHeight = height; 254 video->height = (height + 15) & -16; 255 video->size = (int32)video->width * video->height; 271 status = PVAllocVideoData(decCtrl, width, height, nLayers); 285 Bool PVAllocVideoData(VideoDecControls *decCtrl, int width, int height, int nLayers) argument 296 video->displayHeight = height; 67 PVInitVideoDecoder(VideoDecControls *decCtrl, uint8 *volbuf[], int32 *volbuf_size, int nLayers, int width, int height, MP4DecodingMode mode) argument 730 PVGetBufferDimensions(VideoDecControls *decCtrl, int32 *width, int32 *height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/ |
H A D | mp4enc_api.h | 121 Int height; /* height for Y */ member in struct:tagvideoEncFrameIO 157 /** @brief Specifies encoded heights in pixels, height[n] represents the n-th layer's height. */
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 38 Int width, Int height, Int rnd1); 107 Int height, pitch, pitch_uv, height_uv; local 119 height = currVop->height; 121 height_uv = height >> 1; 1521 Int width, Int height, Int rnd1) 1552 else if ((ypos >> 1) < (height - 8)) /* pad left of frame */ 1573 src = c_prev + (height - 1) * lx; 1623 src = c_prev + (xpos >> 1) - xoffset + (height - 1) * lx; 1670 else if ((ypos >> 1) < (height 1520 EncGetPredOutside(Int xpos, Int ypos, UChar *c_prev, UChar *rec, Int width, Int height, Int rnd1) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_reconstruct.c | 101 height height of the reference frame chrominance in pixels 104 chromaPartHeight height of the predicted part in pixels 116 u32 height, 138 (y0 < 0) || ((u32)y0+chromaPartHeight > height)) 140 h264bsdFillBlock(pRef, block, x0, y0, width, height, 142 pRef += width * height; 144 x0, y0, width, height, chromaPartWidth + 1, 151 height = chromaPartHeight; 159 ptrA = pRef + (comp * height 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...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 61 int32_t height, 68 mHeight(height), 354 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { 361 for (size_t y = height; y > 0; --y) { 368 for (size_t y = height >> 1; y > 0; --y) { 378 for (size_t y = height >> 1; y > 0; --y) { 395 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) { 397 int32_t outYsize = width * height; 408 for (int32_t i = height >> 1; i > 0; --i) { 426 const uint8_t *src, size_t width, size_t height, size_ 54 SoftVideoEncoderOMXComponent( const char *name, const char *componentRole, OMX_VIDEO_CODINGTYPE codingType, const CodecProfileLevel *profileLevels, size_t numProfileLevels, int32_t width, int32_t height, const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData, OMX_COMPONENTTYPE **component) argument 352 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument 394 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument 424 ConvertRGB32ToPlanar( uint8_t *dstY, size_t dstStride, size_t dstVStride, const uint8_t *src, size_t width, size_t height, size_t srcStride, bool bgr) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyTransmitter.h | 108 int height = 480; local 110 sp<MediaSource> source = new VideoSource(width, height); 115 encMeta->setInt32(kKeyHeight, height); 180 int32_t width, height; local 182 CHECK(meta->findInt32(kKeyHeight, &height)); 190 sdp.append(height); 199 sdp.append(height);
|
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 353 void oneBufferPass(int width, int height ); 354 void oneBufferPassNoFill(int width, int height ); 391 int outputFormat, int videoEncoder, int width, int height, int fps); 468 int outputFormat, int videoEncoder, int width, int height, int fps) { 474 mr->setVideoSize(width, height); 509 void SurfaceMediaSourceTest::oneBufferPass(int width, int height ) { 519 SurfaceMediaSourceTest::fillYV12Buffer(img, width, height, buf->getStride()); 528 int /* width */, int /* height */) { 640 // Pass the buffer with the wrong height and weight and should not be accepted 467 setUpMediaRecorder(int fd, int videoSource, int outputFormat, int videoEncoder, int width, int height, int fps) argument
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 26 YUVImage::YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height) { argument 29 mHeight = height; 31 size_t numberOfBytes = bufferSize(yuvFormat, width, height); 39 YUVImage::YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer) { argument 42 mHeight = height; 50 size_t YUVImage::bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height) { argument 51 int32_t numberOfPixels = width*height; 205 int32_t height = srcRect.height(); local 239 for (int32_t offsetY = 0; offsetY < height; 287 int32_t height = srcRect.height(); local [all...] |
/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 311 status_t CameraDeviceClient::createStream(int width, int height, int format, argument 315 ALOGV("%s (w = %d, h = %d, f = 0x%x)", __FUNCTION__, width, height, format); 378 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { 379 ALOGE("%s: Camera %d: Failed to query Surface height", __FUNCTION__, 399 if (flexibleConsumer && !CameraDeviceClient::roundBufferDimensionNearest(width, height, 400 format, mDevice->info(), /*out*/&width, /*out*/&height)) { 407 res = mDevice->createStream(anw, width, height, format, &streamId); 441 bool CameraDeviceClient::roundBufferDimensionNearest(int32_t width, int32_t height, argument 460 if (w == width && h == height) { 462 bestHeight = height; [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 124 const int h = bitmap.height(); 188 const int h = bitmap.height(); 349 updateRect.height()); 479 int fps, width, height, count, pause; local 484 if (sscanf(l, "%d %d %d", &width, &height, &fps) == 3) { 485 // ALOGD("> w=%d, h=%d, fps=%d", width, height, fps); 487 animation.height = height; 577 const int yc = ((mHeight - animation.height) / 2); 582 clearReg.subtractSelf(Rect(xc, yc, xc+animation.width, yc+animation.height)); [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityOptions.java | 96 * Initial height of the animation. 275 * @param height The initial height of the new activity. 280 int startX, int startY, int width, int height) { 289 opts.mHeight = height; 279 makeScaleUpAnimation(View source, int startX, int startY, int width, int height) argument
|
H A D | NativeActivity.java | 108 int format, int width, int height); 270 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 273 onSurfaceChangedNative(mNativeHandle, holder.getSurface(), format, width, height); 107 onSurfaceChangedNative(long handle, Surface surface, int format, int width, int height) argument
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyCameraDevice.java | 522 * @return the width and height of the surface 565 static void configureSurface(Surface surface, int width, int height, argument 569 checkArgumentPositive(height, "height must be positive."); 571 LegacyExceptionUtils.throwOnError(nativeConfigureSurface(surface, width, height, 576 int height, int pixelFormat) 581 checkArgumentPositive(height, "height must be positive."); 583 LegacyExceptionUtils.throwOnError(nativeProduceFrame(surface, pixelBuffer, width, height, 594 static void setSurfaceDimens(Surface surface, int width, int height) argument 575 produceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument 658 nativeConfigureSurface(Surface surface, int width, int height, int pixelFormat) argument 661 nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, int height, int pixelFormat) argument 666 nativeSetSurfaceDimens(Surface surface, int width, int height) argument [all...] |
H A D | SurfaceTextureRenderer.java | 74 int height; field in class:SurfaceTextureRenderer.EGLSurfaceHolder 251 private void drawFrame(SurfaceTexture st, int width, int height, int flipType) { argument 274 RectF output = new RectF(/*left*/0, /*top*/0, /*right*/width, /*bottom*/height); 282 float scaleY = intermediate.height() / output.height(); 292 width + "x" + height + " surface, intermediate buffer size is " + texWidth + 297 GLES20.glViewport(0, 0, width, height); 470 int length = holder.width * holder.height; 475 EGL14.EGL_HEIGHT, holder.height, 565 path.append(String.format("_%d_%d", surface.width, surface.height)); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Surface.java | 348 * Sets the translator used to scale canvas's width/height in compatibility 534 * <li>Returns the width and height of the target metrics, rather than 584 Canvas lockCanvas(int width, int height) { argument 588 mCanvas = mRenderNode.start(width, height);
|
/frameworks/base/core/java/android/widget/ |
H A D | ActionMenuView.java | 453 int height = v.getMeasuredHeight(); 463 int t = midVertical - (height / 2); 464 int b = t + height; 484 final int height = v.getMeasuredHeight(); 487 final int t = midVertical - height / 2; 488 v.layout(l, t, l + width, t + height); 506 int height = v.getMeasuredHeight(); 507 int t = midVertical - height / 2; 508 v.layout(startRight - width, t, startRight, t + height); 522 int height 796 LayoutParams(int width, int height) argument 802 LayoutParams(int width, int height, boolean isOverflowButton) argument [all...] |
H A D | FrameLayout.java | 251 * and a height of {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}. 445 lp.height == LayoutParams.MATCH_PARENT) { 456 // Check against our minimum height and width 460 // Check against our foreground's minimum height and width 492 if (lp.height == LayoutParams.MATCH_PARENT) { 501 lp.height); 535 final int height = child.getMeasuredHeight(); 569 childTop = parentTop + (parentBottom - parentTop - height) / 2 + 573 childTop = parentBottom - height - lp.bottomMargin; 579 child.layout(childLeft, childTop, childLeft + width, childTop + height); 751 LayoutParams(int width, int height) argument 767 LayoutParams(int width, int height, int gravity) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuView.java | 151 // Make sure to have some height for the divider 323 * @param menuHeight The height of this menu to assume for positioning 411 // Get the desired height of the icon menu view (last row of items does 417 // Maximum possible width and desired height 757 public LayoutParams(int width, int height) { argument 758 super(width, height);
|
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 54 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, uint8_t* yPlane, argument 58 for (size_t j = 0; j < height; j++) { 85 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { argument 91 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y), 98 int32_t height, 102 err = native_window_set_buffers_dimensions(anw.get(), width, height); 135 width, height, pixelFmt); 152 * height - height of the pixelBuffer in pixels. 181 ALOGE("%s: height mus 96 configureSurface(const sp<ANativeWindow>& anw, int32_t width, int32_t height, int32_t pixelFmt, int32_t maxBufferSlack) argument 189 size_t height = static_cast<size_t>(bufHeight); local 527 LegacyCameraDevice_nativeConfigureSurface(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height, jint pixelFormat) argument 543 LegacyCameraDevice_nativeProduceFrame(JNIEnv* env, jobject thiz, jobject surface, jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) argument 593 LegacyCameraDevice_nativeSetSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument [all...] |