You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1KB

  1. #ifndef FF_RIFF_H
  2. #define FF_RIFF_H
  3. offset_t start_tag(ByteIOContext *pb, const char *tag);
  4. void end_tag(ByteIOContext *pb, offset_t start);
  5. typedef struct CodecTag {
  6. int id;
  7. unsigned int tag;
  8. unsigned int invalid_asf : 1;
  9. } CodecTag;
  10. void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf);
  11. int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
  12. int wav_codec_get_id(unsigned int tag, int bps);
  13. void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
  14. extern const CodecTag codec_bmp_tags[];
  15. extern const CodecTag codec_wav_tags[];
  16. unsigned int codec_get_tag(const CodecTag *tags, int id);
  17. enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
  18. unsigned int codec_get_bmp_tag(int id);
  19. unsigned int codec_get_wav_tag(int id);
  20. enum CodecID codec_get_bmp_id(unsigned int tag);
  21. enum CodecID codec_get_wav_id(unsigned int tag);
  22. unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id);
  23. void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
  24. #endif