/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_sei.h | 56 u32 seqParameterSetId; 57 u32 initialCpbRemovalDelay[MAX_CPB_CNT]; 58 u32 initialCpbRemovalDelayOffset[MAX_CPB_CNT]; 63 u32 cpbRemovalDelay; 64 u32 dpbOutputDelay; 65 u32 picStruct; 66 u32 clockTimeStampFlag[MAX_NUM_CLOCK_TS]; 67 u32 clockTimeStamp[MAX_NUM_CLOCK_TS]; 68 u32 ctType[MAX_NUM_CLOCK_TS]; 69 u32 nuitFieldBasedFlag[MAX_NUM_CLOCK_TS]; [all …]
|
D | h264bsd_reconstruct.h | 55 u32 xA, 56 u32 yA, 57 u32 partX, 58 u32 partY, 59 u32 partWidth, 60 u32 partHeight); 66 u32 colAndRow,/* packaged data | column | row |*/ 67 u32 part, /* packaged data |partX|partY|partWidth|partHeight|*/ 76 u32 width, 77 u32 height, [all …]
|
D | h264bsd_vui.h | 71 u32 cpbCnt; 72 u32 bitRateScale; 73 u32 cpbSizeScale; 74 u32 bitRateValue[MAX_CPB_CNT]; 75 u32 cpbSizeValue[MAX_CPB_CNT]; 76 u32 cbrFlag[MAX_CPB_CNT]; 77 u32 initialCpbRemovalDelayLength; 78 u32 cpbRemovalDelayLength; 79 u32 dpbOutputDelayLength; 80 u32 timeOffsetLength; [all …]
|
D | h264bsd_dpb.h | 60 u32 frameNum; 63 u32 toBeDisplayed; 64 u32 picId; 65 u32 numErrMbs; 66 u32 isIdr; 72 u32 picId; 73 u32 numErrMbs; 74 u32 isIdr; 83 u32 numOut; 84 u32 outIndex; [all …]
|
D | h264bsd_slice_group_map.c | 59 u32 *map, 60 u32 numSliceGroups, 61 u32 *runLength, 62 u32 picSize); 65 u32 *map, 66 u32 numSliceGroups, 67 u32 picWidth, 68 u32 picHeight); 71 u32 *map, 72 u32 numSliceGroups, [all …]
|
D | h264bsd_slice_header.h | 68 u32 reorderingOfPicNumsIdc; 69 u32 absDiffPicNum; 70 u32 longTermPicNum; 76 u32 refPicListReorderingFlagL0; 83 u32 memoryManagementControlOperation; 84 u32 differenceOfPicNums; 85 u32 longTermPicNum; 86 u32 longTermFrameIdx; 87 u32 maxLongTermFrameIdx; 101 u32 noOutputOfPriorPicsFlag; [all …]
|
D | h264bsd_storage.h | 56 u32 sliceId; 57 u32 numDecodedMbs; 58 u32 lastMbAddr; 65 u32 prevFrameNum; 66 u32 prevIdrPicId; 67 u32 prevPicOrderCntLsb; 70 u32 firstCallFlag; 77 u32 oldSpsId; 78 u32 activePpsId; 79 u32 activeSpsId; [all …]
|
D | h264bsd_seq_param_set.h | 51 u32 profileIdc; 52 u32 levelIdc; 53 u32 seqParameterSetId; 54 u32 maxFrameNum; 55 u32 picOrderCntType; 56 u32 maxPicOrderCntLsb; 57 u32 deltaPicOrderAlwaysZeroFlag; 60 u32 numRefFramesInPicOrderCntCycle; 62 u32 numRefFrames; 63 u32 gapsInFrameNumValueAllowedFlag; [all …]
|
D | h264bsd_decoder.h | 60 u32 h264bsdInit(storage_t *pStorage, u32 noOutputReordering); 61 u32 h264bsdDecode(storage_t *pStorage, u8 *byteStrm, u32 len, u32 picId, 62 u32 *readBytes); 65 u8* h264bsdNextOutputPicture(storage_t *pStorage, u32 *picId, u32 *isIdrPic, 66 u32 *numErrMbs); 68 u32 h264bsdPicWidth(storage_t *pStorage); 69 u32 h264bsdPicHeight(storage_t *pStorage); 70 u32 h264bsdVideoRange(storage_t *pStorage); 71 u32 h264bsdMatrixCoefficients(storage_t *pStorage); 72 void h264bsdCroppingParams(storage_t *pStorage, u32 *croppingFlag, [all …]
|
D | h264bsd_pic_param_set.h | 49 u32 picParameterSetId; 50 u32 seqParameterSetId; 51 u32 picOrderPresentFlag; 52 u32 numSliceGroups; 53 u32 sliceGroupMapType; 54 u32 *runLength; 55 u32 *topLeft; 56 u32 *bottomRight; 57 u32 sliceGroupChangeDirectionFlag; 58 u32 sliceGroupChangeRate; [all …]
|
D | h264bsd_intra_prediction.h | 51 u32 h264bsdIntraPrediction(mbStorage_t *pMb, macroblockLayer_t *mbLayer, 52 image_t *image, u32 mbNum, u32 constrainedIntraPred, u8 *data); 54 u32 h264bsdIntra4x4Prediction(mbStorage_t *pMb, u8 *data, 56 u8 *above, u8 *left, u32 constrainedIntraPred); 57 u32 h264bsdIntra16x16Prediction(mbStorage_t *pMb, u8 *data, i32 residual[][16], 58 u8 *above, u8 *left, u32 constrainedIntraPred); 60 u32 h264bsdIntraChromaPrediction(mbStorage_t *pMb, u8 *data, i32 residual[][16], 61 u8 *above, u8 *left, u32 predMode, u32 constrainedIntraPred); 63 void h264bsdGetNeighbourPels(image_t *image, u8 *above, u8 *left, u32 mbNum); 67 u32 h264bsdIntra4x4Prediction(mbStorage_t *pMb, u8 *data, [all …]
|
D | h264bsd_util.c | 49 static const u32 stuffingTable[8] = {0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80}; 52 const u32 h264bsdQpC[52] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19, 80 u32 h264bsdCountLeadingZeros(u32 value, u32 length) in h264bsdCountLeadingZeros() 85 u32 zeros = 0; in h264bsdCountLeadingZeros() 86 u32 mask = 1 << (length - 1); in h264bsdCountLeadingZeros() 123 u32 h264bsdRbspTrailingBits(strmData_t *pStrmData) in h264bsdRbspTrailingBits() 128 u32 stuffing; in h264bsdRbspTrailingBits() 129 u32 stuffingLength; in h264bsdRbspTrailingBits() 171 u32 h264bsdMoreRbspData(strmData_t *pStrmData) in h264bsdMoreRbspData() 176 u32 bits; in h264bsdMoreRbspData() [all …]
|
D | h264bsd_macroblock_layer.h | 125 u32 prevIntra4x4PredModeFlag[16]; 126 u32 remIntra4x4PredMode[16]; 127 u32 intraChromaPredMode; 128 u32 refIdxL0[4]; 135 u32 refIdxL0[4]; 148 u32 coeffMap[24]; 154 u32 codedBlockPattern; 164 u32 sliceId; 165 u32 disableDeblockingFilterIdc; 168 u32 qpY; [all …]
|
D | h264bsd_stream.c | 72 u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits) in h264bsdGetBits() 75 u32 out; in h264bsdGetBits() 115 u32 h264bsdShowBits32(strmData_t *pStrmData) in h264bsdShowBits32() 119 u32 out; in h264bsdShowBits32() 136 u32 bitPosInWord = pStrmData->bitPosInWord; in h264bsdShowBits32() 137 out = ((u32)pStrm[0] << 24) | ((u32)pStrm[1] << 16) | in h264bsdShowBits32() 138 ((u32)pStrm[2] << 8) | ((u32)pStrm[3]); in h264bsdShowBits32() 142 u32 byte = (u32)pStrm[4]; in h264bsdShowBits32() 143 u32 tmp = (8-bitPosInWord); in h264bsdShowBits32() 153 out = (u32)(*pStrm++) << shift; in h264bsdShowBits32() [all …]
|
D | h264bsd_dpb.c | 92 static u32 Mmcop1(dpbStorage_t *dpb, u32 currPicNum, u32 differenceOfPicNums); 94 static u32 Mmcop2(dpbStorage_t *dpb, u32 longTermPicNum); 96 static u32 Mmcop3(dpbStorage_t *dpb, u32 currPicNum, u32 differenceOfPicNums, 97 u32 longTermFrameIdx); 99 static u32 Mmcop4(dpbStorage_t *dpb, u32 maxLongTermFrameIdx); 101 static u32 Mmcop5(dpbStorage_t *dpb); 103 static u32 Mmcop6(dpbStorage_t *dpb, u32 frameNum, i32 picOrderCnt, 104 u32 longTermFrameIdx); 106 static u32 SlidingWindowRefPicMarking(dpbStorage_t *dpb); 108 static i32 FindDpbPic(dpbStorage_t *dpb, i32 picNum, u32 isShortTerm); [all …]
|
D | h264bsd_sei.c | 69 static const u32 numClockTS[9] = {1,1,1,2,2,3,3,2,3}; 70 static const u32 ceilLog2NumSliceGroups[9] = {0,1,1,2,2,3,3,3,3}; 76 static u32 DecodeBufferingPeriod( 79 u32 cpbCnt, 80 u32 initialCpbRemovalDelayLength, 81 u32 nalHrdBpPresentFlag, 82 u32 vclHrdBpPresentFlag); 84 static u32 DecodePictureTiming( 87 u32 cpbRemovalDelayLength, 88 u32 dpbOutputDelayLength, [all …]
|
D | h264bsd_cavlc.c | 371 static u32 DecodeCoeffToken(u32 bits, u32 nc); 373 static u32 DecodeLevelPrefix(u32 bits); 375 static u32 DecodeTotalZeros(u32 bits, u32 totalCoeff, u32 isChromaDC); 377 static u32 DecodeRunBefore(u32 bits,u32 zerosLeft); 395 u32 DecodeCoeffToken(u32 bits, u32 nc) in DecodeCoeffToken() 400 u32 value; in DecodeCoeffToken() 406 ASSERT(nc <= 16 || nc == (u32)(-1)); in DecodeCoeffToken() 472 u32 DecodeLevelPrefix(u32 bits) in DecodeLevelPrefix() 477 u32 numZeros; in DecodeLevelPrefix() 538 u32 DecodeTotalZeros(u32 bits, u32 totalCoeff, u32 isChromaDC) in DecodeTotalZeros() [all …]
|
D | h264bsd_macroblock_layer.c | 71 static const u32 chromaIndex[8] = { 256, 260, 288, 292, 320, 324, 352, 356 }; 72 static const u32 lumaIndex[16] = { 0, 4, 64, 68, 78 static const u32 dcCoeffIndex[16] = 85 static u32 DecodeMbPred(strmData_t *pStrmData, mbPred_t *pMbPred, 86 mbType_e mbType, u32 numRefIdxActive); 87 static u32 DecodeSubMbPred(strmData_t *pStrmData, subMbPred_t *pSubMbPred, 88 mbType_e mbType, u32 numRefIdxActive); 89 static u32 DecodeResidual(strmData_t *pStrmData, residual_t *pResidual, 90 mbStorage_t *pMb, mbType_e mbType, u32 codedBlockPattern); 93 static u32 DetermineNc(mbStorage_t *pMb, u32 blockIndex, u8 *pTotalCoeff); [all …]
|
D | DecTestBench.c | 39 void WriteOutput(char *filename, u8 *data, u32 picSize); 40 u32 NextPacket(u8 **pStrm); 41 u32 CropPicture(u8 *pOutImage, u8 *pInImage, 42 u32 picWidth, u32 picHeight, CropParams *pCropParams); 46 u32 packetize = 0; 47 u32 nalUnitStream = 0; 86 u32 i, tmp; in main() 87 u32 maxNumPics = 0; in main() 91 u32 strmLen; in main() 92 u32 picSize; in main() [all …]
|
D | h264bsd_image.c | 48 extern const u32 h264bsdBlockX[]; 49 extern const u32 h264bsdBlockY[]; 85 u32 i; in h264bsdWriteMacroblock() 86 u32 width; in h264bsdWriteMacroblock() 87 u32 *lum, *cb, *cr; in h264bsdWriteMacroblock() 88 u32 *ptr; in h264bsdWriteMacroblock() 89 u32 tmp1, tmp2; in h264bsdWriteMacroblock() 95 ASSERT(!((u32)data&0x3)); in h264bsdWriteMacroblock() 101 lum = (u32*)image->luma; in h264bsdWriteMacroblock() 102 cb = (u32*)image->cb; in h264bsdWriteMacroblock() [all …]
|
D | h264bsd_reconstruct.c | 73 static const u32 lumaFracPos[4][4] = { 115 u32 width, in h264bsdInterpolateChromaHor() 116 u32 height, in h264bsdInterpolateChromaHor() 117 u32 xFrac, in h264bsdInterpolateChromaHor() 118 u32 chromaPartWidth, in h264bsdInterpolateChromaHor() 119 u32 chromaPartHeight) in h264bsdInterpolateChromaHor() 124 u32 x, y, tmp1, tmp2, tmp3, tmp4, c, val; in h264bsdInterpolateChromaHor() 126 u32 comp; in h264bsdInterpolateChromaHor() 137 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) || in h264bsdInterpolateChromaHor() 138 (y0 < 0) || ((u32)y0+chromaPartHeight > height)) in h264bsdInterpolateChromaHor() [all …]
|
D | h264bsd_vlc.h | 52 u32 h264bsdDecodeExpGolombUnsigned(strmData_t *pStrmData, u32 *value); 54 u32 h264bsdDecodeExpGolombSigned(strmData_t *pStrmData, i32 *value); 56 u32 h264bsdDecodeExpGolombMapped(strmData_t *pStrmData, u32 *value, 57 u32 isIntra); 59 u32 h264bsdDecodeExpGolombTruncated(strmData_t *pStrmData, u32 *value, 60 u32 greaterThanOne);
|
D | h264bsd_stream.h | 49 u32 bitPosInWord; /* bit position in stream buffer byte */ 50 u32 strmBuffSize; /* size of stream buffer (bytes) */ 51 u32 strmBuffReadBits; /* number of bits read from stream buffer */ 58 u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits); 60 u32 h264bsdShowBits32(strmData_t *pStrmData); 62 u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits); 64 u32 h264bsdIsByteAligned(strmData_t *);
|
D | h264bsd_util.h | 156 extern const u32 h264bsdQpC[52]; 166 u32 h264bsdCountLeadingZeros(u32 value, u32 length); 168 u32 h264bsdCountLeadingZeros(u32 value); 170 u32 h264bsdRbspTrailingBits(strmData_t *strmData); 172 u32 h264bsdMoreRbspData(strmData_t *strmData); 174 u32 h264bsdNextMbAddress(u32 *pSliceGroupMap, u32 picSizeInMbs, u32 currMbAddr); 176 void h264bsdSetCurrImageMbPointers(image_t *image, u32 mbNum);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/inc/ |
D | H264SwDecApi.h | 80 u32 dataLen; /* Number of bytes to be decoded */ 81 u32 picId; /* Identifier for the picture to be decoded */ 82 u32 intraConcealmentMethod; /* 0 = Gray concealment for intra 98 u32 *pOutputPicture; /* Pointer to the picture, YUV format */ 99 u32 picId; /* Identifier of the picture to be displayed*/ 100 u32 isIdrPicture; /* Flag to indicate if the picture is an 102 u32 nbrOfErrMBs; /* Number of concealed MB's in the picture */ 112 u32 cropLeftOffset; 113 u32 cropOutWidth; 114 u32 cropTopOffset; [all …]
|