libmp3splt
src/split_points.h
00001 /**********************************************************
00002  *
00003  * libmp3splt -- library based on mp3splt,
00004  *               for mp3/ogg splitting without decoding
00005  *
00006  * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net>
00007  * Copyright (c) 2005-2010 Munteanu Alexandru - io_fx@yahoo.fr
00008  *
00009  * http://mp3splt.sourceforge.net
00010  *
00011  *********************************************************/
00012 
00013 /**********************************************************
00014  *
00015  * This program is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU General Public License
00017  * as published by the Free Software Foundation; either version 2
00018  * of the License, or (at your option) any later version.
00019  *
00020  * This program is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU General Public License
00026  * along with this program; if not, write to the Free Software
00027  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00028  * 02111-1307,
00029  * USA.
00030  *
00031  *********************************************************/
00032 
00033 #ifndef SPLT_SPLIT_POINTS_H
00034 
00035 int splt_sp_splitpoint_exists(splt_state *state, int index);
00036 
00037 int splt_sp_append_splitpoint(splt_state *state, long split_value,
00038     const char *name, int type);
00039 splt_point *splt_sp_get_splitpoints(splt_state *state, int *splitpoints_number);
00040 void splt_sp_free_splitpoints(splt_state *state);
00041 
00042 int splt_sp_set_splitpoint_value(splt_state *state, int index, long split_value);
00043 int splt_sp_set_splitpoint_name(splt_state *state, int index, const char *name);
00044 int splt_sp_set_splitpoint_type(splt_state *state, int index, int type);
00045 
00046 long splt_sp_get_splitpoint_value(splt_state *state, int index, int *error);
00047 const char *splt_sp_get_splitpoint_name(splt_state *state, int index, int *error);
00048 int splt_sp_get_splitpoint_type(splt_state *state, int index, int *error);
00049 
00050 int splt_sp_cut_splitpoint_extension(splt_state *state, int index);
00051 
00052 int splt_sp_order_splitpoints(splt_state *state, int len);
00053 
00054 void splt_sp_get_mins_secs_hundr_from_splitpoint(long splitpoint,
00055     long *mins, long *secs, long *hudr);
00056 
00057 long splt_sp_overlap_time(splt_state *state, int splitpoint_index);
00058 
00059 #define SPLT_SPLIT_POINTS_H
00060 
00061 #endif
00062