image_ffmpeg_encode_jpeg_rgba function
Encodes RGBA8888 as JPEG. Quality is 1..100. background_argb is 0xAARRGGBB (the alpha byte is ignored); chroma is IMAGE_FFMPEG_JPEG_CHROMA_420 or _444.
Implementation
@ffi.Native<
ffi.Int32 Function(
ffi.Pointer<ffi.Uint8>,
ffi.Uint32,
ffi.Uint32,
ffi.Uint32,
ffi.Uint32,
ffi.Uint32,
ffi.Uint32,
ffi.Uint32,
ffi.Pointer<image_ffmpeg_buffer>,
)
>()
external int image_ffmpeg_encode_jpeg_rgba(
ffi.Pointer<ffi.Uint8> rgba,
int rgba_length,
int width,
int height,
int stride,
int quality,
int chroma,
int background_argb,
ffi.Pointer<image_ffmpeg_buffer> output,
);