libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
jpeg.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <stdbool.h>
#include <jpeglib.h>
#include <onion/types.h>

Functions

int onion_jpeg_response (unsigned char *image, int image_num_color_channels, J_COLOR_SPACE image_color_space, int image_width, int image_height, int output_quality, onion_response *res)
 Writes image data to a response object.

Function Documentation

int onion_jpeg_response ( unsigned char *  image,
int  image_num_color_channels,
J_COLOR_SPACE  image_color_space,
int  image_width,
int  image_height,
int  output_quality,
onion_response res 
)