diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-02-18 11:43:43 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-02-18 11:45:48 -0600 |
| commit | ac0ffc565641d713144bb1ee86df34309b79c8f2 (patch) | |
| tree | e9e2aa7e85d6b10d64f3873474f898fe219ddf60 /shared-bindings | |
| parent | c284728621fa28d4ef318d98db2b11cc95417e6a (diff) | |
_bit_transpose: fix docs
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/_bit_transpose/__init__.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/shared-bindings/_bit_transpose/__init__.c b/shared-bindings/_bit_transpose/__init__.c index 979dff145..0b9d31fbe 100644 --- a/shared-bindings/_bit_transpose/__init__.c +++ b/shared-bindings/_bit_transpose/__init__.c @@ -36,8 +36,13 @@ //| routine for performing the transformation.""" //| -//| def bit_transpose(input: _typing.ReadableBuffer, *, output: Optional[_typing.WritableBuffer]=None): -//| """Convert a sequence of 8*N pixel values into a single stream of bytes suitable for sending via a parallel conversion method (PioPixl8) +//| def bit_transpose(input: _typing.ReadableBuffer, *, num_strands:int = 8, output: Optional[_typing.WriteableBuffer]=None) -> WriteableBuffer: +//| """Convert a sequence of pixel values into a single stream of bytes suitable for sending via a parallel conversion method (PioPixl8) +//| +//| The number of bytes in the input buffer must be a multiple of the number of strands. +//| +//| If specified output buffer must be big enough for the output, ``len(input) * 8 // num_strands``. To get a properly sized buffer, +//| you can also pass in ``output=None`` once, then re-use the return value in future calls. //| //| Returns the output buffer if specified (which must be big enough to hold the result), otherwise a freshly allocated buffer.""" //| ... |
