Home
last modified time | relevance | path

Searched refs:pStream (Results 1 – 19 of 19) sorted by relevance

/utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/cModel/
H A Dm4v_header.c147 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeSequenceHead() argument
149 osPutBits(pStream, START_CODE_PREFIX, NUMBITS_START_CODE_PREFIX, "VSS_Start_Code"); in codeSequenceHead()
150 osPutBits(pStream, VSS_START_CODE, NUMBITS_START_CODE_SUFFIX, "VSS_Start_Code"); in codeSequenceHead()
151 osPutBits(pStream, 0xF5/*m_volmd.uiProfileAndLevel*/, NUMBITS_VSS_PROFILE, "VSS_Profile_Level"); in codeSequenceHead()
153 osPutBits(pStream, START_CODE_PREFIX, NUMBITS_START_CODE_PREFIX, "VSO_Start_Code"); in codeSequenceHead()
154 osPutBits(pStream, VSO_START_CODE, NUMBITS_START_CODE_SUFFIX, "VSO_Start_Code"); in codeSequenceHead()
155 osPutBits(pStream, 0, 1, "VSO_IsVisualObjectIdentifier"); in codeSequenceHead()
156 osPutBits(pStream, VSO_TYPE, NUMBITS_VSO_TYPE, "VSO_Type"); in codeSequenceHead()
157 osPutBits(pStream, 0, 1, "VSO_VideoSignalType"); in codeSequenceHead()
164 osNextStartCode(pStream); in codeSequenceHead()
[all …]
H A DOutStrm.c92 void osCreate(OutStream* pStream) in osCreate() argument
97 pStream->m_bUseLittleEndian = 1; in osCreate()
99 pStream->m_bUseLittleEndian = 0; in osCreate()
102 pStream->m_bUseLittleEndian = 0; in osCreate()
104 ms_dprintk(DRV_L4,"OutStream: LittleEndian=%d\n", pStream->m_bUseLittleEndian); in osCreate()
106 pStream->m_pbFrameBuffer = 0; in osCreate()
107 pStream->m_nByteCount = 0; in osCreate()
108 pStream->m_nBufferEmptyBits = 32; in osCreate()
109 pStream->m_SmallBuffer = 0; in osCreate()
110 pStream->BC_nCumulativeBits = 0; in osCreate()
[all …]
H A Dmfe_reg_m4ve.c292 OutStream* pStream = &pConfig->m_OutStream; in mfeM4VE_EncodeFrame() local
357 codeSequenceHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
358 codeVOHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
367 codeVOLHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
376 codeNonCodedVOPShortHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
378 codeNonCodedVOPHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
383 codeVOPShortHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
385 codeVOPHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
389 pBitsInfo->ptr = pStream->m_pbFrameBuffer; in mfeM4VE_EncodeFrame()
390 pBitsInfo->len = pStream->m_nByteCount; in mfeM4VE_EncodeFrame()
[all …]
H A Dparset.c812 static int WriteAnnexbNALU(OutStream* pStream, NALU_t *n) in WriteAnnexbNALU() argument
823 osPutBits(pStream, 0, 8, "start-code 0"); in WriteAnnexbNALU()
826 osPutBits(pStream, 0, 8, "start-code 0"); in WriteAnnexbNALU()
827 osPutBits(pStream, 0, 8, "start-code 0"); in WriteAnnexbNALU()
828 osPutBits(pStream, 1, 8, "start-code 1"); in WriteAnnexbNALU()
835 osPutBits(pStream, n->buf[i], 8, "nalu-body"); in WriteAnnexbNALU()
838 osPutBits(pStream, n->buf[i]&(0xFF>>(8-leftbits)), leftbits, "nalu-body (last-bits)"); in WriteAnnexbNALU()
1081 void codeSPSPPS(OutStream* pStream) in codeSPSPPS() argument
1083 WriteAnnexbNALU(pStream, &gNaluStruct[STATIC_SPS]); in codeSPSPPS()
1084 WriteAnnexbNALU(pStream, &gNaluStruct[STATIC_PPS]); in codeSPSPPS()
[all …]
H A DOutStrm.h101 void osCreate(OutStream* pStream);
102 void osDestroy(OutStream* pStream);
104 void osSetWriteBuffer(OutStream* pStream, MFE_BYTE *pWBuf);
106 void osReset(OutStream* pStream);
108 void osFlushAll(OutStream* pStream);
110 MFE_U32 GetBitsCount(OutStream* pStream);
113 void osPutBits(OutStream* pStream, MFE_U32 value, int bits, char* name);
118 void osStuffing(OutStream* pStream);
120 void osNextStartCode(OutStream* pStream);
H A Dm4v_header.h85 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream);
86 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream);
87 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream);
88 void codeVOPHead (MFE_CONFIG *pConfig, OutStream* pStream);
89 void codeNonCodedVOPHead (MFE_CONFIG *pConfig, OutStream* pStream);
90 void codeVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
91 void codeNonCodedVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
H A Dmfe_reg_264e.c208 OutStream* pStream = &pConfig->m_OutStream; in mfeH264_EncodeFrame() local
239 osReset(pStream); in mfeH264_EncodeFrame()
242 codeSPSPPS(pStream); in mfeH264_EncodeFrame()
245 codeSliceHeader(pConfig, pStream); in mfeH264_EncodeFrame()
247 osFlushAll(pStream); in mfeH264_EncodeFrame()
248 pBitsInfo->ptr = pStream->m_pbFrameBuffer; in mfeH264_EncodeFrame()
249 pBitsInfo->len = pStream->m_nByteCount; in mfeH264_EncodeFrame()
250 if ((pStream->BC_nCumulativeBits&7)==0) { in mfeH264_EncodeFrame()
256 pBitsInfo->bit_len = pStream->BC_nCumulativeBits&7; in mfeH264_EncodeFrame()
257 …pBitsInfo->bits = pStream->m_pbFrameBuffer[pStream->BC_nCumulativeBits>>3] & gBITMASK[pBitsInfo->b… in mfeH264_EncodeFrame()
H A Dparset.h102 void codeSPSPPS(OutStream* pStream);
103 void codeSliceHeader(MFE_CONFIG* pConfig, OutStream* pStream);
/utopia/UTPA2-700.0.x/modules/mfe/drv/mfe_ex/cModel/
H A Dm4v_header.c148 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeSequenceHead() argument
150 osPutBits(pStream, START_CODE_PREFIX, NUMBITS_START_CODE_PREFIX, (MS_S8*)("VSS_Start_Code")); in codeSequenceHead()
151 osPutBits(pStream, VSS_START_CODE, NUMBITS_START_CODE_SUFFIX, (MS_S8*)("VSS_Start_Code")); in codeSequenceHead()
152 …osPutBits(pStream, 0xF5/*m_volmd.uiProfileAndLevel*/, NUMBITS_VSS_PROFILE, (MS_S8*)("VSS_Profile_L… in codeSequenceHead()
154 osPutBits(pStream, START_CODE_PREFIX, NUMBITS_START_CODE_PREFIX, (MS_S8*)("VSO_Start_Code")); in codeSequenceHead()
155 osPutBits(pStream, VSO_START_CODE, NUMBITS_START_CODE_SUFFIX, (MS_S8*)("VSO_Start_Code")); in codeSequenceHead()
156 osPutBits(pStream, 0, 1, (MS_S8*)("VSO_IsVisualObjectIdentifier")); in codeSequenceHead()
157 osPutBits(pStream, VSO_TYPE, NUMBITS_VSO_TYPE, (MS_S8*)("VSO_Type")); in codeSequenceHead()
158 osPutBits(pStream, 0, 1, (MS_S8*)("VSO_VideoSignalType")); in codeSequenceHead()
165 osNextStartCode(pStream); in codeSequenceHead()
[all …]
H A DOutStrm.c92 void osCreate(OutStream* pStream) in osCreate() argument
97 pStream->m_bUseLittleEndian = 1; in osCreate()
99 pStream->m_bUseLittleEndian = 0; in osCreate()
102 pStream->m_bUseLittleEndian = 0; in osCreate()
104 ms_dprintk(DRV_L2,"OutStream: LittleEndian=%d\n", pStream->m_bUseLittleEndian); in osCreate()
106 pStream->m_pbFrameBuffer = 0; in osCreate()
107 pStream->m_nByteCount = 0; in osCreate()
108 pStream->m_nBufferEmptyBits = 32; in osCreate()
109 pStream->m_SmallBuffer = 0; in osCreate()
110 pStream->BC_nCumulativeBits = 0; in osCreate()
[all …]
H A Dmfe_reg_m4ve.c325 OutStream* pStream = &pConfig->m_OutStream; in mfeM4VE_EncodeFrame() local
347 codeNonCodedVOPShortHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
424 codeSequenceHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
425 codeVOHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
434 codeVOLHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
442 codeNonCodedVOPShortHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
444 codeNonCodedVOPHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
449 codeVOPShortHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
451 codeVOPHead(pConfig, pStream); in mfeM4VE_EncodeFrame()
455 pBitsInfo->ptr = pStream->m_pbFrameBuffer; in mfeM4VE_EncodeFrame()
[all …]
H A Dparset.c874 static MS_S32 WriteAnnexbNALU(OutStream* pStream, NALU_t *n) in WriteAnnexbNALU() argument
891 osPutBits(pStream, 0, 8, (MS_S8*)("start-code 0")); in WriteAnnexbNALU()
894 osPutBits(pStream, 0, 8, (MS_S8*)("start-code 0")); in WriteAnnexbNALU()
895 osPutBits(pStream, 0, 8, (MS_S8*)("start-code 0")); in WriteAnnexbNALU()
896 osPutBits(pStream, 1, 8, (MS_S8*)("start-code 1")); in WriteAnnexbNALU()
903 osPutBits(pStream, n->buf[i], 8, (MS_S8*)("nalu-body")); in WriteAnnexbNALU()
906 osPutBits(pStream, n->buf[i]&(0xFF>>(8-leftbits)), leftbits, (MS_S8*)("nalu-body (last-bits)")); in WriteAnnexbNALU()
1214 void codeSPSPPS(MFE_CONFIG* pConfig,OutStream* pStream) in codeSPSPPS() argument
1216 WriteAnnexbNALU(pStream, &pConfig->NaluStruct[STATIC_SPS]); in codeSPSPPS()
1217 WriteAnnexbNALU(pStream, &pConfig->NaluStruct[STATIC_PPS]); in codeSPSPPS()
[all …]
H A DOutStrm.h101 void osCreate(OutStream* pStream);
102 void osDestroy(OutStream* pStream);
104 void osSetWriteBuffer(OutStream* pStream, MS_U8 *pWBuf);
106 void osReset(OutStream* pStream);
108 void osFlushAll(OutStream* pStream);
110 MS_U32 GetBitsCount(OutStream* pStream);
113 void osPutBits(OutStream* pStream, MS_U32 value, MS_S32 bits, MS_S8* name);
118 void osStuffing(OutStream* pStream);
120 void osNextStartCode(OutStream* pStream);
H A Dmfe_reg_264e.c318 OutStream* pStream = &pConfig->m_OutStream; in mfeH264_EncodeFrame() local
375 osReset(pStream); in mfeH264_EncodeFrame()
379 codeSPSPPS(pConfig,pStream); in mfeH264_EncodeFrame()
383 codeSliceHeader(pConfig, pStream); in mfeH264_EncodeFrame()
385 osFlushAll(pStream); in mfeH264_EncodeFrame()
386 pBitsInfo->ptr = pStream->m_pbFrameBuffer; in mfeH264_EncodeFrame()
387 pBitsInfo->len = pStream->m_nByteCount; in mfeH264_EncodeFrame()
388 if ((pStream->BC_nCumulativeBits&7)==0) { in mfeH264_EncodeFrame()
394 pBitsInfo->bit_len = pStream->BC_nCumulativeBits&7; in mfeH264_EncodeFrame()
395 …pBitsInfo->bits = pStream->m_pbFrameBuffer[pStream->BC_nCumulativeBits>>3] & gBITMASK[pBitsInfo->b… in mfeH264_EncodeFrame()
[all …]
H A Dm4v_header.h85 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream);
86 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream);
87 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream);
88 void codeVOPHead (MFE_CONFIG *pConfig, OutStream* pStream);
89 void codeNonCodedVOPHead (MFE_CONFIG *pConfig, OutStream* pStream);
90 void codeVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
91 void codeNonCodedVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
H A Dparset.h103 void codeSPSPPS(MFE_CONFIG* pConfig,OutStream* pStream);
104 void codeSliceHeader(MFE_CONFIG* pConfig, OutStream* pStream);
105 void codeDummySliceHeader(MFE_CONFIG* pConfig, OutStream* pStream);
/utopia/UTPA2-700.0.x/modules/mfe/drv/mfe_ex/
H A Dmdrv_mfe.c441 OutStream* pStream = &pConfig->m_OutStream; in copybits2file() local
442 size = pStream->m_nByteCount; in copybits2file()
444 pStream->m_pbFrameBuffer, pStream->m_nByteCount); in copybits2file()
846 OutStream* pStream = NULL; in MDrv_MFE_GetConfigBytes() local
852 pStream = &pConfig->m_OutStream; in MDrv_MFE_GetConfigBytes()
885 memcpy(pBuf, pStream->m_pbFrameBuffer, pStream->m_nByteCount); in MDrv_MFE_GetConfigBytes()
/utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/
H A Dmdrv_mfe.c1284 OutStream* pStream = NULL; in MDrv_MFE_GetConfigBytes() local
1291 pStream = &pConfig->m_OutStream; in MDrv_MFE_GetConfigBytes()
1311 MFE_ASSERT(pStream->m_nByteCount < 65535); in MDrv_MFE_GetConfigBytes()
1312 memcpy(pBuf, pStream->m_pbFrameBuffer, pStream->m_nByteCount); in MDrv_MFE_GetConfigBytes()
/utopia/UTPA2-700.0.x/modules/mfe/api/mfe_ex/
H A Dmadp_mfe.c227 OutStream* pStream = &(pConfig->m_OutStream); in MAdp_MFE_Proc_nonThread() local
231 bitsinfo.size = pStream->m_nByteCount; in MAdp_MFE_Proc_nonThread()
234 Vaddr = (MS_VIRT)pStream->m_pbFrameBuffer; in MAdp_MFE_Proc_nonThread()