/external/libgav1/libgav1/src/post_filter/ |
D | super_res.cc | 42 for (int plane = kPlaneY; plane < planes_; ++plane) { in ApplySuperRes() local 43 const int8_t subsampling_x = subsampling_x_[plane]; in ApplySuperRes() 46 uint8_t* input = buffers[plane]; in ApplySuperRes() 47 const uint32_t input_stride = strides[plane]; in ApplySuperRes() 50 for (int y = 0; y < rows[plane]; ++y, input += input_stride) { in ApplySuperRes() 58 super_res_info_[plane].upscaled_width, in ApplySuperRes() 59 super_res_info_[plane].initial_subpixel_x, in ApplySuperRes() 60 super_res_info_[plane].step, in ApplySuperRes() 66 for (int y = 0; y < rows[plane]; ++y, input += input_stride) { in ApplySuperRes() 73 super_res_info_[plane].upscaled_width, in ApplySuperRes() [all …]
|
D | post_filter.cc | 185 for (int plane = 0; plane < planes_; ++plane) { local 187 RightShiftWithRounding(width_, subsampling_x_[plane]); 189 RightShiftWithRounding(upscaled_width_, subsampling_x_[plane]); 191 super_res_info_[plane].step = 194 super_res_info_[plane].step * upscaled_width - superres_width; 195 super_res_info_[plane].initial_subpixel_x = 201 super_res_info_[plane].upscaled_width = upscaled_width; 204 for (int plane = 0; plane < planes_; ++plane) { local 205 loop_restoration_buffer_[plane] = frame_buffer_.data(plane); 206 cdef_buffer_[plane] = frame_buffer_.data(plane); [all …]
|
D | cdef.cc | 76 const int start_y, const int plane, in GetCdefBufferAndStride() argument 83 start_x % (window_buffer_width_ >> subsampling_x_[plane]); in GetCdefBufferAndStride() 85 start_y % (window_buffer_height_ >> subsampling_y_[plane]); in GetCdefBufferAndStride() 86 return threaded_window_buffer_ + plane * window_buffer_plane_size + in GetCdefBufferAndStride() 90 *cdef_stride = frame_buffer_.stride(plane); in GetCdefBufferAndStride() 91 return cdef_buffer_[plane] + start_y * (*cdef_stride) + start_x * pixel_size_; in GetCdefBufferAndStride() 121 for (int plane = y_plane ? kPlaneY : kPlaneU; plane < max_planes; ++plane) { in PrepareCdefBlock() local 122 uint16_t* cdef_src = cdef_source + plane * kCdefUnitSizeWithBorders * in PrepareCdefBlock() 124 const int src_stride = frame_buffer_.stride(plane) / sizeof(Pixel); in PrepareCdefBlock() 126 reinterpret_cast<const Pixel*>(source_buffer_[plane]) + in PrepareCdefBlock() [all …]
|
D | loop_restoration.cc | 87 const Pixel* src_buffer, const Plane plane, const int plane_height, in ApplyLoopRestorationForOneRowInWindow() argument 93 restoration_info_->num_horizontal_units(static_cast<Plane>(plane)); in ApplyLoopRestorationForOneRowInWindow() 94 const ptrdiff_t src_stride = frame_buffer_.stride(plane) / sizeof(Pixel); in ApplyLoopRestorationForOneRowInWindow() 96 restoration_info_->loop_restoration_info(static_cast<Plane>(plane), in ApplyLoopRestorationForOneRowInWindow() 136 const int deblock_buffer_units = 64 >> subsampling_y_[plane]; in ApplyLoopRestorationForOneRowInWindow() 138 reinterpret_cast<const Pixel*>(deblock_buffer_.data(plane)); in ApplyLoopRestorationForOneRowInWindow() 141 deblock_buffer_.stride(plane) / sizeof(Pixel); in ApplyLoopRestorationForOneRowInWindow() 180 for (int plane = 0; plane < planes_; ++plane) { in ApplyLoopRestorationSingleThread() local 181 if (loop_restoration_.type[plane] == kLoopRestorationTypeNone) { in ApplyLoopRestorationSingleThread() 184 const ptrdiff_t stride = frame_buffer_.stride(plane) / sizeof(Pixel); in ApplyLoopRestorationSingleThread() [all …]
|
/external/libgav1/libgav1/src/ |
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() 73 const int plane_width = (plane == kPlaneY) in Reset() 77 (plane == kPlaneY) ? height in Reset() 79 num_horizontal_units_[plane] = std::max( in Reset() 80 1, (plane_width + DivideBy2(loop_restoration_->unit_size[plane])) / in Reset() 81 loop_restoration_->unit_size[plane]); in Reset() 82 num_vertical_units_[plane] = std::max( in Reset() [all …]
|
D | yuv_buffer.h | 100 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/dng_sdk/source/ |
D | dng_pixel_buffer.h | 127 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 …]
|
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() 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/libdrm/tests/kms/ |
D | libkms-test-plane.c | 29 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/minigbm/ |
D | drv.c | 271 size_t plane; in drv_bo_create() local 300 for (plane = 0; plane < bo->meta.num_planes; plane++) { in drv_bo_create() 301 if (plane > 0) in drv_bo_create() 302 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create() 304 drv_increment_reference_count(drv, bo, plane); in drv_bo_create() 316 size_t plane; in drv_bo_create_with_modifiers() local 347 for (plane = 0; plane < bo->meta.num_planes; plane++) { in drv_bo_create_with_modifiers() 348 if (plane > 0) in drv_bo_create_with_modifiers() 349 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create_with_modifiers() 351 drv_increment_reference_count(drv, bo, plane); in drv_bo_create_with_modifiers() [all …]
|
D | helpers.c | 198 uint32_t drv_height_from_format(uint32_t format, uint32_t height, size_t plane) in drv_height_from_format() argument 202 assert(plane < layout->num_planes); in drv_height_from_format() 204 return DIV_ROUND_UP(height, layout->vertical_subsampling[plane]); in drv_height_from_format() 207 uint32_t drv_vertical_subsampling_from_format(uint32_t format, size_t plane) in drv_vertical_subsampling_from_format() argument 211 assert(plane < layout->num_planes); in drv_vertical_subsampling_from_format() 213 return layout->vertical_subsampling[plane]; in drv_vertical_subsampling_from_format() 216 uint32_t drv_bytes_per_pixel_from_format(uint32_t format, size_t plane) in drv_bytes_per_pixel_from_format() argument 220 assert(plane < layout->num_planes); in drv_bytes_per_pixel_from_format() 222 return layout->bytes_per_pixel[plane]; in drv_bytes_per_pixel_from_format() 228 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/common/ |
D | tools_common.c | 81 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/ |
D | lp_rast_tri_tmp.h | 45 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/libaom/libaom/av1/encoder/ |
D | tokenize.c | 31 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, ¶ms->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 …]
|
D | model_rd.h | 48 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 …]
|
D | encodemb.c | 55 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/ |
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 …]
|
D | kms_plane_alpha_blend.c | 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() 147 igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0xffff); in has_multiplied_alpha() [all …]
|
/external/libaom/libaom/av1/common/ |
D | thread_common.c | 142 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 …]
|
D | av1_loopfilter.c | 64 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/ |
D | skl_ddb_allocation.c | 66 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 = ¶ms->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 = ¶ms->plane[plane]; in skl_allocate_pipe_ddb() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_aatriangle.c | 47 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/ |
D | kms_dri_sw_winsys.c | 131 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/libkmsxx/kms++/src/ |
D | dumbframebuffer.cpp | 49 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 …]
|
D | extframebuffer.cpp | 28 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 …]
|