2
* Copyright 2014 Ben Ockmore
4
* This file is part of libwaveplot.
6
* libwaveplot is free software: you can redistribute it and/or modify it under
7
* the terms of the GNU Lesser General Public License as published by the Free
8
* Software Foundation, either version 3 of the License, or (at your option)
11
* libwaveplot is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with libwaveplot. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef __LIBWP_FILE_H__
21
#define __LIBWP_FILE_H__
23
#include "libavcodec/avcodec.h"
24
#include "libavformat/avformat.h"
25
#include "libavresample/avresample.h"
27
#include "dllexport.h"
35
AVCodecContext* codec_context;
37
AVFormatContext* format_context;
38
AVAudioResampleContext* resample_context;
42
/* Initialize WavePlot and libav */
43
LIBWAVEPLOT_API void init(void);
45
/* Allocate storage for a file structure, and deallocate. */
46
LIBWAVEPLOT_API file_t* alloc_file(void);
47
LIBWAVEPLOT_API void free_file(file_t*);
49
/* Load a file with libav, into an allocated file structure. */
50
LIBWAVEPLOT_API int load_file(char*, file_t*);
52
#endif //__LIBWP_FILE_H__