/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_bufferallocation.cpp | 103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *… in get_rgb_stride_and_size() argument 108 stride = width * pixel_size; in get_rgb_stride_and_size() 138 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_rgb_stride_and_size() 144 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 150 w_aligned = GRALLOC_ALIGN(width, 64); in get_rgb_stride_and_size() 154 w_aligned = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 159 w_aligned = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_rgb_stride_and_size() 197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument 226 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() 232 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() [all …]
|
D | mali_gralloc_public_interface.cpp | 79 uint32_t width, uint32_t height) in mali_gralloc_set_dimensions() argument 82 ret = mali_gralloc_set_dimensions_internal(descriptor, width, height); in mali_gralloc_set_dimensions() 182 int width, height; in mali_gralloc_allocate() local 186 width = bufDescriptor->width; in mali_gralloc_allocate() 218 hnd->width = width; in mali_gralloc_allocate() 221 hnd->internalWidth = width; in mali_gralloc_allocate() 313 accessRegion->width, accessRegion->height, outData, acquireFence) < 0) in mali_gralloc1_lock_async() 341 … accessRegion->width, accessRegion->height, outFlexLayout, acquireFence) < 0) in mali_gralloc1_lock_flex_async() 417 if (!descriptorInfo->width || !descriptorInfo->height ||!descriptorInfo->layerCount) in mali_gralloc1_validate_buffer_size() 420 descriptorInfo->width, descriptorInfo->height, descriptorInfo->layerCount); in mali_gralloc1_validate_buffer_size() [all …]
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_bufferallocation.cpp | 103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *… in get_rgb_stride_and_size() argument 108 stride = width * pixel_size; in get_rgb_stride_and_size() 138 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_rgb_stride_and_size() 144 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 150 w_aligned = GRALLOC_ALIGN(width, 64); in get_rgb_stride_and_size() 154 w_aligned = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size() 159 w_aligned = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_rgb_stride_and_size() 197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument 226 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() 232 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size() [all …]
|
D | mali_gralloc_public_interface.cpp | 78 uint32_t width, uint32_t height) in mali_gralloc_set_dimensions() argument 81 ret = mali_gralloc_set_dimensions_internal(descriptor, width, height); in mali_gralloc_set_dimensions() 181 int width, height; in mali_gralloc_allocate() local 185 width = bufDescriptor->width; in mali_gralloc_allocate() 216 hnd->width = width; in mali_gralloc_allocate() 219 hnd->internalWidth = width; in mali_gralloc_allocate() 311 accessRegion->width, accessRegion->height, outData, acquireFence) < 0) in mali_gralloc1_lock_async() 339 … accessRegion->width, accessRegion->height, outFlexLayout, acquireFence) < 0) in mali_gralloc1_lock_flex_async()
|
/device/generic/goldfish/hals/camera/ |
D | yuv.cpp | 28 void copyCbCrPlane(uint8_t* dst, const size_t width, size_t height, in copyCbCrPlane() argument 33 for (size_t rem = width & 15; rem; --rem, ++dst, p += srcStep) { in copyCbCrPlane() 37 for (size_t width16 = width >> 4; width16; --width16) { in copyCbCrPlane() 60 size_t NV21size(const size_t width, const size_t height) { in NV21size() argument 61 LOG_ALWAYS_FATAL_IF((width & 1) || (height & 1)); in NV21size() 62 return width * height * 3 / 2; in NV21size() 65 android_ycbcr NV21init(const size_t width, const size_t height, void* data) { in NV21init() argument 66 LOG_ALWAYS_FATAL_IF((width & 1) || (height & 1)); in NV21init() 68 const size_t area = width * height; in NV21init() 74 nv21.ystride = width; in NV21init() [all …]
|
D | Rect.h | 27 Rect(T w, T h) : width(w), height(h) {} in Rect() 28 T width, height; member 31 return (width == rhs.width) && (height == rhs.height); 34 size_t area() const { return size_t(width) * height; } in area()
|
D | list_qemu_cameras.cpp | 69 std::from_chars_result r = std::from_chars(i, end, resolution.width, 10); in parseResolutions() 86 if ((resolution.width > 0) && (resolution.height > 0)) { in parseResolutions() 111 const uint16_t width = (uint16_t(height * aspectRatio + 1) >> 1) << 1; in calcThumbnailResolution() local 113 return {width, height}; in calcThumbnailResolution() 126 return lhs.width < rhs.width; in operator ()() 186 const double aspectRatio = double(res.width) / res.height; in listQemuCameras() 246 return {std::max(z.width, x.width), in listQemuCameras()
|
D | converters.cpp | 54 bool rgba2yuv(const size_t width, size_t height, in rgba2yuv() argument 56 if ((width & 1) || (height & 1)) { in rgba2yuv() 62 reinterpret_cast<const uint8_t*>(rgba), (width * sizeof(*rgba)), in rgba2yuv() 66 width, height) == 0) ? true : FAILURE(false); in rgba2yuv() 69 const size_t width2 = width + width; in rgba2yuv() 87 const uint32_t* r1 = rgba + width; in rgba2yuv() 93 for (size_t col = width; col > 0; col -= 2, r0 += 2, r1 += 2, y0 += 2, y1 += 2, in rgba2yuv()
|
D | jpeg.cpp | 112 const int width = cinfo->image_width; in compressYUVImplPixelsSlow() local 113 const int width2 = width / 2; in compressYUVImplPixelsSlow() 127 memcpy(y[i], static_cast<const uint8_t*>(image.y) + nscli * ystride, width); in compressYUVImplPixelsSlow() 182 cinfo.image_width = imageSize.width; in compressYUVImpl() 210 if (imageSize.width % kJpegMCUSize) { in compressYUVImpl() 212 ((imageSize.width + kJpegMCUSize) / kJpegMCUSize) * kJpegMCUSize; in compressYUVImpl() 233 const size_t dstWidth = dstSize.width; in resizeYUV() 246 srcSize.width, srcSize.height, in resizeYUV() 296 yuv::toNV21Shallow(imageSize.width, imageSize.height, in compressYUV() 316 thumbnailSize.width = metadataEntry.data.i32[0]; in compressYUV() [all …]
|
D | yuv.h | 30 size_t NV21size(size_t width, size_t height); 32 android_ycbcr NV21init(size_t width, size_t height, void* data); 34 android_ycbcr toNV21Shallow(size_t width, size_t height, const android_ycbcr& ycbcr,
|
/device/google/cuttlefish/guest/commands/v4l2_streamer/ |
D | v4l2_helpers.cpp | 36 Result<size_t> V4l2GetFrameSize(int format, int width, int height) { in V4l2GetFrameSize() argument 40 return width * height * bytes_per_pixel; in V4l2GetFrameSize() 43 Result<size_t> V4l2GetLineWidth(int format, int width) { in V4l2GetLineWidth() argument 47 return width * bytes_per_pixel; in V4l2GetLineWidth() 53 vid_format->fmt.pix.width); in V4l2PrintFormat() 91 int width, int height) { in V4l2InitDevice() argument 92 int framesize = CF_EXPECT(V4l2GetFrameSize(format, width, height), in V4l2InitDevice() 95 CF_EXPECT(V4l2GetLineWidth(format, width), "Error calculating linewidth"); in V4l2InitDevice() 113 vid_format.fmt.pix.width = width; in V4l2InitDevice() 140 int width = 640; in V4l2StreamFile() local [all …]
|
D | yuv2rgb.cpp | 54 void Yuv2Rgb(unsigned char *src, unsigned char *dst, int width, int height) { in Yuv2Rgb() argument 61 unsigned char *u = src + (width * height); in Yuv2Rgb() 63 u + (width * height) / 4; // Each chroma does 4 pixels in 4:2:0 in Yuv2Rgb() 68 for (int w = 0; w < width; w++, y++) { in Yuv2Rgb() 84 u += width / 2; in Yuv2Rgb() 85 v += width / 2; in Yuv2Rgb()
|
D | v4l2_helpers.h | 30 int width, int height); 39 Result<size_t> V4l2GetFrameSize(int format, int width, int height); 43 Result<size_t> V4l2GetLineWidth(int format, int width);
|
/device/google/cuttlefish/host/frontend/webrtc/ |
D | cvd_video_frame_buffer.cpp | 30 inline int AlignStride(int width) { in AlignStride() argument 31 return AlignToPowerOf2(width, kLogAlignment); in AlignStride() 56 CvdVideoFrameBuffer::CvdVideoFrameBuffer(int width, int height) in CvdVideoFrameBuffer() argument 57 : width_(width), in CvdVideoFrameBuffer() 59 y_(FromPool(AlignStride(width) * height + kPlanePadding)), in CvdVideoFrameBuffer() 60 u_(FromPool(AlignStride((width + 1) / 2) * ((height + 1) / 2) + in CvdVideoFrameBuffer() 62 v_(FromPool(AlignStride((width + 1) / 2) * ((height + 1) / 2) + in CvdVideoFrameBuffer() 71 int CvdVideoFrameBuffer::width() const { return width_; } in width() function in cuttlefish::CvdVideoFrameBuffer
|
/device/generic/goldfish/hals/gralloc/ |
D | allocator.cpp | 120 const uint32_t width, in initPlaneLayout() argument 128 const uint32_t strideInBytes = align(width * sampleSizeInBytes, alignment); in initPlaneLayout() 155 if (desc.width <= 0) { in allocate2() 158 desc.width)); in allocate2() 187 const uint32_t width = desc.width; in allocate2() local 201 req.plane[0], width, height, offsetInBytes, /*alignment=*/ 1, in allocate2() 218 req.plane[0], width, height, offsetInBytes, /*alignment=*/ 1, in allocate2() 234 req.plane[0], width, height, offsetInBytes, /*alignment=*/ 1, in allocate2() 252 req.plane[0], width, height, offsetInBytes, /*alignment=*/ 1, in allocate2() 268 req.plane[0], width, height, offsetInBytes, /*alignment=*/ 1, in allocate2() [all …]
|
/device/google/cuttlefish/host/frontend/webrtc/libdevice/ |
D | camera_streamer.cpp | 56 if (resolution.height <= 0 || resolution.width <= 0 || in OnFrame() 63 if (frame->width() != resolution.width || in OnFrame() 67 if (!scaled_frame_ || resolution.width != scaled_frame_->width() || in OnFrame() 70 webrtc::I420Buffer::Create(resolution.width, resolution.height); in OnFrame() 108 return {.width = settings["width"].asInt(), in GetResolutionFromSettings() 114 int32_t size = frame->width() * frame->height() + in VsockSendYUVFrame() 123 cvd_connection_.WriteStrides(y, frame->width(), frame->height(), in VsockSendYUVFrame()
|
D | video_track_source_impl.cpp | 34 int width() const override { return frame_buffer_->width(); } in width() function in cuttlefish::webrtc_streaming::__anon8da4612f0111::VideoFrameWrapper 54 VideoTrackSourceImpl::VideoTrackSourceImpl(int width, int height) in VideoTrackSourceImpl() argument 55 : webrtc::VideoTrackSource(false), width_(width), height_(height) {} in VideoTrackSourceImpl()
|
/device/google/cuttlefish/tests/graphics/vulkan/ |
D | image.cpp | 22 uint32_t width, uint32_t height, const RGBA8888& bottomLeft, in CreateImageContentsWithFourCorners() argument 26 ret.reserve(width * height * 4); in CreateImageContentsWithFourCorners() 35 for (uint32_t x = 0; x < width; x++) { in CreateImageContentsWithFourCorners() 36 const bool isLeftHalf = (x <= (width / 2)); in CreateImageContentsWithFourCorners()
|
/device/google/cuttlefish/tests/graphics/src/com/android/cuttlefish/tests/ |
D | CuttlefishDisplayHotplugTest.java | 126 static HostDisplayInfo create(int id, int width, int height) { in create() argument 127 return new AutoValue_CuttlefishDisplayHotplugTest_HostDisplayInfo(id, width, height); in create() 131 abstract int width(); in width() method in CuttlefishDisplayHotplugTest.HostDisplayInfo 140 static GuestDisplayInfo create(int id, int width, int height) { in create() argument 141 return new AutoValue_CuttlefishDisplayHotplugTest_GuestDisplayInfo(id, width, height); in create() 145 abstract int width(); in width() method in CuttlefishDisplayHotplugTest.GuestDisplayInfo 286 static AddDisplayParams create(int width, int height) { in create() argument 287 return new AutoValue_CuttlefishDisplayHotplugTest_AddDisplayParams(width, height); in create() 290 abstract int width(); in width() method in CuttlefishDisplayHotplugTest.AddDisplayParams 307 "--display=width=%d,height=%d", display.width(), display.height())); in addDisplays() [all …]
|
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/ |
D | MultiDisplayService.java | 76 public int width; field in MultiDisplayService.MultiDisplay 89 width = 0; in clear() 99 width = w; in set() 107 return (w == width && h == height && d == dpi && f == flag); in match() 120 writer.printf("%sDimensions: %dx%d\n", prefix, width, height); in dump() 129 return "MultiDisplay[dimensions=" + width + "x" + height in toString() 270 int width = getIntArg(writer, args, 2); in runCmdAdd() local 275 addVirtualDisplay(displayId, width, height, dpi, flags); in runCmdAdd() 353 if (mMultiDisplay[displayId].width != w || mMultiDisplay[displayId].height != h) { in addVirtualDisplay() 387 int width = array[2]; in run() local [all …]
|
/device/google/cuttlefish/host/commands/run_cvd/launch/ |
D | vhost_input_devices.cpp | 93 int width; member 100 {"%WIDTH%", vars.width}, in BuildTouchSpec() 167 const int width = instance_.display_configs()[i].width; in Commands() local 170 touchscreen_template, {.index = i, .width = width, .height = height}); in Commands() 194 const int width = instance_.touchpad_configs()[i].width; in Commands() local 197 touchpad_template, {.index = i, .width = width, .height = height}); in Commands()
|
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/ |
D | MediaH264Decoder.cpp | 38 void MediaH264Decoder::initH264Context(unsigned int width, in initH264Context() argument 56 transport->writeParam(width, 1, mAddressOffSet); in initH264Context() 69 void MediaH264Decoder::resetH264Context(unsigned int width, in resetH264Context() argument 80 transport->writeParam(width, 1, mAddressOffSet); in resetH264Context() 159 res.width = *(uint32_t*)(retptr + 8); in getImage() 167 res.width = *(uint32_t*)(retptr + 8); in getImage() 197 res.width = *(uint32_t*)(retptr + 8); in renderOnHostAndReturnImageMetadata() 205 res.width = *(uint32_t*)(retptr + 8); in renderOnHostAndReturnImageMetadata()
|
/device/google/cuttlefish/host/libs/screen_connector/ |
D | composition_manager.cpp | 149 CF_EXPECT(src_display.width == dest_display.width && in Create() 259 int display, int width, int height, std::uint32_t frame_fourcc_format, in ComposeFrame() argument 263 cluster_index_, display, width, height); in ComposeFrame() 266 frame_work_buffer_[display] = std::vector<std::uint8_t>(width * height * 4); in ComposeFrame() 269 memcpy(tmp_buffer, shmem_local_display, width * height * 4); in ComposeFrame() 271 AlphaBlendLayers(tmp_buffer, display, width, height); in ComposeFrame() 277 buffer->DataV(), buffer->StrideV(), width, height); in ComposeFrame() 282 buffer->DataV(), buffer->StrideV(), width, height); in ComposeFrame()
|
/device/google/cuttlefish/guest/hals/camera/ |
D | vsock_frame_provider.cpp | 38 std::shared_ptr<cuttlefish::VsockConnection> connection, uint32_t width, in start() argument 45 std::thread([this, width, height] { VsockReadLoop(width, height); }); in start() 150 bool VsockFrameProvider::framesizeMatches(uint32_t width, uint32_t height, in framesizeMatches() argument 152 return data.size() == 3 * width * height / 2; in framesizeMatches() 155 void VsockFrameProvider::VsockReadLoop(uint32_t width, uint32_t height) { in VsockReadLoop() argument 158 if (framesizeMatches(width, height, next_frame_)) { in VsockReadLoop()
|
/device/generic/goldfish-opengl/system/gralloc/ |
D | gralloc_old.cpp | 98 width(p_width), in cb_handle_old_t() 161 uint32_t width; // buffer width member 508 int width = doLocked ? cb->lockedWidth : cb->width; in updateHostColorBuffer() local 512 uint32_t rgbSz = width * height * bpp; in updateHostColorBuffer() 525 cb->width, in updateHostColorBuffer() 526 width, height, top, left, bpp); in updateHostColorBuffer() 538 get_yv12_offsets(width, height, NULL, NULL, &send_buffer_size); in updateHostColorBuffer() 542 get_yuv420p_offsets(width, height, NULL, NULL, &send_buffer_size); in updateHostColorBuffer() 556 left, top, width, height, in updateHostColorBuffer() 567 width, height, left, top, in updateHostColorBuffer() [all …]
|