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, (OutputFormat)OUTPUT_FORMAT_THREE_GPP); in nativeTestIfInvalidFdIsRejected() local
52 if (muxer != nullptr) { in nativeTestIfInvalidFdIsRejected()
53 AMediaMuxer_delete(muxer); in nativeTestIfInvalidFdIsRejected()
63 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_THREE_GPP); in nativeTestIfReadOnlyFdIsRejected() local
65 if (muxer != nullptr) { in nativeTestIfReadOnlyFdIsRejected()
66 AMediaMuxer_delete(muxer); in nativeTestIfReadOnlyFdIsRejected()
78 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_WEBM); in nativeTestIfWriteOnlyFdIsRejected() local
80 if (muxer != nullptr) { in nativeTestIfWriteOnlyFdIsRejected()
81 AMediaMuxer_delete(muxer); in nativeTestIfWriteOnlyFdIsRejected()
94 AMediaMuxer* muxer = AMediaMuxer_new(fd, (OutputFormat)OUTPUT_FORMAT_THREE_GPP); in nativeTestIfNonSeekableFdIsRejected() local
96 if (muxer != nullptr) { in nativeTestIfNonSeekableFdIsRejected()
97 AMediaMuxer_delete(muxer); in nativeTestIfNonSeekableFdIsRejected()
109 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)(OUTPUT_FORMAT_LIST_END + 1)); in nativeTestIfInvalidOutputFormatIsRejected() local
111 if (muxer != nullptr) { in nativeTestIfInvalidOutputFormatIsRejected()
112 AMediaMuxer_delete(muxer); in nativeTestIfInvalidOutputFormatIsRejected()
124 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfInvalidMediaFormatIsRejected() local
127 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
133 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
138 AMediaMuxer_delete(muxer); in nativeTestIfInvalidMediaFormatIsRejected()
148 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfCorruptMediaFormatIsRejected() local
152 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfCorruptMediaFormatIsRejected()
157 AMediaMuxer_delete(muxer); in nativeTestIfCorruptMediaFormatIsRejected()
167 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterStart() local
170 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIfAddTrackSucceedsAfterStart()
171 isPass &= (AMediaMuxer_start(muxer) == AMEDIA_OK); in nativeTestIfAddTrackSucceedsAfterStart()
172 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStart()
177 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterStart()
188 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterWriteSampleData() local
191 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
193 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
194 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
195 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
200 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
210 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfAddTrackSucceedsAfterStop() local
213 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterStop()
215 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
216 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
217 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfAddTrackSucceedsAfterStop()
218 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStop()
223 AMediaMuxer_delete(muxer); in nativeTestIfAddTrackSucceedsAfterStop()
233 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsBeforeAddTrack() local
234 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsBeforeAddTrack()
238 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsBeforeAddTrack()
248 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIdempotentStart() local
251 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIdempotentStart()
252 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIdempotentStart()
253 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIdempotentStart()
258 AMediaMuxer_delete(muxer); in nativeTestIdempotentStart()
269 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsAfterWriteSampleData() local
272 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterWriteSampleData()
274 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterWriteSampleData()
275 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterWriteSampleData()
276 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsAfterWriteSampleData()
281 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsAfterWriteSampleData()
291 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfMuxerStartsAfterStop() local
294 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterStop()
296 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
297 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
298 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfMuxerStartsAfterStop()
299 if (AMediaMuxer_start(muxer) == AMEDIA_OK) { in nativeTestIfMuxerStartsAfterStop()
304 AMediaMuxer_delete(muxer); in nativeTestIfMuxerStartsAfterStop()
314 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestStopOnANonStartedMuxer() local
317 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestStopOnANonStartedMuxer()
318 if (AMEDIA_OK == AMediaMuxer_stop(muxer)) { in nativeTestStopOnANonStartedMuxer()
323 AMediaMuxer_delete(muxer); in nativeTestStopOnANonStartedMuxer()
333 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIdempotentStop() local
336 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIdempotentStop()
338 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIdempotentStop()
339 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIdempotentStop()
340 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIdempotentStop()
341 if (AMEDIA_OK == AMediaMuxer_stop(muxer)) { in nativeTestIdempotentStop()
346 AMediaMuxer_delete(muxer); in nativeTestIdempotentStop()
356 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestSimpleStartStop() local
359 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestSimpleStartStop()
361 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestSimpleStartStop()
362 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestSimpleStartStop()
364 AMediaMuxer_delete(muxer); in nativeTestSimpleStartStop()
375 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex() local
378 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
380 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
381 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
382 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 22000, trackID + 1)) { in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
387 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
398 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataRejectsInvalidPts() local
401 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidPts()
403 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidPts()
404 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataRejectsInvalidPts()
405 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, -33000, trackID)) { in nativeTestIfWriteSampleDataRejectsInvalidPts()
410 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataRejectsInvalidPts()
421 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataSucceedsBeforeStart() local
424 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
426 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 0, trackID)) { in nativeTestIfWriteSampleDataSucceedsBeforeStart()
431 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
442 AMediaMuxer* muxer = AMediaMuxer_new(fileno(ofp), (OutputFormat)OUTPUT_FORMAT_MPEG_4); in nativeTestIfWriteSampleDataSucceedsAfterStop() local
445 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsAfterStop()
447 isPass &= AMediaMuxer_start(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
448 isPass &= insertPerFrameSubtitles(muxer, 0, trackID) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
449 isPass &= AMediaMuxer_stop(muxer) == AMEDIA_OK; in nativeTestIfWriteSampleDataSucceedsAfterStop()
450 if (AMEDIA_OK == insertPerFrameSubtitles(muxer, 33000, trackID)) { in nativeTestIfWriteSampleDataSucceedsAfterStop()
455 AMediaMuxer_delete(muxer); in nativeTestIfWriteSampleDataSucceedsAfterStop()