Lines Matching refs:muxer

61     bool registerTrack(AMediaMuxer* muxer);
63 bool insertSampleData(AMediaMuxer* muxer);
65 bool muxMedia(AMediaMuxer* muxer);
67 bool combineMedias(AMediaMuxer* muxer, MuxerNativeTestHelper* that, const int* repeater);
188 bool MuxerNativeTestHelper::registerTrack(AMediaMuxer* muxer) { in registerTrack() argument
190 int dstIndex = AMediaMuxer_addTrack(muxer, mFormat[trackID]); in registerTrack()
197 bool MuxerNativeTestHelper::insertSampleData(AMediaMuxer* muxer) { in insertSampleData() argument
203 if (AMediaMuxer_writeSampleData(muxer, mOutIndexMap.at(index), mBuffer, info) != in insertSampleData()
216 bool MuxerNativeTestHelper::muxMedia(AMediaMuxer* muxer) { in muxMedia() argument
217 return (registerTrack(muxer) && (AMediaMuxer_start(muxer) == AMEDIA_OK) && in muxMedia()
218 insertSampleData(muxer) && (AMediaMuxer_stop(muxer) == AMEDIA_OK)); in muxMedia()
221 bool MuxerNativeTestHelper::combineMedias(AMediaMuxer* muxer, MuxerNativeTestHelper* that, in combineMedias() argument
233 int dstIndex = AMediaMuxer_addTrack(muxer, format); in combineMedias()
240 if (AMediaMuxer_start(muxer) != AMEDIA_OK) return false; in combineMedias()
249 if (AMediaMuxer_writeSampleData(muxer, outIndexMap[idx], group[k]->mBuffer, in combineMedias()
261 return (AMediaMuxer_stop(muxer) == AMEDIA_OK); in combineMedias()
367 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)jformat); in nativeTestSetLocation() local
368 media_status_t status = AMediaMuxer_setLocation(muxer, tooFarNorth, atlanticLong); in nativeTestSetLocation()
373 status = AMediaMuxer_setLocation(muxer, tooFarSouth, atlanticLong); in nativeTestSetLocation()
378 status = AMediaMuxer_setLocation(muxer, atlanticLat, tooFarWest); in nativeTestSetLocation()
383 status = AMediaMuxer_setLocation(muxer, atlanticLat, tooFarEast); in nativeTestSetLocation()
388 status = AMediaMuxer_setLocation(muxer, tooFarNorth, tooFarWest); in nativeTestSetLocation()
393 status = AMediaMuxer_setLocation(muxer, atlanticLat, atlanticLong); in nativeTestSetLocation()
396 status = AMediaMuxer_setLocation(muxer, annapurnaLat, annapurnaLong); in nativeTestSetLocation()
407 if (mediaInfo->registerTrack(muxer) && AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestSetLocation()
408 status = AMediaMuxer_setLocation(muxer, atlanticLat, atlanticLong); in nativeTestSetLocation()
413 if (mediaInfo->insertSampleData(muxer) && AMediaMuxer_stop(muxer) == AMEDIA_OK) { in nativeTestSetLocation()
414 status = AMediaMuxer_setLocation(muxer, atlanticLat, atlanticLong); in nativeTestSetLocation()
429 AMediaMuxer_delete(muxer); in nativeTestSetLocation()
449 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)jformat); in nativeTestSetOrientationHint() local
452 status = AMediaMuxer_setOrientationHint(muxer, degrees); in nativeTestSetOrientationHint()
458 status = AMediaMuxer_setOrientationHint(muxer, oldRotation); in nativeTestSetOrientationHint()
461 status = AMediaMuxer_setOrientationHint(muxer, currRotation); in nativeTestSetOrientationHint()
472 if (mediaInfo->registerTrack(muxer) && AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestSetOrientationHint()
473 status = AMediaMuxer_setOrientationHint(muxer, currRotation); in nativeTestSetOrientationHint()
478 if (mediaInfo->insertSampleData(muxer) && AMediaMuxer_stop(muxer) == AMEDIA_OK) { in nativeTestSetOrientationHint()
479 status = AMediaMuxer_setOrientationHint(muxer, currRotation); in nativeTestSetOrientationHint()
494 AMediaMuxer_delete(muxer); in nativeTestSetOrientationHint()
518 AMediaMuxer* muxer = AMediaMuxer_new(fileno(rfp), (OutputFormat)jformat); in nativeTestMultiTrack() local
519 bool muxStatus = mediaInfoA->combineMedias(muxer, mediaInfoB, numTracks[0]); in nativeTestMultiTrack()
520 AMediaMuxer_delete(muxer); in nativeTestMultiTrack()
533 muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)jformat); in nativeTestMultiTrack()
535 mediaInfoA->combineMedias(muxer, mediaInfoB, numTracks[i]); in nativeTestMultiTrack()
536 AMediaMuxer_delete(muxer); in nativeTestMultiTrack()
609 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)format); in nativeTestOffsetPts() local
610 mediaInfo->muxMedia(muxer); in nativeTestOffsetPts()
611 AMediaMuxer_delete(muxer); in nativeTestOffsetPts()
661 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)fmt); in nativeTestSimpleMux() local
662 bool muxStatus = mediaInfo->muxMedia(muxer); in nativeTestSimpleMux()
664 AMediaMuxer_delete(muxer); in nativeTestSimpleMux()