/*
* parse_si_st.h
*
* Created by: si_desc.pl
* Created on: 20-May-2011
* Author: sdprice1
*/
#ifndef PARSE_SI_ST_H_
#define PARSE_SI_ST_H_
/*=============================================================================================*/
// USES
/*=============================================================================================*/
#include "si_structs.h"
#include "ts_structs.h"
/*=============================================================================================*/
// CONSTANTS
/*=============================================================================================*/
/*=============================================================================================*/
// MACROS
/*=============================================================================================*/
/*=============================================================================================*/
// STRUCTS
/*=============================================================================================*/
// stuffing_descriptor(){
// descriptor_tag 8 uimsbf
// descriptor_length 8 uimsbf
// for (i= 0;i<N;i++){
// stuffing_byte 8 bslbf
// }
// }
// stuffing_section(){
// table_id 8 uimsbf
// section_syntax_indicator 1 bslbf
// reserved_future_use 1 bslbf
// reserved 2 bslbf
// section_length 12 uimsbf
// for (i=0;i<N;i++){
// data_byte 8 uimsbf
// }
// }
struct Section_stuffing {
unsigned table_id ; // 8 bits
unsigned section_syntax_indicator ; // 1 bits
unsigned section_length ; // 12 bits
#define MAX_SECTION_LEN 256
char section[MAX_SECTION_LEN + 1] ;
};
/*=============================================================================================*/
// FUNCTIONS
/*=============================================================================================*/
/* ----------------------------------------------------------------------- */
void print_st(struct Section_stuffing *st) ;
void parse_st(struct TS_reader *tsreader, struct TS_state *tsstate, struct TS_bits *bits,
Section_handler handler, struct Section_decode_flags *flags) ;
#endif /* PARSE_SI_ST_H_ */