libkate 0.4.3
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
22extern "C" {
23#endif
24
26extern int kate_ogg_encode_headers(kate_state *k,kate_comment *kc,ogg_packet *op);
27extern 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 */
28extern 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 */
29extern int kate_ogg_encode_repeat(kate_state *k,kate_float t,kate_float threshold,ogg_packet *op);
30extern int kate_ogg_encode_repeat_raw_times(kate_state *k,kate_int64_t t,kate_int64_t threshold,ogg_packet *op);
31extern int kate_ogg_encode_keepalive(kate_state *k,kate_float t,ogg_packet *op);
32extern int kate_ogg_encode_keepalive_raw_times(kate_state *k,kate_int64_t t,ogg_packet *op);
33extern 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 */
34extern 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
37extern int kate_ogg_decode_is_idheader(const ogg_packet *op);
38extern int kate_ogg_decode_headerin(kate_info *ki,kate_comment *kc,ogg_packet *op);
39extern int kate_ogg_decode_packetin(kate_state *k,ogg_packet *op);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
46
int kate_ogg_encode_finish(kate_state *k, kate_float t, ogg_packet *op)
Definition: kate_ogg.c:193
int kate_ogg_encode_repeat_raw_times(kate_state *k, kate_int64_t t, kate_int64_t threshold, ogg_packet *op)
Definition: kate_ogg.c:137
int kate_ogg_encode_keepalive_raw_times(kate_state *k, kate_int64_t t, ogg_packet *op)
Definition: kate_ogg.c:175
int kate_ogg_encode_repeat(kate_state *k, kate_float t, kate_float threshold, ogg_packet *op)
Definition: kate_ogg.c:114
int kate_ogg_decode_packetin(kate_state *k, ogg_packet *op)
Definition: kate_ogg.c:260
int kate_ogg_encode_finish_raw_times(kate_state *k, kate_int64_t t, ogg_packet *op)
Definition: kate_ogg.c:211
int kate_ogg_decode_is_idheader(const ogg_packet *op)
Definition: kate_ogg.c:226
int kate_ogg_encode_keepalive(kate_state *k, kate_float t, ogg_packet *op)
Definition: kate_ogg.c:158
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)
Definition: kate_ogg.c:75
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)
Definition: kate_ogg.c:95
int kate_ogg_encode_headers(kate_state *k, kate_comment *kc, ogg_packet *op)
Definition: kate_ogg.c:54
int kate_ogg_decode_headerin(kate_info *ki, kate_comment *kc, ogg_packet *op)
Definition: kate_ogg.c:244
Definition: kate.h:347
Definition: kate.h:274
Definition: kate.h:336