35 lines
723 B
C
35 lines
723 B
C
|
#ifndef __SPS_DECODE__
|
|||
|
#define __SPS_DECODE__
|
|||
|
|
|||
|
#include <stdio.h>
|
|||
|
#include <stdint.h>
|
|||
|
#include <string.h>
|
|||
|
#include <math.h>
|
|||
|
#include <windows.h>
|
|||
|
|
|||
|
UINT Ue(BYTE *pBuff, UINT nLen, UINT &nStartBit);
|
|||
|
|
|||
|
int Se(BYTE *pBuff, UINT nLen, UINT &nStartBit);
|
|||
|
DWORD u(UINT BitCount, BYTE * buf, UINT &nStartBit);
|
|||
|
/**
|
|||
|
* H264<EFBFBD><EFBFBD>NAL<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* @param buf SPS<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* @<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
|||
|
*/
|
|||
|
void de_emulation_prevention(BYTE* buf, unsigned int* buf_size);
|
|||
|
/**
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>SPS,<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD>Ƶͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|||
|
*
|
|||
|
* @param buf SPS<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* @param nLen SPS<EFBFBD><EFBFBD><EFBFBD>ݵij<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* @param width ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* @param height ͼ<EFBFBD><EFBFBD><EFBFBD>߶<EFBFBD>
|
|||
|
|
|||
|
* @<EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>1 , ʧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>0
|
|||
|
*/
|
|||
|
int h264_decode_sps(BYTE * buf, unsigned int nLen, int &width, int &height, int &fps);
|
|||
|
|
|||
|
#endif
|