/frameworks/av/include/private/media/ |
D | VideoFrame.h | 41 uint32_t angle, uint32_t bpp, bool hasData, size_t iccSize): in VideoFrame() argument 45 mRotationAngle(angle), mBytesPerPixel(bpp), mRowBytes(bpp * width), in VideoFrame() 46 mSize(hasData ? (bpp * width * height) : 0), 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/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 118 const uint32_t bpp = bytesPerPixel(format); in allocate() local 119 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocate() 140 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocate() 141 bufSize = static_cast<size_t>(width) * height * bpp; in allocate() 143 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocate()
|
/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/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/libheif/include/ |
D | HeifDecoderAPI.h | 50 void set(uint32_t width, uint32_t height, int32_t rotation, uint32_t bpp, in set() 55 mBytesPerPixel = bpp; in set()
|
/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/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/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 69 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy() local 83 || (bpp > 1 && plane.endianness != plane.NATIVE)) { in _ImageCopy() 106 MemCopier<ToMediaImage, 0>::copy(imgPtr, viewPtr, bpp); in _ImageCopy()
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 1768 const size_t bpp = bytesPerPixel(src->format); in copyBlt() local 1769 const size_t dbpr = static_cast<uint32_t>(dst->stride) * bpp; in copyBlt() 1770 const size_t sbpr = static_cast<uint32_t>(src->stride) * bpp; in copyBlt() 1776 size_t size = static_cast<uint32_t>(r.width()) * bpp; in copyBlt() 1778 static_cast<uint32_t>(r.left + src->stride * r.top) * bpp; in copyBlt() 1780 static_cast<uint32_t>(r.left + dst->stride * r.top) * bpp; in copyBlt()
|
/frameworks/native/opengl/libagl/ |
D | egl.cpp | 482 const size_t bpp = pixelFormatTable[src->format].size; in copyBlt() local 483 const size_t dbpr = dst->stride * bpp; in copyBlt() 484 const size_t sbpr = src->stride * bpp; in copyBlt() 494 size_t size = w * bpp; in copyBlt() 495 uint8_t const * s = src_bits + (r.left + src->stride * r.top) * bpp; in copyBlt() 496 uint8_t * d = dst_bits + (r.left + dst->stride * r.top) * bpp; in copyBlt()
|