borders ¶
Classes:
-
bore
–
Functions:
-
fix_line_brightness
–Fix darkened or brightened luma rows or columns using manual level adjustments.
bore ¶
Bases: CustomEnum
Methods:
-
__call__
–BB-mod style border deringer.
Attributes:
-
BALANCE
(bore
) –Uses linear least squares to calculate the best multiplier for each line.
-
FIX_BRIGHTNESS
(bore
) –Multiply every pixel by an average ratio of each pixel in a line to its nearest pixel in the next line.
BALANCE class-attribute
instance-attribute
¶
Uses linear least squares to calculate the best multiplier for each line.
FIX_BRIGHTNESS class-attribute
instance-attribute
¶
Multiply every pixel by an average ratio of each pixel in a line to its nearest pixel in the next line.
__call__ ¶
__call__(
clip: VideoNode,
left: int | Sequence[int] = 0,
right: int | Sequence[int] = 0,
top: int | Sequence[int] = 0,
bottom: int | Sequence[int] = 0,
planes: PlanesT = None,
**kwargs: KwargsT
) -> VideoNode
BB-mod style border deringer.
:param clip: Clip to process. :param left: Number of pixels to adjust on the left border. :param right: Number of pixels to adjust on the right border. :param top: Number of pixels to adjust on the top border. :param bottom: Number of pixels to adjust on the bottom border. :param planes: Planes to process. Default: All planes.
:return: Clip with borders adjusted.
Source code in vsadjust/borders.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
fix_line_brightness ¶
fix_line_brightness(
clip: VideoNode, rows: dict[int, float] = {}, columns: dict[int, float] = {}
) -> VideoNode
Fix darkened or brightened luma rows or columns using manual level adjustments.
Adjustments are fix_levels calls where max/min in is moved by adjustment / 100 * peak - low. As such, adjustment values must lie in (-100, 100).
:param clip: The clip to process. :param rows: Rows and their adjustment values. Rows < 0 are counted from the bottom. :param columns: Columns and their adjustment values. Columns < 0 are counted from the left.
:return: Clip with adjusted rows and columns.
Source code in vsadjust/borders.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|