libkate: /tmp/tgz/libkate-0.3.3/include/kate/oggkate.h Source File

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

- File List
- Globals

# /tmp/tgz/libkate-0.3.3/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_repeat(kate_state *k,kate_float t,kate_float threshold,ogg_packet *op);
    00030 extern int kate_ogg_encode_keepalive(kate_state *k,kate_float t,ogg_packet *op);
    00031 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 */
    00032
    00034 extern int kate_ogg_decode_is_idheader(const ogg_packet *op);
    00035 extern int kate_ogg_decode_headerin(kate_info *ki,kate_comment *kc,ogg_packet *op);
    00036 extern int kate_ogg_decode_packetin(kate_state *k,ogg_packet *op);
    00037
    00038 #ifdef __cplusplus
    00039 }
    00040 #endif
    00041
    00042 #endif
    00043