OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
BambuTunnel.h File Reference
#include <stdbool.h>
Include dependency graph for BambuTunnel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __Bambu_StreamInfo
struct  __Bambu_Sample
union  __Bambu_StreamInfo.format
struct  __Bambu_StreamInfo.format.video
struct  __Bambu_StreamInfo.format.audio

Macros

#define BAMBU_EXPORT
#define BAMBU_FUNC(x)

Typedefs

typedef char tchar
typedef void * Bambu_Tunnel
typedef void(* Logger) (void *context, int level, tchar const *msg)
typedef enum __Bambu_StreamType Bambu_StreamType
typedef enum __Bambu_VideoSubType Bambu_VideoSubType
typedef enum __Bambu_AudioSubType Bambu_AudioSubType
typedef enum __Bambu_FormatType Bambu_FormatType
typedef struct __Bambu_StreamInfo Bambu_StreamInfo
typedef enum __Bambu_SampleFlag Bambu_SampleFlag
typedef struct __Bambu_Sample Bambu_Sample
typedef enum __Bambu_Error Bambu_Error

Enumerations

enum  __Bambu_StreamType { VIDE , AUDI }
enum  __Bambu_VideoSubType { AVC1 , MJPG }
enum  __Bambu_AudioSubType { MP4A }
enum  __Bambu_FormatType {
  video_avc_packet , video_avc_byte_stream , video_jpeg , audio_raw ,
  audio_adts
}
enum  __Bambu_SampleFlag { f_sync = 1 }
enum  __Bambu_Error { Bambu_success , Bambu_stream_end , Bambu_would_block , Bambu_buffer_limit }

Functions

BAMBU_EXPORT int BAMBU_FUNC Bambu_Create (Bambu_Tunnel *tunnel, char const *path)
BAMBU_EXPORT void BAMBU_FUNC Bambu_SetLogger (Bambu_Tunnel tunnel, Logger logger, void *context)
BAMBU_EXPORT int BAMBU_FUNC Bambu_Open (Bambu_Tunnel tunnel)
BAMBU_EXPORT int BAMBU_FUNC Bambu_StartStream (Bambu_Tunnel tunnel, bool video)
BAMBU_EXPORT int BAMBU_FUNC Bambu_StartStreamEx (Bambu_Tunnel tunnel, int type)
BAMBU_EXPORT int BAMBU_FUNC Bambu_GetStreamCount (Bambu_Tunnel tunnel)
BAMBU_EXPORT int BAMBU_FUNC Bambu_GetStreamInfo (Bambu_Tunnel tunnel, int index, Bambu_StreamInfo *info)
BAMBU_EXPORT unsigned long BAMBU_FUNC Bambu_GetDuration (Bambu_Tunnel tunnel)
BAMBU_EXPORT int BAMBU_FUNC Bambu_Seek (Bambu_Tunnel tunnel, unsigned long time)
BAMBU_EXPORT int BAMBU_FUNC Bambu_ReadSample (Bambu_Tunnel tunnel, Bambu_Sample *sample)
BAMBU_EXPORT int BAMBU_FUNC Bambu_SendMessage (Bambu_Tunnel tunnel, int ctrl, char const *data, int len)
BAMBU_EXPORT int BAMBU_FUNC Bambu_RecvMessage (Bambu_Tunnel tunnel, int *ctrl, char *data, int *len)
BAMBU_EXPORT void BAMBU_FUNC Bambu_Close (Bambu_Tunnel tunnel)
BAMBU_EXPORT void BAMBU_FUNC Bambu_Destroy (Bambu_Tunnel tunnel)
BAMBU_EXPORT int BAMBU_FUNC Bambu_Init ()
BAMBU_EXPORT void BAMBU_FUNC Bambu_Deinit ()
BAMBU_EXPORT char const *BAMBU_FUNC Bambu_GetLastErrorMsg ()
BAMBU_EXPORT void BAMBU_FUNC Bambu_FreeLogMsg (tchar const *msg)

Class Documentation

◆ __Bambu_StreamInfo

struct __Bambu_StreamInfo
Class Members
union __Bambu_StreamInfo.format format
unsigned char const * format_buffer
int format_size
int format_type
int max_frame_size
int sub_type
Bambu_StreamType type

◆ __Bambu_Sample

struct __Bambu_Sample
Class Members
unsigned char const * buffer
unsigned long long decode_time
int flags
int itrack
int size

◆ __Bambu_StreamInfo.format

union __Bambu_StreamInfo.format
Class Members
struct __Bambu_StreamInfo.format.audio audio
struct __Bambu_StreamInfo.format.video video

◆ __Bambu_StreamInfo.format.video

struct __Bambu_StreamInfo.format.video
Class Members
int frame_rate
int height
int width

◆ __Bambu_StreamInfo.format.audio

struct __Bambu_StreamInfo.format.audio
Class Members
int channel_count
int sample_rate
int sample_size

Macro Definition Documentation

◆ BAMBU_EXPORT

◆ BAMBU_FUNC

#define BAMBU_FUNC ( x)
Value:
x

Typedef Documentation

◆ Bambu_AudioSubType

◆ Bambu_Error

typedef enum __Bambu_Error Bambu_Error

◆ Bambu_FormatType

◆ Bambu_Sample

typedef struct __Bambu_Sample Bambu_Sample

◆ Bambu_SampleFlag

◆ Bambu_StreamInfo

◆ Bambu_StreamType

◆ Bambu_Tunnel

typedef void* Bambu_Tunnel

◆ Bambu_VideoSubType

◆ Logger

typedef void(* Logger) (void *context, int level, tchar const *msg)

◆ tchar

typedef char tchar

Enumeration Type Documentation

◆ __Bambu_AudioSubType

Enumerator
MP4A 
53{
54 MP4A
enum __Bambu_AudioSubType Bambu_AudioSubType
@ MP4A
Definition BambuTunnel.h:54

◆ __Bambu_Error

Enumerator
Bambu_success 
Bambu_stream_end 
Bambu_would_block 
Bambu_buffer_limit 
105{
@ Bambu_stream_end
Definition BambuTunnel.h:107
@ Bambu_buffer_limit
Definition BambuTunnel.h:109
@ Bambu_success
Definition BambuTunnel.h:106
@ Bambu_would_block
Definition BambuTunnel.h:108
enum __Bambu_Error Bambu_Error

◆ __Bambu_FormatType

Enumerator
video_avc_packet 
video_avc_byte_stream 
video_jpeg 
audio_raw 
audio_adts 
58{
@ video_avc_byte_stream
Definition BambuTunnel.h:60
@ audio_adts
Definition BambuTunnel.h:63
@ audio_raw
Definition BambuTunnel.h:62
@ video_jpeg
Definition BambuTunnel.h:61
@ video_avc_packet
Definition BambuTunnel.h:59
enum __Bambu_FormatType Bambu_FormatType

◆ __Bambu_SampleFlag

Enumerator
f_sync 
91{
92 f_sync = 1
enum __Bambu_SampleFlag Bambu_SampleFlag
@ f_sync
Definition BambuTunnel.h:92

◆ __Bambu_StreamType

Enumerator
VIDE 
AUDI 
41{
42 VIDE,
43 AUDI
@ VIDE
Definition BambuTunnel.h:42
@ AUDI
Definition BambuTunnel.h:43
enum __Bambu_StreamType Bambu_StreamType

◆ __Bambu_VideoSubType

Enumerator
AVC1 
MJPG 
47{
48 AVC1,
49 MJPG,
enum __Bambu_VideoSubType Bambu_VideoSubType
@ AVC1
Definition BambuTunnel.h:48
@ MJPG
Definition BambuTunnel.h:49

Function Documentation

◆ Bambu_Close()

BAMBU_EXPORT void BAMBU_FUNC Bambu_Close ( Bambu_Tunnel tunnel)

References Bambu_Close(), and BAMBU_EXPORT.

Referenced by Bambu_Close(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Create()

BAMBU_EXPORT int BAMBU_FUNC Bambu_Create ( Bambu_Tunnel * tunnel,
char const * path )

References Bambu_Create(), and BAMBU_EXPORT.

Referenced by Bambu_Create(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Deinit()

BAMBU_EXPORT void BAMBU_FUNC Bambu_Deinit ( )

References Bambu_Deinit(), and BAMBU_EXPORT.

Referenced by Bambu_Deinit(), StaticBambuLib::get(), and StaticBambuLib::release().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Destroy()

BAMBU_EXPORT void BAMBU_FUNC Bambu_Destroy ( Bambu_Tunnel tunnel)

References Bambu_Destroy(), and BAMBU_EXPORT.

Referenced by Bambu_Destroy(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_FreeLogMsg()

BAMBU_EXPORT void BAMBU_FUNC Bambu_FreeLogMsg ( tchar const * msg)

References BAMBU_EXPORT, and Bambu_FreeLogMsg().

Referenced by Bambu_FreeLogMsg(), PrinterFileSystem::DumpLog(), and StaticBambuLib::get().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_GetDuration()

BAMBU_EXPORT unsigned long BAMBU_FUNC Bambu_GetDuration ( Bambu_Tunnel tunnel)

References BAMBU_EXPORT, and Bambu_GetDuration().

Referenced by Bambu_GetDuration().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_GetLastErrorMsg()

BAMBU_EXPORT char const *BAMBU_FUNC Bambu_GetLastErrorMsg ( )

References BAMBU_EXPORT, and Bambu_GetLastErrorMsg().

Referenced by Bambu_GetLastErrorMsg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_GetStreamCount()

BAMBU_EXPORT int BAMBU_FUNC Bambu_GetStreamCount ( Bambu_Tunnel tunnel)

References BAMBU_EXPORT, and Bambu_GetStreamCount().

Referenced by Bambu_GetStreamCount(), and StaticBambuLib::get().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_GetStreamInfo()

BAMBU_EXPORT int BAMBU_FUNC Bambu_GetStreamInfo ( Bambu_Tunnel tunnel,
int index,
Bambu_StreamInfo * info )

References BAMBU_EXPORT, and Bambu_GetStreamInfo().

Referenced by Bambu_GetStreamInfo(), StaticBambuLib::get(), and wxMediaCtrl3::PlayThread().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Init()

BAMBU_EXPORT int BAMBU_FUNC Bambu_Init ( )

References BAMBU_EXPORT, and Bambu_Init().

Referenced by Bambu_Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Open()

BAMBU_EXPORT int BAMBU_FUNC Bambu_Open ( Bambu_Tunnel tunnel)

References BAMBU_EXPORT, and Bambu_Open().

Referenced by Bambu_Open(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_ReadSample()

BAMBU_EXPORT int BAMBU_FUNC Bambu_ReadSample ( Bambu_Tunnel tunnel,
Bambu_Sample * sample )

References BAMBU_EXPORT, and Bambu_ReadSample().

Referenced by Bambu_ReadSample(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::RecvMessageThread().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_RecvMessage()

BAMBU_EXPORT int BAMBU_FUNC Bambu_RecvMessage ( Bambu_Tunnel tunnel,
int * ctrl,
char * data,
int * len )

References BAMBU_EXPORT, and Bambu_RecvMessage().

Referenced by Bambu_RecvMessage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_Seek()

BAMBU_EXPORT int BAMBU_FUNC Bambu_Seek ( Bambu_Tunnel tunnel,
unsigned long time )

References BAMBU_EXPORT, and Bambu_Seek().

Referenced by Bambu_Seek().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_SendMessage()

BAMBU_EXPORT int BAMBU_FUNC Bambu_SendMessage ( Bambu_Tunnel tunnel,
int ctrl,
char const * data,
int len )

References BAMBU_EXPORT, and Bambu_SendMessage().

Referenced by Bambu_SendMessage(), StaticBambuLib::get(), and PrinterFileSystem::RecvMessageThread().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_SetLogger()

BAMBU_EXPORT void BAMBU_FUNC Bambu_SetLogger ( Bambu_Tunnel tunnel,
Logger logger,
void * context )

References BAMBU_EXPORT, and Bambu_SetLogger().

Referenced by Bambu_SetLogger(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_StartStream()

BAMBU_EXPORT int BAMBU_FUNC Bambu_StartStream ( Bambu_Tunnel tunnel,
bool video )

References BAMBU_EXPORT, and Bambu_StartStream().

Referenced by Bambu_StartStream(), StaticBambuLib::get(), wxMediaCtrl3::PlayThread(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Bambu_StartStreamEx()

BAMBU_EXPORT int BAMBU_FUNC Bambu_StartStreamEx ( Bambu_Tunnel tunnel,
int type )

References BAMBU_EXPORT, and Bambu_StartStreamEx().

Referenced by Bambu_StartStreamEx(), StaticBambuLib::get(), and PrinterFileSystem::Reconnect().

Here is the call graph for this function:
Here is the caller graph for this function: