summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitsource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kitchensink/kitsource.h')
-rw-r--r--include/kitchensink/kitsource.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/include/kitchensink/kitsource.h b/include/kitchensink/kitsource.h
index 2b72e88..43b9d2b 100644
--- a/include/kitchensink/kitsource.h
+++ b/include/kitchensink/kitsource.h
@@ -1,6 +1,8 @@
#ifndef KITSOURCE_H
#define KITSOURCE_H
+#include "kitchensink/kitconfig.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -21,28 +23,21 @@ typedef struct Kit_Source {
int astream_idx;
int vstream_idx;
void *format_ctx;
- void *vcodec_ctx;
- void *acodec_ctx;
- void *vcodec;
- void *acodec;
} Kit_Source;
typedef struct Kit_Stream {
int index;
Kit_streamtype type;
- int width;
- int height;
} Kit_StreamInfo;
-Kit_Source* Kit_CreateSourceFromUrl(const char *path);
-int Kit_InitSourceCodecs(Kit_Source *src);
-void Kit_CloseSource(Kit_Source *src);
+KIT_API Kit_Source* Kit_CreateSourceFromUrl(const char *path);
+KIT_API void Kit_CloseSource(Kit_Source *src);
-int Kit_GetSourceStreamInfo(const Kit_Source *src, Kit_StreamInfo *info, int index);
-int Kit_GetSourceStreamCount(const Kit_Source *src);
-int Kit_GetBestSourceStream(const Kit_Source *src, const Kit_streamtype type);
-int Kit_SetSourceStream(Kit_Source *src, const Kit_streamtype type, int index);
-int Kit_GetSourceStream(const Kit_Source *src, const Kit_streamtype type);
+KIT_API int Kit_GetSourceStreamInfo(const Kit_Source *src, Kit_StreamInfo *info, int index);
+KIT_API int Kit_GetSourceStreamCount(const Kit_Source *src);
+KIT_API int Kit_GetBestSourceStream(const Kit_Source *src, const Kit_streamtype type);
+KIT_API int Kit_SetSourceStream(Kit_Source *src, const Kit_streamtype type, int index);
+KIT_API int Kit_GetSourceStream(const Kit_Source *src, const Kit_streamtype type);
#ifdef __cplusplus
}