Rainer Scherg on Mon, 18 Jul 2005 23:13:05 +0200 (CEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

apps/dvb/dvbsnoop/src/tvanytime cs.c cs.h


rasc        05/07/18 23:13:05

  Added:       dvb/dvbsnoop/src/tvanytime cs.c cs.h
  Log:
  TVA Content Section
  
  Revision  Changes    Path
  1.1                  apps/dvb/dvbsnoop/src/tvanytime/cs.c
  
  file : http://cvs.tuxbox.org/tuxbox/apps/dvb/dvbsnoop/src/tvanytime/cs.c?rev=1.1&content-type=text/vnd.viewcvs-markup
  plain: http://cvs.tuxbox.org/tuxbox/apps/dvb/dvbsnoop/src/tvanytime/cs.c?rev=1.1&content-type=text/plain
  
  Index: cs.c
  ===================================================================
  /*
  $Id: cs.c,v 1.1 2005/07/18 21:13:05 rasc Exp $
  
  
   DVBSNOOP
  
   a dvb sniffer  and mpeg2 stream analyzer tool
   http://dvbsnoop.sourceforge.net/
  
   (c) 2001-2004   Rainer.Scherg@gmx.de (rasc)
  
  
   --  Container section (CS)
   --  TS 102 323
  
  
  
  $Log: cs.c,v $
  Revision 1.1  2005/07/18 21:13:05  rasc
  TVA Content Section
  
  
  
  
  */
  
  
  
  
  #include "dvbsnoop.h"
  #include "cs.h"
  
  #include "descriptors/descriptor.h"
  #include "strings/dvb_str.h"
  #include "misc/output.h"
  
  
  
  
  
  void section_TVA_CS (u_char *b, int len)
  {
   /* TS 102 323  */
  
   u_int      table_id;
   u_int      section_length;
   int	    len1;
  
  
  
    out_nl (3,"CS-decoding....");
    table_id = outBit_S2x_NL (3,"Table_ID: ",	b, 0, 8,
  				(char *(*)(u_long))dvbstrTableID );
    if (table_id != 0x75) {
      out_nl (3,"wrong Table ID");
      return;
    }
  
  
    outBit_Sx_NL (3,"Section_syntax_indicator: ",	b, 8,  1);
    outBit_Sx_NL (3,"private_indicator: ",	b, 9,  1);
    outBit_Sx_NL (6,"reserved: ",			b,10,  2);
    section_length = outBit_Sx_NL (5,"section_length: ",	b,12,12);
  
    outBit_Sx_NL (3,"container_id: ",		b,24, 16);
    outBit_Sx_NL (6,"reserved: ",			b,40,  2);
    outBit_Sx_NL (3,"version_number: ",		b,42,  5);
  
    outBit_S2x_NL(3,"Current_next_indicator: ",	b,47,  1,
  			(char *(*)(u_long))dvbstrCurrentNextIndicator );
    outBit_Sx_NL (3,"Section_number: ",		b,48,  8);
    outBit_Sx_NL (3,"Last_section_number: ",	b,56,  8);
  
  
    b += 8;
    len1 = section_length - 5;
  
  
    // common descriptor loop 
  
    out_nl (3,"Container_data:";);
    indent (+1);
     // $$$TODO  -- compression wrapper, container data
     print_private_data (3,b,len1);   
     b += len1;
  
    indent (-1);
  
    outBit_Sx_NL (5,"CRC: ",	b,0,32);
  }
  
  
  
  
  
  
  // Annotation:
  //
  // $$$ TODO:  CS is untested so far !!!
  //  need stream with  CS data
  
  
  
  1.1                  apps/dvb/dvbsnoop/src/tvanytime/cs.h
  
  file : http://cvs.tuxbox.org/tuxbox/apps/dvb/dvbsnoop/src/tvanytime/cs.h?rev=1.1&content-type=text/vnd.viewcvs-markup
  plain: http://cvs.tuxbox.org/tuxbox/apps/dvb/dvbsnoop/src/tvanytime/cs.h?rev=1.1&content-type=text/plain
  
  Index: cs.h
  ===================================================================
  /*
  $Id: cs.h,v 1.1 2005/07/18 21:13:05 rasc Exp $
  
   DVBSNOOP
  
   a dvb sniffer  and mpeg2 stream analyzer tool
   http://dvbsnoop.sourceforge.net/
  
   (c) 2001-2004   Rainer.Scherg@gmx.de (rasc)
  
  
  
  */
  
  
  #ifndef __CS_H
  #define __CS_H 
  
  
  void section_TVA_CS (u_char *b, int len);
  
  
  #endif
  
  
  
  

-- 
To UNSUBSCRIBE, email to tuxbox-cvs-request@cvs.tuxbox.org
with a subject of "unsubscribe". Trouble? Contact listmaster@cvs.tuxbox.org