Lines Matching refs:muxer

37 static media_status_t insertPerFrameSubtitles(AMediaMuxer* muxer, long pts, size_t trackID) {  in insertPerFrameSubtitles()  argument
44 media_status_t status = AMediaMuxer_writeSampleData(muxer, trackID, (uint8_t*)greeting, info); in insertPerFrameSubtitles()
50 AMediaMuxer* muxer = AMediaMuxer_new(-1, AMEDIAMUXER_OUTPUT_FORMAT_THREE_GPP); in nativeTestIfInvalidFdIsRejected() local
52 if (muxer != nullptr) { in nativeTestIfInvalidFdIsRejected()
53 AMediaMuxer_delete(muxer); in nativeTestIfInvalidFdIsRejected()
68 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_THREE_GPP); in nativeTestIfReadOnlyFdIsRejected() local
70 if (muxer != nullptr) { in nativeTestIfReadOnlyFdIsRejected()
71 AMediaMuxer_delete(muxer); in nativeTestIfReadOnlyFdIsRejected()
86 AMediaMuxer* muxer = AMediaMuxer_new(pipefd[1], AMEDIAMUXER_OUTPUT_FORMAT_THREE_GPP); in nativeTestIfNonSeekableFdIsRejected() local
88 if (muxer != nullptr) { in nativeTestIfNonSeekableFdIsRejected()
89 AMediaMuxer_delete(muxer); in nativeTestIfNonSeekableFdIsRejected()
106 AMediaMuxer* muxer = nullptr; in nativeTestIfInvalidOutputFormatIsRejected() local
109 muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)(-1)); in nativeTestIfInvalidOutputFormatIsRejected()
110 if (muxer != nullptr) { in nativeTestIfInvalidOutputFormatIsRejected()
111 AMediaMuxer_delete(muxer); in nativeTestIfInvalidOutputFormatIsRejected()
114 muxer = nullptr; in nativeTestIfInvalidOutputFormatIsRejected()
116 muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)(LOCAL_AMEDIAMUXER_OUTPUT_FORMAT_LAST + 1)); in nativeTestIfInvalidOutputFormatIsRejected()
117 if (muxer != nullptr) { in nativeTestIfInvalidOutputFormatIsRejected()
118 AMediaMuxer_delete(muxer); in nativeTestIfInvalidOutputFormatIsRejected()
121 muxer = nullptr; in nativeTestIfInvalidOutputFormatIsRejected()
136 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfInvalidMediaFormatIsRejected() local
139 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
145 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
150 AMediaMuxer_delete(muxer); in nativeTestIfInvalidMediaFormatIsRejected()
165 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfCorruptMediaFormatIsRejected() local
169 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfCorruptMediaFormatIsRejected()
174 AMediaMuxer_delete(muxer); in nativeTestIfCorruptMediaFormatIsRejected()
189 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterStart() local
192 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIfAddTrackSucceedsAfterStart()
193 isPass &= (AMediaMuxer_start(muxer) == AMEDIA_OK); in nativeTestIfAddTrackSucceedsAfterStart()
194 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStart()
199 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterStart()
215 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterWriteSampleData() local
218 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
220 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
221 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
222 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
227 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
242 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterStop() local
245 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterStop()
247 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
248 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
249 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
250 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStop()
255 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterStop()
270 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsBeforeAddTrack() local
271 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsBeforeAddTrack()
275 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsBeforeAddTrack()
290 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIdempotentStart() local
293 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIdempotentStart()
294 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIdempotentStart()
295 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIdempotentStart()
300 AMediaMuxer_delete(muxer); in nativeTestIdempotentStart()
316 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsAfterWriteSampleData() local
319 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterWriteSampleData()
321 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterWriteSampleData()
322 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterWriteSampleData()
323 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsAfterWriteSampleData()
328 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsAfterWriteSampleData()
343 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsAfterStop() local
346 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterStop()
348 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
349 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
350 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
351 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsAfterStop()
356 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsAfterStop()
371 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestStopOnANonStartedMuxer() local
374 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestStopOnANonStartedMuxer()
375 if (AMEDIA_OK == AMediaMuxer_stop(muxer)) { in nativeTestStopOnANonStartedMuxer()
380 AMediaMuxer_delete(muxer); in nativeTestStopOnANonStartedMuxer()
395 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIdempotentStop() local
398 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIdempotentStop()
400 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIdempotentStop()
401 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIdempotentStop()
402 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIdempotentStop()
403 if (AMEDIA_OK == AMediaMuxer_stop(muxer)) { in nativeTestIdempotentStop()
408 AMediaMuxer_delete(muxer); in nativeTestIdempotentStop()
423 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestSimpleStartStop() local
426 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestSimpleStartStop()
428 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestSimpleStartStop()
429 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestSimpleStartStop()
431 AMediaMuxer_delete(muxer); in nativeTestSimpleStartStop()
447 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex() local
450 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
452 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
453 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
454 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 22000, trackID + 1)) { in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
459 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
475 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataRejectsInvalidPts() local
478 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidPts()
480 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidPts()
481 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidPts()
482 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, -33000, trackID)) { in nativeTestIfWriteSampleDataRejectsInvalidPts()
487 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataRejectsInvalidPts()
503 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataSucceedsBeforeStart() local
506 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
508 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 0, trackID)) { in nativeTestIfWriteSampleDataSucceedsBeforeStart()
513 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
529 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), AMEDIAMUXER_OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataSucceedsAfterStop() local
532 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsAfterStop()
534 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
535 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
536 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
537 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 33000, trackID)) { in nativeTestIfWriteSampleDataSucceedsAfterStop()
542 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataSucceedsAfterStop()