VideoMgmt_SingleThread.c
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**************************************************
*
* 文件名:VideoMgmt的单线程处理模式
*
* **********************************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include "JZsdkLib.h"
#include "./VideoMgmt.h"
#include "version_choose.h"
#include "BaseConfig.h"
#include "./VideoStreamPush/VideoStream_Push.h"
#include "./VideoStreamRecord/VideoStream_Record.h"
#include "./VideoStreamPhoto/VideoStream_ShootPhoto.h"
#include "UI_control/UI_control.h"
#include "../MediaParm.h"
#include "../StreamProc/RTK_mmp/RTK_mmp.h"
/************************
*
* 视频管理模块
* 单线程模式下的数据输入接口
*
* *************************/
T_JZsdkReturnCode VideoMgmt_Single_FrameIn(unsigned char *FrmaeData,unsigned int FrmaeDataLen)
{
//判断数据是否为空
if(FrmaeData == NULL)
{
return JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER;
}
//判断数据长度是否为空
if(FrmaeDataLen == 0)
{
return JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE;
}
//进行数据后处理,即加入帧头,帧尾等
//将数据输入到流转函数中
VideoMgmt_VideoStreamToDeal(FrmaeData,FrmaeDataLen);
return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
}