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 / GOPutils.h < prev    next >
C/C++ Source or Header  |  2005-04-30  |  2KB  |  63 lines

  1. /*
  2. #
  3. # This is to handle writing file info about the GOP objects
  4. #
  5. # $Id: GOPutils.h,v 1.5 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 _GOPUTILS_H_
  25. #define _GOPUTILS_H_
  26.  
  27. #include "MPEG2Parser.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33.  
  34.  
  35. struct clip_list_t {
  36.     uint32_t    GOP_first;
  37.     uint32_t    GOP_last;
  38. };
  39.  
  40.  
  41. int  write_gop_cache(char * filename, MPEG2Parser * mpeg2parser);
  42. void write_clip_list(char * filename, struct clip_list_t * clips);
  43.  
  44. off_t write_GOP(FILE * file, MPEG2Parser * mpeg2parser,
  45.                 uint32_t num, int continuous,
  46.                 int drop_orphaned_frames,
  47.                 int adjust_timestamps,
  48.                 uint32_t *frames_written,
  49.                 bool is_last_gop,
  50.                 bool drop_trailing_pack_with_system_header
  51.                 );
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif /* _GOPUTILS_H_ */
  58.  
  59. /* vi:set ai ts=4 sw=4 expandtab: */
  60.