HomeSort by relevance Sort by last modified time
    Searched refs:bytesPerPixel (Results 1 - 25 of 149) sorted by null

1 2 3 4 5 6

  /frameworks/base/graphics/java/android/graphics/
PixelFormat.java 99 info.bytesPerPixel = 4;
103 info.bytesPerPixel = 3;
110 info.bytesPerPixel = 2;
116 info.bytesPerPixel = 1;
121 info.bytesPerPixel = 1;
125 info.bytesPerPixel = 1;
146 public int bytesPerPixel;
  /frameworks/native/libs/ui/
PixelFormat.cpp 23 uint32_t bytesPerPixel(PixelFormat format) {
  /cts/tests/tests/graphics/src/android/graphics/cts/
PixelFormatTest.java 44 assertEquals(4, mPixelFormat.bytesPerPixel);
48 assertEquals(4, mPixelFormat.bytesPerPixel);
52 assertEquals(3, mPixelFormat.bytesPerPixel);
56 assertEquals(2, mPixelFormat.bytesPerPixel);
60 assertEquals(2, mPixelFormat.bytesPerPixel);
64 assertEquals(2, mPixelFormat.bytesPerPixel);
68 assertEquals(1, mPixelFormat.bytesPerPixel);
72 assertEquals(1, mPixelFormat.bytesPerPixel);
76 assertEquals(2, mPixelFormat.bytesPerPixel);
80 assertEquals(1, mPixelFormat.bytesPerPixel);
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/util/
Util.java 94 int bytesPerPixel;
97 bytesPerPixel = 1;
101 bytesPerPixel = 2;
105 bytesPerPixel = 4;
107 return bytesPerPixel;
  /external/libvncserver/libvncclient/
cursor.c 48 int bytesPerPixel;
56 bytesPerPixel = client->format.bitsPerPixel / 8;
67 client->rcSource = malloc(width * height * bytesPerPixel);
105 ptr += bytesPerPixel;
110 ptr += bytesPerPixel;
115 switch (bytesPerPixel) {
132 if (!ReadFromRFBServer(client, (char *)client->rcSource, width * height * bytesPerPixel)) {
171 client->GotCursorShape(client, xhot, yhot, width, height, bytesPerPixel);
  /external/opencv3/modules/videoio/src/
cap_winrt_capture.hpp 67 int bytesPerPixel;
cap_winrt_video.hpp 72 int bytesPerPixel;
cap_winrt_video.cpp 125 props->Subtype = MediaEncodingSubtypes::Rgb24; bytesPerPixel = 3;
128 // props->Subtype = MediaEncodingSubtypes::Bgra8; bytesPerPixel = 4;
160 unsigned int colBytes = width * bytesPerPixel;
202 for (unsigned int i = 0; i < colBytes; i += bytesPerPixel)
241 const unsigned int bytesPerPixel = 3;
243 auto plPitch = width * bytesPerPixel;
257 for (unsigned int i = 0, j = 0; i < plPitch; i += bytesPerPixel, j += 4)
  /frameworks/native/include/ui/
PixelFormat.h 67 uint32_t bytesPerPixel(PixelFormat format);
  /external/libvncserver/examples/
pnmshow.c 23 int bytesPerPixel,bitsPerPixelInFile;
36 bytesPerPixel=4; bitsPerPixelInFile=3*8;
39 bytesPerPixel=1; bitsPerPixelInFile=1*8;
42 bytesPerPixel=1; bitsPerPixelInFile=1;
67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel);
81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height);
  /hardware/ti/omap4-aah/camera/
CameraHalCommon.cpp 124 unsigned int bytesPerPixel;
128 bytesPerPixel = 2;
131 bytesPerPixel = 2;
133 bytesPerPixel = 1;
135 bytesPerPixel = 1;
138 return bytesPerPixel;
  /external/libvncserver/libvncserver/
scale.c 144 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2;
162 bytesPerPixel = bitsPerPixel / 8;
163 bytesPerLine = w1 * bytesPerPixel;
165 (y0 * screen->paddedWidthInBytes + x0 * bytesPerPixel));
167 ( y1 * ptr->paddedWidthInBytes + x1 * bytesPerPixel));
206 srcptr2 = &srcptr[(((x * areaX) + w) * bytesPerPixel) +
211 switch (bytesPerPixel) {
217 for (z = 0; z < bytesPerPixel; z++)
222 srcptr2 += bytesPerPixel;
238 switch (bytesPerPixel) {
    [all...]
  /external/skia/src/codec/
SkCodecPriv.h 199 inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) {
200 return width * bytesPerPixel;
213 const uint32_t bytesPerPixel = bitsPerPixel / 8;
214 return compute_row_bytes_bpp(width, bytesPerPixel);
  /external/opencv3/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/
main.cpp 105 int bytesPerPixel = 3;
107 for (int i = 0; i < 640 * 100 * bytesPerPixel;)
  /hardware/libhardware/modules/gralloc/
gralloc.cpp 211 int bytesPerPixel = 0;
216 bytesPerPixel = 4;
219 bytesPerPixel = 3;
223 bytesPerPixel = 2;
233 size_t size = align(height, tileHeight) * stride * bytesPerPixel + 4;
  /external/skia/include/core/
SkBitmap.h 94 int bytesPerPixel() const { return fInfo.bytesPerPixel(); }
108 int shiftPerPixel() const { return this->bytesPerPixel() >> 1; }
    [all...]
SkImageInfo.h 255 int bytesPerPixel() const {
260 return sk_64_mul(fWidth, this->bytesPerPixel());
287 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel();
299 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
  /external/skia/src/core/
SkConfig8888.cpp 182 size_t bytes = width * srcInfo.bytesPerPixel();
192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
225 SkRectMemcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height);
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) {
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) {
  /hardware/qcom/display/msm8996/libgralloc1/
gr_adreno_info.cpp 145 int bytesPerPixel = 0;
152 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
  /hardware/qcom/display/msmcobalt/libgralloc1/
gr_adreno_info.cpp 145 int bytesPerPixel = 0;
152 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
  /frameworks/av/media/ndk/
NdkImage.cpp 354 int bytesPerPixel = 0;
405 bytesPerPixel = 2;
408 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel;
422 bytesPerPixel = 2;
424 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel;
474 bytesPerPixel = 4;
476 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel;
480 bytesPerPixel = 2;
482 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel;
486 bytesPerPixel = 3
    [all...]
  /frameworks/base/media/jni/
android_media_Utils.cpp 662 int bytesPerPixel = 0;
739 bytesPerPixel = 2;
744 dataSize = buffer->stride * buffer->height * bytesPerPixel;
745 pStride = bytesPerPixel;
768 bytesPerPixel = 2;
771 dataSize = buffer->stride * buffer->height * bytesPerPixel;
772 pStride = bytesPerPixel;
818 bytesPerPixel = 4;
821 dataSize = buffer->stride * buffer->height * bytesPerPixel;
822 pStride = bytesPerPixel;
    [all...]
  /frameworks/base/cmds/screencap/
screencap.cpp 180 SkAutoTUnref<SkData> data(SkImageEncoder::EncodeData(info, base, s*bytesPerPixel(f),
192 size_t Bpp = bytesPerPixel(f);
  /frameworks/base/libs/hwui/
GradientCache.cpp 157 const uint32_t size = info.width * 2 * bytesPerPixel();
170 " width = %" PRIu32 " bytesPerPixel() = %zu",
171 size, texture->objectSize(), info.width, bytesPerPixel());
177 size_t GradientCache::bytesPerPixel() const {
224 const GLsizei rowBytes = width * bytesPerPixel();
  /external/opencv3/3rdparty/openexr/IlmImf/
ImfTiledMisc.cpp 115 size_t bytesPerPixel = 0;
121 bytesPerPixel += pixelTypeSize (c.channel().type);
124 return bytesPerPixel;

Completed in 507 milliseconds

1 2 3 4 5 6