The OpenD Programming Language

msf_gif_frame

@param pixelData Pointer to raw framebuffer data. Rows must be contiguous in memory, in RGBA8 format (or BGRA8 if you have set msf_gif_bgra_flag = true). Note: This function does NOT free pixelData. You must free it yourself afterwards. @param centiSecondsPerFrame How many hundredths of a second this frame should be displayed for. Note: This being specified in centiseconds is a limitation of the GIF format. @param maxBitDepth Limits how many bits per pixel can be used when quantizing the gif. The actual bit depth chosen for a given frame will be less than or equal to the supplied maximum, depending on the variety of colors used in the frame. maxBitDepth will be clamped between 1 and 16. The recommended default is 16. Lowering this value can result in faster exports and smaller gifs, but the quality may suffer. Please experiment with this value to find what works best for your application. @param pitchInBytes The number of bytes from the beginning of one row of pixels to the beginning of the next. If you want to flip the image, just pass in a negative pitch. @return Non-zero on success, 0 on error.

version(encodeGIF)
nothrow @nogc
int
msf_gif_frame
(
MsfGifState* handle
,
const(uint8_t)* pixelData
,,,)

Meta