Difference between revisions of "Function:Decode"
From CUVI Wiki
(Created page with "__NOTOC__ JPEG Decoding: Decodes a JPEG file into an image pixel array. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus decode(const Cuvi8u...") |
|||
Line 3: | Line 3: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus decode(const Cuvi8u* src, | CuviStatus decode(const Cuvi8u* src, | ||
Line 12: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== |
Revision as of 18:23, 19 October 2022
JPEG Decoding: Decodes a JPEG file into an image pixel array.
Function
|
Parameters
Name | Type | Description |
---|---|---|
src | Cuvi8u* | Pointer to encoded data |
srcBytes | const size_t | Size of encoded data |
dst | CuviImage& dst | Decoded image in CuviImage |
srcOnGPU | const bool | Whether the encoded data is CPU pointer or GPU |
stream | const CuviStream& | GPU stream ID for execution |
Example
|