Home | History | Annotate | Download | only in src

Lines Matching refs:DSI

289         // Remove the hardcoded DSI values of H264Block2
672 mMp4FileDataPtr->audioTrackPtr->DSI = M4OSA_NULL;
773 /*Use given DSI if passed, else use default value*/
776 /*amr DSI is 9 bytes long !*/
781 mMp4FileDataPtr->audioTrackPtr->DSI =
783 (M4OSA_Char *)"audioTrackPtr->DSI");
784 ERR_CHECK(mMp4FileDataPtr->audioTrackPtr->DSI != M4OSA_NULL,
787 (void *)mMp4FileDataPtr->audioTrackPtr->DSI,
793 mMp4FileDataPtr->audioTrackPtr->DSI =
796 0; /*but the actual static dsi is 9 bytes !*/
808 /*Use given DSI if passed, else use default value*/
811 /*evrc DSI is 6 bytes long !*/
816 mMp4FileDataPtr->audioTrackPtr->DSI =
818 (M4OSA_Char *)"audioTrackPtr->DSI");
819 ERR_CHECK(mMp4FileDataPtr->audioTrackPtr->DSI != M4OSA_NULL,
822 (void *)mMp4FileDataPtr->audioTrackPtr->DSI,
828 mMp4FileDataPtr->audioTrackPtr->DSI =
831 0; /*but the actual static dsi is 6 bytes !*/
850 mMp4FileDataPtr->audioTrackPtr->DSI =
853 M4MP4_WRITER, (M4OSA_Char *)"audioTrackPtr->DSI");
854 ERR_CHECK(mMp4FileDataPtr->audioTrackPtr->DSI != M4OSA_NULL,
857 (void *)mMp4FileDataPtr->audioTrackPtr->DSI,
863 /*no dsi: return bad parameter ?*/
900 mMp4FileDataPtr->videoTrackPtr->DSI = M4OSA_NULL;
1051 mMp4FileDataPtr->videoTrackPtr->DSI =
1054 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
1055 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI != M4OSA_NULL,
1058 (void *)mMp4FileDataPtr->videoTrackPtr->DSI,
1064 /*use the default dsi*/
1065 mMp4FileDataPtr->videoTrackPtr->DSI = M4OSA_NULL;
1073 /* allow DSI to be M4OSA_NULL, in which case the actual DSI will be
1078 mMp4FileDataPtr->videoTrackPtr->DSI = M4OSA_NULL;
1086 /*(this should not be restrictive because dsi is always shorter !)*/
1091 mMp4FileDataPtr->videoTrackPtr->DSI =
1094 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
1095 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI != M4OSA_NULL,
1098 (void *)mMp4FileDataPtr->videoTrackPtr->DSI,
1127 M4OSA_UInt16 *DSI;
1128 /* Store the DSI size */
1133 /* Copy the DSI (SPS + PPS) */
1134 mMp4FileDataPtr->videoTrackPtr->DSI =
1137 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
1138 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI
1141 DSI =
1143 SPSLength = DSI[6];
1144 PPSLength = DSI[10];
1146 (void *)mMp4FileDataPtr->videoTrackPtr->DSI,
1151 DSI)+2), (void *)((streamDescPtr->
1156 DSI)+2 + SPSLength),
1161 DSI)+4 + SPSLength),
1169 /* Store the DSI size */
1173 /* Copy the DSI (SPS + PPS) */
1174 mMp4FileDataPtr->videoTrackPtr->DSI =
1177 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
1178 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI
1181 (void *)mMp4FileDataPtr->videoTrackPtr->DSI,
1189 /*use the default dsi*/
1190 mMp4FileDataPtr->videoTrackPtr->DSI = M4OSA_NULL;
2826 M4OSA_UInt32 v_trakSize = 0; /* (h263=A+B+4N+426), (mp4v=A+B+dsi+4N+448) */
2827 M4OSA_UInt32 v_mdiaSize = 0; /* (h263=A+B+4N+326), (mp4v=A+B+dsi+4N+348) */
2828 M4OSA_UInt32 v_minfSize = 0; /* (h263=A+B+4N+253), (mp4v=A+B+dsi+4N+275) */
2829 M4OSA_UInt32 v_stblSize = 0; /* (h263=A+B+4N+189), (mp4v=A+B+dsi+4N+211) */
2830 M4OSA_UInt32 v_stsdSize = 0; /* (h263=117) , (mp4v=139+dsi )*/
2831 M4OSA_UInt32 v_esdSize = 0; /* (h263=101) , (mp4v=153+dsi )*/
2842 M4OSA_UInt8 dsi = 0;
2845 M4OSA_UInt32 v_avcCSize = 0; /* dsi+15*/
2848 M4OSA_UInt32 v_esdsSize = 0; /* dsi+37*/
2850 0; /* dsi+23 (warning: check dsi<105 for coding size on 1 byte)*/
2851 M4OSA_UInt8 v_DCDescriptorSize = 0; /* dsi+15*/
2854 M4OSA_UInt32 a_esdsSize = 0; /* dsi+37*/
2856 0; /* dsi+23 (warning: check dsi<105 for coding size on 1 byte)*/
2857 M4OSA_UInt8 a_DCDescriptorSize = 0; /* dsi+15*/
2864 /* (A+B+dsi+4N+448)(mp4v) */
3142 /*the optional 'bitr' atom is appended to the dsi,so filesize is 16 bytes bigger*/
3156 /* For H264 there is no default DSI, and its presence is mandatory,
3157 so check the DSI has been set*/
3159 || M4OSA_NULL == mMp4FileDataPtr->videoTrackPtr->DSI)
3162 "M4MP4W_closeWrite: error, no H264 DSI has been set!");
3169 // Remove the hardcoded DSI values of H264Block2
3188 /* For MPEG4 there is no default DSI, and its presence is mandatory,
3189 so check the DSI has been set*/
3191 || M4OSA_NULL == mMp4FileDataPtr->videoTrackPtr->DSI)
3194 "M4MP4W_closeWrite: error, no MPEG4 DSI has been set!");
3200 dsi = mMp4FileDataPtr->videoTrackPtr->dsiSize;
3201 v_esdsSize = 37 + dsi; /* dsi+37*/
3204 + dsi; /* dsi+23 (warning: check dsi<105 for coding size on 1 byte)*/
3205 v_DCDescriptorSize = 15 + dsi; /* dsi+15*/
3207 v_trakSize = AB4N + dsi + 448; /* (mp4v=A+B+dsi+4N+448) */
3208 v_mdiaSize = AB4N + dsi + 348; /* (mp4v=A+B+dsi+4N+348) */
3209 v_minfSize = AB4N + dsi + 275; /* (mp4v=A+B+dsi+4N+275) */
3210 v_stblSize = AB4N + dsi + 211; /* (mp4v=A+B+dsi+4N+211) */
3211 v_stsdSize = dsi + 139; /* (mp4v=139+dsi)*/
3212 v_esdSize = dsi + 123; /* (mp4v=123+dsi)*/
3214 moovSize += AB4N + dsi + 448;
3281 dsi = mMp4FileDataPtr->audioTrackPtr->dsiSize; /*variable size*/
3283 a_esdsSize = 37 + dsi; /* dsi+37*/
3286 + dsi; /* dsi+23 (warning: check dsi<105 for coding size on 1 byte)*/
3287 a_DCDescriptorSize = 15 + dsi; /* dsi+15*/
3289 a_esdSize = dsi + 73; /*overwrite a_esdSize with aac value*/
3290 /*add dif. between amr & aac sizes: (- 53 + dsi + 37)*/
3291 a_stsdSize += dsi + 20;
3292 a_stblSize += dsi + 20;
3293 a_minfSize += dsi + 20;
3294 a_mdiaSize += dsi + 20;
3295 a_trakSize += dsi + 20;
3296 moovSize += dsi + 20;
3305 /* evrc dsi is only 6 bytes while amr dsi is 9 bytes,all other blocks are unchanged */
3749 /* DSI inside sample desc entry */
3788 CLEANUPonERR(M4MP4W_putBlock(mMp4FileDataPtr->audioTrackPtr->DSI,
3811 /* and stores it in the DSI*/
3817 if (mMp4FileDataPtr->audioTrackPtr->DSI != M4OSA_NULL)
3823 mMp4FileDataPtr->audioTrackPtr->DSI[localI]);
3844 /* and stores it in the DSI*/
3854 if (mMp4FileDataPtr->audioTrackPtr->DSI != M4OSA_NULL)
3860 mMp4FileDataPtr->audioTrackPtr->DSI[localI]);
3867 mMp4FileDataPtr->audioTrackPtr->DSI[localI]);
4109 /* DSI inside sample desc entry */
4112 /* The h263 dsi given through the api must be 7 bytes, that is, it shall not include
4114 handler, a bitrate box is appended here to the dsi */
4122 if (M4OSA_NULL == mMp4FileDataPtr->videoTrackPtr->DSI)
4131 M4MP4W_putBlock(mMp4FileDataPtr->videoTrackPtr->DSI,
4157 if (M4OSA_NULL == mMp4FileDataPtr->videoTrackPtr->DSI)
4166 M4MP4W_putBlock(mMp4FileDataPtr->videoTrackPtr->DSI,
4214 CLEANUPonERR(M4MP4W_putBlock(mMp4FileDataPtr->videoTrackPtr->DSI,
4227 M4OSA_UChar *tmpDSI = mMp4FileDataPtr->videoTrackPtr->DSI; /* DSI */
4231 /* Put the avcC (header + DSI) size */
4239 /* Put the DSI (SPS + PPS) int the 3gp format*/
4242 if ((0x01 != mMp4FileDataPtr->videoTrackPtr->DSI[0]) ||
4243 (0x42 != mMp4FileDataPtr->videoTrackPtr->DSI[1]))
4246 mMp4FileDataPtr->videoTrackPtr->DSI[0],
4247 mMp4FileDataPtr->videoTrackPtr->DSI[1]);
4250 // Do not strip the DSI
4251 CLEANUPonERR( M4MP4W_putBlock(mMp4FileDataPtr->videoTrackPtr->DSI,
5142 /* Protect DSI setting : only once allowed on a given stream */
5150 != mMp4FileDataPtr->videoTrackPtr->DSI))
5153 "M4MP4W_setOption: dsi already set !");
5161 "M4MP4W_setOption: Bad H263 dsi!");
5171 mMp4FileDataPtr->videoTrackPtr->DSI = (M4OSA_UChar
5173 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
5174 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI
5178 DSI,
5187 != mMp4FileDataPtr->videoTrackPtr->DSI))
5190 "M4MP4W_setOption: dsi already set !");
5198 "M4MP4W_setOption: Bad MPEG4 dsi!");
5207 mMp4FileDataPtr->videoTrackPtr->DSI = (M4OSA_UChar
5209 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
5210 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI
5214 DSI,
5225 != mMp4FileDataPtr->videoTrackPtr->DSI))
5230 free(mMp4FileDataPtr->videoTrackPtr->DSI);
5232 // Do not strip the DSI
5233 /* Store the DSI size */
5236 M4OSA_TRACE1_1("M4MP4W_setOption: in set option DSI size =%d"\
5238 /* Copy the DSI (SPS + PPS) */
5239 mMp4FileDataPtr->videoTrackPtr->DSI =
5242 (M4OSA_Char *)"videoTrackPtr->DSI");
5243 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI !=
5246 (void *)mMp4FileDataPtr->videoTrackPtr->DSI,
5256 "M4MP4W_setOption: dsi already set !");
5265 "M4MP4W_setOption: Bad H264 dsi!");
5269 /* Store the DSI size */
5273 /* Copy the DSI (SPS + PPS) */
5274 mMp4FileDataPtr->videoTrackPtr->DSI = (M4OSA_UChar
5276 M4MP4_WRITER, (M4OSA_Char *)"videoTrackPtr->DSI");
5277 ERR_CHECK(mMp4FileDataPtr->videoTrackPtr->DSI
5281 DSI,