image_ffmpeg_transcode_image function

  1. @Native<Int32 Function(Pointer<Uint8>, Uint32, Pointer<image_ffmpeg_transcode_options>, Pointer<image_ffmpeg_encoded_image>)>(ffi.Pointer<ffi.Uint8>, ffi.Uint32, ffi.Pointer<image_ffmpeg_transcode_options>, ffi.Pointer<image_ffmpeg_encoded_image>)>()
int image_ffmpeg_transcode_image(
  1. Pointer<Uint8> input,
  2. int input_length,
  3. Pointer<image_ffmpeg_transcode_options> options,
  4. Pointer<image_ffmpeg_encoded_image> output,
)

Fused first-frame decode, optional EXIF orientation, solid fill, crop, fit-within resize, and JPEG/PNG encode. Fill and crop coordinates are in oriented coordinates when apply_orientation is nonzero. Zero fill or crop width and height disable that operation.

Implementation

@ffi.Native<
  ffi.Int32 Function(
    ffi.Pointer<ffi.Uint8>,
    ffi.Uint32,
    ffi.Pointer<image_ffmpeg_transcode_options>,
    ffi.Pointer<image_ffmpeg_encoded_image>,
  )
>()
external int image_ffmpeg_transcode_image(
  ffi.Pointer<ffi.Uint8> input,
  int input_length,
  ffi.Pointer<image_ffmpeg_transcode_options> options,
  ffi.Pointer<image_ffmpeg_encoded_image> output,
);