/third_party/mesa3d/src/imgui/ |
H A D | imgui_widgets.cpp | 1730 bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, float power, ImGuiDragFlags flags) 1735 const bool has_min_max = (v_min != v_max); 1736 const bool is_power = (power != 1.0f && is_decimal && has_min_max && (v_max - v_min < FLT_MAX)); 1739 if (v_speed == 0.0f && has_min_max && (v_max - v_min < FLT_MAX)) 1740 v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); 1767 bool is_already_past_limits_and_pushing_outward = has_min_max && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); 1788 // Offset + round to user desired precision, with a curve on the v_min..v_max range to get more precision on one side of the range 1789 FLOATTYPE v_old_norm_curved = ImPow((FLOATTYPE)(v_cur - v_min) / (FLOATTYPE)(v_max - v_min), (FLOATTYPE)1.0f / power); 1790 FLOATTYPE v_new_norm_curved = v_old_norm_curved + (g.DragCurrentAccum / (v_max - v_min)); 1791 v_cur = v_min + (TYPE)ImPow(ImSaturate((float)v_new_norm_curved), power) * (v_max 2077 SliderCalcRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, float power, float linear_zero_pos) SliderCalcRatioFromValueT() argument 2104 SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb) SliderBehaviorT() argument [all...] |
H A D | imgui.h | 413 IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", float power = 1.0f); // If v_min >= v_max we have no bound 414 IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", float power = 1.0f); 415 IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", float power = 1.0f); 416 IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", float power = 1.0f); 417 IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, float power = 1.0f); 418 IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d"); // If v_min >= v_max we have no bound 419 IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d"); 420 IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max [all...] |
H A D | imgui_internal.h | 1472 IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* v, float v_speed, const void* v_min, const void* v_max, const char* format, float power, ImGuiDragFlags flags); 1473 IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb); 1482 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, const T v_min, const T v_max, const char* format, float power, ImGuiDragFlags flags); 1483 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, const T v_min, const T v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb); 1484 template<typename T, typename FLOAT_T> IMGUI_API float SliderCalcRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, float power, float linear_zero_pos);
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_widgets.cpp | 2114 static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) in DataTypeClampT() argument 2118 if (v_max && *v > *v_max) { *v = *v_max; return true; } in DataTypeClampT() 2226 bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) in DragBehaviorT() argument 2230 const bool is_clamped = (v_min < v_max); in DragBehaviorT() 2235 if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) in DragBehaviorT() 2236 v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); in DragBehaviorT() 2261 if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max in DragBehaviorT() 2500 DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) DragFloat() argument 2505 DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) DragFloat2() argument 2510 DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) DragFloat3() argument 2515 DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) DragFloat4() argument 2521 DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) DragFloatRange2() argument 2554 DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) DragInt() argument 2559 DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) DragInt2() argument 2564 DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) DragInt3() argument 2569 DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) DragInt4() argument 2575 DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) DragIntRange2() argument 2661 ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) ScaleRatioFromValueT() argument [all...] |
H A D | imgui.h | 531 // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. 532 // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. 536 IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound 537 IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); 538 IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); 539 IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); 540 IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); 541 IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max w 2844 DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power) DragFloat() argument 2845 DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power) DragFloat2() argument 2846 DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power) DragFloat3() argument 2847 DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power) DragFloat4() argument 2850 SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power) SliderFloat() argument 2851 SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power) SliderFloat2() argument 2852 SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power) SliderFloat3() argument 2853 SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power) SliderFloat4() argument [all...] |
H A D | imgui_internal.h | 2696 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); 2697 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); 2698 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); 2699 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb);
|
/third_party/ffmpeg/libavcodec/ |
H A D | mjpegdec.h | 107 int h_max, v_max; /* maximum h and v counts */ member
|
H A D | mjpegdec.c | 373 s->v_max = 1; in ff_mjpeg_decode_sof() 382 if (v_count[i] > s->v_max) in ff_mjpeg_decode_sof() 383 s->v_max = v_count[i]; in ff_mjpeg_decode_sof() 407 if (s->ls && (s->h_max > 1 || s->v_max > 1)) { in ff_mjpeg_decode_sof() 477 if (s->v_max == 1 && s->h_max == 1 && s->lossless==1 && (nb_components==3 || nb_components==4)) in ff_mjpeg_decode_sof() 762 int bh = (height + s->v_max * 8 - 1) / (s->v_max * 8); in ff_mjpeg_decode_sof() 1093 if (s->v_max != 1 || s->h_max != 1 || !s->lossless) in ljpeg_decode_rgb_scan() 1619 int v = s->v_max / s->v_count[c]; in mjpeg_idct_scan_progressive_ac() 1727 s->mb_height = (s->height + s->v_max * block_siz in ff_mjpeg_decode_sos() [all...] |
/third_party/ffmpeg/libpostproc/ |
H A D | postprocess_altivec_template.c | 633 vector unsigned char v_max; in dering_altivec() local 638 if (vec_all_lt(vec_sub(v_max, v_min), v_dt)) in dering_altivec() 641 v_avg = vec_avg(v_min, v_max); in dering_altivec()
|
/third_party/astc-encoder/Source/ |
H A D | stb_image.h | 3265 int Lf,p,i,q, h_max=1,v_max=1,c; in stbi__process_frame_header() local 3300 if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; in stbi__process_frame_header() 3307 if (v_max % z->img_comp[i].v != 0) return stbi__err("bad V","Corrupt JPEG"); in stbi__process_frame_header() 3312 z->img_v_max = v_max; in stbi__process_frame_header() 3314 z->img_mcu_h = v_max * 8; in stbi__process_frame_header() 3322 z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; in stbi__process_frame_header()
|