CFLAGS += -malign-double
# Optional Pentium Pro optimizations
ifneq (,$(findstring ppro,$(ARCH)))
-ifneq ($(SYS), BSD)
-CFLAGS += -march=pentiumpro
-endif
+CFLAGS += -march=pentiumpro -mcpu=pentiumpro
else
-CFLAGS += -march=pentium
+CFLAGS += -march=pentium -mcpu=pentium
endif
endif
* input_ext-dec.h: structures exported to the VideoLAN decoders
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_ext-dec.h,v 1.8 2001/01/09 21:03:47 sam Exp $
+ * $Id: input_ext-dec.h,v 1.9 2001/01/10 16:24:11 massiot Exp $
*
* Authors:
*
/* Function to jump to the next data packet */
void (* pf_next_data_packet)( struct bit_stream_s * );
+ /* Callback to the decoder used when changing data packets ; set
+ * to NULL if your decoder doesn't need it. */
+ void (* pf_bitstream_callback)( struct bit_stream_s * );
+ /* Optional argument to the callback */
+ void * p_callback_arg;
+
/*
* Byte structures
*/
{
p_bit_stream->p_decoder_fifo = p_fifo;
p_bit_stream->pf_next_data_packet = NextDataPacket;
+ p_bit_stream->pf_bitstream_callback = NULL;
+ p_bit_stream->p_callback_arg = NULL;
/* Get the first data packet. */
vlc_mutex_lock( &p_fifo->data_lock );
p_bit_stream->p_byte = p_bit_stream->p_data->p_payload_start;
p_bit_stream->p_end = p_bit_stream->p_data->p_payload_end;
+ /* Call back the decoder. */
+ if( p_bit_stream->pf_bitstream_callback != NULL )
+ {
+ p_bit_stream->pf_bitstream_callback( p_bit_stream );
+ }
+
/* Copy remaining bits of the previous packet */
*((WORD_TYPE *)p_bit_stream->p_byte - 1) = buffer_left;
p_bit_stream->p_byte -= i_bytes_left;
* input_ps.c: PS demux and packet management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input_ps.c,v 1.18 2001/01/05 18:46:44 massiot Exp $
+ * $Id: input_ps.c,v 1.19 2001/01/10 16:24:11 massiot Exp $
*
* Authors:
*
}
p_input->p_plugin_data = (void *)p_method;
+ p_input->p_method_data = NULL;
/* Re-open the socket as a buffered FILE stream */
if( (p_method->stream = fdopen( p_input->i_handle, "r" )) == NULL )