Lines Matching refs:muxer
82 static private void insertPerFrameSubtitles(MediaMuxer muxer, long presentationTimeUs, in insertPerFrameSubtitles() argument
92 muxer.writeSampleData(trackID, metaBuff, metaInfo); in insertPerFrameSubtitles()
98 MediaMuxer muxer = null; in testIfNullPathIsRejected() local
101 muxer = new MediaMuxer(nullPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfNullPathIsRejected()
108 if (null != muxer) muxer.release(); in testIfNullPathIsRejected()
115 MediaMuxer muxer = null; in testIfNullFdIsRejected() local
118 muxer = new MediaMuxer(fd, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfNullFdIsRejected()
125 if (null != muxer) muxer.release(); in testIfNullFdIsRejected()
132 MediaMuxer muxer = null; in testIfInvalidFdIsRejected() local
135 muxer = new MediaMuxer(fd, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfInvalidFdIsRejected()
142 if (null != muxer) muxer.release(); in testIfInvalidFdIsRejected()
149 MediaMuxer muxer = null; in testIfReadOnlyFdIsRejected() local
151 muxer = new MediaMuxer(fInp.getFD(), MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfReadOnlyFdIsRejected()
158 if (null != muxer) muxer.release(); in testIfReadOnlyFdIsRejected()
165 MediaMuxer muxer = null; in testIfNonSeekableFdIsRejected() local
168 muxer = new MediaMuxer(fd[1], MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfNonSeekableFdIsRejected()
175 if (null != muxer) muxer.release(); in testIfNonSeekableFdIsRejected()
182 MediaMuxer muxer = null; in testIfInvalidOutputFormatIsRejected() local
184 muxer = new MediaMuxer(mOutLoc, MUXER_OUTPUT_LAST + 1); in testIfInvalidOutputFormatIsRejected()
191 if (null != muxer) muxer.release(); in testIfInvalidOutputFormatIsRejected()
198 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfNullMediaFormatIsRejected() local
200 muxer.addTrack(null); in testIfNullMediaFormatIsRejected()
205 muxer.release(); in testIfNullMediaFormatIsRejected()
212 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfInvalidMediaFormatIsRejected() local
216 muxer.addTrack(new MediaFormat()); in testIfInvalidMediaFormatIsRejected()
226 muxer.addTrack(format); in testIfInvalidMediaFormatIsRejected()
233 muxer.release(); in testIfInvalidMediaFormatIsRejected()
240 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfCorruptMediaFormatIsRejected() local
249 muxer.addTrack(format); in testIfCorruptMediaFormatIsRejected()
250 muxer.start(); in testIfCorruptMediaFormatIsRejected()
255 muxer.release(); in testIfCorruptMediaFormatIsRejected()
262 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfAddTrackSucceedsAfterStart() local
266 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStart()
267 muxer.start(); in testIfAddTrackSucceedsAfterStart()
268 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStart()
275 muxer.release(); in testIfAddTrackSucceedsAfterStart()
282 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfAddTrackSucceedsAfterWriteSampleData() local
286 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData()
287 muxer.start(); in testIfAddTrackSucceedsAfterWriteSampleData()
288 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterWriteSampleData()
289 muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData()
296 muxer.release(); in testIfAddTrackSucceedsAfterWriteSampleData()
303 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfAddTrackSucceedsAfterStop() local
307 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop()
308 muxer.start(); in testIfAddTrackSucceedsAfterStop()
309 insertPerFrameSubtitles(muxer, 0, trackID); in testIfAddTrackSucceedsAfterStop()
310 muxer.stop(); in testIfAddTrackSucceedsAfterStop()
311 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop()
318 muxer.release(); in testIfAddTrackSucceedsAfterStop()
325 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfAddTrackSucceedsAfterRelease() local
329 muxer.release(); in testIfAddTrackSucceedsAfterRelease()
330 muxer.addTrack(format); in testIfAddTrackSucceedsAfterRelease()
337 muxer.release(); in testIfAddTrackSucceedsAfterRelease()
344 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfMuxerStartsBeforeAddTrack() local
349 muxer.start(); in testIfMuxerStartsBeforeAddTrack()
356 muxer.release(); in testIfMuxerStartsBeforeAddTrack()
363 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIdempotentStart() local
368 muxer.addTrack(format); in testIdempotentStart()
369 muxer.start(); in testIdempotentStart()
370 muxer.start(); in testIdempotentStart()
377 muxer.release(); in testIdempotentStart()
384 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfMuxerStartsAfterWriteSampleData() local
389 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterWriteSampleData()
390 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
391 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterWriteSampleData()
392 muxer.start(); in testIfMuxerStartsAfterWriteSampleData()
399 muxer.release(); in testIfMuxerStartsAfterWriteSampleData()
406 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfMuxerStartsAfterStop() local
411 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterStop()
412 muxer.start(); in testIfMuxerStartsAfterStop()
413 insertPerFrameSubtitles(muxer, 0, trackID); in testIfMuxerStartsAfterStop()
414 muxer.stop(); in testIfMuxerStartsAfterStop()
415 muxer.start(); in testIfMuxerStartsAfterStop()
422 muxer.release(); in testIfMuxerStartsAfterStop()
429 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfMuxerStartsAfterRelease() local
432 muxer.release(); in testIfMuxerStartsAfterRelease()
433 muxer.start(); in testIfMuxerStartsAfterRelease()
440 muxer.release(); in testIfMuxerStartsAfterRelease()
447 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testStopOnANonStartedMuxer() local
450 muxer.stop(); in testStopOnANonStartedMuxer()
457 muxer.release(); in testStopOnANonStartedMuxer()
464 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIdempotentStop() local
469 int trackID = muxer.addTrack(format); in testIdempotentStop()
470 muxer.start(); in testIdempotentStop()
471 insertPerFrameSubtitles(muxer, 0, trackID); in testIdempotentStop()
472 muxer.stop(); in testIdempotentStop()
473 muxer.stop(); in testIdempotentStop()
480 muxer.release(); in testIdempotentStop()
487 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testStopAfterRelease() local
489 muxer.release(); in testStopAfterRelease()
490 muxer.stop(); in testStopAfterRelease()
497 muxer.release(); in testStopAfterRelease()
504 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testSimpleStartStopMuxer() local
509 muxer.addTrack(format); in testSimpleStartStopMuxer()
510 muxer.start(); in testSimpleStartStopMuxer()
511 muxer.stop(); in testSimpleStartStopMuxer()
515 muxer.release(); in testSimpleStartStopMuxer()
522 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataRejectsInvalidTrackIndex() local
526 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidTrackIndex()
527 muxer.start(); in testIfWriteSampleDataRejectsInvalidTrackIndex()
528 insertPerFrameSubtitles(muxer, 22000, trackID); in testIfWriteSampleDataRejectsInvalidTrackIndex()
530 insertPerFrameSubtitles(muxer, 0, trackID - 1); in testIfWriteSampleDataRejectsInvalidTrackIndex()
535 muxer.release(); in testIfWriteSampleDataRejectsInvalidTrackIndex()
542 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataRejectsNullByteBuffer() local
546 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsNullByteBuffer()
547 muxer.start(); in testIfWriteSampleDataRejectsNullByteBuffer()
548 insertPerFrameSubtitles(muxer, 22000, trackID); in testIfWriteSampleDataRejectsNullByteBuffer()
556 muxer.writeSampleData(trackID, null, metaInfo); in testIfWriteSampleDataRejectsNullByteBuffer()
561 muxer.release(); in testIfWriteSampleDataRejectsNullByteBuffer()
568 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataRejectsNullBuffInfo() local
572 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsNullBuffInfo()
573 muxer.start(); in testIfWriteSampleDataRejectsNullBuffInfo()
574 insertPerFrameSubtitles(muxer, 22000, trackID); in testIfWriteSampleDataRejectsNullBuffInfo()
581 muxer.writeSampleData(trackID, metaBuff, null); in testIfWriteSampleDataRejectsNullBuffInfo()
586 muxer.release(); in testIfWriteSampleDataRejectsNullBuffInfo()
593 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataRejectsInvalidBuffInfo() local
597 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidBuffInfo()
598 muxer.start(); in testIfWriteSampleDataRejectsInvalidBuffInfo()
599 insertPerFrameSubtitles(muxer, 22000, trackID); in testIfWriteSampleDataRejectsInvalidBuffInfo()
614 muxer.writeSampleData(trackID, metaBuff, metaInfo); in testIfWriteSampleDataRejectsInvalidBuffInfo()
626 muxer.writeSampleData(trackID, metaBuff, metaInfo); in testIfWriteSampleDataRejectsInvalidBuffInfo()
638 muxer.writeSampleData(trackID, metaBuff, metaInfo); in testIfWriteSampleDataRejectsInvalidBuffInfo()
651 muxer.writeSampleData(trackID, metaBuff, metaInfo); in testIfWriteSampleDataRejectsInvalidBuffInfo()
658 muxer.release(); in testIfWriteSampleDataRejectsInvalidBuffInfo()
666 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataRejectsInvalidPts() local
670 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidPts()
671 muxer.start(); in testIfWriteSampleDataRejectsInvalidPts()
672 insertPerFrameSubtitles(muxer, 22000, trackID); in testIfWriteSampleDataRejectsInvalidPts()
674 insertPerFrameSubtitles(muxer, -33000, trackID); in testIfWriteSampleDataRejectsInvalidPts()
679 muxer.release(); in testIfWriteSampleDataRejectsInvalidPts()
686 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataSucceedsBeforeStart() local
691 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsBeforeStart()
692 insertPerFrameSubtitles(muxer, 0, trackID); in testIfWriteSampleDataSucceedsBeforeStart()
699 muxer.release(); in testIfWriteSampleDataSucceedsBeforeStart()
706 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataSucceedsAfterStop() local
711 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsAfterStop()
712 muxer.start(); in testIfWriteSampleDataSucceedsAfterStop()
713 insertPerFrameSubtitles(muxer, 0, trackID); in testIfWriteSampleDataSucceedsAfterStop()
714 muxer.stop(); in testIfWriteSampleDataSucceedsAfterStop()
715 insertPerFrameSubtitles(muxer, 0, trackID); in testIfWriteSampleDataSucceedsAfterStop()
722 muxer.release(); in testIfWriteSampleDataSucceedsAfterStop()
729 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIfWriteSampleDataSucceedsAfterRelease() local
734 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsAfterRelease()
735 muxer.start(); in testIfWriteSampleDataSucceedsAfterRelease()
736 insertPerFrameSubtitles(muxer, 0, trackID); in testIfWriteSampleDataSucceedsAfterRelease()
737 muxer.release(); in testIfWriteSampleDataSucceedsAfterRelease()
738 insertPerFrameSubtitles(muxer, 0, trackID); in testIfWriteSampleDataSucceedsAfterRelease()
745 muxer.release(); in testIfWriteSampleDataSucceedsAfterRelease()
752 MediaMuxer muxer = new MediaMuxer(mOutLoc, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIdempotentRelease() local
754 muxer.release(); in testIdempotentRelease()
755 muxer.release(); in testIdempotentRelease()