/third_party/ffmpeg/libavcodec/ |
H A D | elbg.c | 48 int dim; member 74 static inline int distance_limited(int *a, int *b, int dim, int limit) in distance_limited() argument 77 for (i=0; i<dim; i++) { in distance_limited() 86 static inline void vect_division(int *res, int *vect, int div, int dim) in vect_division() argument 90 for (i=0; i<dim; i++) in vect_division() 93 memcpy(res, vect, dim*sizeof(int)); in vect_division() 101 error += distance_limited(centroid, elbg->points + cells->index*elbg->dim, elbg->dim, INT_MAX); in eval_error_cell() 112 diff = distance_limited(elbg->codebook + i*elbg->dim, elbg->codebook + index*elbg->dim, elb in get_closest_codebook() 146 simple_lbg(ELBGContext *elbg, int dim, int *centroid[3], int newutility[3], int *points, cell *cells) simple_lbg() argument 425 int dim = elbg->dim; init_elbg() local 446 avpriv_elbg_do(ELBGContext **elbgp, int *points, int dim, int numpoints, int *codebook, int num_cb, int max_steps, int *closest_cb, AVLFG *rand_state, uintptr_t flags) avpriv_elbg_do() argument [all...] |
/third_party/skia/third_party/externals/tint/src/sem/ |
H A D | depth_texture_type.cc | 25 bool IsValidDepthDimension(ast::TextureDimension dim) { in IsValidDepthDimension() argument 26 return dim == ast::TextureDimension::k2d || in IsValidDepthDimension() 27 dim == ast::TextureDimension::k2dArray || in IsValidDepthDimension() 28 dim == ast::TextureDimension::kCube || in IsValidDepthDimension() 29 dim == ast::TextureDimension::kCubeArray; in IsValidDepthDimension() 34 DepthTexture::DepthTexture(ast::TextureDimension dim) : Base(dim) { in DepthTexture() argument 35 TINT_ASSERT(Semantic, IsValidDepthDimension(dim)); in DepthTexture() 44 out << "__depth_texture_" << dim(); in type_name() 50 out << "texture_depth_" << dim(); in FriendlyName() [all...] |
H A D | depth_multisampled_texture_type.cc | 25 bool IsValidDepthDimension(ast::TextureDimension dim) { in IsValidDepthDimension() argument 26 return dim == ast::TextureDimension::k2d; in IsValidDepthDimension() 31 DepthMultisampledTexture::DepthMultisampledTexture(ast::TextureDimension dim) in DepthMultisampledTexture() argument 32 : Base(dim) { in DepthMultisampledTexture() 33 TINT_ASSERT(Semantic, IsValidDepthDimension(dim)); in DepthMultisampledTexture() 43 out << "__depth_multisampled_texture_" << dim(); in type_name() 49 out << "texture_depth_multisampled_" << dim(); in FriendlyName()
|
/third_party/mesa3d/src/mesa/math/ |
H A D | m_eval.c | 75 GLuint dim, GLuint order) in _math_horner_bezier_curve() 84 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 85 out[k] = s * cp[k] + bincoeff * t * cp[dim + k]; in _math_horner_bezier_curve() 87 for (i = 2, cp += 2 * dim, powert = t * t; i < order; in _math_horner_bezier_curve() 88 i++, powert *= t, cp += dim) { in _math_horner_bezier_curve() 92 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 98 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 119 GLuint dim, GLuint uorder, GLuint vorder) in _math_horner_bezier_surf() 121 GLfloat *cp = cn + uorder * vorder * dim; in _math_horner_bezier_surf() 122 GLuint i, uinc = vorder * dim; in _math_horner_bezier_surf() 74 _math_horner_bezier_curve(const GLfloat * cp, GLfloat * out, GLfloat t, GLuint dim, GLuint order) _math_horner_bezier_curve() argument 118 _math_horner_bezier_surf(GLfloat * cn, GLfloat * out, GLfloat u, GLfloat v, GLuint dim, GLuint uorder, GLuint vorder) _math_horner_bezier_surf() argument 195 _math_de_casteljau_surf(GLfloat * cn, GLfloat * out, GLfloat * du, GLfloat * dv, GLfloat u, GLfloat v, GLuint dim, GLuint uorder, GLuint vorder) _math_de_casteljau_surf() argument [all...] |
/third_party/libevdev/tools/ |
H A D | touchpad-edge-detector.c | 97 mainloop(struct libevdev *dev, struct dimensions *dim) { in mainloop() argument 126 handle_event(dim, &ev); in mainloop() 164 const struct dimensions *dim, in print_udev_override_rule() 173 w = dim->right - dim->left; in print_udev_override_rule() 174 h = dim->bottom - dim->top; in print_udev_override_rule() 207 dim->left, dim->right, xres, in print_udev_override_rule() 208 dim in print_udev_override_rule() 163 print_udev_override_rule(struct libevdev *dev, const struct dimensions *dim, const struct size *size) print_udev_override_rule() argument 221 struct dimensions dim; main() local [all...] |
/third_party/skia/src/codec/ |
H A D | SkScalingCodec.h | 20 SkISize dim = this->dimensions(); variable 23 dim.fWidth = std::max(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); 24 dim.fHeight = std::max(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); 25 return dim; 29 SkISize dim = this->dimensions(); variable 32 return 1 <= w && w <= dim.width() && 1 <= h && h <= dim.height();
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | BuiltInFunctionEmulatorGLSL.cpp | 89 for (int dim = 2; dim <= 4; ++dim) in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() 92 ss << "emu_precision vec" << dim << " atan_emu(emu_precision vec" << dim in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() 93 << " y, emu_precision vec" << dim << " x)\n" in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() 96 << dim << "("; in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() local 97 for (int i = 0; i < dim; ++i) in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() 100 if (i < dim - 1) in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() 107 emu->addEmulatedFunctionWithDependency(BuiltInId::atan_Float1_Float1, ids[dim in InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds() [all...] |
/third_party/mesa3d/src/amd/addrlib/src/core/ |
H A D | coord.cpp | 38 dim = DIM_X; in Coordinate() 42 Coordinate::Coordinate(enum Dim dim, INT_32 n) in Coordinate() argument 44 set(dim, n); in Coordinate() 49 dim = d; in set() 57 return (coords[dim] & bit) ? 1 : 0; in ison() 62 return dim; in getdim() 72 return (dim == b.dim) && (ord == b.ord); in operator ==() 79 if (dim == b.dim) in operator <() [all...] |
/third_party/skia/third_party/externals/freetype/src/pshinter/ |
H A D | pshrec.c | 561 ps_dimension_set_mask_bit( PS_Dimension dim, 570 error = ps_mask_table_last( &dim->masks, memory, &mask ); 584 ps_dimension_end_mask( PS_Dimension dim, in ps_dimension_end_mask() argument 587 FT_UInt count = dim->masks.num_masks; in ps_dimension_end_mask() 592 PS_Mask mask = dim->masks.masks + count - 1; in ps_dimension_end_mask() 603 ps_dimension_reset_mask( PS_Dimension dim, in ps_dimension_reset_mask() argument 611 ps_dimension_end_mask( dim, end_point ); in ps_dimension_reset_mask() 614 return ps_mask_table_alloc( &dim->masks, memory, &mask ); in ps_dimension_reset_mask() 620 ps_dimension_set_mask_bits( PS_Dimension dim, in ps_dimension_set_mask_bits() argument 631 error = ps_dimension_reset_mask( dim, end_poin in ps_dimension_set_mask_bits() 646 ps_dimension_add_t1stem( PS_Dimension dim, FT_Int pos, FT_Int len, FT_Memory memory, FT_Int *aindex ) ps_dimension_add_t1stem() argument 717 ps_dimension_add_counter( PS_Dimension dim, FT_Int hint1, FT_Int hint2, FT_Int hint3, FT_Memory memory ) ps_dimension_add_counter() argument 775 ps_dimension_end( PS_Dimension dim, FT_UInt end_point, FT_Memory memory ) ps_dimension_end() argument 840 PS_Dimension dim; ps_hints_stem() local 892 PS_Dimension dim; ps_hints_t1stem3() local 995 PS_Dimension dim = hints->dimension; ps_hints_t2mask() local 1040 PS_Dimension dim = hints->dimension; ps_hints_t2counter() local 1087 PS_Dimension dim = hints->dimension; ps_hints_close() local [all...] |
H A D | pshglob.c | 44 PSH_Dimension dim = &globals->dimension[direction]; in psh_globals_scale_widths() local 45 PSH_Widths stdw = &dim->stdw; in psh_globals_scale_widths() 49 FT_Fixed scale = dim->scale_mult; in psh_globals_scale_widths() 319 FT_Int dim, top, bot, delta; in psh_blues_set_zones() local 326 for ( dim = 1; dim >= 0; dim-- ) in psh_blues_set_zones() 663 PSH_Dimension dim = &globals->dimension[1]; in psh_globals_new() local 664 PSH_Width write = dim->stdw.widths; in psh_globals_new() 678 dim in psh_globals_new() 683 PSH_Dimension dim = &globals->dimension[0]; psh_globals_new() local 760 PSH_Dimension dim; psh_globals_set_scale() local [all...] |
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | depth_texture.cc | 25 bool IsValidDepthDimension(TextureDimension dim) { in IsValidDepthDimension() argument 26 return dim == TextureDimension::k2d || dim == TextureDimension::k2dArray || in IsValidDepthDimension() 27 dim == TextureDimension::kCube || dim == TextureDimension::kCubeArray; in IsValidDepthDimension() 34 TINT_ASSERT(AST, IsValidDepthDimension(dim)); in DepthTexture() 43 out << "texture_depth_" << dim; in FriendlyName() local 49 return ctx->dst->create<DepthTexture>(src, dim); in Clone()
|
H A D | texture.cc | 22 std::ostream& operator<<(std::ostream& out, TextureDimension dim) { in operator <<() argument 23 switch (dim) { in operator <<() 49 bool IsTextureArray(TextureDimension dim) { in IsTextureArray() argument 50 switch (dim) { in IsTextureArray() 64 int NumCoordinateAxes(TextureDimension dim) { in NumCoordinateAxes() argument 65 switch (dim) { in NumCoordinateAxes() 82 : Base(pid, src), dim(d) {} in Texture()
|
H A D | depth_multisampled_texture.cc | 25 bool IsValidDepthDimension(TextureDimension dim) { in IsValidDepthDimension() argument 26 return dim == TextureDimension::k2d; in IsValidDepthDimension() 35 TINT_ASSERT(AST, IsValidDepthDimension(dim)); in DepthMultisampledTexture() 45 out << "texture_depth_multisampled_" << dim; in FriendlyName() local 52 return ctx->dst->create<DepthMultisampledTexture>(src, dim); in Clone()
|
H A D | texture.h | 42 /// @param dim the TextureDimension 44 std::ostream& operator<<(std::ostream& out, TextureDimension dim); 46 /// @param dim the TextureDimension to query 48 bool IsTextureArray(TextureDimension dim); 60 /// @param dim the TextureDimension to query 62 int NumCoordinateAxes(TextureDimension dim); 70 /// @param dim the dimensionality of the texture 71 Texture(ProgramID pid, const Source& src, TextureDimension dim); 77 const TextureDimension dim; member in tint::ast::Texture
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_ff.h | 85 unsigned dim = context->ff.tex_stage[s][D3DTSS_TEXTURETRANSFORMFLAGS] & 0x7; in nine_ff_get_projected_key() local 89 if (dim > 4) in nine_ff_get_projected_key() 90 dim = input_texture_coord[s]; in nine_ff_get_projected_key() 92 if (!dim && gen == NINED3DTSS_TCI_PASSTHRU) in nine_ff_get_projected_key() 93 dim = input_texture_coord[s]; in nine_ff_get_projected_key() 94 else if (!dim) in nine_ff_get_projected_key() 95 dim = 4; in nine_ff_get_projected_key() 97 if (dim == 1) /* NV behaviour */ in nine_ff_get_projected_key() 99 if (dim > input_texture_coord[s] && gen == NINED3DTSS_TCI_PASSTHRU) in nine_ff_get_projected_key() 102 dim in nine_ff_get_projected_key() [all...] |
/third_party/skia/tools/ |
H A D | image_diff_metric.cpp | 37 SkISize dim = bm[0].dimensions(); in main() local 38 if (dim != bm[1].dimensions()) { in main() 40 dim.fWidth, dim.fHeight, bm[1].dimensions().fWidth, bm[1].dimensions().fHeight); in main() 44 for (int y = 0; y < dim.fHeight; ++y) { in main() 47 for (size_t i = 0; i < (size_t)dim.fWidth * (size_t)4; ++i) { in main() 52 ((uint64_t)255 * 4 * (uint64_t)dim.fWidth * (uint64_t)dim.fHeight)); in main()
|
H A D | skottie2movie.cpp | 75 SkISize dim = animation->size().toRound(); in main() local 82 scale = FLAGS_set_dst_width / (float)dim.width(); in main() 83 dim = { FLAGS_set_dst_width, SkScalarRoundToInt(scale * dim.height()) }; in main() 91 dim.width(), dim.height(), duration, fps, frame_duration); in main() 100 const auto info = SkImageInfo::MakeN32Premul(dim); in main() 104 if (!encoder.beginRecording(dim, fps)) { in main()
|
/third_party/skia/third_party/externals/freetype/src/autofit/ |
H A D | afcjk.c | 84 int dim; in af_cjk_metrics_init_widths() local 181 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 183 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 184 AF_AxisHints axhints = &hints->axis[dim]; in af_cjk_metrics_init_widths() 190 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 203 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 235 for ( dim = 0; dim < AF_DIMENSION_MA in af_cjk_metrics_init_widths() 1494 af_cjk_compute_stem_width( AF_GlyphHints hints, AF_Dimension dim, FT_Pos width, FT_UInt base_flags, FT_UInt stem_flags ) af_cjk_compute_stem_width() argument 1615 af_cjk_align_linked_edge( AF_GlyphHints hints, AF_Dimension dim, AF_Edge base_edge, AF_Edge stem_edge ) af_cjk_align_linked_edge() argument 2273 int dim; FT_LOCAL_DEF() local [all...] |
/third_party/mesa3d/src/panfrost/lib/ |
H A D | pan_cs.h | 88 struct pan_compute_dim dim; member 127 pan_wls_instances(const struct pan_compute_dim *dim) in pan_wls_instances() argument 129 return util_next_power_of_two(dim->x) * in pan_wls_instances() 130 util_next_power_of_two(dim->y) * in pan_wls_instances() 131 util_next_power_of_two(dim->z); in pan_wls_instances() 142 const struct pan_compute_dim *dim, in pan_wls_mem_size() 145 unsigned instances = pan_wls_instances(dim); in pan_wls_mem_size() 141 pan_wls_mem_size(const struct panfrost_device *dev, const struct pan_compute_dim *dim, unsigned wls_size) pan_wls_mem_size() argument
|
H A D | pan_texture.c | 39 panfrost_astc_dim_2d(unsigned dim) in panfrost_astc_dim_2d() argument 41 switch (dim) { in panfrost_astc_dim_2d() 53 panfrost_astc_dim_3d(unsigned dim) in panfrost_astc_dim_3d() argument 55 switch (dim) { in panfrost_astc_dim_3d() 72 enum mali_texture_dimension dim, in panfrost_compression_tag() 98 if (dim != MALI_TEXTURE_DIMENSION_3D) in panfrost_compression_tag() 178 iview->dim == MALI_TEXTURE_DIMENSION_CUBE); in panfrost_estimate_texture_payload_size() 266 enum mali_texture_dimension dim, in panfrost_get_surface_pointer() 270 unsigned face_mult = dim == MALI_TEXTURE_DIMENSION_CUBE ? 6 : 1; in panfrost_get_surface_pointer() 273 if (layout->dim in panfrost_get_surface_pointer() 71 panfrost_compression_tag(const struct util_format_description *desc, enum mali_texture_dimension dim, uint64_t modifier) panfrost_compression_tag() argument 265 panfrost_get_surface_pointer(const struct pan_image_layout *layout, enum mali_texture_dimension dim, mali_ptr base, unsigned l, unsigned w, unsigned f, unsigned s) panfrost_get_surface_pointer() argument [all...] |
/third_party/skia/experimental/ffmpeg/ |
H A D | SkVideoEncoder.cpp | 220 static bool is_valid(SkISize dim) { in is_valid() argument 221 if (dim.width() <= 0 || dim.height() <= 0) { in is_valid() 225 return ((dim.width() | dim.height()) & 1) == 0; in is_valid() 228 bool SkVideoEncoder::beginRecording(SkISize dim, int fps) { in beginRecording() argument 229 if (!is_valid(dim)) { in beginRecording() 235 fInfo = SkImageInfo::MakeN32(dim.width(), dim.height(), alphaType, cs); in beginRecording() 251 dim in beginRecording() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_image.cpp | 82 SpvDim dim = SpvDimMax; member 112 info->dim = static_cast<SpvDim>(inst->word(3)); in GetImageTypeInfo() 204 switch (info.dim) { in GetPlaneCoordSize() 227 // Returns minimal number of coordinates based on image dim, arrayed and whether 230 if (info.dim == SpvDimCube && in GetMinCoordSize() 318 if (info.dim != SpvDim1D && info.dim != SpvDim2D && info.dim != SpvDim3D && in ValidateImageOperands() 319 info.dim != SpvDimCube) { in ValidateImageOperands() 357 if (info.dim ! in ValidateImageOperands() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_image.cpp | 82 SpvDim dim = SpvDimMax; member 112 info->dim = static_cast<SpvDim>(inst->word(3)); in GetImageTypeInfo() 204 switch (info.dim) { in GetPlaneCoordSize() 227 // Returns minimal number of coordinates based on image dim, arrayed and whether 230 if (info.dim == SpvDimCube && in GetMinCoordSize() 318 if (info.dim != SpvDim1D && info.dim != SpvDim2D && info.dim != SpvDim3D && in ValidateImageOperands() 319 info.dim != SpvDimCube) { in ValidateImageOperands() 357 if (info.dim ! in ValidateImageOperands() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_util.c | 249 unsigned dim_layer_shadow, dim; in tgsi_util_get_src_usage_mask() local 262 dim = dim_layer - 1; in tgsi_util_get_src_usage_mask() 264 dim = dim_layer; in tgsi_util_get_src_usage_mask() 271 read_mask = u_bit_consecutive(0, dim); in tgsi_util_get_src_usage_mask() 287 read_mask = u_bit_consecutive(0, dim); in tgsi_util_get_src_usage_mask() 297 read_mask = u_bit_consecutive(0, dim); in tgsi_util_get_src_usage_mask() 307 unsigned dim = tgsi_util_get_texture_coord_dim(mem_target); in tgsi_util_get_src_usage_mask() local 308 read_mask = u_bit_consecutive(0, dim); in tgsi_util_get_src_usage_mask() 314 unsigned dim = tgsi_util_get_texture_coord_dim(mem_target); in tgsi_util_get_src_usage_mask() local 315 read_mask = u_bit_consecutive(0, dim); in tgsi_util_get_src_usage_mask() 335 unsigned dim = tgsi_util_get_texture_coord_dim(mem_target); tgsi_util_get_src_usage_mask() local [all...] |
/third_party/skia/tools/skqp/src/ |
H A D | skqp_model.cpp | 39 SkISize dim = img.info().dimensions(); in Check() local 40 SkASSERT(minImg.info().dimensions() == dim); in Check() 41 SkASSERT(maxImg.info().dimensions() == dim); in Check() 47 for (int y = 0; y < dim.height(); ++y) { in Check() 48 for (int x = 0; x < dim.width(); ++x) { in Check() 55 if (inside(point, dim)) { // skip out of pixmap bounds. in Check() 75 dim.width(), dim.height(), in Check()
|