1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /*------------------------------------------------------------------------------
- -- --
- -- This software is confidential and proprietary and may be used --
- -- only as expressly authorized by a licensing agreement from --
- -- --
- -- Hantro Products Oy. --
- -- --
- -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
- -- ALL RIGHTS RESERVED --
- -- --
- -- The entire notice above must be reproduced --
- -- on all copies and should not be removed. --
- -- --
- --------------------------------------------------------------------------------
- --
- -- Description : H.264 SEI Messages.
- --
- ------------------------------------------------------------------------------*/
- #ifndef H264_SEI_H
- #define H264_SEI_H
- #include "basetype.h"
- #include "H264PutBits.h"
- typedef struct
- {
- u32 fts; /* Full time stamp */
- u32 timeScale;
- u32 nuit; /* number of units in tick */
- u32 time; /* Modulo time */
- u32 secf;
- u32 sec; /* Seconds */
- u32 minf;
- u32 min; /* Minutes */
- u32 hrf;
- u32 hr; /* Hours */
- } timeStamp_s;
- typedef struct
- {
- timeStamp_s ts;
- u32 nalUnitSize;
- u32 enabled;
- true_e byteStream;
- u32 hrd; /* HRD conformance */
- u32 seqId;
- u32 icrd; /* initial cpb removal delay */
- u32 icrdLen;
- u32 icrdo; /* initial cpb removal delay offset */
- u32 icrdoLen;
- u32 crd; /* CPB removal delay */
- u32 crdLen;
- u32 dod; /* DPB removal delay */
- u32 dodLen;
- u32 psp;
- u32 ps;
- u32 cts;
- u32 cntType;
- u32 cdf;
- u32 nframes;
- u32 toffs;
- u32 toffsLen;
- u32 userDataEnabled;
- const u8 * pUserData;
- u32 userDataSize;
- } sei_s;
- void H264InitSei(sei_s * sei, true_e byteStream, u32 hrd, u32 timeScale,
- u32 nuit);
- void H264UpdateSeiTS(sei_s * sei, u32 timeInc);
- void H264FillerSei(stream_s * sp, sei_s * sei, i32 cnt);
- void H264BufferingSei(stream_s * stream, sei_s * sei);
- void H264PicTimingSei(stream_s * stream, sei_s * sei);
- void H264UserDataUnregSei(stream_s * sp, sei_s * sei);
- #endif
|