/frameworks/av/include/private/media/ |
D | VideoFrame.h | 41 uint32_t angle, uint32_t bpp, uint32_t bitDepth, bool hasData, size_t iccSize): in VideoFrame() argument 45 mRotationAngle(angle), mBytesPerPixel(bpp), mIccSize(iccSize), in VideoFrame() 48 mRowBytes = __builtin_mul_overflow(bpp, width, &multVal) ? 0 : multVal; in VideoFrame() 51 ALOGE("Frame rowBytes/ size overflow %dx%d bpp %d", width, height, bpp); in VideoFrame()
|
/frameworks/base/tools/aapt2/compile/ |
D | PngCrunch.cpp | 667 const size_t bpp = new_color_type == PNG_COLOR_TYPE_GRAY ? 1 : 2; in WritePng() local 669 std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng() 685 out_row[x * bpp] = in_row[x * 4]; in WritePng() 690 out_row[x * bpp] = in WritePng() 694 if (bpp == 2) { in WritePng() 696 out_row[x * bpp + 1] = aa; in WritePng() 702 const size_t bpp = new_color_type == PNG_COLOR_TYPE_RGB ? 3 : 4; in WritePng() local 706 auto out_row = std::unique_ptr<png_byte[]>(new png_byte[image->width * bpp]); in WritePng() 719 out_row[x * bpp] = rr; in WritePng() 720 out_row[x * bpp + 1] = gg; in WritePng() [all …]
|
D | Png.cpp | 347 int bpp = isOpaque ? 3 : 4; in analyze_image() local 348 int paletteSize = w * h + bpp * num_colors; in analyze_image() 355 2 * w * h, bpp * w * h); in analyze_image() 382 } else if (isPalette && (paletteSize < bpp * w * h)) { in analyze_image()
|
/frameworks/av/media/libmediaformatshaper/ |
D | CodecProperties.cpp | 122 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()
|
D | CodecProperties.h | 77 void setBpp(double bpp) { mBpp = bpp;} in setBpp() argument 121 double bpp; member
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 122 const uint32_t bpp = bytesPerPixel(format); in allocateHelper() local 123 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocateHelper() 155 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocateHelper() 156 bufSize = static_cast<size_t>(width) * height * bpp; in allocateHelper() 158 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocateHelper()
|
/frameworks/native/libs/ui/tests/ |
D | GraphicBufferAllocator_test.cpp | 95 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/ |
D | android_hardware_HardwareBuffer.cpp | 172 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>(buffer->getHeight() * bufferStride * bpp); in android_hardware_HardwareBuffer_estimateSize()
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
D | VideoDumpView.java | 487 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/ |
D | SoftVideoDecoderOMXComponent.cpp | 159 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/ |
D | SoftVPX.cpp | 162 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/ |
D | Images.cpp | 826 int bpp; in dump_image() local 828 bpp = 1; in dump_image() 830 bpp = 2; in dump_image() 833 bpp = 4; in dump_image() 846 row += bpp; in dump_image() 851 switch (bpp) { in dump_image() 1037 int bpp = isOpaque ? 3 : 4; in analyze_image() local 1043 paletteSize, 2 * w * h, bpp * w * h); in analyze_image() 1067 } else if (isPalette && (paletteSize < bpp * w * h)) { in analyze_image()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 1011 int bpp = 0; in main() local 1014 bpp = 2; in main() 1038 bpp = 4; in main() 1041 if (bpp) { in main() 1043 fwrite(frame->getFlattenedData(), bpp * frame->mWidth, frame->mHeight, out); in main() 1046 printf("write out %d x %d x %dbpp\n", frame->mWidth, frame->mHeight, bpp); in main()
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 72 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/ |
D | CpuConsumer_test.cpp | 227 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/ |
D | Surface.cpp | 2379 const size_t bpp = bytesPerPixel(src->format); in copyBlt() local 2380 const size_t dbpr = static_cast<uint32_t>(dst->stride) * bpp; in copyBlt() 2381 const size_t sbpr = static_cast<uint32_t>(src->stride) * bpp; in copyBlt() 2387 size_t size = static_cast<uint32_t>(r.width()) * bpp; in copyBlt() 2389 static_cast<uint32_t>(r.left + src->stride * r.top) * bpp; in copyBlt() 2391 static_cast<uint32_t>(r.left + dst->stride * r.top) * bpp; in copyBlt()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 839 int32_t bpp = 12; // 8(Y) + 2(U) + 2(V) in AllocateEmpty() local 842 bpp = 24; // 16(Y) + 4(U) + 4(V) in AllocateEmpty() 845 sp<ABuffer> aBuffer(alloc(align(width, 16) * align(height, 16) * bpp / 8)); in AllocateEmpty()
|