home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / LINUX / gopchop-1.1.7.tar.tar / gopchop-1.1.7.tar / gopchop-1.1.7 / src / mpeg2consts.h < prev    next >
C/C++ Source or Header  |  2005-04-30  |  2KB  |  73 lines

  1. /*
  2. #
  3. # Header for mpeg2 constant strings
  4. #
  5. # $Id: mpeg2consts.h,v 1.7 2005/04/30 20:10:01 keescook Exp $
  6. #
  7. # Copyright (C) 2001-2003 Kees Cook
  8. # kees@outflux.net, http://outflux.net/
  9. # This program is free software; you can redistribute it and/or
  10. # modify it under the terms of the GNU General Public License
  11. # as published by the Free Software Foundation; either version 2
  12. # of the License, or (at your option) any later version.
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20. # http://www.gnu.org/copyleft/gpl.html
  21. #
  22. */
  23.  
  24. #ifndef _MPEG2CONSTS_H_
  25. #define _MPEG2CONSTS_H_
  26.  
  27. #include "config.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. /* bit field meanings */
  34. extern const char *aspect_str[];
  35. extern const char *frame_str[];
  36. extern const char *pic_str[];
  37.  
  38. /* rate information */
  39. struct rate_fractions_t {
  40.     uint32_t frames;
  41.     uint32_t seconds;
  42. };
  43. extern const struct rate_fractions_t rate_frac[];
  44.  
  45. char *speed_str(unsigned int speed);
  46.  
  47. /* standard mpeg2 streams */
  48. extern const uint8_t seq_err_buf[4];     /* Sequence Error marker */
  49. extern const uint8_t seq_end_buf[4];     /* Sequence End marker */
  50. extern const uint8_t eos_buf[4];         /* end of MPEG2-PS stream */
  51. extern const uint8_t slice_start_buf[4]; /* Slice Start marker */
  52. extern const uint8_t stuffing_byte[1];
  53. extern const uint8_t sequence_start_code[4];
  54. extern const uint8_t picture_start_code[4];
  55. extern const uint8_t group_start_code[4];
  56. extern const uint8_t MPEG_program_end_code[4];
  57. extern const uint8_t pack_start_code[4];
  58. extern const uint8_t system_header_start_code[4];
  59. extern const uint8_t private_stream2_buf[4];
  60. extern const uint8_t packet_start_code_prefix[3];
  61.  
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #endif /* _MAIN_H_ */
  68.  
  69. /* vi:set ai ts=4 sw=4 expandtab: */
  70.