libkate: /home/lyrian/OggVorbis/kate/include/kate/oggkate.h Source File

- Main Page
- Modules
- Data Structures
- Files
- Related Pages
- Examples

# /home/lyrian/OggVorbis/kate/include/kate/oggkate.h

Go to the documentation of this file.

    00001 /* Copyright (C) 2008 Vincent Penquerc'h.
    00002    This file is part of the Kate codec library.
    00003    Written by Vincent Penquerc'h.
    00004
    00005    Use, distribution and reproduction of this library is governed
    00006    by a BSD style source license included with this source in the
    00007    file 'COPYING'. Please read these terms before distributing. */
    00008
    00009
    00010 #ifndef KATE_oggkate_h_GUARD
    00011 #define KATE_oggkate_h_GUARD
    00012
    00017 #include <stddef.h>
    00018 #include <stdint.h>
    00019 #include <ogg/ogg.h>
    00020 #include "kate/kate.h"
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif
    00025
    00027 extern int kate_ogg_encode_headers(kate_state *k,kate_comment *kc,ogg_packet *op);
    00028 extern int kate_ogg_encode_text(kate_state *k,kate_float start_time,kate_float stop_time,const char *text,size_t sz,ogg_packet *op); /* text is not null terminated */
    00029 extern int kate_ogg_encode_text_raw_times(kate_state *k,kate_int64_t start_time,kate_int64_t stop_time,const char *text,size_t sz,ogg_packet *op); /* text is not null terminated */
    00030 extern int kate_ogg_encode_repeat(kate_state *k,kate_float t,kate_float threshold,ogg_packet *op);
    00031 extern int kate_ogg_encode_repeat_raw_times(kate_state *k,kate_int64_t t,kate_int64_t threshold,ogg_packet *op);
    00032 extern int kate_ogg_encode_keepalive(kate_state *k,kate_float t,ogg_packet *op);
    00033 extern int kate_ogg_encode_keepalive_raw_times(kate_state *k,kate_int64_t t,ogg_packet *op);
    00034 extern int kate_ogg_encode_finish(kate_state *k,kate_float t,ogg_packet *op); /* t may be negative to use the end granule of the last event */
    00035 extern int kate_ogg_encode_finish_raw_times(kate_state *k,kate_int64_t t,ogg_packet *op); /* t may be negative to use the end granule of the last event */
    00036
    00038 extern int kate_ogg_decode_is_idheader(const ogg_packet *op);
    00039 extern int kate_ogg_decode_headerin(kate_info *ki,kate_comment *kc,ogg_packet *op);
    00040 extern int kate_ogg_decode_packetin(kate_state *k,ogg_packet *op);
    00041
    00042 #ifdef __cplusplus
    00043 }
    00044 #endif
    00045
    00046 #endif
    00047