summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.c
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2022-10-21 00:29:19 +0200
committerOneric <oneric@oneric.stub>2022-10-22 03:42:27 +0200
commitf6e1987c08e25d88b6dfa12dafaffc42f5499011 (patch)
tree39f9a80b0da5ffec6b9b99dba3dc93e23bfd6cab /libass/ass_bitmap.c
parent536f6dddd901f7ce9562ce39c83b4fb8775c0bf2 (diff)
downloadlibass-f6e1987c08e25d88b6dfa12dafaffc42f5499011.tar.bz2
libass-f6e1987c08e25d88b6dfa12dafaffc42f5499011.tar.xz
refactor: move and static'fy some internal functions
Although declared and defined in ass_utils.{h,c}, those functions are only used in one other file and aren't useful at other places.
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r--libass/ass_bitmap.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c
index 191eeaa..805f549 100644
--- a/libass/ass_bitmap.c
+++ b/libass/ass_bitmap.c
@@ -347,33 +347,6 @@ void ass_be_blur_c(uint8_t *buf, intptr_t stride,
}
}
-/*
- * To find these values, simulate blur on the border between two
- * half-planes, one zero-filled (background) and the other filled
- * with the maximum supported value (foreground). Keep incrementing
- * the \be argument. The necessary padding is the distance by which
- * the blurred foreground image extends beyond the original border
- * and into the background. Initially it increases along with \be,
- * but very soon it grinds to a halt. At some point, the blurred
- * image actually reaches a stationary point and stays unchanged
- * forever after, simply _shifting_ by one pixel for each \be
- * step--moving in the direction of the non-zero half-plane and
- * thus decreasing the necessary padding (although the large
- * padding is still needed for intermediate results). In practice,
- * images are finite rather than infinite like half-planes, but
- * this can only decrease the required padding. Half-planes filled
- * with extreme values are the theoretical limit of the worst case.
- * Make sure to use the right pixel value range in the simulation!
- */
-int be_padding(int be)
-{
- if (be <= 3)
- return be;
- if (be <= 7)
- return 4;
- return 5;
-}
-
/**
* \brief Add two bitmaps together at a given position
* Uses additive blending, clipped to [0,255]. Pure C implementation.