/** Copyright (C) 2005 Michael Ahlberg, Måns Rullgård Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **/ #ifndef AVFORMAT_OGGDEC_H #define AVFORMAT_OGGDEC_H #include "avformat.h" struct ogg_codec { … }; struct ogg_stream { … }; struct ogg_state { … }; struct ogg { … }; #define OGG_FLAG_CONT … #define OGG_FLAG_BOS … #define OGG_FLAG_EOS … #define OGG_NOGRANULE_VALUE … extern const struct ogg_codec ff_celt_codec; extern const struct ogg_codec ff_dirac_codec; extern const struct ogg_codec ff_flac_codec; extern const struct ogg_codec ff_ogm_audio_codec; extern const struct ogg_codec ff_ogm_old_codec; extern const struct ogg_codec ff_ogm_text_codec; extern const struct ogg_codec ff_ogm_video_codec; extern const struct ogg_codec ff_old_dirac_codec; extern const struct ogg_codec ff_old_flac_codec; extern const struct ogg_codec ff_opus_codec; extern const struct ogg_codec ff_skeleton_codec; extern const struct ogg_codec ff_speex_codec; extern const struct ogg_codec ff_theora_codec; extern const struct ogg_codec ff_vorbis_codec; extern const struct ogg_codec ff_vp8_codec; /** * Parse Vorbis comments * * @note The buffer will be temporarily modifed by this function, * so it needs to be writable. Furthermore it must be padded * by a single byte (not counted in size). * All changes will have been reverted upon return. */ int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size, int parse_picture); /** * Parse Vorbis comments and add metadata to an AVStream * * @note The buffer will be temporarily modifed by this function, * so it needs to be writable. Furthermore it must be padded * by a single byte (not counted in size). * All changes will have been reverted upon return. */ int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size); static inline int ogg_find_stream (struct ogg * ogg, int serial) { … } static inline uint64_t ogg_gptopts (AVFormatContext * s, int i, uint64_t gp, int64_t *dts) { … } #endif /* AVFORMAT_OGGDEC_H */