MUAN
jpeg.h File Reference

This file represents the interface with libjpeg library and was based on libjpeg example program. More...

Go to the source code of this file.

Functions

void write_JPEG_file (unsigned char *image, int image_width, int image_height, char *filename, int quality)
 Writes a jpeg file.
unsigned char * read_JPEG_file (const char *filename, int image_width, int image_height)
 Reads a jpeg file.

Detailed Description

This file represents the interface with libjpeg library and was based on libjpeg example program.


Function Documentation

unsigned char* read_JPEG_file ( const char *  filename,
int  image_width,
int  image_height 
)

Reads a jpeg file.

Parameters:
filename
Returns:
image

Referenced by insert_frame_from_jpgfile(), and VideoEncoder::jpg_read().

void write_JPEG_file ( unsigned char *  image,
int  image_width,
int  image_height,
char *  filename,
int  quality 
)

Writes a jpeg file.

Parameters:
image
filename
quality

Referenced by VideoEncoder::jpg_write().