Home
last modified time | relevance | path

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

12345678910>>...21

/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 …]
/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 …]
/external/minigbm/
Ddrv.c254 size_t plane; in drv_bo_create() local
271 for (plane = 0; plane < bo->num_planes; plane++) { in drv_bo_create()
272 if (plane > 0) in drv_bo_create()
273 assert(bo->offsets[plane] >= bo->offsets[plane - 1]); in drv_bo_create()
275 drv_increment_reference_count(drv, bo, plane); in drv_bo_create()
287 size_t plane; in drv_bo_create_with_modifiers() local
309 for (plane = 0; plane < bo->num_planes; plane++) { in drv_bo_create_with_modifiers()
310 if (plane > 0) in drv_bo_create_with_modifiers()
311 assert(bo->offsets[plane] >= bo->offsets[plane - 1]); in drv_bo_create_with_modifiers()
313 drv_increment_reference_count(drv, bo, plane); in drv_bo_create_with_modifiers()
[all …]
Dhelpers.c160 uint32_t drv_height_from_format(uint32_t format, uint32_t height, size_t plane) in drv_height_from_format() argument
164 assert(plane < layout->num_planes); in drv_height_from_format()
166 return DIV_ROUND_UP(height, layout->vertical_subsampling[plane]); in drv_height_from_format()
169 uint32_t drv_bytes_per_pixel_from_format(uint32_t format, size_t plane) in drv_bytes_per_pixel_from_format() argument
173 assert(plane < layout->num_planes); in drv_bytes_per_pixel_from_format()
175 return layout->bytes_per_pixel[plane]; in drv_bytes_per_pixel_from_format()
181 uint32_t drv_stride_from_format(uint32_t format, uint32_t width, size_t plane) in drv_stride_from_format() argument
184 assert(plane < layout->num_planes); in drv_stride_from_format()
186 uint32_t plane_width = DIV_ROUND_UP(width, layout->horizontal_subsampling[plane]); in drv_stride_from_format()
187 uint32_t stride = plane_width * layout->bytes_per_pixel[plane]; in drv_stride_from_format()
[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()
62 plane->formats[i] = p->formats[i]; in kms_plane_probe()
64 plane->num_formats = p->count_formats; in kms_plane_probe()
68 props = drmModeObjectGetProperties(device->fd, plane->id, in kms_plane_probe()
79 plane->type = props->prop_values[i]; in kms_plane_probe()
[all …]
Dkms-universal-planes.c47 static uint32_t choose_format(struct kms_plane *plane) in choose_format() argument
52 if (kms_plane_supports_format(plane, formats[i])) in choose_format()
136 struct kms_plane *plane; in main() local
213 plane = device->planes[i]; in main()
214 switch (plane->type) { in main()
228 printf(" %u: %p\n", i, plane); in main()
229 printf(" ID: %x\n", plane->id); in main()
230 printf(" CRTC: %x\n", plane->crtc->id); in main()
231 printf(" Type: %x (%s)\n", plane->type, type); in main()
239 plane = kms_device_find_plane_by_type(device, in main()
[all …]
/external/libaom/libaom/av1/encoder/
Dencodemb.c66 void av1_subtract_txb(MACROBLOCK *x, int plane, BLOCK_SIZE plane_bsize, in av1_subtract_txb() argument
69 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_txb()
70 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_txb()
86 void av1_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in av1_subtract_plane() argument
87 struct macroblock_plane *const p = &x->plane[plane]; in av1_subtract_plane()
88 const struct macroblockd_plane *const pd = &x->e_mbd.plane[plane]; in av1_subtract_plane()
99 int av1_optimize_b(const struct AV1_COMP *cpi, MACROBLOCK *mb, int plane, in av1_optimize_b() argument
104 struct macroblock_plane *const p = &mb->plane[plane]; in av1_optimize_b()
110 *rate_cost = av1_cost_skip_txb(mb, txb_ctx, plane, tx_size); in av1_optimize_b()
114 return av1_optimize_txb_new(cpi, mb, plane, block, tx_size, tx_type, txb_ctx, in av1_optimize_b()
[all …]
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 …]
Dpicklpf.c31 YV12_BUFFER_CONFIG *dst_bc, int plane) { in yv12_copy_plane() argument
32 switch (plane) { in yv12_copy_plane()
36 default: assert(plane >= 0 && plane <= 2); break; in yv12_copy_plane()
51 int partial_frame, int plane, int dir) { in try_filter_frame() argument
55 assert(plane >= 0 && plane <= 2); in try_filter_frame()
57 if (plane == 0 && dir == 0) filter_level[1] = cm->lf.filter_level[1]; in try_filter_frame()
58 if (plane == 0 && dir == 1) filter_level[0] = cm->lf.filter_level[0]; in try_filter_frame()
61 switch (plane) { in try_filter_frame()
73 av1_loop_filter_frame_mt(&cm->cur_frame->buf, cm, &cpi->td.mb.e_mbd, plane, in try_filter_frame()
74 plane + 1, partial_frame, in try_filter_frame()
[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/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.c456 const int dir_idx, int plane, in get_filter_level() argument
462 const int delta_lf_idx = delta_lf_id_lut[plane][dir_idx]; in get_filter_level()
468 if (plane == 0) in get_filter_level()
470 else if (plane == 1) in get_filter_level()
475 assert(plane >= 0 && plane <= 2); in get_filter_level()
476 const int seg_lf_feature_id = seg_lvl_lf_lut[plane][dir_idx]; in get_filter_level()
491 return lfi_n->lvl[plane][segment_id][dir_idx][mbmi->ref_frame[0]] in get_filter_level()
518 int plane; in av1_loop_filter_frame_init() local
541 for (plane = plane_start; plane < plane_end; plane++) { in av1_loop_filter_frame_init()
542 if (plane == 0 && !filt_lvl[0] && !filt_lvl_r[0]) in av1_loop_filter_frame_init()
[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.c275 struct lp_rast_plane *plane; in do_triangle_ccw() local
396 plane = GET_PLANES(tri); in do_triangle_ccw()
483 _mm_storeu_si128((__m128i *)&plane[0], p0); in do_triangle_ccw()
484 plane[0].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
485 _mm_storeu_si128((__m128i *)&plane[1], p1); in do_triangle_ccw()
487 plane[1].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
488 _mm_storeu_si128((__m128i *)&plane[2], p2); in do_triangle_ccw()
490 plane[2].eo = (uint32_t)_mm_cvtsi128_si32(eo); in do_triangle_ccw()
576 #define STORE_PLANE(plane, vec) do { \ in do_triangle_ccw()
578 plane.c = (int64_t)temp_vec[0]; \ in do_triangle_ccw()
[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 …]
/external/libkmsxx/kms++/src/
Ddumbframebuffer.cpp49 FramebufferPlane& plane = m_planes[i]; in Create() local
60 plane.handle = creq.handle; in Create()
61 plane.stride = creq.pitch; in Create()
62 plane.size = creq.height * creq.pitch; in Create()
63 plane.offset = 0; in Create()
64 plane.map = 0; in Create()
65 plane.prime_fd = -1; in Create()
87 FramebufferPlane& plane = m_planes[i]; in Destroy() local
90 if (plane.map) in Destroy()
91 munmap(plane.map, plane.size); in Destroy()
[all …]
Dextframebuffer.cpp28 FramebufferPlane& plane = m_planes[i]; in ExtFramebuffer() local
30 plane.handle = handles[i]; in ExtFramebuffer()
31 plane.prime_fd = 0; in ExtFramebuffer()
33 plane.stride = pitches[i]; in ExtFramebuffer()
34 plane.offset = offsets[i]; in ExtFramebuffer()
35 plane.size = plane.stride * height; in ExtFramebuffer()
36 plane.map = 0; in ExtFramebuffer()
60 FramebufferPlane& plane = m_planes[i]; in ExtFramebuffer() local
62 plane.prime_fd = fds[i]; in ExtFramebuffer()
64 r = drmPrimeFDToHandle(card.fd(), fds[i], &plane.handle); in ExtFramebuffer()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_image.c126 uint32_t plane = anv_image_aspect_to_plane(image->aspects, aspect); in get_surface() local
127 return &image->planes[plane].surface; in get_surface()
131 add_surface(struct anv_image *image, struct anv_surface *surf, uint32_t plane) in add_surface() argument
136 surf->offset = align_u32(image->planes[plane].size, surf->isl.alignment); in add_surface()
141 if (image->planes[plane].size == 0) in add_surface()
142 image->planes[plane].offset = image->size; in add_surface()
146 image->planes[plane].size = (surf->offset + surf->isl.size) - image->planes[plane].offset; in add_surface()
149 image->planes[plane].alignment = MAX2(image->planes[plane].alignment, in add_surface()
231 uint32_t plane, in add_fast_clear_state_buffer() argument
235 assert(image->planes[plane].aux_surface.isl.size > 0 && in add_fast_clear_state_buffer()
[all …]
/external/drm_hwcomposer/
Ddrmdisplaycompositor.cpp171 DrmPlane *plane = comp_plane.plane(); in DisablePlanes() local
172 ret = drmModeAtomicAddProperty(pset, plane->id(), in DisablePlanes()
173 plane->crtc_property().id(), 0) < 0 || in DisablePlanes()
174 drmModeAtomicAddProperty(pset, plane->id(), plane->fb_property().id(), in DisablePlanes()
177 ALOGE("Failed to add plane %d disable to pset", plane->id()); in DisablePlanes()
309 DrmPlane *plane = comp_plane.plane(); in CommitFrame() local
344 if (plane->blend_property().id()) { in CommitFrame()
347 std::tie(blend, ret) = plane->blend_property().GetEnumValueWithName( in CommitFrame()
351 std::tie(blend, ret) = plane->blend_property().GetEnumValueWithName( in CommitFrame()
356 std::tie(blend, ret) = plane->blend_property().GetEnumValueWithName( in CommitFrame()
[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/libkmsxx/kms++/src/omap/
Domapframebuffer.cpp53 FramebufferPlane& plane = m_planes[i]; in Create() local
113 plane.omap_bo = bo; in Create()
114 plane.handle = omap_bo_handle(bo); in Create()
115 plane.stride = stride; in Create()
116 plane.size = omap_bo_size(bo); in Create()
117 plane.offset = 0; in Create()
118 plane.map = 0; in Create()
119 plane.prime_fd = -1; in Create()
141 FramebufferPlane& plane = m_planes[i]; in Destroy() local
144 if (plane.map) in Destroy()
[all …]
/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()
61 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size, in vp9_optimize_b() argument
64 struct macroblock_plane *const p = &mb->plane[plane]; in vp9_optimize_b()
65 struct macroblockd_plane *const pd = &xd->plane[plane]; in vp9_optimize_b()
72 const PLANE_TYPE plane_type = get_plane_type(plane); in vp9_optimize_b()
112 assert((!plane_type && !plane) || (plane_type && plane)); in vp9_optimize_b()
321 mb->plane[plane].eobs[block] = final_eob; in vp9_optimize_b()
344 void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, int row, int col, in vp9_xform_quant_fp() argument
[all …]

12345678910>>...21