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

- File List
- Globals

# /home/v/Kate/WORK_TREES/kate-sorceress-backup/v/src/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 <ogg/ogg.h>
    00019 #include "kate/kate.h"
    00020
    00021 #ifdef __cplusplus
    00022 extern "C" {
    00023 #endif
    00024
    00026 extern int kate_ogg_encode_headers(kate_state *k,kate_comment *kc,ogg_packet *op);
    00027 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 */
    00028 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 */
    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_repeat_raw_times(kate_state *k,kate_int64_t t,kate_int64_t threshold,ogg_packet *op);
    00031 extern int kate_ogg_encode_keepalive(kate_state *k,kate_float t,ogg_packet *op);
    00032 extern int kate_ogg_encode_keepalive_raw_times(kate_state *k,kate_int64_t t,ogg_packet *op);
    00033 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 */
    00034 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 */
    00035
    00037 extern int kate_ogg_decode_is_idheader(const ogg_packet *op);
    00038 extern int kate_ogg_decode_headerin(kate_info *ki,kate_comment *kc,ogg_packet *op);
    00039 extern int kate_ogg_decode_packetin(kate_state *k,ogg_packet *op);
    00040
    00041 #ifdef __cplusplus
    00042 }
    00043 #endif
    00044
    00045 #endif
    00046