Difference between revisions of "Function:Encode"
From CUVI Wiki
(Created page with "__NOTOC__ JPEG Encoding: Encodes an image pixel array data to a JPEG. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus encode(const CuviImag...") |
|||
| Line 3: | Line 3: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus encode(const CuviImage& src, | CuviStatus encode(const CuviImage& src, | ||
| Line 14: | Line 14: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
Revision as of 10:23, 19 October 2022
JPEG Encoding: Encodes an image pixel array data to a JPEG.
Function
|
Parameters
| Name | Type | Description | |
|---|---|---|---|
| src | const CuviImage& | Input Image | |
| outputFormat | CuviImageFormat | Encoding format, currently supports the following:
| |
| compressedData | Cuvi8u*& | Encoded data | |
| compressedLength | Cuvi32u* | Length of encoded data | |
| quality | Cuvi32u | Quality/Compression | |
| copyToCPU | bool | Whether or not to copy the data to CPU memory | |
| stream | const CuviStream& | GPU stream ID for execution |
Example
|