+vlc_thread_t vpar_CreateThread ( vdec_config_t * );
+
+/*****************************************************************************
+ * NextStartCode : Find the next start code
+ *****************************************************************************/
+static __inline__ void NextStartCode( bit_stream_t * p_bit_stream )
+{
+ /* Re-align the buffer on an 8-bit boundary */
+ RealignBits( p_bit_stream );
+
+ while( ShowBits( p_bit_stream, 24 ) != 0x01L
+ && !p_bit_stream->p_decoder_fifo->b_die )
+ {
+ RemoveBits( p_bit_stream, 8 );
+ }
+}
+
+/*****************************************************************************
+ * LoadQuantizerScale
+ *****************************************************************************
+ * Quantizer scale factor (ISO/IEC 13818-2 7.4.2.2)
+ *****************************************************************************/
+static __inline__ void LoadQuantizerScale( struct vpar_thread_s * p_vpar )
+{
+ /* Quantization coefficient table */
+ static u8 ppi_quantizer_scale[3][32] =
+ {
+ /* MPEG-2 */
+ {
+ /* q_scale_type */
+ /* linear */
+ 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,
+ 32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62
+ },
+ {
+ /* non-linear */
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10,12,14,16,18,20, 22,
+ 24,28,32,36,40,44,48,52,56,64,72,80,88,96,104,112
+ },
+ /* MPEG-1 */
+ {
+ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
+ 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
+ }
+ };