/src/dump.h

https://code.google.com/ · C Header · 55 lines · 20 code · 8 blank · 27 comment · 0 complexity · 9588609265f1d30d3fb99c1c2cc7015b MD5 · raw file

  1. /*
  2. $Id: dump.h 231 2011-06-27 13:46:19Z marc.noirot $
  3. FLV Metadata updater
  4. Copyright (C) 2007-2012 Marc Noirot <marc.noirot AT gmail.com>
  5. This file is part of FLVMeta.
  6. FLVMeta is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. FLVMeta is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with FLVMeta; if not, write to the Free Software
  16. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __DUMP_H__
  19. #define __DUMP_H__
  20. #include "flvmeta.h"
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24. /* common FLV strings */
  25. const char * dump_string_get_tag_type(flv_tag * tag);
  26. const char * dump_string_get_video_codec(flv_video_tag tag);
  27. const char * dump_string_get_video_frame_type(flv_video_tag tag);
  28. const char * dump_string_get_sound_type(flv_audio_tag tag);
  29. const char * dump_string_get_sound_size(flv_audio_tag tag);
  30. const char * dump_string_get_sound_rate(flv_audio_tag tag);
  31. const char * dump_string_get_sound_format(flv_audio_tag tag);
  32. /* dump metadata from a FLV file */
  33. int dump_metadata(const flvmeta_opts * options);
  34. /* dump the full contents of an FLV file */
  35. int dump_flv_file(const flvmeta_opts * options);
  36. /* dump AMF data directly */
  37. int dump_amf_data(const amf_data * data, const flvmeta_opts * options);
  38. #ifdef __cplusplus
  39. }
  40. #endif /* __cplusplus */
  41. #endif /* __DUMP_H__ */