Libmpo  Build #33
A WIP library to decode and encode MPO (multiple picture object) files
 All Data Structures Files Functions Variables Enumerations Enumerator
cmpo.h File Reference

Go to the source code of this file.

Functions

void mpo_init_compress (mpo_compress_struct *mpoinfo, int numberOfImages)
 
void mpo_destroy_compress (mpo_compress_struct *mpoinfo)
 
void mpo_image_mem_src (mpo_compress_struct *mpoinfo, int imageNumber, JOCTET src[])
 Tell mpoinfo struct what source to use. More...
 
void mpo_dimensions_forall (mpo_compress_struct *mpoinfo, int width, int height)
 Convenience function to set width and height of all images at once.
 
void mpo_colorspace_forall (mpo_compress_struct *mpoinfo, J_COLOR_SPACE jcs, int input_components)
 Convenience function to set colorspace info of all images at once.
 
void mpo_quality_forall (mpo_compress_struct *mpoinfo, int quality)
 Convenience function to set quality of all images at once.
 
void mpo_type_forall (mpo_compress_struct *mpoinfo, MPExt_MPType type)
 Convenience function to set type of all images at once.
 
 mpo_write_file (mpo_compress_struct *mpoinfo, char *filename)
 
void mpo_write_MPO_Marker (mpo_compress_struct *mpoinfo, int image)
 
void mpo_init_3d_compress (mpo_compress_struct *mpoinfo, JOCTET *imageBytes_left, JOCTET *imageBytes_right, int image_width, int image_height)
 

Detailed Description

Author
Lectem

Function Documentation

void mpo_image_mem_src ( mpo_compress_struct mpoinfo,
int  imageNumber,
JOCTET  src[] 
)

Tell mpoinfo struct what source to use.

Parameters
imageNumberThe index of the image we are working on
srcAn array of data, shall be freed by the user
imageNumberThe index of the image we are working on
dataAn array of data, shall be freed by the user
widthImage's width in pixels
heightImage's height in pixels