aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:26:52 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:57:59 +0300
commitf895bba65827952ed934b2b46f9a45e30a191fd2 (patch)
tree03260c906d9ec41cdc03e2a496b15d407459cec0 /contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h
parent5f7060466f7b9707818c2091e1a25c14f33c3474 (diff)
downloadydb-f895bba65827952ed934b2b46f9a45e30a191fd2.tar.gz
Remove deps on pandas
<https://github.com/ydb-platform/ydb/pull/14418> <https://github.com/ydb-platform/ydb/pull/14419> \-- аналогичные правки в gh Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860
Diffstat (limited to 'contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h')
-rw-r--r--contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h97
1 files changed, 0 insertions, 97 deletions
diff --git a/contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h b/contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h
deleted file mode 100644
index 57ae19cfe04..00000000000
--- a/contrib/python/matplotlib/py3/extern/agg24-svn/include/agg_pixfmt_base.h
+++ /dev/null
@@ -1,97 +0,0 @@
-//----------------------------------------------------------------------------
-// Anti-Grain Geometry - Version 2.4
-// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
-//
-// Permission to copy, use, modify, sell and distribute this software
-// is granted provided this copyright notice appears in all copies.
-// This software is provided "as is" without express or implied
-// warranty, and with no claim as to its suitability for any purpose.
-//
-//----------------------------------------------------------------------------
-// Contact: mcseem@antigrain.com
-// mcseemagg@yahoo.com
-// http://www.antigrain.com
-//----------------------------------------------------------------------------
-
-#ifndef AGG_PIXFMT_BASE_INCLUDED
-#define AGG_PIXFMT_BASE_INCLUDED
-
-#include "agg_basics.h"
-#include "agg_color_gray.h"
-#include "agg_color_rgba.h"
-
-namespace agg
-{
- struct pixfmt_gray_tag
- {
- };
-
- struct pixfmt_rgb_tag
- {
- };
-
- struct pixfmt_rgba_tag
- {
- };
-
- //--------------------------------------------------------------blender_base
- template<class ColorT, class Order = void>
- struct blender_base
- {
- typedef ColorT color_type;
- typedef Order order_type;
- typedef typename color_type::value_type value_type;
-
- static rgba get(value_type r, value_type g, value_type b, value_type a, cover_type cover = cover_full)
- {
- if (cover > cover_none)
- {
- rgba c(
- color_type::to_double(r),
- color_type::to_double(g),
- color_type::to_double(b),
- color_type::to_double(a));
-
- if (cover < cover_full)
- {
- double x = double(cover) / cover_full;
- c.r *= x;
- c.g *= x;
- c.b *= x;
- c.a *= x;
- }
-
- return c;
- }
- else return rgba::no_color();
- }
-
- static rgba get(const value_type* p, cover_type cover = cover_full)
- {
- return get(
- p[order_type::R],
- p[order_type::G],
- p[order_type::B],
- p[order_type::A],
- cover);
- }
-
- static void set(value_type* p, value_type r, value_type g, value_type b, value_type a)
- {
- p[order_type::R] = r;
- p[order_type::G] = g;
- p[order_type::B] = b;
- p[order_type::A] = a;
- }
-
- static void set(value_type* p, const rgba& c)
- {
- p[order_type::R] = color_type::from_double(c.r);
- p[order_type::G] = color_type::from_double(c.g);
- p[order_type::B] = color_type::from_double(c.b);
- p[order_type::A] = color_type::from_double(c.a);
- }
- };
-}
-
-#endif