Rate This Document
Findability
Accuracy
Completeness
Readability

krl_build_LUT8Handle_fromfile

Interface Definition

int krl_build_LUT8Handle_fromfile(FILE* f, KRLLUT8bHandle** klh);

Function

Reads data of an 8-bit lookup table from a file and rebuilds a handle.

Parameters

Parameter

Data Type

Description

Value Range

f

FILE*

Handle to the source file for reading

It cannot be null.

klh

KRLLUT8bHandle*

Pointer to the KRLLUT8bHandle instance.

It cannot be null.

Return Values

Data Type

Description

int

0 is returned on successful execution. In case of failure, an error code is returned to indicate the specific issue:

  • -1: invalid pointer
  • -2: memory allocation failure
  • -3: invalid input parameter
  • -4: double free
  • -5: insecure memory operation
  • -6: I/O failure