mmsav.cpp File Reference

#include "mmsmedia/mmsav.h"
#include <directfb_version.h>
#include <string.h>
#include <stdlib.h>
#include "mmsmedia/mmsgst.h"

Include dependency graph for mmsav.cpp:

Go to the source code of this file.


Classes

struct  internalStreamData

Defines

#define THROW_DFB_ERROR(dfbres, msg)   {if (dfbres) { string s1 = msg; string s2 = DirectFBErrorString((DFBResult)dfbres); throw MMSAVError(dfbres,s1 + " [" + s2 + "]"); }else{ throw MMSAVError(0,msg); }}

Functions

 MMS_CREATEERROR (MMSAVError)
static void * gstPlayRoutine (GST_DISKOVIDEOSINK_DATA *gst_diskovideosink_data)
static void dfb_output_cb (void *cdata, int width, int height, double ratio, DFBSurfacePixelFormat format, DFBRectangle *dest_rect)
 Callback, that will be called before a frame is drawn.
void raw_frame_cb (void *user_data, int frame_format, int frame_width, int frame_height, double frame_aspect, void *data0, void *data1, void *data2)
void raw_overlay_cb (void *user_data, int num_ovl, raw_overlay_t *overlays_array)
 Callback, that will be called each time an overlay state changes.
static int dfb_frame_cb (void *cdata)
 Callback, that will be called after a frame is drawn.
static void * xinePlayRoutine (void *data)
static void * stopRoutine (void *data)

Variables

DFBResult dfbres

Define Documentation

#define THROW_DFB_ERROR ( dfbres,
msg   )     {if (dfbres) { string s1 = msg; string s2 = DirectFBErrorString((DFBResult)dfbres); throw MMSAVError(dfbres,s1 + " [" + s2 + "]"); }else{ throw MMSAVError(0,msg); }}

Definition at line 69 of file mmsav.cpp.


Function Documentation

static int dfb_frame_cb ( void *  cdata  )  [static]

Callback, that will be called after a frame is drawn.

It sets clipping areas and does the flipping.

Parameters:
cdata [in/out] pointer to VODESC structure

Definition at line 388 of file mmsav.cpp.

static void dfb_output_cb ( void *  cdata,
int  width,
int  height,
double  ratio,
DFBSurfacePixelFormat  format,
DFBRectangle *  dest_rect 
) [static]

Callback, that will be called before a frame is drawn.

It checks if the ratio has changed and sets some variables if so.

Parameters:
cdata [in/out] pointer to VODESC structure
width [in] width of dvd stream
height [in] height of dvd stream
ratio [in] ratio of dvd stream
format [in] pixel format of dvd stream
dest_rect [out] the current rectangle will be returned

Definition at line 85 of file mmsav.cpp.

static void* gstPlayRoutine ( GST_DISKOVIDEOSINK_DATA gst_diskovideosink_data  )  [static]

Definition at line 48 of file mmsav.cpp.

MMS_CREATEERROR ( MMSAVError   ) 

void raw_frame_cb ( void *  user_data,
int  frame_format,
int  frame_width,
int  frame_height,
double  frame_aspect,
void *  data0,
void *  data1,
void *  data2 
)

Definition at line 154 of file mmsav.cpp.

void raw_overlay_cb ( void *  user_data,
int  num_ovl,
raw_overlay_t *  overlays_array 
)

Callback, that will be called each time an overlay state changes.

See also:
: xine.h

Definition at line 369 of file mmsav.cpp.

static void* stopRoutine ( void *  data  )  [static]

Definition at line 501 of file mmsav.cpp.

static void* xinePlayRoutine ( void *  data  )  [static]

Definition at line 457 of file mmsav.cpp.


Variable Documentation

DFBResult dfbres

Definition at line 68 of file mmsav.cpp.