Files
videostreamer/videostreamer.h
Will Storey 37325f57b0 Open input/output separately, and read/write separately
This is a refactor of the library API so that we will be able to have
multiple outputs.
2017-01-01 14:58:29 -08:00

44 lines
766 B
C

#ifndef _VIDEOSTREAMER_H
#define _VIDEOSTREAMER_H
#include <libavformat/avformat.h>
#include <stdbool.h>
struct VSInput {
AVFormatContext * format_ctx;
int video_stream_index;
};
struct VSOutput {
AVFormatContext * format_ctx;
};
void
vs_setup(void);
struct VSInput *
vs_open_input(const char * const,
const char * const, const bool);
void
vs_destroy_input(struct VSInput * const);
struct VSOutput *
vs_open_output(const char * const,
const char * const, const struct VSInput * const,
const bool);
void
vs_destroy_output(struct VSOutput * const);
int
vs_read_packet(const struct VSInput *, AVPacket * const,
const bool);
int
vs_write_packet(const struct VSInput * const,
const struct VSOutput * const, AVPacket * const,
const bool);
#endif