![]()  | 
  
    MHEG5
    22.3.0
    
   | 
 
Implementation of JPG decoder - according to the specification. More...
#include "decoder.h"#include <stdlib.h>#include <string.h>#include <stdio.h>#include <setjmp.h>#include <jpeglib.h>#include <jerror.h>#include "glue_memory.h"#include "mg_ctxt.h"#include "osd_utils.h"#include "glue_assert.h"Classes | |
| struct | smyfile | 
| struct | my_error_mgr | 
| struct | my_source_mgr | 
Macros | |
| #define | INPUT_BUF_SIZE 4096 /* choose an efficiently fread'able size */ | 
| #define | GetColourIndex(r, g, b, a) OSD_FindNearestColourIndex((a << 24) | (r << 16) | (g << 8) | b ) | 
Typedefs | |
| typedef struct smyfile | myfile_t | 
| typedef struct my_error_mgr * | my_error_ptr | 
| typedef my_source_mgr * | my_src_ptr | 
Functions | |
| init_source (j_decompress_ptr cinfo) | |
| fill_input_buffer (j_decompress_ptr cinfo) | |
| skip_input_data (j_decompress_ptr cinfo, long num_bytes) | |
| term_source (j_decompress_ptr cinfo) | |
| jobs_stdio_src (j_decompress_ptr cinfo, myfile_t *infile) | |
| S_IMAGE * | DEC_DecodeJpg (U8BIT *data, U32BIT len) | 
| Allocate memory for JPG and decode bitmap.  More... | |
| void | DEC_FreeJpg (S_IMAGE *data) | 
| Free memory allocated for JPEG bitmap.  More... | |
Implementation of JPG decoder - according to the specification.
| S_IMAGE* DEC_DecodeJpg | ( | U8BIT * | data, | 
| U32BIT | len | ||
| ) | 
Allocate memory for JPG and decode bitmap.
Allocate memory for JPEG and decode bitmap To free "S_IMAGE" memory, DEC_FreeJpg will be called.
| void | * data JPG data. int len Length of data for JPG. | 
| void DEC_FreeJpg | ( | S_IMAGE * | image | ) | 
Free memory allocated for JPEG bitmap.
| data | JPG image | 
 1.8.11