# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_vout.h>
#include <directfb.h>
int i_width;
int i_height;
- byte_t* p_pixels;
+ uint8_t* p_pixels;
};
/*****************************************************************************
set_shortname( "DirectFB" );
set_category( CAT_VIDEO );
set_subcategory( SUBCAT_VIDEO_VOUT );
- set_description( _("DirectFB video output http://www.directfb.org/") );
+ set_description( N_("DirectFB video output http://www.directfb.org/") );
set_capability( "video output", 60 );
add_shortcut( "directfb" );
set_callbacks( Create, Destroy );
/* Allocate structure */
p_vout->p_sys = p_sys = malloc( sizeof( vout_sys_t ) );
if( !p_sys )
- {
- msg_Err( p_vout, "out of memory" );
return VLC_ENOMEM;
- }
p_sys->p_directfb = NULL;
p_sys->p_primary = NULL;
{
vout_sys_t *p_sys = p_vout->p_sys;
IDirectFBSurface *p_primary = (IDirectFBSurface *) p_vout->p_sys->p_primary;
- byte_t* p_pixels = NULL;
+ uint8_t* p_pixels = NULL;
picture_t *p_pic = NULL;
int i_rlength, i_glength, i_blength;
int i_roffset, i_goffset, i_boffset;
/* allocate p_pixels */
i_size = i_line_pitch * p_sys->i_height;
- p_sys->p_pixels = malloc( sizeof(byte_t) * i_size );
+ p_sys->p_pixels = malloc( i_size );
if( p_sys->p_pixels == NULL )
{
p_primary->Unlock(p_primary);
{
vout_sys_t *p_sys = p_vout->p_sys;
IDirectFBSurface *p_primary = (IDirectFBSurface *) p_sys->p_primary;
- byte_t* p_pixels = NULL;
+ uint8_t* p_pixels = NULL;
int i_size;
int i_line_pitch;