Searched refs:plane (Results 1 - 25 of 259) sorted by relevance

1234567891011

/external/mesa3d/src/mesa/main/
H A Dclip.h39 _mesa_update_clip_plane(struct gl_context *ctx, GLuint plane);
42 _mesa_ClipPlane( GLenum plane, const GLdouble *equation );
45 _mesa_GetClipPlane( GLenum plane, GLdouble *equation );
H A Dclip.c36 * Update derived clip plane state.
39 _mesa_update_clip_plane(struct gl_context *ctx, GLuint plane) argument
45 _mesa_transform_vector(ctx->Transform._ClipUserPlane[plane],
46 ctx->Transform.EyeUserPlane[plane],
52 _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) argument
58 p = (GLint) plane - (GLint) GL_CLIP_PLANE0;
94 ctx->Driver.ClipPlane( ctx, plane, equation );
99 _mesa_GetClipPlane( GLenum plane, GLdouble *equation ) argument
104 p = (GLint) (plane - GL_CLIP_PLANE0);
/external/libdrm/tests/kms/
H A Dlibkms-test-plane.c33 static int kms_plane_probe(struct kms_plane *plane) argument
35 struct kms_device *device = plane->device;
40 p = drmModeGetPlane(device->fd, plane->id);
56 plane->crtc = device->crtcs[i];
61 plane->formats = calloc(p->count_formats, sizeof(uint32_t));
62 if (!plane->formats)
66 plane->formats[i] = p->formats[i];
68 plane->num_formats = p->count_formats;
72 props = drmModeObjectGetProperties(device->fd, plane->id,
83 plane
96 struct kms_plane *plane; local
110 kms_plane_free(struct kms_plane *plane) argument
115 kms_plane_set(struct kms_plane *plane, struct kms_framebuffer *fb, unsigned int x, unsigned int y) argument
130 kms_plane_supports_format(struct kms_plane *plane, uint32_t format) argument
[all...]
H A Dkms-universal-planes.c51 static uint32_t choose_format(struct kms_plane *plane) argument
56 if (kms_plane_supports_format(plane, formats[i]))
140 struct kms_plane *plane; local
217 plane = device->planes[i];
218 switch (plane->type) {
232 printf(" %u: %p\n", i, plane);
233 printf(" ID: %x\n", plane->id);
234 printf(" CRTC: %x\n", plane->crtc->id);
235 printf(" Type: %x (%s)\n", plane->type, type);
243 plane
[all...]
/external/libdrm/tests/planetest/
H A Dmodeset.c143 if (!(p->plane->possible_crtcs & (1 << crtc->pipe)))
152 void put_sp_plane(struct sp_plane *plane) argument
156 /* Get the latest plane information (most notably the crtc_id) */
157 p = drmModeGetPlane(plane->dev->fd, plane->plane->plane_id);
159 plane->plane = p;
161 if (plane->bo) {
162 free_sp_bo(plane
168 set_sp_plane(struct sp_dev *dev, struct sp_plane *plane, struct sp_crtc *crtc, int x, int y) argument
192 set_sp_plane_pset(struct sp_dev *dev, struct sp_plane *plane, drmModePropertySetPtr pset, struct sp_crtc *crtc, int x, int y) argument
[all...]
H A Dmodeset.h11 void put_sp_plane(struct sp_plane *plane);
13 int set_sp_plane(struct sp_dev *dev, struct sp_plane *plane,
16 int set_sp_plane_pset(struct sp_dev *dev, struct sp_plane *plane,
H A Dplanetest.c41 struct sp_plane **plane = NULL; local
67 plane = calloc(dev->num_planes, sizeof(*plane));
68 if (!plane) {
69 printf("Failed to allocate plane array\n");
76 plane[i] = get_sp_plane(dev, test_crtc);
77 if (!plane[i]) {
82 plane[i]->bo = create_sp_bo(dev, plane_w, plane_h, 16,
83 plane[i]->format, 0);
84 if (!plane[
[all...]
H A Ddev.c89 static int get_supported_format(struct sp_plane *plane, uint32_t *format) argument
93 for (i = 0; i < plane->plane->count_formats; i++) {
94 if (plane->plane->formats[i] == DRM_FORMAT_XRGB8888 ||
95 plane->plane->formats[i] == DRM_FORMAT_ARGB8888 ||
96 plane->plane->formats[i] == DRM_FORMAT_RGBA8888 ||
97 plane
232 struct sp_plane *plane = &dev->planes[i]; local
[all...]
H A Datomictest.c47 struct sp_plane **plane = NULL; local
79 plane = calloc(dev->num_planes, sizeof(*plane));
80 if (!plane) {
81 printf("Failed to allocate plane array\n");
88 plane[i] = get_sp_plane(dev, test_crtc);
89 if (!plane[i]) {
94 plane[i]->bo = create_sp_bo(dev, plane_w, plane_h, 16, plane[i]->format, 0);
95 if (!plane[
[all...]
/external/mesa3d/src/mesa/math/
H A Dm_dotprod_tmp.h36 const GLfloat plane[4] )
44 const GLfloat plane0 = plane[0], plane1 = plane[1], plane3 = plane[3];
56 const GLfloat plane[4] )
64 const GLfloat plane0 = plane[0], plane1 = plane[1], plane2 = plane[2];
65 const GLfloat plane3 = plane[3];
78 const GLfloat plane[
[all...]
/external/libvpx/libvpx/
H A Dtools_common.c80 int plane = 0; local
84 for (plane = 0; plane < 3; ++plane) {
86 const int w = vpx_img_plane_width(yuv_frame, plane);
87 const int h = vpx_img_plane_height(yuv_frame, plane);
90 /* Determine the correct plane based on the image format. The for-loop
94 switch (plane) {
105 default: ptr = yuv_frame->planes[plane];
123 ptr += yuv_frame->stride[plane];
205 vpx_img_plane_width(const vpx_image_t *img, int plane) argument
212 vpx_img_plane_height(const vpx_image_t *img, int plane) argument
220 int plane; local
238 int plane; local
275 int plane; local
311 int plane; local
353 int plane; local
387 int plane; local
421 int plane; local
[all...]
/external/dng_sdk/source/
H A Ddng_pixel_buffer.h85 /// 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 ste
514 SetConstant_uint8(const dng_rect &area, uint32 plane, uint32 planes, uint8 value) argument
532 SetConstant_uint16(const dng_rect &area, uint32 plane, uint32 planes, uint16 value) argument
550 SetConstant_int16(const dng_rect &area, uint32 plane, uint32 planes, int16 value) argument
568 SetConstant_uint32(const dng_rect &area, uint32 plane, uint32 planes, uint32 value) argument
586 SetConstant_real32(const dng_rect &area, uint32 plane, uint32 planes, real32 value) argument
635 CopyArea(const dng_pixel_buffer &src, const dng_rect &area, uint32 plane, uint32 planes) argument
[all...]
H A Ddng_lens_correction.cpp85 bool dng_warp_params::IsNOP (uint32 plane) const
88 return IsRadNOP (plane) &&
89 IsTanNOP (plane);
98 for (uint32 plane = 0; plane < fPlanes; plane++)
101 if (!IsRadNOP (plane))
114 bool dng_warp_params::IsRadNOP (uint32 /* plane */) const
126 for (uint32 plane = 0; plane < fPlane
197 EvaluateInverse(uint32 plane, real64 y) const argument
241 EvaluateTangential2(uint32 plane, const dng_point_real64 &diff) const argument
262 EvaluateTangential3(uint32 plane, real64 r2, const dng_point_real64 &diff) const argument
[all...]
H A Ddng_lens_correction.h88 /// Is the entire correction a NOP for the specified plane?
90 virtual bool IsNOP (uint32 plane) const;
96 /// Is the radial correction a NOP for the specified plane?
98 virtual bool IsRadNOP (uint32 plane) const;
104 /// Is the tangential correction a NOP for the specified plane?
106 virtual bool IsTanNOP (uint32 plane) const;
116 /// Propagate warp parameters from first plane to all other planes.
120 /// Evaluate the 1D radial warp function for the specified plane.
126 virtual real64 Evaluate (uint32 plane,
136 virtual real64 EvaluateInverse (uint32 plane,
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_rast_tri_tmp.h35 * Prototype for a 8 plane rasterizer function. Will codegenerate
45 const struct lp_rast_plane *plane,
55 -plane[j].dcdx >> FIXED_ORDER,
56 plane[j].dcdy >> FIXED_ORDER);
59 -plane[j].dcdx,
60 plane[j].dcdy);
77 const struct lp_rast_plane *plane,
89 int32_t dcdx = -plane[j].dcdx >> FIXED_ORDER;
90 int32_t dcdy = plane[j].dcdy >> FIXED_ORDER;
91 const int32_t cox = plane[
43 do_block_4(struct lp_rasterizer_task *task, const struct lp_rast_triangle *tri, const struct lp_rast_plane *plane, int x, int y, const int64_t *c) argument
75 do_block_16(struct lp_rasterizer_task *task, const struct lp_rast_triangle *tri, const struct lp_rast_plane *plane, int x, int y, const int64_t *c) argument
184 struct lp_rast_plane plane[NR_PLANES]; local
334 const struct lp_rast_plane *plane = GET_PLANES(tri); local
407 const struct lp_rast_plane *plane = GET_PLANES(tri); local
[all...]
/external/libvpx/libvpx/test/
H A Dmd5_helper.h23 for (int plane = 0; plane < 3; ++plane) {
24 const uint8_t *buf = img->planes[plane];
26 // plane, we never want to round down and thus skip a pixel so if
32 plane ? (img->d_h + img->y_chroma_shift) >> img->y_chroma_shift
35 (plane ? (img->d_w + img->x_chroma_shift) >> img->x_chroma_shift
41 buf += img->stride[plane];
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_encodemb.h28 int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size,
32 void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, int row, int col,
34 void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, int row, int col,
36 void vp9_xform_quant(MACROBLOCK *x, int plane, int block, int row, int col,
39 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
41 void vp9_encode_block_intra(int plane, int block, int row, int col,
44 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane,
H A Dvp9_tokenize.c317 static void set_entropy_context_b(int plane, int block, int row, int col, argument
324 struct macroblock_plane *p = &x->plane[plane];
325 struct macroblockd_plane *pd = &xd->plane[plane];
348 static void tokenize_b(int plane, int block, int row, int col, argument
357 struct macroblock_plane *p = &x->plane[plane];
358 struct macroblockd_plane *pd = &xd->plane[plane];
425 is_skippable(int plane, int block, int row, int col, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *argv) argument
438 vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) argument
446 has_high_freq_coeff(int plane, int block, int row, int col, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *argv) argument
458 vp9_has_high_freq_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) argument
[all...]
H A Dvp9_mbgraph.c72 return vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride,
73 xd->plane[0].dst.buf, xd->plane[0].dst.stride);
85 err = vpx_sad16x16(x->plane[0].src.buf, x->plane[0].src.stride,
86 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride);
121 err = vpx_sad16x16(x->plane[0].src.buf, x->plane[
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_aatriangle.c42 * Compute coefficients of a plane using the X,Y coords of the v0, v1, v2
44 * A point (x,y,z) lies on plane iff a*x+b*y+c*z+d = 0.
48 GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4])
58 /* Crossproduct "(a,b,c):= dv1 x dv2" is orthogonal to plane. */
62 /* Point on the plane = "r*(a,b,c) + w", with fixed "r" depending
63 on the distance of plane from origin and arbitrary "w" parallel
64 to the plane. */
69 plane[0] = a;
70 plane[1] = b;
71 plane[
47 compute_plane(const GLfloat v0[], const GLfloat v1[], const GLfloat v2[], GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4]) argument
80 constant_plane(GLfloat value, GLfloat plane[4]) argument
102 solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4]) argument
117 solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4]) argument
133 plane_dx(const GLfloat plane[4]) argument
139 plane_dy(const GLfloat plane[4]) argument
[all...]
/external/libvpx/libvpx/vp9/decoder/
H A Dvp9_detokenize.h22 int vp9_decode_block_tokens(TileWorkerData *twd, int plane,
/external/tensorflow/tensorflow/compiler/xla/
H A Darray4d.h48 // First dimension: plane, batch, n1
111 for (int64 plane = 0; plane < planes(); ++plane) {
115 (*this)(plane, depth, height, width) = value(height, width);
128 for (int64 plane = 0; plane < planes(); ++plane) {
130 (*this)(plane, depth, height, width) = value(plane, dept
[all...]
/external/libvpx/libvpx/vp9/common/
H A Dvp9_blockd.c38 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane,
40 const struct macroblockd_plane *const pd = &xd->plane[plane];
44 // transform size varies per plane, look it up in a common way.
45 const TX_SIZE tx_size = plane ? get_uv_tx_size(mi, pd) : mi->tx_size;
70 visit(plane, i, r, c, plane_bsize, tx_size, arg);
81 int plane; local
83 for (plane = 0; plane < MAX_MB_PLANE; ++plane)
37 vp9_foreach_transformed_block_in_plane( const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, foreach_transformed_block_visitor visit, void *arg) argument
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_nir_lower_tex_src_plane.c40 * case of 3-plane YUV format, the V plane is next sampler after U.
76 nir_const_value *plane = nir_src_as_const_value(tex->src[plane_index].src); local
77 assume(plane);
79 if (plane->i32[0] > 0) {
83 assume(((state->lower_3plane & (1 << y_samp)) && plane->i32[0] < 3) ||
84 (plane->i32[0] < 2));
87 state->sampler_map[y_samp][plane->i32[0] - 1];
/external/libvpx/libvpx/examples/
H A Ddecode_to_md5.c28 // Each row of the image is passed to the MD5 accumulator. First the Y plane
45 int plane, y; local
50 for (plane = 0; plane < 3; ++plane) {
51 const unsigned char *buf = img->planes[plane];
52 const int stride = img->stride[plane];
53 const int w = plane ? (img->d_w + 1) >> 1 : img->d_w;
54 const int h = plane ? (img->d_h + 1) >> 1 : img->d_h;

Completed in 638 milliseconds

1234567891011