Main Page   Modules   Data Structures   Data Fields   Related Pages  

MJpgAlleg - Internal

This files is for the internal functions. More...

Functions

int dec_init_xvid (void)
 Init the XviD decoder.

int dec_stop_xvid (void)
 Stop the XviD decoder.

int load_memory_jpg_ex (void *data, BITMAP *dest)
 Wrapper to load a jpeg frame from datafiles direct to a bitmap.

BITMAP * load_memory_dat_xvid (void *data, RGB *pal)
 Function to handle the load of a XviD/DivX frame from datafiles.

int load_memory_dat_xvid_ex (void *data, BITMAP *dest)
 Function to handle the load of a XviD/DivX frame from datafiles direct to a bitmap.

BITMAP * load_memory_avi_xvid (void *data, RGB *pal)
 Function to handle the load of a XviD/DivX frame from avi files.

int load_memory_avi_xvid_ex (void *data, BITMAP *dest)
 Function to handle the load of a XviD/DivX frame from avi files direct to a bitmap.

void mjpga_pre_calc_pos (MJPGA_MOVIE *movie, int bmpw, int bmph, int x[MJPGAM_TOTAL_MODES], int y[MJPGAM_TOTAL_MODES], int w[MJPGAM_TOTAL_MODES], int h[MJPGAM_TOTAL_MODES])
 Function to pre-calc the position and size for every possible display mode.

int mjpga_is_mul_16 (int n)
 Function to say if the number is multiply by 16.


Detailed Description

This files is for the internal functions.

Author:
Eduardo "Dudaskank"
Date:

Function Documentation

int dec_init_xvid void   
 

Init the XviD decoder.

This function will fill the decoder with the movie parameters.

Also, select the color space to be decoded, based on the current color depth of the screen bitmap. Remember, don't use 8 bpp!

Returns:
0 if ok, non zero if error
See also:
dec_stop_xvid()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 03/10/2002
  • Updated : 14/03/2003

int dec_stop_xvid void   
 

Stop the XviD decoder.

This function just destroy dechandle

Returns:
0 if ok, non zero if error
See also:
dec_init_xvid()
Date:
  • Created : 03/10/2002
  • Updated : 14/03/2003

BITMAP* load_memory_avi_xvid void *    data,
RGB *    pal
 

Function to handle the load of a XviD/DivX frame from avi files.

Variable data is the memory to load, and pal will be the palette, only for compability with other Allegro functions (load_bitmap(), ...), because this variable don't change.

The size of m4v is determined looking into property frame_video of AVI_MOVIE.

The frame in the memory must be encoded with XviD or DivX. If you don't have these codecs, you can download it in DivX Digest.

Returns:
Pointer to the bitmap on sucess, NULL on error
See also:
load_memory_avi_xvid_ex(), load_memory_dat_xvid(), load_memory_avi_xvid_ex(), load_memory_jpg_ex()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 01/10/2002
  • Updated : 03/04/2003

int load_memory_avi_xvid_ex void *    data,
BITMAP *    dest
 

Function to handle the load of a XviD/DivX frame from avi files direct to a bitmap.

Variable data is the memory to load, and dest is the bitmap where the frame will be decoded. It can't be a sub-bitmap!

The size of m4v is determined looking into property frame_video of AVI_MOVIE.

The frame in the memory must be encoded with XviD or DivX. If you don't have these codecs, you can download it in DivX Digest.

Returns:
Pointer to the bitmap on sucess, NULL on error
See also:
load_memory_avi_xvid(), load_memory_dat_xvid(), load_memory_dat_xvid_ex(), load_memory_jpg_ex()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 02/04/2003
  • Updated : 02/04/2003

BITMAP* load_memory_dat_xvid void *    data,
RGB *    pal
 

Function to handle the load of a XviD/DivX frame from datafiles.

Variable data is the memory to load, and pal will be the palette, only for compability with other Allegro functions (load_bitmap(), ...), because this variable don't change.

The size of m4v is determined looking into the current object in datafile for the property size.

The m4v in the memory must be encoded with XviD or DivX 5. If you don't have these codecs, you can download it in DivX Digest.

Returns:
Pointer to the bitmap on sucess, NULL on error
See also:
load_memory_avi_xvid(), load_memory_avi_xvid_ex(), load_memory_dat_xvid_ex(), load_memory_jpg_ex()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 01/10/2002
  • Updated : 03/04/2003

int load_memory_dat_xvid_ex void *    data,
BITMAP *    dest
 

Function to handle the load of a XviD/DivX frame from datafiles direct to a bitmap.

Variable data is the memory to load, and dest is the bitmap where the frame will be decoded. It can't be a sub-bitmap!

The size of m4v is determined looking into the current object in datafile for the property size.

The frame in the memory must be encoded with XviD or DivX. If you don't have these codecs, you can download it in DivX Digest.

Returns:
Pointer to the bitmap on sucess, NULL on error
See also:
load_memory_avi_xvid(), load_memory_avi_xvid_ex(), load_memory_dat_xvid(), load_memory_jpg_ex()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 03/04/2003
  • Updated : 03/04/2003

int load_memory_jpg_ex void *    data,
BITMAP *    dest
 

Wrapper to load a jpeg frame from datafiles direct to a bitmap.

Parameter data is the memory containing the jpeg, and dest is the destiny bitmap.

Returns:
0 if ok, not 0 if error
See also:
load_memory_avi_xvid(), load_memory_avi_xvid_ex(), load_memory_dat_xvid(), load_memory_dat_xvid_ex()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 03/04/2002
  • Updated : 03/04/2003

int mjpga_is_mul_16 int    n
 

Function to say if the number is multiply by 16.

This function is needed because (at least my) create_video_bitmap() uses always multiplies by 16.

The parameter n is the number.

Returns:
0 if isn't, otherwise if is
Author:
Eduardo "Dudaskank"
Date:
  • Created : 04/04/2003
  • Updated : 04/04/2003

void mjpga_pre_calc_pos MJPGA_MOVIE   movie,
int    bmpw,
int    bmph,
int    x[MJPGAM_TOTAL_MODES],
int    y[MJPGAM_TOTAL_MODES],
int    w[MJPGAM_TOTAL_MODES],
int    h[MJPGAM_TOTAL_MODES]
 

Function to pre-calc the position and size for every possible display mode.

The parameter movie is a previously openned movie, bmpw and bmph are the bitmap width and height, respectively, and x[], y[], w[] and h[] are the places to store the positions and size for each mode.

Author:
Eduardo "Dudaskank"
Date:
  • Created : 04/04/2003
  • Updated : 04/04/2003


Generated on Mon Apr 7 00:19:25 2003 for MJpgAlleg by doxygen1.2.18