Codec.Result

class Result

Error codes for various Codec methods.

Members:

kSuccess :

General return value for success.

kIncompleteInput :

The input is incomplete. A partial image was generated.

kErrorInInput :

Like kIncompleteInput, except the input had an error.

If returned from an incremental decode, decoding cannot continue, even with more data.

kInvalidConversion :

The generator cannot convert to match the request, ignoring dimensions.

kInvalidScale :

The generator cannot scale to requested size.

kInvalidParameters :

Parameters (besides info) are invalid. e.g. NULL pixels, rowBytes too small, etc.

kInvalidInput :

The input did not contain a valid image.

kCouldNotRewind :

Fulfilling this request requires rewinding the input, which is not supported for this input.

kInternalError :

An internal error, such as OOM.

kUnimplemented :

This method is not implemented by this codec.

Methods

__init__

Attributes

kCouldNotRewind

kErrorInInput

kIncompleteInput

kInternalError

kInvalidConversion

kInvalidInput

kInvalidParameters

kInvalidScale

kSuccess

kUnimplemented

name

value

Methods

Result.__init__(self: skia.Codec.Result, value: int) None

Attributes

Result.kCouldNotRewind = <Result.kCouldNotRewind: 7>
Result.kErrorInInput = <Result.kErrorInInput: 2>
Result.kIncompleteInput = <Result.kIncompleteInput: 1>
Result.kInternalError = <Result.kInternalError: 8>
Result.kInvalidConversion = <Result.kInvalidConversion: 3>
Result.kInvalidInput = <Result.kInvalidInput: 6>
Result.kInvalidParameters = <Result.kInvalidParameters: 5>
Result.kInvalidScale = <Result.kInvalidScale: 4>
Result.kSuccess = <Result.kSuccess: 0>
Result.kUnimplemented = <Result.kUnimplemented: 9>
Result.name
Result.value