Lines Matching refs:format
137 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfInvalidMediaFormatIsRejected() local
139 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
144 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "text/cea-608"); in nativeTestIfInvalidMediaFormatIsRejected()
145 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfInvalidMediaFormatIsRejected()
149 AMediaFormat_delete(format); in nativeTestIfInvalidMediaFormatIsRejected()
166 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfCorruptMediaFormatIsRejected() local
167 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, AMEDIA_MIMETYPE_AUDIO_AAC); in nativeTestIfCorruptMediaFormatIsRejected()
168 AMediaFormat_setInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, -1); in nativeTestIfCorruptMediaFormatIsRejected()
169 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfCorruptMediaFormatIsRejected()
173 AMediaFormat_delete(format); in nativeTestIfCorruptMediaFormatIsRejected()
190 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfAddTrackSucceedsAfterStart() local
191 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfAddTrackSucceedsAfterStart()
192 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIfAddTrackSucceedsAfterStart()
194 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStart()
198 AMediaFormat_delete(format); in nativeTestIfAddTrackSucceedsAfterStart()
216 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfAddTrackSucceedsAfterWriteSampleData() local
217 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
218 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
222 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
226 AMediaFormat_delete(format); in nativeTestIfAddTrackSucceedsAfterWriteSampleData()
243 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfAddTrackSucceedsAfterStop() local
244 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfAddTrackSucceedsAfterStop()
245 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfAddTrackSucceedsAfterStop()
250 if (AMediaMuxer_addTrack(muxer, format) >= 0) { in nativeTestIfAddTrackSucceedsAfterStop()
254 AMediaFormat_delete(format); in nativeTestIfAddTrackSucceedsAfterStop()
291 AMediaFormat* format = AMediaFormat_new(); in nativeTestIdempotentStart() local
292 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIdempotentStart()
293 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestIdempotentStart()
299 AMediaFormat_delete(format); in nativeTestIdempotentStart()
317 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfMuxerStartsAfterWriteSampleData() local
318 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfMuxerStartsAfterWriteSampleData()
319 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterWriteSampleData()
327 AMediaFormat_delete(format); in nativeTestIfMuxerStartsAfterWriteSampleData()
344 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfMuxerStartsAfterStop() local
345 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfMuxerStartsAfterStop()
346 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfMuxerStartsAfterStop()
355 AMediaFormat_delete(format); in nativeTestIfMuxerStartsAfterStop()
372 AMediaFormat* format = AMediaFormat_new(); in nativeTestStopOnANonStartedMuxer() local
373 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestStopOnANonStartedMuxer()
374 isPass &= AMediaMuxer_addTrack(muxer, format) >= 0; in nativeTestStopOnANonStartedMuxer()
379 AMediaFormat_delete(format); in nativeTestStopOnANonStartedMuxer()
396 AMediaFormat* format = AMediaFormat_new(); in nativeTestIdempotentStop() local
397 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIdempotentStop()
398 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIdempotentStop()
407 AMediaFormat_delete(format); in nativeTestIdempotentStop()
424 AMediaFormat* format = AMediaFormat_new(); in nativeTestSimpleStartStop() local
425 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestSimpleStartStop()
426 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestSimpleStartStop()
430 AMediaFormat_delete(format); in nativeTestSimpleStartStop()
448 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex() local
449 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
450 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
458 AMediaFormat_delete(format); in nativeTestIfWriteSampleDataRejectsInvalidTrackIndex()
476 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfWriteSampleDataRejectsInvalidPts() local
477 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfWriteSampleDataRejectsInvalidPts()
478 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataRejectsInvalidPts()
486 AMediaFormat_delete(format); in nativeTestIfWriteSampleDataRejectsInvalidPts()
504 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfWriteSampleDataSucceedsBeforeStart() local
505 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
506 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
512 AMediaFormat_delete(format); in nativeTestIfWriteSampleDataSucceedsBeforeStart()
530 AMediaFormat* format = AMediaFormat_new(); in nativeTestIfWriteSampleDataSucceedsAfterStop() local
531 AMediaFormat_setString(format, AMEDIAFORMAT_KEY_MIME, "application/x-subrip"); in nativeTestIfWriteSampleDataSucceedsAfterStop()
532 ssize_t trackID = AMediaMuxer_addTrack(muxer, format); in nativeTestIfWriteSampleDataSucceedsAfterStop()
541 AMediaFormat_delete(format); in nativeTestIfWriteSampleDataSucceedsAfterStop()