# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_sout.h>
#include <vlc_vout.h>
"Mute audio when command is not 0." )
vlc_module_begin();
- set_description( _("MPEG2 video switcher stream output") );
+ set_description( N_("MPEG2 video switcher stream output") );
set_capability( "sout stream", 50 );
add_shortcut( "switcher" );
set_callbacks( Open, Close );
AUDIO_TEXT, AUDIO_LONGTEXT, true );
vlc_module_end();
-static const char *ppsz_sout_options[] = {
+static const char *const ppsz_sout_options[] = {
"files", "sizes", "aspect-ratio", "port", "command", "gop", "qscale",
"mute-audio", NULL
};
= id->ff_enc_c->coded_frame->motion_subsample_log2;
id->p_frame->mb_type = malloc( ((mb_width + 1) * (mb_height + 1) + 1)
* sizeof(uint32_t) );
- p_stream->p_libvlc->pf_memcpy( id->p_frame->mb_type,
- id->ff_enc_c->coded_frame->mb_type,
- (mb_width + 1) * mb_height
- * sizeof(id->p_frame->mb_type[0]));
+ vlc_memcpy( id->p_frame->mb_type, id->ff_enc_c->coded_frame->mb_type,
+ (mb_width + 1) * mb_height * sizeof(id->p_frame->mb_type[0]));
for ( i = 0; i < 2; i++ )
{
{
id->p_frame->motion_val[i] = malloc( 2 * stride * height
* sizeof(int16_t) );
- p_stream->p_libvlc->pf_memcpy( id->p_frame->motion_val[i],
- id->ff_enc_c->coded_frame->motion_val[i],
- 2 * stride * height * sizeof(int16_t) );
+ vlc_memcpy( id->p_frame->motion_val[i],
+ id->ff_enc_c->coded_frame->motion_val[i],
+ 2 * stride * height * sizeof(int16_t) );
}
if ( id->ff_enc_c->coded_frame->ref_index[i] )
{
id->p_frame->ref_index[i] = malloc( b8_stride * 2 * mb_height
* sizeof(int8_t) );
- p_stream->p_libvlc->pf_memcpy( id->p_frame->ref_index[i],
- id->ff_enc_c->coded_frame->ref_index[i],
- b8_stride * 2 * mb_height * sizeof(int8_t));
+ vlc_memcpy( id->p_frame->ref_index[i],
+ id->ff_enc_c->coded_frame->ref_index[i],
+ b8_stride * 2 * mb_height * sizeof(int8_t));
}
}
}
#endif
p_out = block_New( p_stream, i_out );
- p_stream->p_libvlc->pf_memcpy( p_out->p_buffer, id->p_buffer_out, i_out );
+ vlc_memcpy( p_out->p_buffer, id->p_buffer_out, i_out );
p_out->i_length = p_buffer->i_length;
p_out->i_pts = p_buffer->i_dts;
p_out->i_dts = p_buffer->i_dts;
return NULL;
p_out = block_New( p_stream, i_out );
- p_stream->p_libvlc->pf_memcpy( p_out->p_buffer, id->p_buffer_out, i_out );
+ vlc_memcpy( p_out->p_buffer, id->p_buffer_out, i_out );
p_out->i_length = p_buffer->i_length;
p_out->i_pts = p_buffer->i_dts;
p_out->i_dts = p_buffer->i_dts;