00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __FS_OPTIONS_H__
00016 #define __FS_OPTIONS_H__
00017
00018 #ifndef __FLIXENGINE2_H__
00019 # error "fs_options.h should only be included through flixengine2.h"
00020 #endif
00021
00088 typedef enum {
00089 FrameTypeAudio,
00090 FrameTypeVideo
00091 } FE2_FrameType;
00092
00095 typedef enum {
00096 VideoFormatYV12,
00097 VideoFormatBGRA
00098 } FE2_VideoFormat;
00099
00100 #if defined(__cplusplus)
00101 extern "C" {
00102 #endif
00103
00118 FLIXENGINE_API on2sc Flix2_SetFrameServer(FLIX2HANDLE flix, on2bool enable);
00119
00133 FLIXENGINE_API on2sc Flix2_GetFrameServer(FLIX2HANDLE flix, on2bool* enabled);
00134
00158 FLIXENGINE_API on2sc Flix2_SetAudioProperties(FLIX2HANDLE flix,
00159 uint8_t channels, int16_t bitspersample,
00160 int32_t samplerate);
00161
00190 FLIXENGINE_API on2sc Flix2_SetVideoProperties(FLIX2HANDLE flix,
00191 FE2_VideoFormat format,
00192 int32_t width, int32_t height, int32_t pitch,
00193 int32_t rate, int32_t scale);
00194
00223 FLIXENGINE_API on2sc Flix2_EncodeFrame(FLIX2HANDLE flix,
00224 FE2_FrameType type, on2bool eos,
00225 uint8_t* frame, uint32_t len, int64_t ts90k);
00226
00227 #if defined(__cplusplus)
00228 }
00229 #endif
00230
00232 #endif