ogg_codec Struct Reference

Copyright (C) 2005 Michael Ahlberg, Måns Rullgård. More...

#include <oggdec.h>


Data Fields

const int8_t * magic
uint8_t magicsize
const int8_t * name
int(* header )(AVFormatContext *, int)
 Attempt to process a packet as a header.
int(* packet )(AVFormatContext *, int)
uint64_t(* gptopts )(AVFormatContext *, int, uint64_t, int64_t *dts)
 Translate a granule into a timestamp.
int granule_is_start
 1 if granule is the start time of the associated packet.


Detailed Description

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.

Definition at line 31 of file oggdec.h.


Field Documentation

uint64_t(* ogg_codec::gptopts)(AVFormatContext *, int, uint64_t, int64_t *dts)

Translate a granule into a timestamp.

Will set dts if non-null and known.

Returns:
pts

Referenced by ogg_gptopts().

1 if granule is the start time of the associated packet.

0 if granule is the end time of the associated packet.

Definition at line 53 of file oggdec.h.

Referenced by ogg_calc_pts().

Attempt to process a packet as a header.

Returns:
1 if the packet was a valid header, 0 if the packet was not a header (was a data packet) -1 if an error occurred or for unsupported stream

Referenced by ogg_packet().

const int8_t* ogg_codec::magic

Definition at line 32 of file oggdec.h.

Referenced by celt_header(), and ogg_find_codec().

Definition at line 33 of file oggdec.h.

Referenced by celt_header(), and ogg_find_codec().

const int8_t* ogg_codec::name

Definition at line 34 of file oggdec.h.

Referenced by ogg_packet().


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:46:17 2012 for FFmpeg by  doxygen 1.5.8