Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 17 of 17) sorted by relevance

/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp125 const uint32_t bpp = bytesPerPixel(request.format); in allocate() local
126 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocate()
167 std::numeric_limits<size_t>::max() / height / (result.stride) < static_cast<size_t>(bpp)) { in allocate()
168 bufSize = static_cast<size_t>(width) * height * bpp; in allocate()
170 bufSize = static_cast<size_t>((result.stride)) * height * bpp; in allocate()
200 const uint32_t bpp = bytesPerPixel(format); in allocateHelper() local
201 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocateHelper()
233 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocateHelper()
234 bufSize = static_cast<size_t>(width) * height * bpp; in allocateHelper()
236 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocateHelper()
/frameworks/av/include/private/media/
DVideoFrame.h42 uint32_t angle, uint32_t bpp, uint32_t bitDepth, bool hasData, size_t iccSize): in VideoFrame() argument
47 mRotationAngle(angle), mBytesPerPixel(bpp), mIccSize(iccSize), in VideoFrame()
50 mRowBytes = __builtin_mul_overflow(bpp, width, &multVal) ? 0 : multVal; in VideoFrame()
53 ALOGE("Frame rowBytes/ size overflow %dx%d bpp %d", width, height, bpp); in VideoFrame()
/frameworks/base/libs/androidfw/
DPngCrunch.cpp653 const size_t bpp = new_color_type == PNG_COLOR_TYPE_GRAY ? 1 : 2; in WritePng() local
654 auto out_row = std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng()
670 out_row[x * bpp] = in_row[x * 4]; in WritePng()
675 out_row[x * bpp] = (png_byte)(rr * 0.2126f + gg * 0.7152f + bb * 0.0722f); in WritePng()
678 if (bpp == 2) { in WritePng()
680 out_row[x * bpp + 1] = aa; in WritePng()
686 const size_t bpp = new_color_type == PNG_COLOR_TYPE_RGB ? 3 : 4; in WritePng() local
690 auto out_row = std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng()
703 out_row[x * bpp] = rr; in WritePng()
704 out_row[x * bpp + 1] = gg; in WritePng()
[all …]
DPng.cpp334 int bpp = isOpaque ? 3 : 4; in analyze_image() local
335 int paletteSize = w * h + bpp * num_colors; in analyze_image()
342 bpp * w * h); in analyze_image()
368 } else if (isPalette && (paletteSize < bpp * w * h)) { in analyze_image()
/frameworks/av/media/module/libmediaformatshaper/
DCodecProperties.cpp122 double bpp = strtod(p, &q); in setTuningValue() local
124 setBpp(bpp); in setTuningValue()
138 double bpp = iValue / 100.0; in setTuningValue() local
139 setBpp(bpp); in setTuningValue()
183 double bpp = -1; in bppPoint() local
225 bpp = strtod(p, &q); in bppPoint()
240 point->bpp = bpp; in bppPoint()
284 width, height, point->bpp, point->width, point->height); in getBpp()
285 return point->bpp; in getBpp()
DCodecProperties.h77 void setBpp(double bpp) { mBpp = bpp;} in setBpp() argument
121 double bpp; member
/frameworks/native/libs/ui/tests/
DGraphicBufferAllocator_test.cpp95 uint32_t bpp = 4; in TEST_F() local
98 if (std::numeric_limits<size_t>::max() / height / bpp >= std::numeric_limits<uint32_t>::max()) { in TEST_F()
103 uint32_t width = std::numeric_limits<size_t>::max() / height / bpp; in TEST_F()
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp172 uint32_t bpp = bytesPerPixel(buffer->getPixelFormat()); in android_hardware_HardwareBuffer_estimateSize() local
173 if (bpp == 0) { in android_hardware_HardwareBuffer_estimateSize()
175 bpp = 1; in android_hardware_HardwareBuffer_estimateSize()
180 return static_cast<jlong>(static_cast<uint64_t>(buffer->getHeight() * bufferStride * bpp)); in android_hardware_HardwareBuffer_estimateSize()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DVideoDumpView.java487 int bpp[] = new int[3]; in onSurfaceChanged() local
488 GLES20.glGetIntegerv(GLES20.GL_RED_BITS, bpp, 0); in onSurfaceChanged()
489 GLES20.glGetIntegerv(GLES20.GL_GREEN_BITS, bpp, 1); in onSurfaceChanged()
490 GLES20.glGetIntegerv(GLES20.GL_BLUE_BITS, bpp, 2); in onSurfaceChanged()
491 Log.d(TAG, "rgb bits: " + bpp[0] + "-" + bpp[1] + "-" + bpp[2]); in onSurfaceChanged()
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp159 int32_t bpp = (mOutputFormat == OMX_COLOR_FormatYUV420Planar16) ? 2 : 1; in updatePortDefinitions() local
160 outDef->format.video.nStride = outDef->format.video.nFrameWidth * bpp; in updatePortDefinitions()
319 int32_t bpp = (outDef->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar16) ? 2 : 1; in copyYV12FrameToOutputBuffer() local
321 size_t dstYStride = outputBufferWidth() * bpp; in copyYV12FrameToOutputBuffer()
327 memcpy(dst, srcY, mWidth * bpp); in copyYV12FrameToOutputBuffer()
334 memcpy(dst, srcU, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer()
341 memcpy(dst, srcV, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp162 int32_t bpp = 1; in outputBuffers() local
165 bpp = 2; in outputBuffers()
174 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * bpp * 3) / 2; in outputBuffers()
/frameworks/base/tools/aapt/
DImages.cpp827 int bpp; in dump_image() local
829 bpp = 1; in dump_image()
831 bpp = 2; in dump_image()
834 bpp = 4; in dump_image()
847 row += bpp; in dump_image()
852 switch (bpp) { in dump_image()
1038 int bpp = isOpaque ? 3 : 4; in analyze_image() local
1044 paletteSize, 2 * w * h, bpp * w * h); in analyze_image()
1068 } else if (isPalette && (paletteSize < bpp * w * h)) { in analyze_image()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp1019 int bpp = 0; in main() local
1022 bpp = 2; in main()
1046 bpp = 4; in main()
1049 if (bpp) { in main()
1051 fwrite(frame->getFlattenedData(), bpp * frame->mWidth, frame->mHeight, out); in main()
1054 printf("write out %d x %d x %dbpp\n", frame->mWidth, frame->mHeight, bpp); in main()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp72 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy() local
86 || (bpp > 1 && plane.endianness != plane.NATIVE)) { in _ImageCopy()
93 bool canCopyByRow = (plane.colInc == bpp) && (img->mPlane[i].mColInc == bpp); in _ImageCopy()
109 MemCopier<ToMediaImage, 0>::copy(imgPtr, viewPtr, bpp); in _ImageCopy()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp227 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { in fillGreyscaleBuffer() argument
232 ASSERT_TRUE(bpp == 8 || bpp == 16); in fillGreyscaleBuffer()
233 ASSERT_TRUE(sizeof(T)*8 == bpp); in fillGreyscaleBuffer()
/frameworks/native/libs/gui/
DSurface.cpp2366 const size_t bpp = bytesPerPixel(src->format); in copyBlt() local
2367 const size_t dbpr = static_cast<uint32_t>(dst->stride) * bpp; in copyBlt()
2368 const size_t sbpr = static_cast<uint32_t>(src->stride) * bpp; in copyBlt()
2374 size_t size = static_cast<uint32_t>(r.width()) * bpp; in copyBlt()
2376 static_cast<uint32_t>(r.left + src->stride * r.top) * bpp; in copyBlt()
2378 static_cast<uint32_t>(r.left + dst->stride * r.top) * bpp; in copyBlt()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp881 int32_t bpp = 12; // 8(Y) + 2(U) + 2(V) in AllocateEmpty() local
884 bpp = 24; // 16(Y) + 4(U) + 4(V) in AllocateEmpty()
887 sp<ABuffer> aBuffer(alloc(align(width, 16) * align(height, 16) * bpp / 8)); in AllocateEmpty()