Home
last modified time | relevance | path

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

12345678910>>...13

/external/libdrm/tests/planetest/
Dmodeset.c143 if (!(p->plane->possible_crtcs & (1 << crtc->pipe))) in get_sp_plane()
152 void put_sp_plane(struct sp_plane *plane) in put_sp_plane() argument
157 p = drmModeGetPlane(plane->dev->fd, plane->plane->plane_id); in put_sp_plane()
159 plane->plane = p; in put_sp_plane()
161 if (plane->bo) { in put_sp_plane()
162 free_sp_bo(plane->bo); in put_sp_plane()
163 plane->bo = NULL; in put_sp_plane()
165 plane->in_use = 0; in put_sp_plane()
168 int set_sp_plane(struct sp_dev *dev, struct sp_plane *plane, in set_sp_plane() argument
174 w = plane->bo->width; in set_sp_plane()
[all …]
Ddev.c89 static int get_supported_format(struct sp_plane *plane, uint32_t *format) in get_supported_format() argument
93 for (i = 0; i < plane->plane->count_formats; i++) { in get_supported_format()
94 if (plane->plane->formats[i] == DRM_FORMAT_XRGB8888 || in get_supported_format()
95 plane->plane->formats[i] == DRM_FORMAT_ARGB8888 || in get_supported_format()
96 plane->plane->formats[i] == DRM_FORMAT_RGBA8888 || in get_supported_format()
97 plane->plane->formats[i] == DRM_FORMAT_NV12) { in get_supported_format()
98 *format = plane->plane->formats[i]; in get_supported_format()
232 struct sp_plane *plane = &dev->planes[i]; in create_sp_dev() local
234 plane->dev = dev; in create_sp_dev()
235 plane->plane = drmModeGetPlane(dev->fd, pr->planes[i]); in create_sp_dev()
[all …]
Dplanetest.c41 struct sp_plane **plane = NULL; in main() local
67 plane = calloc(dev->num_planes, sizeof(*plane)); in main()
68 if (!plane) { in main()
76 plane[i] = get_sp_plane(dev, test_crtc); in main()
77 if (!plane[i]) { in main()
82 plane[i]->bo = create_sp_bo(dev, plane_w, plane_h, 16, in main()
83 plane[i]->format, 0); in main()
84 if (!plane[i]->bo) { in main()
89 fill_bo(plane[i]->bo, 0xFF, 0xFF, 0xFF, 0xFF); in main()
99 ret = set_sp_plane(dev, plane[j], test_crtc, in main()
[all …]
Datomictest.c47 struct sp_plane **plane = NULL; in main() local
79 plane = calloc(dev->num_planes, sizeof(*plane)); in main()
80 if (!plane) { in main()
88 plane[i] = get_sp_plane(dev, test_crtc); in main()
89 if (!plane[i]) { in main()
94 plane[i]->bo = create_sp_bo(dev, plane_w, plane_h, 16, plane[i]->format, 0); in main()
95 if (!plane[i]->bo) { in main()
100 fill_bo(plane[i]->bo, 0xFF, 0xFF, 0xFF, 0xFF); in main()
119 ret = set_sp_plane_pset(dev, plane[j], pset, test_crtc, in main()
145 put_sp_plane(plane[i]); in main()
[all …]
/external/libvpx/libvpx/
Dtools_common.c80 int plane = 0; in read_yuv_frame() local
84 for (plane = 0; plane < 3; ++plane) { in read_yuv_frame()
86 const int w = vpx_img_plane_width(yuv_frame, plane); in read_yuv_frame()
87 const int h = vpx_img_plane_height(yuv_frame, plane); in read_yuv_frame()
94 switch (plane) { in read_yuv_frame()
105 default: ptr = yuv_frame->planes[plane]; in read_yuv_frame()
123 ptr += yuv_frame->stride[plane]; in read_yuv_frame()
205 int vpx_img_plane_width(const vpx_image_t *img, int plane) { in vpx_img_plane_width() argument
206 if (plane > 0 && img->x_chroma_shift > 0) in vpx_img_plane_width()
212 int vpx_img_plane_height(const vpx_image_t *img, int plane) { in vpx_img_plane_height() argument
[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 …]
Ddng_lens_correction.h90 virtual bool IsNOP (uint32 plane) const;
98 virtual bool IsRadNOP (uint32 plane) const;
106 virtual bool IsTanNOP (uint32 plane) const;
126 virtual real64 Evaluate (uint32 plane,
136 virtual real64 EvaluateInverse (uint32 plane,
149 virtual real64 EvaluateRatio (uint32 plane,
163 virtual dng_point_real64 EvaluateTangential (uint32 plane,
174 dng_point_real64 EvaluateTangential2 (uint32 plane,
186 dng_point_real64 EvaluateTangential3 (uint32 plane,
316 virtual bool IsRadNOP (uint32 plane) const;
[all …]
Ddng_gain_map.cpp57 uint32 plane);
99 uint32 plane) in dng_gain_map_interpolator() argument
110 , fPlane (plane) in dng_gain_map_interpolator()
278 uint32 plane, in Interpolate() argument
286 plane); in Interpolate()
323 for (uint32 plane = 0; plane < fPlanes; plane++) in PutStream() local
328 plane)); in PutStream()
425 for (uint32 plane = 0; plane < mapPlanes; plane++) in GetStream() local
430 map->Entry (rowIndex, colIndex, plane) = x; in GetStream()
443 (unsigned) plane, in GetStream()
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-plane.c33 static int kms_plane_probe(struct kms_plane *plane) in kms_plane_probe() argument
35 struct kms_device *device = plane->device; in kms_plane_probe()
40 p = drmModeGetPlane(device->fd, plane->id); in kms_plane_probe()
56 plane->crtc = device->crtcs[i]; in kms_plane_probe()
61 plane->formats = calloc(p->count_formats, sizeof(uint32_t)); in kms_plane_probe()
62 if (!plane->formats) in kms_plane_probe()
66 plane->formats[i] = p->formats[i]; in kms_plane_probe()
68 plane->num_formats = p->count_formats; in kms_plane_probe()
72 props = drmModeObjectGetProperties(device->fd, plane->id, in kms_plane_probe()
83 plane->type = props->prop_values[i]; in kms_plane_probe()
[all …]
Dkms-universal-planes.c51 static uint32_t choose_format(struct kms_plane *plane) in choose_format() argument
56 if (kms_plane_supports_format(plane, formats[i])) in choose_format()
140 struct kms_plane *plane; in main() local
217 plane = device->planes[i]; in main()
218 switch (plane->type) { in main()
232 printf(" %u: %p\n", i, plane); in main()
233 printf(" ID: %x\n", plane->id); in main()
234 printf(" CRTC: %x\n", plane->crtc->id); in main()
235 printf(" Type: %x (%s)\n", plane->type, type); in main()
243 plane = kms_device_find_plane_by_type(device, in main()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_tri_tmp.h45 const struct lp_rast_plane *plane, in TAG()
55 -plane[j].dcdx >> FIXED_ORDER, in TAG()
56 plane[j].dcdy >> FIXED_ORDER); in TAG()
59 -plane[j].dcdx, in TAG()
60 plane[j].dcdy); in TAG()
77 const struct lp_rast_plane *plane, in TAG()
89 int32_t dcdx = -plane[j].dcdx >> FIXED_ORDER; in TAG()
90 int32_t dcdy = plane[j].dcdy >> FIXED_ORDER; in TAG()
91 const int32_t cox = plane[j].eo >> FIXED_ORDER; in TAG()
101 const int64_t dcdx = -IMUL64(plane[j].dcdx, 4); in TAG()
[all …]
Dlp_setup_tri.c278 struct lp_rast_plane *plane; in do_triangle_ccw() local
395 plane = GET_PLANES(tri); in do_triangle_ccw()
482 _mm_storeu_si128((__m128i *)&plane[0], p0); in do_triangle_ccw()
483 plane[0].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
484 _mm_storeu_si128((__m128i *)&plane[1], p1); in do_triangle_ccw()
486 plane[1].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
487 _mm_storeu_si128((__m128i *)&plane[2], p2); in do_triangle_ccw()
489 plane[2].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
575 #define STORE_PLANE(plane, vec) do { \ in do_triangle_ccw()
577 plane.c = (int64_t)temp_vec[0]; \ in do_triangle_ccw()
[all …]
Dlp_setup_line.c288 struct lp_rast_plane *plane; in try_setup_line() local
621 plane = GET_PLANES(line); in try_setup_line()
622 plane[0].dcdy = x[0] - x[1]; in try_setup_line()
623 plane[1].dcdy = x[1] - x[2]; in try_setup_line()
624 plane[2].dcdy = x[2] - x[3]; in try_setup_line()
625 plane[3].dcdy = x[3] - x[0]; in try_setup_line()
627 plane[0].dcdx = y[0] - y[1]; in try_setup_line()
628 plane[1].dcdx = y[1] - y[2]; in try_setup_line()
629 plane[2].dcdx = y[2] - y[3]; in try_setup_line()
630 plane[3].dcdx = y[3] - y[0]; in try_setup_line()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_aatriangle.c48 GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4]) in compute_plane()
69 plane[0] = a; in compute_plane()
70 plane[1] = b; in compute_plane()
71 plane[2] = c; in compute_plane()
72 plane[3] = d; in compute_plane()
80 constant_plane(GLfloat value, GLfloat plane[4]) in constant_plane()
82 plane[0] = 0.0; in constant_plane()
83 plane[1] = 0.0; in constant_plane()
84 plane[2] = -1.0; in constant_plane()
85 plane[3] = value; in constant_plane()
[all …]
Ds_aaline.c92 GLfloat z0, GLfloat z1, GLfloat plane[4]) in compute_plane()
106 plane[0] = a; in compute_plane()
107 plane[1] = b; in compute_plane()
108 plane[2] = c; in compute_plane()
109 plane[3] = d; in compute_plane()
120 plane[0] = 0.0F; in compute_plane()
121 plane[1] = 0.0F; in compute_plane()
122 plane[2] = 1.0F; in compute_plane()
123 plane[3] = 0.0F; in compute_plane()
126 plane[0] = a; in compute_plane()
[all …]
/external/mesa3d/src/mesa/math/
Dm_dotprod_tmp.h36 const GLfloat plane[4] ) in TAG()
44 const GLfloat plane0 = plane[0], plane1 = plane[1], plane3 = plane[3]; in TAG()
56 const GLfloat plane[4] ) in TAG()
64 const GLfloat plane0 = plane[0], plane1 = plane[1], plane2 = plane[2]; in TAG()
65 const GLfloat plane3 = plane[3]; in TAG()
78 const GLfloat plane[4] ) in TAG()
85 const GLfloat plane0 = plane[0], plane1 = plane[1], plane2 = plane[2]; in TAG()
86 const GLfloat plane3 = plane[3]; in TAG()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodemb.c33 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_subtract_plane() argument
34 struct macroblock_plane *const p = &x->plane[plane]; in vp9_subtract_plane()
35 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in vp9_subtract_plane()
60 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in vp9_optimize_b() argument
63 struct macroblock_plane *const p = &mb->plane[plane]; in vp9_optimize_b()
64 struct macroblockd_plane *const pd = &xd->plane[plane]; in vp9_optimize_b()
71 const PLANE_TYPE plane_type = get_plane_type(plane); in vp9_optimize_b()
105 assert((!plane_type && !plane) || (plane_type && plane)); in vp9_optimize_b()
300 mb->plane[plane].eobs[block] = final_eob; in vp9_optimize_b()
323 void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, int row, int col, in vp9_xform_quant_fp() argument
[all …]
Dvp9_mbgraph.c72 return vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_motion_iteration()
73 xd->plane[0].dst.buf, xd->plane[0].dst.stride); in do_16x16_motion_iteration()
85 err = vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_motion_search()
86 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride); in do_16x16_motion_search()
121 err = vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in do_16x16_zerozero_search()
122 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride); in do_16x16_zerozero_search()
140 vp9_predict_intra_block(xd, 2, TX_16X16, mode, x->plane[0].src.buf, in find_best_16x16_intra()
141 x->plane[0].src.stride, xd->plane[0].dst.buf, in find_best_16x16_intra()
142 xd->plane[0].dst.stride, 0, 0, 0); in find_best_16x16_intra()
143 err = vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride, in find_best_16x16_intra()
[all …]
Dvp9_tokenize.c317 static void set_entropy_context_b(int plane, int block, int row, int col, in set_entropy_context_b() argument
324 struct macroblock_plane *p = &x->plane[plane]; in set_entropy_context_b()
325 struct macroblockd_plane *pd = &xd->plane[plane]; in set_entropy_context_b()
348 static void tokenize_b(int plane, int block, int row, int col, in tokenize_b() argument
357 struct macroblock_plane *p = &x->plane[plane]; in tokenize_b()
358 struct macroblockd_plane *pd = &xd->plane[plane]; in tokenize_b()
364 const PLANE_TYPE type = get_plane_type(plane); in tokenize_b()
425 static void is_skippable(int plane, int block, int row, int col, in is_skippable() argument
428 (void)plane; in is_skippable()
438 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_is_skippable_in_plane() argument
[all …]
Dvp9_quantize.c162 void vp9_regular_quantize_b_4x4(MACROBLOCK *x, int plane, int block, in vp9_regular_quantize_b_4x4() argument
165 struct macroblock_plane *p = &x->plane[plane]; in vp9_regular_quantize_b_4x4()
166 struct macroblockd_plane *pd = &xd->plane[plane]; in vp9_regular_quantize_b_4x4()
283 x->plane[0].quant = quants->y_quant[qindex]; in vp9_init_plane_quantizers()
284 x->plane[0].quant_fp = quants->y_quant_fp[qindex]; in vp9_init_plane_quantizers()
285 x->plane[0].round_fp = quants->y_round_fp[qindex]; in vp9_init_plane_quantizers()
286 x->plane[0].quant_shift = quants->y_quant_shift[qindex]; in vp9_init_plane_quantizers()
287 x->plane[0].zbin = quants->y_zbin[qindex]; in vp9_init_plane_quantizers()
288 x->plane[0].round = quants->y_round[qindex]; in vp9_init_plane_quantizers()
289 xd->plane[0].dequant = cpi->y_dequant[qindex]; in vp9_init_plane_quantizers()
[all …]
/external/drm_hwcomposer/
Ddrmdisplaycompositor.cpp178 [](const DrmCompositionPlane &plane) { in UsesSquash() argument
179 return plane.type() == DrmCompositionPlane::Type::kSquash; in UsesSquash()
444 DrmPlane *plane = comp_plane.plane(); in DisablePlanes() local
445 ret = drmModeAtomicAddProperty(pset, plane->id(), in DisablePlanes()
446 plane->crtc_property().id(), 0) < 0 || in DisablePlanes()
447 drmModeAtomicAddProperty(pset, plane->id(), plane->fb_property().id(), in DisablePlanes()
450 ALOGE("Failed to add plane %d disable to pset", plane->id()); in DisablePlanes()
598 DrmPlane *plane = comp_plane.plane(); in CommitFrame() local
664 ret = drmModeAtomicAddProperty(pset, plane->id(), in CommitFrame()
665 plane->crtc_property().id(), 0) < 0 || in CommitFrame()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Darray4d.h111 for (int64 plane = 0; plane < planes(); ++plane) { in FillWithYX() local
115 (*this)(plane, depth, height, width) = value(height, width); in FillWithYX()
128 for (int64 plane = 0; plane < planes(); ++plane) { in FillWithPZ() local
130 (*this)(plane, depth, height, width) = value(plane, depth); in FillWithPZ()
146 for (int64 plane = 0; plane < planes(); ++plane) { in FillWithMinorDimNum() local
148 float this_val = plane * this->depth() + depth; in FillWithMinorDimNum()
149 (*this)(plane, depth, height, width) = this_val; in FillWithMinorDimNum()
/external/libvpx/libvpx/vp9/common/
Dvp9_blockd.c38 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, in vp9_foreach_transformed_block_in_plane() argument
40 const struct macroblockd_plane *const pd = &xd->plane[plane]; in vp9_foreach_transformed_block_in_plane()
45 const TX_SIZE tx_size = plane ? get_uv_tx_size(mi, pd) : mi->tx_size; in vp9_foreach_transformed_block_in_plane()
70 visit(plane, i, r, c, plane_bsize, tx_size, arg); in vp9_foreach_transformed_block_in_plane()
81 int plane; in vp9_foreach_transformed_block() local
83 for (plane = 0; plane < MAX_MB_PLANE; ++plane) in vp9_foreach_transformed_block()
84 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg); in vp9_foreach_transformed_block()
128 xd->plane[i].subsampling_x = i ? ss_x : 0; in vp9_setup_block_planes()
129 xd->plane[i].subsampling_y = i ? ss_y : 0; in vp9_setup_block_planes()
/external/syslinux/com32/lib/jpeg/
Dyuv420p.c73 p = priv->plane[0]; in YCrCB_to_YUV420P_1x1()
82 p = priv->plane[1]; in YCrCB_to_YUV420P_1x1()
94 p = priv->plane[2]; in YCrCB_to_YUV420P_1x1()
119 p = priv->plane[0]; in YCrCB_to_YUV420P_2x1()
130 p = priv->plane[1]; in YCrCB_to_YUV420P_2x1()
139 p = priv->plane[2]; in YCrCB_to_YUV420P_2x1()
164 p = priv->plane[0]; in YCrCB_to_YUV420P_1x2()
173 pr = priv->plane[1]; in YCrCB_to_YUV420P_1x2()
185 pr = priv->plane[2]; in YCrCB_to_YUV420P_1x2()
212 p = priv->plane[0]; in YCrCB_to_YUV420P_2x2()
[all …]

12345678910>>...13