Home
last modified time | relevance | path

Searched refs:plane (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/external/libgav1/libgav1/src/post_filter/
Dsuper_res.cc24 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 …]
Dpost_filter.cc191 int plane = kPlaneY; local
194 SubsampledValue(width_, subsampling_x_[plane]);
196 SubsampledValue(upscaled_width_, subsampling_x_[plane]);
198 super_res_info_[plane].step =
201 super_res_info_[plane].step * upscaled_width - superres_width;
202 super_res_info_[plane].initial_subpixel_x =
208 super_res_info_[plane].upscaled_width = upscaled_width;
209 } while (++plane < planes_);
211 int plane = kPlaneY; local
218 SubsampledValue(upscaled_width_, subsampling_x_[plane]),
[all …]
Dcdef.cc92 int plane = kPlaneY; in SetupCdefBorder() local
94 const ptrdiff_t src_stride = frame_buffer_.stride(plane); in SetupCdefBorder()
95 const ptrdiff_t dst_stride = cdef_border_.stride(plane); in SetupCdefBorder()
98 MultiplyBy4(frame_header_.columns4x4), subsampling_x_[plane]); in SetupCdefBorder()
101 subsampling_y_[plane]); in SetupCdefBorder()
103 const int row = kCdefBorderRows[subsampling_y_[plane]][i]; in SetupCdefBorder()
105 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in SetupCdefBorder()
108 GetSourceBuffer(static_cast<Plane>(plane), row4x4, 0) + in SetupCdefBorder()
110 uint8_t* dst = cdef_border_.data(plane) + dst_stride * (row_offset + i); in SetupCdefBorder()
113 } while (++plane < planes_); in SetupCdefBorder()
[all …]
/external/libgav1/libgav1/src/
Dloop_restoration_info.cc67 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 …]
Dyuv_buffer.h100 int width(int plane) const { in width() argument
101 return (plane == kPlaneY) ? y_width_ : uv_width_; in width()
103 int height(int plane) const { in height() argument
104 return (plane == kPlaneY) ? y_height_ : uv_height_; in height()
108 int left_border(int plane) const { return left_border_[plane]; } in left_border() argument
109 int right_border(int plane) const { return right_border_[plane]; } in right_border() argument
110 int top_border(int plane) const { return top_border_[plane]; } in top_border() argument
111 int bottom_border(int plane) const { return bottom_border_[plane]; } in bottom_border() argument
125 uint8_t* data(int plane) { in data() argument
126 assert(plane >= 0); in data()
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-plane.c29 static int kms_plane_probe(struct kms_plane *plane) in kms_plane_probe() argument
31 struct kms_device *device = plane->device; in kms_plane_probe()
36 p = drmModeGetPlane(device->fd, plane->id); in kms_plane_probe()
52 plane->crtc = device->crtcs[i]; in kms_plane_probe()
57 plane->formats = calloc(p->count_formats, sizeof(uint32_t)); in kms_plane_probe()
58 if (!plane->formats) { in kms_plane_probe()
64 plane->formats[i] = p->formats[i]; in kms_plane_probe()
66 plane->num_formats = p->count_formats; in kms_plane_probe()
70 props = drmModeObjectGetProperties(device->fd, plane->id, in kms_plane_probe()
81 plane->type = props->prop_values[i]; in kms_plane_probe()
[all …]
/external/dng_sdk/source/
Ddng_pixel_buffer.h127 uint32 plane = 0) const
133 plane < fPlane || (plane - fPlane) >= fPlanes)
144 static_cast<int64> (plane - fPlane));
180 dng_pixel_buffer (const dng_rect &area, uint32 plane, uint32 planes,
235 uint32 plane = 0) const
238 return InternalPixel (row, col, plane);
250 uint32 plane = 0)
255 return InternalPixel (row, col, plane);
267 uint32 plane = 0) const
272 return (const uint8 *) ConstPixel (row, col, plane);
[all …]
Ddng_lens_correction.cpp85 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()
126 for (uint32 plane = 0; plane < fPlanes; plane++) in IsTanNOPAll() local
129 if (!IsTanNOP (plane)) in IsTanNOPAll()
197 real64 dng_warp_params::EvaluateInverse (uint32 plane, in EvaluateInverse() argument
205 real64 y0 = Evaluate (plane, in EvaluateInverse()
209 real64 y1 = Evaluate (plane, in EvaluateInverse()
[all …]
/external/libaom/libaom/common/
Dtools_common.c81 int plane = 0; in read_yuv_frame() local
85 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame()
87 const int w = aom_img_plane_width(yuv_frame, plane); in read_yuv_frame()
88 const int h = aom_img_plane_height(yuv_frame, plane); in read_yuv_frame()
95 switch (plane) { in read_yuv_frame()
106 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame()
124 ptr += yuv_frame->stride[plane]; in read_yuv_frame()
194 int plane; in aom_img_write() local
196 for (plane = 0; plane < 3; ++plane) { in aom_img_write()
197 const unsigned char *buf = img->planes[plane]; in aom_img_write()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_tri_tmp.h45 const struct lp_rast_plane *plane, in TAG()
60 -plane[j].dcdx >> FIXED_ORDER, in TAG()
61 plane[j].dcdy >> FIXED_ORDER); in TAG()
64 -plane[j].dcdx, in TAG()
65 plane[j].dcdy); in TAG()
69 …MUL64(task->scene->fixed_sample_pos[s][1], plane[j].dcdy) + IMUL64(task->scene->fixed_sample_pos[s… in TAG()
73 -plane[j].dcdx >> FIXED_ORDER, in TAG()
74 plane[j].dcdy >> FIXED_ORDER); in TAG()
77 -plane[j].dcdx, in TAG()
78 plane[j].dcdy); in TAG()
[all …]
/external/minigbm/
Ddrv.c243 size_t plane; in drv_bo_create() local
272 for (plane = 0; plane < bo->meta.num_planes; plane++) { in drv_bo_create()
273 if (plane > 0) in drv_bo_create()
274 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create()
276 drv_increment_reference_count(drv, bo, plane); in drv_bo_create()
288 size_t plane; in drv_bo_create_with_modifiers() local
319 for (plane = 0; plane < bo->meta.num_planes; plane++) { in drv_bo_create_with_modifiers()
320 if (plane > 0) in drv_bo_create_with_modifiers()
321 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create_with_modifiers()
323 drv_increment_reference_count(drv, bo, plane); in drv_bo_create_with_modifiers()
[all …]
Dhelpers.c199 uint32_t drv_height_from_format(uint32_t format, uint32_t height, size_t plane) in drv_height_from_format() argument
203 assert(plane < layout->num_planes); in drv_height_from_format()
205 return DIV_ROUND_UP(height, layout->vertical_subsampling[plane]); in drv_height_from_format()
208 uint32_t drv_vertical_subsampling_from_format(uint32_t format, size_t plane) in drv_vertical_subsampling_from_format() argument
212 assert(plane < layout->num_planes); in drv_vertical_subsampling_from_format()
214 return layout->vertical_subsampling[plane]; in drv_vertical_subsampling_from_format()
217 uint32_t drv_bytes_per_pixel_from_format(uint32_t format, size_t plane) in drv_bytes_per_pixel_from_format() argument
221 assert(plane < layout->num_planes); in drv_bytes_per_pixel_from_format()
223 return layout->bytes_per_pixel[plane]; in drv_bytes_per_pixel_from_format()
229 uint32_t drv_stride_from_format(uint32_t format, uint32_t width, size_t plane) in drv_stride_from_format() argument
[all …]
/external/libaom/libaom/av1/encoder/
Dtokenize.c31 int plane, int calc_rate, int allow_update_cdf, in cost_and_tokenize_map() argument
44 (void)plane; in cost_and_tokenize_map()
63 if (plane) { in cost_and_tokenize_map()
78 static void get_palette_params(const MACROBLOCK *const x, int plane, in get_palette_params() argument
83 params->color_map = xd->plane[plane].color_index_map; in get_palette_params()
84 params->map_cdf = plane ? xd->tile_ctx->palette_uv_color_index_cdf in get_palette_params()
87 plane ? &x->palette_uv_color_cost : &x->palette_y_color_cost; in get_palette_params()
88 params->n_colors = pmi->palette_size[plane]; in get_palette_params()
89 av1_get_block_dimensions(bsize, plane, xd, &params->plane_width, NULL, in get_palette_params()
93 static void get_color_map_params(const MACROBLOCK *const x, int plane, in get_color_map_params() argument
[all …]
Dmodel_rd.h48 BLOCK_SIZE plane_bsize, int plane,
74 int plane, const BLOCK_SIZE bsize) { in compute_sse_plane() argument
75 struct macroblockd_plane *const pd = &xd->plane[plane]; in compute_sse_plane()
79 const struct macroblock_plane *const p = &x->plane[plane]; in compute_sse_plane()
80 get_txb_dimensions(xd, plane, plane_bsize, 0, 0, plane_bsize, NULL, NULL, &bw, in compute_sse_plane()
90 BLOCK_SIZE plane_bsize, int plane, in model_rd_from_sse() argument
95 const struct macroblock_plane *const p = &x->plane[plane]; in model_rd_from_sse()
122 BLOCK_SIZE plane_bsize, int plane, in model_rd_with_curvfit() argument
128 const struct macroblock_plane *const p = &x->plane[plane]; in model_rd_with_curvfit()
171 int plane; in model_rd_for_sb() local
[all …]
Dencodemb.c55 void av1_subtract_txb(MACROBLOCK *x, int plane, BLOCK_SIZE plane_bsize, in av1_subtract_txb() argument
58 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_txb()
59 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_txb()
73 void av1_subtract_plane(MACROBLOCK *x, BLOCK_SIZE plane_bsize, int plane) { in av1_subtract_plane() argument
74 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_plane()
75 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_plane()
85 int av1_optimize_b(const struct AV1_COMP *cpi, MACROBLOCK *x, int plane, in av1_optimize_b() argument
90 struct macroblock_plane *const p = &x->plane[plane]; in av1_optimize_b()
96 *rate_cost = av1_cost_skip_txb(x, txb_ctx, plane, tx_size); in av1_optimize_b()
100 return av1_optimize_txb_new(cpi, x, plane, block, tx_size, tx_type, txb_ctx, in av1_optimize_b()
[all …]
/external/igt-gpu-tools/tests/
Dkms_atomic.c80 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 …]
Dkms_plane_alpha_blend.c128 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()
147 igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0xffff); in has_multiplied_alpha()
[all …]
/external/libaom/libaom/av1/common/
Dthread_common.c142 struct macroblockd_plane *pd = xd->plane; in loop_filter_data_reset()
154 int plane) { in sync_read() argument
159 pthread_mutex_t *const mutex = &lf_sync->mutex_[plane][r - 1]; in sync_read()
162 while (c > lf_sync->cur_sb_col[plane][r - 1] - nsync) { in sync_read()
163 pthread_cond_wait(&lf_sync->cond_[plane][r - 1], mutex); in sync_read()
171 (void)plane; in sync_read()
176 const int sb_cols, int plane) { in sync_write() argument
191 pthread_mutex_lock(&lf_sync->mutex_[plane][r]); in sync_write()
193 lf_sync->cur_sb_col[plane][r] = cur; in sync_write()
195 pthread_cond_broadcast(&lf_sync->cond_[plane][r]); in sync_write()
[all …]
Dav1_loopfilter.c64 int plane, const MB_MODE_INFO *mbmi) { in av1_get_filter_level() argument
69 const int delta_lf_idx = delta_lf_id_lut[plane][dir_idx]; in av1_get_filter_level()
75 if (plane == 0) in av1_get_filter_level()
77 else if (plane == 1) in av1_get_filter_level()
82 assert(plane >= 0 && plane <= 2); in av1_get_filter_level()
83 const int seg_lf_feature_id = seg_lvl_lf_lut[plane][dir_idx]; in av1_get_filter_level()
98 return lfi_n->lvl[plane][segment_id][dir_idx][mbmi->ref_frame[0]] in av1_get_filter_level()
125 int plane; in av1_loop_filter_frame_init() local
148 for (plane = plane_start; plane < plane_end; plane++) { in av1_loop_filter_frame_init()
149 if (plane == 0 && !filt_lvl[0] && !filt_lvl_r[0]) in av1_loop_filter_frame_init()
[all …]
/external/igt-gpu-tools/tools/
Dskl_ddb_allocation.c66 enum plane { enum
126 struct intel_plane_wm_parameters plane[I915_MAX_PLANES]; member
153 struct skl_ddb_entry plane[I915_MAX_PIPES][I915_MAX_PLANES]; member
224 int plane; in skl_get_total_relative_data_rate() local
226 for (plane = 0; plane < intel_num_planes(intel_crtc); plane++) { in skl_get_total_relative_data_rate()
229 p = &params->plane[plane]; in skl_get_total_relative_data_rate()
252 int plane; in skl_allocate_pipe_ddb() local
257 memset(ddb->plane[pipe], 0, sizeof(ddb->plane[pipe])); in skl_allocate_pipe_ddb()
270 for_each_plane(pipe, plane) { in skl_allocate_pipe_ddb()
273 p = &params->plane[plane]; in skl_allocate_pipe_ddb()
[all …]
/external/tensorflow/tensorflow/core/profiler/utils/
Dxplane_utils.cc98 [name](const XPlane* plane) { return plane->name() == name; }); in FindPlaneWithName() argument
106 FindAll(space.planes(), [&names_set](const XPlane* plane) { in FindPlanesWithNames() argument
107 return names_set.contains(plane->name()); in FindPlanesWithNames()
119 [name](const XPlane* plane) { return plane->name() == name; }); in FindMutablePlaneWithName() argument
124 XPlane* plane = FindMutablePlaneWithName(space, name); in FindOrAddMutablePlaneWithName() local
125 if (plane == nullptr) { in FindOrAddMutablePlaneWithName()
126 plane = space->add_planes(); in FindOrAddMutablePlaneWithName()
127 plane->set_name(name.data(), name.size()); in FindOrAddMutablePlaneWithName()
129 return plane; in FindOrAddMutablePlaneWithName()
135 for (const XPlane& plane : space.planes()) { in FindPlanesWithPrefix() local
[all …]
Dxplane_utils_test.cc93 XPlane plane; in TEST() local
94 RemoveEmptyLines(&plane); in TEST()
95 EXPECT_EQ(plane.lines_size(), 0); in TEST()
97 auto* line1 = plane.add_lines(); in TEST()
102 auto* line2 = plane.add_lines(); in TEST()
105 auto* line3 = plane.add_lines(); in TEST()
109 auto* line4 = plane.add_lines(); in TEST()
112 RemoveEmptyLines(&plane); in TEST()
113 ASSERT_EQ(plane.lines_size(), 2); in TEST()
114 EXPECT_EQ(plane.lines(0).name(), "l1"); in TEST()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_aatriangle.c47 GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4]) in compute_plane()
68 plane[0] = a; in compute_plane()
69 plane[1] = b; in compute_plane()
70 plane[2] = c; in compute_plane()
71 plane[3] = d; in compute_plane()
79 constant_plane(GLfloat value, GLfloat plane[4]) in constant_plane()
81 plane[0] = 0.0; in constant_plane()
82 plane[1] = 0.0; in constant_plane()
83 plane[2] = -1.0; in constant_plane()
84 plane[3] = value; in constant_plane()
[all …]
/external/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c131 struct kms_sw_plane *plane = NULL; in get_plane() local
141 LIST_FOR_EACH_ENTRY(plane, &kms_sw_dt->planes, link) { in get_plane()
142 if (plane->offset == offset) in get_plane()
143 return plane; in get_plane()
146 plane = CALLOC_STRUCT(kms_sw_plane); in get_plane()
147 if (!plane) in get_plane()
150 plane->width = width; in get_plane()
151 plane->height = height; in get_plane()
152 plane->stride = stride; in get_plane()
153 plane->offset = offset; in get_plane()
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/core/
Dframe_buffer.cc44 source.plane(0).stride.row_stride_bytes * source.dimension().height; in GetYuvDataFromOnePlaneFrameBuffer()
46 ((source.plane(0).stride.row_stride_bytes + 1) / 2) * in GetYuvDataFromOnePlaneFrameBuffer()
48 result.y_buffer = source.plane(0).buffer; in GetYuvDataFromOnePlaneFrameBuffer()
49 result.y_row_stride = source.plane(0).stride.row_stride_bytes; in GetYuvDataFromOnePlaneFrameBuffer()
96 result.y_buffer = source.plane(0).buffer; in GetYuvDataFromTwoPlaneFrameBuffer()
98 result.y_row_stride = source.plane(0).stride.row_stride_bytes; in GetYuvDataFromTwoPlaneFrameBuffer()
99 result.uv_row_stride = source.plane(1).stride.row_stride_bytes; in GetYuvDataFromTwoPlaneFrameBuffer()
104 result.u_buffer = source.plane(1).buffer; in GetYuvDataFromTwoPlaneFrameBuffer()
108 result.v_buffer = source.plane(1).buffer; in GetYuvDataFromTwoPlaneFrameBuffer()
127 if (source.plane(1).stride.row_stride_bytes != in GetYuvDataFromThreePlaneFrameBuffer()
[all …]

12345678910>>...30