GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
img_in.c File Reference
#include "img_in.h"
#include <gpac/avparse.h>
+ Include dependency graph for img_in.c:

Data Structures

struct  IMGLoader
 

Enumerations

enum  {
  IMG_JPEG = 1, IMG_PNG, IMG_BMP, IMG_PNGD,
  IMG_PNGDS, IMG_PNGS
}
 

Functions

GF_ESDIMG_GetESD (IMGLoader *read)
 
static u32 IMG_RegisterMimeTypes (const GF_InputService *plug)
 
static Bool IMG_CanHandleURL (GF_InputService *plug, const char *url)
 
static Bool jp_is_local (const char *url)
 
static void IMG_SetupObject (IMGLoader *read)
 
void IMG_NetIO (void *cbk, GF_NETIO_Parameter *param)
 
void jp_download_file (GF_InputService *plug, const char *url)
 
static GF_Err IMG_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
static GF_Err IMG_CloseService (GF_InputService *plug)
 
static GF_DescriptorIMG_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
static GF_Err IMG_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
static GF_Err IMG_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
static GF_Err IMG_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
static GF_Err IMG_ChannelGetSLP (GF_InputService *plug, LPNETCHANNEL channel, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr, Bool *sl_compressed, GF_Err *out_reception_status, Bool *is_new_data)
 
static GF_Err IMG_ChannelReleaseSLP (GF_InputService *plug, LPNETCHANNEL channel)
 
void * NewLoaderInterface ()
 
void DeleteLoaderInterface (void *ifce)
 

Variables

const char * IMG_MIME_TYPES []
 

Data Structure Documentation

struct IMGLoader
+ Collaboration diagram for IMGLoader:
Data Fields
GF_ClientService * service
u32 srv_type
FILE * stream
u32 img_type
u32 pad_bytes
Bool done
LPNETCHANNEL ch
Bool is_inline
char * data
u32 data_size
GF_SLHeader sl_hdr
GF_DownloadSession * dnload

Enumeration Type Documentation

anonymous enum
Enumerator
IMG_JPEG 
IMG_PNG 
IMG_BMP 
IMG_PNGD 
IMG_PNGDS 
IMG_PNGS 

Function Documentation

GF_ESD* IMG_GetESD ( IMGLoader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 IMG_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool IMG_CanHandleURL ( GF_InputService plug,
const char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool jp_is_local ( const char *  url)
static

+ Here is the caller graph for this function:

static void IMG_SetupObject ( IMGLoader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void IMG_NetIO ( void *  cbk,
GF_NETIO_Parameter param 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void jp_download_file ( GF_InputService plug,
const char *  url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_ConnectService ( GF_InputService plug,
GF_ClientService *  serv,
const char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_CloseService ( GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* IMG_GetServiceDesc ( GF_InputService plug,
u32  expect_type,
const char *  sub_url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_ConnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel,
const char *  url,
Bool  upstream 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_DisconnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_ServiceCommand ( GF_InputService plug,
GF_NetworkCommand com 
)
static

+ Here is the caller graph for this function:

static GF_Err IMG_ChannelGetSLP ( GF_InputService plug,
LPNETCHANNEL  channel,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr,
Bool sl_compressed,
GF_Err out_reception_status,
Bool is_new_data 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err IMG_ChannelReleaseSLP ( GF_InputService plug,
LPNETCHANNEL  channel 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* NewLoaderInterface ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteLoaderInterface ( void *  ifce)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* IMG_MIME_TYPES[]
Initial value:
= {
"image/jpeg", "jpeg jpg", "JPEG Images",
"image/jp2", "jp2", "JPEG2000 Images",
"image/png", "png", "PNG Images",
"image/bmp", "bmp", "MS Bitmap Images",
"image/x-png+depth", "pngd", "PNG+Depth Images",
"image/x-png+depth+mask", "pngds", "PNG+Depth+Mask Images",
"image/x-png+stereo", "pngs", "Stereo PNG Images",
0
}