/aosp_15_r20/hardware/google/gchips/gralloc4/src/core/ |
D | exynos_format_allocation.h | 55 /* Sets up 8-bit SBWC semi planar and returns the plane count */ 56 int setup_sbwc_420_sp(int w, int h, int fd_count, plane_info_t *plane) in setup_sbwc_420_sp() argument 58 std::tie(plane[0].size, plane[1].size) = sbwc_sizes<8>(w, h); in setup_sbwc_420_sp() 60 plane[0].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp() 61 plane[0].alloc_height = __ALIGN_UP(h, 16); in setup_sbwc_420_sp() 62 plane[0].byte_stride = SBWC_8B_STRIDE(w); in setup_sbwc_420_sp() 63 plane[0].fd_idx = 0; in setup_sbwc_420_sp() 65 plane[1].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp() 66 plane[1].alloc_height = __ALIGN_UP(h, 16) / 2; in setup_sbwc_420_sp() 67 plane[1].byte_stride = SBWC_8B_STRIDE(w); in setup_sbwc_420_sp() [all …]
|
D | mali_gralloc_bufferallocation.cpp | 136 * Obtain AFBC superblock dimensions for specific plane. 140 static rect_t get_afbc_sb_size(alloc_type_t alloc_type, const uint8_t plane) in get_afbc_sb_size() argument 142 if (plane > 0 && alloc_type.is_afbc() && alloc_type.is_multi_plane) in get_afbc_sb_size() 192 MALI_GRALLOC_LOGW("Extra-wide AFBC must be signalled for multi-plane formats. " in get_alloc_type() 193 "Falling back to single plane AFBC."); in get_alloc_type() 206 MALI_GRALLOC_LOGW("Multi-plane AFBC is not supported without tiling. " in get_alloc_type() 207 "Falling back to single plane AFBC."); in get_alloc_type() 230 /* "Wide + Extra-wide" implicitly means "multi-plane". */ in get_alloc_type() 231 MALI_GRALLOC_LOGE("ERROR: Invalid to specify multiplane AFBC with single plane format."); in get_alloc_type() 279 * as there is a header per-plane and there is no sub-sampling within the plane. in init_afbc() [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/ |
H A D | Plane.java | 35 public class Plane implements Hyperplane<Euclidean3D>, Embedding<Euclidean3D, Euclidean2D> { class 40 /** Offset of the origin with respect to the plane. */ 43 /** Origin of the plane frame. */ 46 /** First vector of the plane frame (in plane). */ 49 /** Second vector of the plane frame (in plane). */ 52 /** Third vector of the plane frame (plane normal). */ 58 /** Build a plane normal to a given direction and containing the origin. 59 * @param normal normal direction to the plane 64 public Plane(final Vector3D normal, final double tolerance) in Plane() method in Plane 72 /** Build a plane from a point and a normal. [all …]
|
/aosp_15_r20/external/rust/crabbyavif/src/ |
D | image.rs | 25 pub enum Plane { enum 32 impl From<usize> for Plane { implementation 33 fn from(plane: usize) -> Self { in from() 34 match plane { in from() 35 1 => Plane::U, in from() 36 2 => Plane::V, in from() 37 3 => Plane::A, in from() 38 _ => Plane::Y, in from() 43 impl Plane { impl 46 Plane::Y => 0, in to_usize() [all …]
|
/aosp_15_r20/external/libgav1/src/post_filter/ |
H A D | post_filter.cc | 97 int plane = kPlaneY; local 102 SubsampledValue(width, subsampling_x_[plane]); 104 SubsampledValue(upscaled_width_fh, subsampling_x_[plane]); 106 super_res_info_[plane].step = 109 super_res_info_[plane].step * upscaled_width - superres_width; 110 super_res_info_[plane].initial_subpixel_x = 116 super_res_info_[plane].upscaled_width = upscaled_width; 117 } while (++plane < planes_); 119 int plane = kPlaneY; local 125 dsp->super_res_coefficients(super_res_info_[plane].upscaled_width, [all …]
|
H A D | super_res.cc | 24 int plane = kPlaneY; in ApplySuperRes() local 27 MultiplyBy4(frame_header_.columns4x4) >> subsampling_x_[plane]; in ApplySuperRes() 30 auto* input = reinterpret_cast<uint16_t*>(src[plane]); in ApplySuperRes() 31 auto* output = reinterpret_cast<uint16_t*>(dst[plane]); in ApplySuperRes() 33 frame_buffer_.stride(plane) / sizeof(uint16_t); in ApplySuperRes() 36 ? loop_restoration_border_.stride(plane) in ApplySuperRes() 37 : frame_buffer_.stride(plane)) / in ApplySuperRes() 39 if (rows[plane] > 0) { in ApplySuperRes() 40 dsp_.super_res(superres_coefficients_[static_cast<int>(plane != 0)], in ApplySuperRes() 41 input, input_stride, rows[plane], plane_width, in ApplySuperRes() [all …]
|
H A D | cdef.cc | 110 int plane = kPlaneY; in SetupCdefBorder() local 112 const ptrdiff_t src_stride = frame_buffer_.stride(plane); in SetupCdefBorder() 113 const ptrdiff_t dst_stride = cdef_border_.stride(plane); in SetupCdefBorder() 116 MultiplyBy4(frame_header_.columns4x4), subsampling_x_[plane]); in SetupCdefBorder() 119 subsampling_y_[plane]); in SetupCdefBorder() 121 const int row = kCdefBorderRows[subsampling_y_[plane]][i]; in SetupCdefBorder() 123 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in SetupCdefBorder() 126 GetSourceBuffer(static_cast<Plane>(plane), row4x4, 0) + in SetupCdefBorder() 128 uint8_t* dst = cdef_border_.data(plane) + dst_stride * (row_offset + i); in SetupCdefBorder() 131 } while (++plane < planes_); in SetupCdefBorder() [all …]
|
/aosp_15_r20/external/igt-gpu-tools/tests/ |
H A D | kms_atomic.c | 80 static void plane_get_current_state(igt_plane_t *plane, uint64_t *values) in plane_get_current_state() argument 90 values[i] = igt_plane_get_prop(plane, i); in plane_get_current_state() 94 static void plane_check_current_state(igt_plane_t *plane, const uint64_t *values, in plane_check_current_state() argument 101 legacy = drmModeGetPlane(plane->pipe->display->drm_fd, plane->drm_plane->plane_id); in plane_check_current_state() 109 plane_get_current_state(plane, current_values); in plane_check_current_state() 123 static void plane_commit(igt_plane_t *plane, enum igt_commit_style s, in plane_commit() argument 126 igt_display_commit2(plane->pipe->display, s); in plane_commit() 127 plane_check_current_state(plane, plane->values, relax); in plane_commit() 130 static void plane_commit_atomic_err(igt_plane_t *plane, in plane_commit_atomic_err() argument 136 plane_get_current_state(plane, current_values); in plane_commit_atomic_err() [all …]
|
H A D | kms_plane_alpha_blend.c | 29 IGT_TEST_DESCRIPTION("Test plane alpha and blending mode properties"); 128 igt_plane_t *plane; in reset_alpha() local 130 for_each_plane_on_pipe(display, pipe, plane) { in reset_alpha() 131 if (igt_plane_has_prop(plane, IGT_PLANE_ALPHA)) in reset_alpha() 132 igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0xffff); in reset_alpha() 134 if (igt_plane_has_prop(plane, IGT_PLANE_PIXEL_BLEND_MODE)) in reset_alpha() 135 igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Pre-multiplied"); in reset_alpha() 139 static bool has_multiplied_alpha(data_t *data, igt_plane_t *plane) in has_multiplied_alpha() argument 143 igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0x8080); in has_multiplied_alpha() 144 igt_plane_set_fb(plane, &data->argb_fb_100); in has_multiplied_alpha() [all …]
|
/aosp_15_r20/external/dng_sdk/source/ |
H A D | dng_pixel_buffer.h | 85 /// plus the steps (in bytes) between each column, row and plane. 127 uint32 plane = 0) const 133 plane < fPlane || (plane - fPlane) >= fPlanes) 144 static_cast<int64> (plane - fPlane)); 168 /// computing the row, column or plane step, or if an invalid value was 172 /// \param plane Index of the first plane 180 dng_pixel_buffer (const dng_rect &area, uint32 plane, uint32 planes, 220 /// \retval plane step in pixels. May be negative. 230 /// \param plane Start plane for buffer pointer. 235 uint32 plane = 0) const [all …]
|
H A D | dng_lens_correction.cpp | 85 bool dng_warp_params::IsNOP (uint32 plane) const in IsNOP() 88 return IsRadNOP (plane) && in IsNOP() 89 IsTanNOP (plane); in IsNOP() 98 for (uint32 plane = 0; plane < fPlanes; plane++) in IsRadNOPAll() local 101 if (!IsRadNOP (plane)) in IsRadNOPAll() 114 bool dng_warp_params::IsRadNOP (uint32 /* plane */) const in IsRadNOP() 126 for (uint32 plane = 0; plane < fPlanes; plane++) in IsTanNOPAll() local 129 if (!IsTanNOP (plane)) in IsTanNOPAll() 142 bool dng_warp_params::IsTanNOP (uint32 /* plane */) const in IsTanNOP() 197 real64 dng_warp_params::EvaluateInverse (uint32 plane, in EvaluateInverse() argument [all …]
|
/aosp_15_r20/external/libgav1/src/ |
H A D | post_filter_test.cc | 69 const char* GetSuperResDigest8bpp(int id, int plane) { in GetSuperResDigest8bpp() argument 102 return kDigestSuperRes[id][plane]; in GetSuperResDigest8bpp() 106 const char* GetSuperResDigest10bpp(int id, int plane) { in GetSuperResDigest10bpp() argument 140 return kDigestSuperRes[id][plane]; in GetSuperResDigest10bpp() 145 const char* GetSuperResDigest12bpp(int id, int plane) { in GetSuperResDigest12bpp() argument 179 return kDigestSuperRes[id][plane]; in GetSuperResDigest12bpp() 240 for (int plane = kPlaneY; plane < kMaxPlanes; ++plane) { in SetUp() local 242 (plane == kPlaneY) ? 0 : frame_size_.subsampling_x; in SetUp() 244 (plane == kPlaneY) ? 0 : frame_size_.subsampling_y; in SetUp() 245 width_[plane] = frame_size_.width >> subsampling_x; in SetUp() [all …]
|
H A D | loop_restoration_info.cc | 67 for (int plane = kPlaneY; plane < num_planes; ++plane) { in Reset() local 68 if (loop_restoration_->type[plane] == kLoopRestorationTypeNone) { in Reset() 69 plane_needs_filtering_[plane] = false; in Reset() 72 plane_needs_filtering_[plane] = true; in Reset() 74 (plane == kPlaneY) ? width : SubsampledValue(width, subsampling_x_); in Reset() 76 (plane == kPlaneY) ? height : SubsampledValue(height, subsampling_y_); in Reset() 77 num_horizontal_units_[plane] = in Reset() 79 plane_width, loop_restoration_->unit_size_log2[plane])); in Reset() 80 num_vertical_units_[plane] = std::max( in Reset() 82 loop_restoration_->unit_size_log2[plane])); in Reset() [all …]
|
/aosp_15_r20/external/igt-gpu-tools/lib/ |
H A D | igt_kms.c | 80 * between legacy and universal plane support for setting cursors or in the 423 * plane->props. 426 igt_fill_plane_props(igt_display_t *display, igt_plane_t *plane, in igt_fill_plane_props() argument 434 props = drmModeObjectGetProperties(fd, plane->drm_plane->plane_id, DRM_MODE_OBJECT_PLANE); in igt_fill_plane_props() 445 plane->props[j] = props->props[i]; in igt_fill_plane_props() 559 * @plane_type: display plane type 1543 static void get_plane(char *str, int type, struct kmstest_plane *plane) in get_plane() argument 1548 plane->type = type; in get_plane() 1550 &plane->id, in get_plane() 1554 ret = sscanf(buf + 9, "%4d%*c%4d%*c", &plane->pos_x, &plane->pos_y); in get_plane() [all …]
|
/aosp_15_r20/external/libaom/av1/common/ |
H A D | thread_common.c | 206 int plane) { in sync_read() argument 211 pthread_mutex_t *const mutex = &lf_sync->mutex_[plane][r - 1]; in sync_read() 214 while (c > lf_sync->cur_sb_col[plane][r - 1] - nsync) { in sync_read() 215 pthread_cond_wait(&lf_sync->cond_[plane][r - 1], mutex); in sync_read() 223 (void)plane; in sync_read() 228 const int sb_cols, int plane) { in sync_write() argument 243 pthread_mutex_lock(&lf_sync->mutex_[plane][r]); in sync_write() 245 // When a thread encounters an error, cur_sb_col[plane][r] is set to maximum in sync_write() 247 // cur_sb_col[plane][r] is not overwritten with a smaller value thus in sync_write() 250 lf_sync->cur_sb_col[plane][r] = AOMMAX(lf_sync->cur_sb_col[plane][r], cur); in sync_write() [all …]
|
/aosp_15_r20/external/libaom/av1/encoder/ |
H A D | encodemb.c | 55 void av1_subtract_txb(MACROBLOCK *x, int plane, BLOCK_SIZE plane_bsize, in av1_subtract_txb() argument 59 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_txb() 60 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_txb() 74 void av1_subtract_plane(MACROBLOCK *x, BLOCK_SIZE plane_bsize, int plane) { in av1_subtract_plane() argument 75 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_plane() 76 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_plane() 87 int av1_optimize_b(const struct AV1_COMP *cpi, MACROBLOCK *x, int plane, in av1_optimize_b() argument 91 struct macroblock_plane *const p = &x->plane[plane]; in av1_optimize_b() 97 *rate_cost = av1_cost_skip_txb(&x->coeff_costs, txb_ctx, plane, tx_size); in av1_optimize_b() 101 return av1_optimize_txb(cpi, x, plane, block, tx_size, tx_type, txb_ctx, in av1_optimize_b() [all …]
|
/aosp_15_r20/cts/tests/tests/media/common/jni/ |
H A D | codec-utils-jni.cpp | 55 struct plane { struct 63 } plane[3]; member 115 // android.media.Image.Plane 154 imageClazz, "getPlanes", "()[Landroid/media/cts/CodecImage$Plane;"); in initializeGlobalFields() 161 { // Image.Plane in initializeGlobalFields() 162 jclass planeClazz = env->FindClass("android/media/cts/CodecImage$Plane"); in initializeGlobalFields() 230 ScopedLocalRef<jobject> plane( in getNativeImage() local 232 img->plane[ix].colInc = env->CallIntMethod(plane.get(), gFields.methodPixelStride); in getNativeImage() 233 img->plane[ix].rowInc = env->CallIntMethod(plane.get(), gFields.methodRowStride); in getNativeImage() 235 env, env->CallObjectMethod(plane.get(), gFields.methodBuffer)); in getNativeImage() [all …]
|
/aosp_15_r20/external/libaom/common/ |
H A D | tools_common.c | 91 int plane = 0; in read_yuv_frame() local 95 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame() 97 int w = aom_img_plane_width(yuv_frame, plane); in read_yuv_frame() 98 const int h = aom_img_plane_height(yuv_frame, plane); in read_yuv_frame() 101 if (yuv_frame->fmt == AOM_IMG_FMT_NV12 && plane > 1) break; in read_yuv_frame() 102 if (yuv_frame->fmt == AOM_IMG_FMT_NV12 && plane == 1) w *= 2; in read_yuv_frame() 103 /* Determine the correct plane based on the image format. The for-loop in read_yuv_frame() 107 switch (plane) { in read_yuv_frame() 118 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame() 136 ptr += yuv_frame->stride[plane]; in read_yuv_frame() [all …]
|
/aosp_15_r20/external/dynamic_depth/internal/dynamic_depth/ |
H A D | plane.cc | 1 #include "dynamic_depth/plane.h" 20 constexpr char kNamespaceHref[] = "http://ns.google.com/photos/dd/1.0/plane/"; 25 Plane::Plane() {} in Plane() function in dynamic_depth::Plane 28 void Plane::GetNamespaces( in GetNamespaces() 34 ns_name_href_map->emplace(DynamicDepthConst::Plane(), kNamespaceHref); in GetNamespaces() 41 std::unique_ptr<Plane> Plane::FromData(std::unique_ptr<Pose> pose, in FromData() 46 LOG(ERROR) << "The Plane's pose must be provided"; in FromData() 55 std::unique_ptr<Plane> plane(std::unique_ptr<Plane>(new Plane())); // NOLINT in FromData() local 56 plane->pose_ = std::move(pose); in FromData() 57 plane->boundary_vertex_count_ = boundary.size() / 2; in FromData() [all …]
|
/aosp_15_r20/external/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_image.c | 96 v3d_setup_plane_slices(struct v3dv_image *image, uint8_t plane, in v3d_setup_plane_slices() argument 100 assert(image->planes[plane].cpp > 0); in v3d_setup_plane_slices() 102 uint32_t width = image->planes[plane].width; in v3d_setup_plane_slices() 103 uint32_t height = image->planes[plane].height; in v3d_setup_plane_slices() 106 uint32_t utile_w = v3d_utile_width(image->planes[plane].cpp); in v3d_setup_plane_slices() 107 uint32_t utile_h = v3d_utile_height(image->planes[plane].cpp); in v3d_setup_plane_slices() 140 * plane layout we will return false to fail image creation with appropriate in v3d_setup_plane_slices() 145 offset = plane_layouts[plane].offset; in v3d_setup_plane_slices() 154 struct v3d_resource_slice *slice = &image->planes[plane].slices[i]; in v3d_setup_plane_slices() 184 level_width = align(level_width, 64 / image->planes[plane].cpp); in v3d_setup_plane_slices() [all …]
|
/aosp_15_r20/external/libgav1/src/tile/ |
H A D | prediction.cc | 196 uint8_t* GetStartPoint(Array2DView<uint8_t>* const buffer, const int plane, in GetStartPoint() argument 201 buffer[plane].rows(), buffer[plane].columns() / sizeof(uint16_t), in GetStartPoint() 202 reinterpret_cast<uint16_t*>(&buffer[plane][0][0])); in GetStartPoint() 207 return &buffer[plane][y][x]; in GetStartPoint() 225 void Tile::IntraPrediction(const Block& block, Plane plane, int x, int y, in IntraPrediction() argument 231 const int x_shift = subsampling_x_[plane]; in IntraPrediction() 232 const int y_shift = subsampling_y_[plane]; in IntraPrediction() 256 (plane == kPlaneY && prediction_parameters.use_filter_intra); in IntraPrediction() 260 prediction_parameters.angle_delta[GetPlaneType(plane)] * in IntraPrediction() 271 Array2DView<Pixel> buffer(buffer_[plane].rows(), in IntraPrediction() [all …]
|
/aosp_15_r20/external/mesa3d/src/nouveau/vulkan/ |
H A D | nvk_image.c | 108 /* For multi-plane, we get the feature flags of each plane separately, in nvk_get_image_format_features() 113 for (uint8_t plane = 0; plane < ycbcr_info->n_planes; plane++) { in nvk_get_image_format_features() local 114 const struct vk_format_ycbcr_plane *plane_info = &ycbcr_info->planes[plane]; in nvk_get_image_format_features() 139 /* DISJOINT_BIT implies that each plane has its own separate binding, in nvk_get_image_format_features() 144 * For MIDPOINT_CHROMA_SAMPLES_BIT, NVIDIA HW on single-plane interleaved in nvk_get_image_format_features() 147 * for multi-plane formats. See Issue #9525 on the mesa/main tracker. in nvk_get_image_format_features() 339 for (uint8_t plane = 0; plane < ycbcr_info->n_planes; plane++) { in nvk_GetPhysicalDeviceImageFormatProperties2() local 340 const VkFormat plane_format = ycbcr_info->planes[plane].format; in nvk_GetPhysicalDeviceImageFormatProperties2() 533 * multi-plane formats. Also, in nvk_GetPhysicalDeviceImageFormatProperties2() 762 /* We only have one shadow plane per nvk_image */ in nvk_image_init() [all …]
|
/aosp_15_r20/external/libvpx/ |
H A D | tools_common.c | 84 int plane = 0; in read_yuv_frame() local 88 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame() 90 int w = vpx_img_plane_width(yuv_frame, plane); in read_yuv_frame() 91 const int h = vpx_img_plane_height(yuv_frame, plane); in read_yuv_frame() 94 if (yuv_frame->fmt == VPX_IMG_FMT_NV12 && plane > 1) break; in read_yuv_frame() 96 if (yuv_frame->fmt == VPX_IMG_FMT_NV12 && plane == 1) w = (w + 1) & ~1; in read_yuv_frame() 97 /* Determine the correct plane based on the image format. The for-loop in read_yuv_frame() 101 switch (plane) { in read_yuv_frame() 112 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame() 130 ptr += yuv_frame->stride[plane]; in read_yuv_frame() [all …]
|
/aosp_15_r20/external/mesa3d/src/asahi/vulkan/ |
H A D | hk_image.c | 144 /* For multi-plane, we get the feature flags of each plane separately, in hk_get_image_format_features() 149 for (uint8_t plane = 0; plane < ycbcr_info->n_planes; plane++) { in hk_get_image_format_features() local 151 &ycbcr_info->planes[plane]; in hk_get_image_format_features() 177 /* DISJOINT_BIT implies that each plane has its own separate binding, in hk_get_image_format_features() 182 * For MIDPOINT_CHROMA_SAMPLES_BIT, NVIDIA HW on single-plane interleaved in hk_get_image_format_features() 185 * for multi-plane formats. See Issue #9525 on the mesa/main tracker. in hk_get_image_format_features() 224 hk_can_compress(struct agx_device *dev, VkFormat format, unsigned plane, in hk_can_compress() argument 233 format = ycbcr_info->planes[plane].format; in hk_can_compress() 234 width /= ycbcr_info->planes[plane].denominator_scales[0]; in hk_can_compress() 235 height /= ycbcr_info->planes[plane].denominator_scales[0]; in hk_can_compress() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_rast_tri_tmp.h | 35 * Prototype for a 8 plane rasterizer function. Will codegenerate 45 const struct lp_rast_plane *plane, in TAG() 59 -plane[j].dcdx >> FIXED_ORDER, in TAG() 60 plane[j].dcdy >> FIXED_ORDER); in TAG() 63 -plane[j].dcdx, in TAG() 64 plane[j].dcdy); in TAG() 68 …MUL64(task->scene->fixed_sample_pos[s][1], plane[j].dcdy) + IMUL64(task->scene->fixed_sample_pos[s… in TAG() 72 -plane[j].dcdx >> FIXED_ORDER, in TAG() 73 plane[j].dcdy >> FIXED_ORDER); in TAG() 76 -plane[j].dcdx, in TAG() [all …]
|