~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/flac.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-03-13 09:18:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090313091828-n4ktby5eca487uhv
Tags: 3:0.svn20090303-1ubuntu1+unstripped1
merge from ubuntu.jaunty branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    FLAC_METADATA_TYPE_INVALID = 127
43
43
};
44
44
 
 
45
enum FLACExtradataFormat {
 
46
    FLAC_EXTRADATA_FORMAT_STREAMINFO  = 0,
 
47
    FLAC_EXTRADATA_FORMAT_FULL_HEADER = 1
 
48
};
 
49
 
45
50
/**
46
51
 * Data needed from the Streaminfo header for use by the raw FLAC demuxer
47
52
 * and/or the FLAC decoder.
68
73
void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
69
74
                              const uint8_t *buffer);
70
75
 
 
76
/**
 
77
 * Validate the FLAC extradata.
 
78
 * @param[in]  avctx codec context containing the extradata.
 
79
 * @param[out] format extradata format.
 
80
 * @param[out] streaminfo_start pointer to start of 34-byte STREAMINFO data.
 
81
 * @return 1 if valid, 0 if not valid.
 
82
 */
 
83
int ff_flac_is_extradata_valid(AVCodecContext *avctx,
 
84
                               enum FLACExtradataFormat *format,
 
85
                               uint8_t **streaminfo_start);
 
86
 
71
87
#endif /* AVCODEC_FLAC_H */