-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathutils.h
executable file
·44 lines (36 loc) · 1.69 KB
/
utils.h
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
/*
* Copyright (c) 2016, Freescale Semiconductor Inc.,
* Copyright 2018-2020 NXP
*
* The following programs are the sole property of NXP,
* and contain its proprietary and confidential information.
*
*/
#ifndef UTILS_H
#define UTILS_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
int VpuDetectAvcc(unsigned char* pCodecData, unsigned int nSize, int * pIsAvcc,
int * pNalSizeLength,int* pNalNum);
int VpuDetectHvcc(unsigned char* pCodecData, unsigned int nSize, int * pIsHvcc,
int * pNalSizeLength,int* pNalNum);
int VpuConvertAvccHeader(unsigned char* pCodecData, unsigned int nSize,
unsigned char** ppOut, unsigned int * pOutSize);
int VpuConvertHvccHeader(unsigned char* pCodecData, unsigned int nSize,
unsigned char** ppOut, unsigned int * pOutSize);
int VpuConvertAvccFrame(unsigned char* pData, unsigned int nSize, int
nNalSizeLength, unsigned char** ppFrm, unsigned int* pSize, int * pNalNum);
int VC1CreateNALSeqHeader(unsigned char* pHeader, int* pHeaderLen,
unsigned char* pCodecPri,int nCodecSize, unsigned int* pData, int nMaxHeader);
int VC1CreateRCVSeqHeader(unsigned char* pHeader, int* pHeaderLen,
unsigned char* pCodecPri,unsigned int nFrameSize,int nWidth,int nHeight,int* pNoError);
int VC1CreateNalFrameHeader(unsigned char* pHeader, int* pHeaderLen,unsigned int*pInData );
int VC1CreateRCVFrameHeader(unsigned char* pHeader, int* pHeaderLen,unsigned int nInSize );
int VpuFindAVCStartCode(unsigned char* pData, int nSize, unsigned char** ppStart);
int VpuConvertToAvccData(unsigned char* pData, int nSize);
int VpuConvertToAvccHeader(unsigned char* pData, int nSize, int* pFilledSize);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif //#ifndef UTILS_H