flixengine2/fs_options.h

Go to the documentation of this file.
00001 /*
00002 //==========================================================================
00003 //
00004 //  Copyright (c) On2 Technologies Inc. All Rights Reserved.
00005 //
00006 //--------------------------------------------------------------------------
00007 //
00008 //  File:        $Workfile: fs_options.h$
00009 //               $Revision: 9$
00010 //
00011 //  Last Update: $DateUTC: 2006-12-06 21:45:18Z$
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 /*__FS_OPTIONS_H__*/

On2 Technologies, Inc Flix Engine Linux documentation, generated on Mon May 19 10:56:06 2008 by doxygen 1.5.2