gflJpegLosslessTransform

GFL SDK

gflJpegLosslessTransform

The gflJpegLosslessTransform function applies lossless transformations on a JPEG file.

GFL_ERROR gflJpegLosslessTransform(
  const char * filename,  

GFL_LOSSLESS_TRANSFORM transform );

Parameters

    filename
    Pointer to a null-terminated string that contains the filename to modify.
    transform
    Transformation
    GFL_LOSSLESS_TRANSFORM_ROTATE90Rotate of 90 degrees
    GFL_LOSSLESS_TRANSFORM_ROTATE180Rotate of 180 degrees
    GFL_LOSSLESS_TRANSFORM_ROTATE270Rotate of 270 degrees
    GFL_LOSSLESS_TRANSFORM_VERTICAL_FLIPVertical flip
    GFL_LOSSLESS_TRANSFORM_HORIZONTAL_FLIPHorizontal flip

Return value

    The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.