DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Macros | Typedefs | Functions
image_jpeg.c File Reference

JPEG image functions. More...

#include <stdio.h>
#include <string.h>
#include <setjmp.h>
#include "jpeglib.h"
#include "jerror.h"
#include "techtype.h"
#include "dbgfuncs.h"
#include "stbheap.h"

Macros

#define INPUT_BUF_SIZE   4096 /* choose an efficiently fread'able size */
 
#define DBG(x)
 

Typedefs

typedef struct my_error_mgr * my_error_ptr
 
typedef my_source_mgr * my_src_ptr
 

Functions

BOOLEAN STB_IMGConvertJPEG (U8BIT *image_data, U32BIT image_data_size, U8BIT **output_data, U32BIT *output_data_size, U16BIT *pixel_width, U16BIT *pixel_height)
 Converts the given JPEG image data to a bitmap image that can be displayed on-screen, but no scaling is applied. More...
 

Detailed Description

JPEG image functions.

Date
1 December 2010
Author
Steve Ford

Function Documentation

BOOLEAN STB_IMGConvertJPEG ( U8BIT *  image_data,
U32BIT  image_data_size,
U8BIT **  output_data,
U32BIT *  output_data_size,
U16BIT *  pixel_width,
U16BIT *  pixel_height 
)

Converts the given JPEG image data to a bitmap image that can be displayed on-screen, but no scaling is applied.


Parameters
image_data- PNG image data
image_data_size- number of PNG image data bytes
output_data- address of pointer to buffer allocated for output data
output_data_size- pointer to number of bytes in output bitmap
pixel_width- pointer to returned width in pixels
pixel_height- pointer to returned height in pixels
Returns
TRUE if image data is a valid PNG and conversion succeeds, FALSE otherwise