libkate  0.3.8
oggkate.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 Vincent Penquerc'h.
2  This file is part of the Kate codec library.
3  Written by Vincent Penquerc'h.
4 
5  Use, distribution and reproduction of this library is governed
6  by a BSD style source license included with this source in the
7  file 'COPYING'. Please read these terms before distributing. */
8 
9 
10 #ifndef KATE_oggkate_h_GUARD
11 #define KATE_oggkate_h_GUARD
12 
17 #include <stddef.h>
18 #include <ogg/ogg.h>
19 #include "kate/kate.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
26 extern int kate_ogg_encode_headers(kate_state *k,kate_comment *kc,ogg_packet *op);
27 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 */
28 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 */
29 extern int kate_ogg_encode_repeat(kate_state *k,kate_float t,kate_float threshold,ogg_packet *op);
30 extern int kate_ogg_encode_repeat_raw_times(kate_state *k,kate_int64_t t,kate_int64_t threshold,ogg_packet *op);
31 extern int kate_ogg_encode_keepalive(kate_state *k,kate_float t,ogg_packet *op);
32 extern int kate_ogg_encode_keepalive_raw_times(kate_state *k,kate_int64_t t,ogg_packet *op);
33 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 */
34 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 */
35 
37 extern int kate_ogg_decode_is_idheader(const ogg_packet *op);
38 extern int kate_ogg_decode_headerin(kate_info *ki,kate_comment *kc,ogg_packet *op);
39 extern int kate_ogg_decode_packetin(kate_state *k,ogg_packet *op);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif
46