载入中...
搜索中...
未找到
eve::image::WebPHandler类 参考final

Internal decoder adapter; each call owns its output and borrows input synchronously. 更多...

#include <WebPHandler.h>

类 eve::image::WebPHandler 继承关系图:

Public 成员函数

bool canDecode (const char *data, size_t size) override
 Recognizes a RIFF WebP container without decoding or allocating pixels.
 
DecodedImage decode (const char *data, size_t size) override
 Decodes the first composited frame to caller-owned RGBA8 pixels.
 

详细描述

Internal decoder adapter; each call owns its output and borrows input synchronously.

在文件 WebPHandler.h 第 8 行定义.

成员函数说明

◆ canDecode()

bool eve::image::WebPHandler::canDecode ( const char *  data,
size_t  size 
)
override

Recognizes a RIFF WebP container without decoding or allocating pixels.

在文件 WebPHandler.cpp 第 13 行定义.

引用了 size.

被这些函数引用 decode().

◆ decode()

medialoader::FormatHandler::DecodedImage eve::image::WebPHandler::decode ( const char *  data,
size_t  size 
)
override

Decodes the first composited frame to caller-owned RGBA8 pixels.

参数
dataEncoded bytes borrowed only for this call.
sizeNumber of accessible bytes.
返回
Decoded pixels released through freeRawPixels().
异常
eve::Exceptionon malformed input or unsupported dimensions. @thread Calls use independent decoder state and may run concurrently. @reentrancy Does not invoke callbacks.

在文件 WebPHandler.cpp 第 17 行定义.

引用了 canDecode(), info, pixels , 以及 size.


该类的文档由以下文件生成: