/frameworks/av/media/libstagefright/wifi-display/ |
H A D | VideoFormats.cpp | 184 size_t width, height, fps, score; local 186 if (!GetConfiguration(type, index, &width, &height, 191 score = width * height * fps * (!interlaced + 1); 195 &width, &height, &fps, &interlaced) 196 && score >= width * height * fps * (!interlaced + 1)) { 273 size_t *width, size_t *height, size_t *framesPerSecond, 291 if (height) { 292 *height = config->height; 494 size_t width, height, framesPerSecon local 270 GetConfiguration( ResolutionType type, size_t index, size_t *width, size_t *height, size_t *framesPerSecond, bool *interlaced) argument [all...] |
H A D | VideoFormats.h | 40 size_t width, height, framesPerSecond; member in struct:android::VideoFormats::config_t 91 size_t *width, size_t *height, size_t *framesPerSecond,
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 179 int width, height, mbs; local 181 || !mOutputFormat->findInt32("height", &height)) { 190 mbs = (((width + 15) / 16) * ((height + 15) / 16) * 10) / 100;
|
H A D | PlaybackSession.cpp | 1031 size_t width, height, framesPerSecond; local 1037 &height, 1049 sp<SurfaceMediaSource> source = new SurfaceMediaSource(width, height);
|
H A D | WifiDisplaySource.cpp | 413 0, // height, 419 size_t width, height; local 425 &height, 433 height, 876 size_t width, height, framesPerSecond; local 882 &height, 887 width, height, interlaced ? 'i' : 'p', framesPerSecond);
|
/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/media/ndk/ |
H A D | NdkImage.cpp | 34 int32_t width, int32_t height, int32_t numPlanes) : 37 mWidth(width), mHeight(height), mNumPlanes(numPlanes) { 117 AImage::getHeight(int32_t* height) const { 118 if (height == nullptr) { 121 *height = -1; 126 *height = mHeight; 271 // Single plane 16bpp bayer data. even width/height, 363 dataSize = mBuffer->stride * (mBuffer->height - 1) + mBuffer->width; 365 dataSize = mBuffer->chromaStride * (mBuffer->height / 2 - 1) + 371 cr = mBuffer->data + (mBuffer->stride * mBuffer->height); 32 AImage(AImageReader* reader, int32_t format, CpuConsumer::LockedBuffer* buffer, int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) argument 527 AImage_getHeight(const AImage* image, int32_t* height) argument 562 int32_t height = -1; local [all...] |
H A D | NdkImageReader.cpp | 143 AImageReader::AImageReader(int32_t width, int32_t height, int32_t format, int32_t maxImages) : argument 144 mWidth(width), mHeight(height), mFormat(format), mMaxImages(maxImages), 403 return buffer->height; 440 int32_t width, int32_t height, int32_t format, int32_t maxImages, 444 if (width < 1 || height < 1) { 446 __FUNCTION__, width, height); 467 //*reader = new AImageReader(width, height, format, maxImages); 468 AImageReader* tmpReader = new AImageReader(width, height, format, maxImages); 518 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height) { argument 520 if (reader == nullptr || height 439 AImageReader_new( int32_t width, int32_t height, int32_t format, int32_t maxImages, AImageReader** reader) argument [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraFlashlight.cpp | 381 sp<CameraDeviceBase> &device, int32_t width, int32_t height) { 392 res = mSurfaceTexture->setDefaultBufferSize(width, height); 405 res = device->createStream(mSurface, width, height, format, 420 const camera_info& info, int32_t *width, int32_t *height) { 421 if (!width || !height) { 464 *height = h; 490 int32_t width, height; local 491 res = getSmallestSurfaceSize(info, &width, &height); 495 res = initializeSurface(device, width, height); 786 int32_t *width, int32_t *height) { 380 initializeSurface( sp<CameraDeviceBase> &device, int32_t width, int32_t height) argument 419 getSmallestSurfaceSize( const camera_info& info, int32_t *width, int32_t *height) argument 785 getSmallestSurfaceSize( int32_t *width, int32_t *height) argument 814 initializePreviewWindow( sp<CameraHardwareInterface> device, int32_t width, int32_t height) argument 866 int32_t width, height; local [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | Camera2Client.cpp | 2003 size_t Camera2Client::calculateBufferSize(int width, int height, argument 2007 return width * height * 2; 2009 return width * height * 3 / 2; 2011 return width * height * 2; 2013 size_t ySize = stride * height; 2015 size_t uvSize = uvStride * height / 2; 2019 return width * height * 2; 2021 return width * height * 4; 2023 return width * height * 2;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.cpp | 75 int height = videoEncoderProfiles->getVideoEncoderParamByName( local 76 "enc.vid.height.max", encoders[i]); 77 // Treat width/height separately here to handle the case where different 82 if (height > maxVideoHeight) { 83 maxVideoHeight = height; 100 int newHeight = availablePreviewSizes[i].height; 106 availableVideoSizes[j].height == newHeight) { 131 availablePreviewSizes[i].height); 142 availableVideoSizes[i].height); 286 pictureHeight = availableJpegSizes[0].height; 2662 float left, top, width, height; local 2808 int32_t height = availableStreamConfigs.data.i32[i + STREAM_HEIGHT_OFFSET]; local 2828 int64_t height = availableStreamMinDurations.data.i64[i + STREAM_HEIGHT_OFFSET]; local 2896 int height = availableJpegSizes.data.i32[i + HEIGHT_OFFSET]; local [all...] |
H A D | Parameters.h | 115 int32_t height; member in struct:android::camera2::Parameters::Size 282 float height; member in struct:android::camera2::Parameters::CropRegion 328 // API to HAL3 (0,0)-(activePixelArray.width/height) coordinates 332 // Transform from HAL3 (0,0)-(activePixelArray.width/height) coordinates to 377 int32_t height; member in struct:android::camera2::Parameters::StreamConfiguration 395 // The maximum size is defined by comparing width first, when width ties comparing height.
|
/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 470 int width, height, format; local 479 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { 480 String8 msg = String8::format("Camera %d: Failed to query Surface height: %s (%d)", 509 if (flexibleConsumer && !CameraDeviceClient::roundBufferDimensionNearest(width, height, 510 format, dataSpace, mDevice->info(), /*out*/&width, /*out*/&height)) { 518 err = mDevice->createStream(surface, width, height, format, dataSpace, 525 mCameraId, width, height, format, dataSpace, strerror(-err), err); 561 int width, int height, int format, 566 ALOGV("%s (w = %d, h = %d, f = 0x%x)", __FUNCTION__, width, height, format); 585 status_t err = mDevice->createInputStream(width, height, forma 560 createInputStream( int width, int height, int format, int32_t* newStreamId) argument 632 roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format, android_dataspace dataSpace, const CameraMetadata& info, int32_t* outWidth, int32_t* outHeight) argument [all...] |
H A D | CameraDeviceClient.h | 96 // Create an input stream of width, height, and format. 97 virtual binder::Status createInputStream(int width, int height, int format, 194 static bool roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format, 204 int32_t height; member in struct:android::CameraDeviceClient::InputStreamConfiguration
|
/frameworks/av/services/camera/libcameraservice/common/ |
H A D | CameraModule.cpp | 120 highSpeedConfig.add(entry.data.i32[i + 1]); // height 146 int32_t height = entry.data.i32[i + STREAM_HEIGHT_OFFSET]; local 152 rawOpaqueSizes.push(height); 155 rawOpaqueSizes.push(width * height *2);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 702 int width, int height, int format) 708 hw->mPreviewHeight = height; 710 rc = native_window_set_buffers_dimensions(a, width, height); 701 __set_buffers_geometry(struct preview_stream_ops* w, int width, int height, int format) argument
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Device.cpp | 375 int32_t height = availableStreamConfigs.data.i32[i + STREAM_HEIGHT_OFFSET]; local 379 (width * height > maxJpegWidth * maxJpegHeight)) { 381 maxJpegHeight = height; 446 ssize_t Camera3Device::getJpegBufferSize(uint32_t width, uint32_t height) const { 466 float scaleFactor = ((float) (width * height)) / 467 (maxJpegResolution.width * maxJpegResolution.height); 490 ssize_t Camera3Device::getRawOpaqueBufferSize(int32_t width, int32_t height) const { 506 height == rawOpaqueSizes.data.i32[i + HEIGHT_OFFSET]) { 512 __FUNCTION__, mId, width, height); 846 uint32_t width, uint32_t height, in 845 createInputStream( uint32_t width, uint32_t height, int format, int *id) argument 912 createZslStream( uint32_t width, uint32_t height, int depth, int *id, sp<Camera3ZslStream>* zslStream) argument 991 createStream(sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int *id, int streamSetId) argument 1116 getStreamInfo(int id, uint32_t *width, uint32_t *height, uint32_t *format, android_dataspace *dataSpace) argument 1808 isOpaqueInputSizeSupported(uint32_t width, uint32_t height) argument [all...] |
H A D | Camera3Device.h | 100 uint32_t width, uint32_t height, int format, 104 uint32_t width, uint32_t height, int format, 107 uint32_t width, uint32_t height, 115 uint32_t *width, uint32_t *height, 156 virtual ssize_t getJpegBufferSize(uint32_t width, uint32_t height) const; 158 ssize_t getRawOpaqueBufferSize(int32_t width, int32_t height) const; 212 uint32_t height; member in struct:android::Camera3Device::Size 213 Size(uint32_t w = 0, uint32_t h = 0) : width(w), height(h){} 405 bool isOpaqueInputSizeSupported(uint32_t width, uint32_t height);
|
H A D | Camera3IOStreamBase.cpp | 33 uint32_t width, uint32_t height, size_t maxSize, int format, 36 width, height, maxSize, format, dataSpace, rotation, setId), 78 camera3_stream::width, camera3_stream::height, 32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
|
H A D | Camera3InputStream.cpp | 31 uint32_t width, uint32_t height, int format) : 32 Camera3IOStreamBase(id, CAMERA3_STREAM_INPUT, width, height, /*maxSize*/0, 265 camera3_stream::height); 268 __FUNCTION__, mId, camera3_stream::width, camera3_stream::height); 30 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
|
H A D | Camera3OutputStream.cpp | 36 uint32_t width, uint32_t height, int format, 39 Camera3IOStreamBase(id, CAMERA3_STREAM_OUTPUT, width, height, 59 uint32_t width, uint32_t height, size_t maxSize, int format, 62 Camera3IOStreamBase(id, CAMERA3_STREAM_OUTPUT, width, height, maxSize, 88 uint32_t width, uint32_t height, 93 Camera3IOStreamBase(id, type, width, height, 370 camera3_stream::width, camera3_stream::height); 379 __FUNCTION__, camera3_stream::width, camera3_stream::height, 34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument 57 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument 87 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
|
H A D | Camera3OutputStream.h | 43 uint32_t height; member in struct:android::camera3::StreamInfo 61 height(h), 82 uint32_t width, uint32_t height, int format, 93 uint32_t width, uint32_t height, size_t maxSize, int format, 145 uint32_t width, uint32_t height, int format,
|
H A D | Camera3Stream.cpp | 49 uint32_t width, uint32_t height, size_t maxSize, int format, 67 camera3_stream::height = height; member in class:android::camera3::camera3_stream 95 return camera3_stream::height; 47 Camera3Stream(int id, camera3_stream_type type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
|
H A D | Camera3ZslStream.cpp | 113 Camera3ZslStream::Camera3ZslStream(int id, uint32_t width, uint32_t height, argument 116 width, height,
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 121 const int h = bitmap.height(); 185 const int h = bitmap.height(); 342 updateRect.height()); 446 // The time glyphs are stored in a single image of height 64 pixels. Each digit is 40 pixels wide, 536 int height = 0; local 544 if (sscanf(l, "%d %d %d", &width, &height, &fps) == 3) { 545 // ALOGD("> w=%d, h=%d, fps=%d", width, height, fps); 547 animation.height = height; 681 const int yc = ((mHeight - animation.height) / [all...] |