56#elif defined(NEWSGOLD)
70 int (*
read)(
void *buf,
int len,
void *stream);
71 int (*
write)(
const void *buf,
int len,
void *stream);
73 int (*
seek)(
void *stream,
int offset,
int whence);
76 int (*
push)(
const void *buf,
int len,
void *stream);
77 int (*
get)(
void *stream,
void **chunk,
int *
size,
int *eof);
82#if defined(NEWSGOLD) || defined(X75)
83 int (*
reopen)(
void *src,
void *stream);
86 void (*unk_38)(
void *stream,
void *buf,
int offset,
int len);
88 void (*unk_40)(
void *stream);
#define __swi_end(number, func, call)
#define __swi_begin(number)
int(* read)(void *buf, int len, void *stream)
Returns bytes read.
int(* seek)(void *stream, int offset, int whence)
whence 0 = from start; 0 = error
int(* push)(const void *buf, int len, void *stream)
Returns bytes written.
int16_t(* read_char)(void *stream)
Negative = error.
void(* destroy)(void *stream, int last)
last: the stream is the last in its chain
int(* get)(void *stream, void **chunk, int *size, int *eof)
chunk: free with Obs_MemFree; 0 = OK
int(* write)(const void *buf, int len, void *stream)
Returns bytes written.
int(* reopen)(void *src, void *stream)
Called for a copy of src; 0 = OK.
void * func
event callback
int Obs_SetUserPointer(HObj obs, void *user_pointer)
Set custom user pointer to the OBS object.
int Obs_Sound_SetAMRDTX(HObj obs, int dtx)
Set AMR DTX.
int Obs_Pause(HObj obs)
Pause processing.
int Obs_Sound_SetRecordingMode(HObj obs, int recording_mode)
Set mode of the recording.
int Obs_TranslateMessageGBS(const GBS_MSG *msg, const OBSevent *handlers)
Process async callbacks from GBS message.
int Obs_GetUserPointer(HObj obs, void **p_user_pointer)
Get custom user pointer from the OBS object.
int Obs_Sound_GetVolume(HObj obs, char *volume)
Get current sound volume.
int Obs_Sound_SetVolumeEx(HObj obs, char volume, char delta)
Set sound volume.
int Obs_Resume(HObj obs)
Resume paused processing.
int Obs_Sound_SetFIsRecording(HObj obs, int is_recording)
Set recording mode.
static int Obs_GetDuration(HObj obs, int *position)
Get the duration of playing audio or video.
int Obs_SetInput_Memory(HObj obs, int unk, char *buf, int len)
Use the memory as input.
int Obs_Mam_SetPurpose(HObj obs, char purpose)
Set purpose for MAM.
void * Obs_MemAlloc(int size)
Allocate memory from the Obs heap (the pool of the Obs file stream chunks).
int Obs_GetInputImageSize(HObj obs, short *w, short *h)
Get the resolution of the input image.
int Obs_Sound_SetAMRMode(HObj obs, int data_rate)
Set AMR data rate.
int Obs_Sound_SetAMRFormat(HObj obs, int format)
Set AMR format.
int Obs_SetRotation(HObj obs, int angle)
Rotate image.
ObsEventID
OBS events for async mode.
int Obs_Sound_SetBitrate(HObj obs, int bitrate)
Set sound bitrate.
int Obs_DestroyObject(HObj obs)
Destroy OBS object.
OBS_FILE_STREAM_METHODS * RamObsFileStreamMethods(void)
Get the global method table of the Obs file streams, shared by all file stream objects.
void Obs_MemFree(void *ptr)
Free memory allocated with Obs_MemAlloc.
HObj Obs_CreateObject(int uid_in, int uid_out, int prio, int msg_callback, int emb4, int sync, uint32_t *err)
Create OBS object.
int Obs_Output_GetPictstruct(HObj obs, IMGHDR **img)
Get the IMGHDR of the input image.
int Obs_Stop(HObj obs)
Stop processing.
int Obs_SetScaling(HObj obs, int method)
Set scaling method.
int Obs_SetInput_File(HObj obs, int unk, WSHDR *path)
Use the file as input.
int Obs_GetInfo(HObj obs, int unk)
Get information from the input file.
int Obs_Start(HObj obs)
Start processing.
int Obs_Graphics_SetClipping(HObj obs, short x, short y, short w, short h)
Clip image.
int Obs_SetOutputImageSize(HObj obs, short w, short h)
Resize image.
static int Obs_GetPosition(HObj obs, int *position)
Get the current position of playing audio or video.
int Obs_SetRenderOffset(HObj obs, short x, short y)
Set render offset.
int Obs_SetOutput_File(HObj obs, const WSHDR *filename)
Set output filename.
int Obs_SetOutput_Uid(HObj obs, int uid)
Set output file type (extension UID).
int Obs_Sound_SetMaxFileSize(HObj obs, int max_file_size)
Set maximum file size.
int Obs_Sound_SetNofChannels(HObj obs, int num_channels)
Set count of the channels.
int Obs_SetCSM(HObj obs, CSM_RAM *csm)
Link CSM to the OBS object.
int Obs_SetPosition(HObj obs, int position)
Set the given position for playing audio or video.
int Obs_Prepare(HObj obs)
Prepare before start.
int Obs_Sound_SetPurpose(HObj obs, int purpose)
Set purpose for Sound.
@ OBS_EV_GetCapabilityCon
Method table of the Obs file streams (see RamObsFileStreamMethods).
Event for Obs_TranslateMessageGBS.
int GetPlayObjPosition(void *obj, int *position)
Get the current position from Obs or PlayObj (generic).
int GetPlayObjDuration(void *obj, int *duration)
Get the duration of from Obs or PlayObj (generic).