mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2026-07-11 22:15:45 +00:00
first add sdk
This commit is contained in:
commit
f91efd1250
3915 changed files with 1291882 additions and 0 deletions
30
component/common/media/framework/mmf_sink.h
Executable file
30
component/common/media/framework/mmf_sink.h
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef _STREAM_H
|
||||
#define _STREAM_H
|
||||
#include "cmsis_os.h"
|
||||
#include "mmf_common.h"
|
||||
|
||||
typedef struct _media_sink_module{
|
||||
void* (*create)(void);
|
||||
void (*destroy)(void*);
|
||||
int (*set_param)(void*, int, int);
|
||||
int (*handle)(void*, void*);
|
||||
}msink_module_t;
|
||||
|
||||
typedef struct _media_sink_context{
|
||||
xQueueHandle input_qid;
|
||||
xQueueHandle output_qid;
|
||||
int state;
|
||||
xTaskHandle hdl_task;
|
||||
|
||||
void* drv_priv; // private data for module
|
||||
msink_module_t *sink;
|
||||
}msink_context;
|
||||
|
||||
void mmf_sink_close(msink_context* ctx);
|
||||
msink_context* mmf_sink_open(msink_module_t *sink);
|
||||
int mmf_sink_ctrl(msink_context* ctx, int cmd, int arg);
|
||||
int mmf_sink_put_frame(msink_context* ctx, exch_buf_t* exbuf);
|
||||
|
||||
// must be here
|
||||
#include "mmf_sink_modules/mmf_sink_list.h"
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue