/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerUnitTest.java | 76 static private void insertPerFrameSubtitles(MediaMuxer muxer, long presentationTimeUs, in insertPerFrameSubtitles() argument 86 muxer.writeSampleData(trackID, metaBuff, metaInfo); in insertPerFrameSubtitles() 91 MediaMuxer muxer = null; in testIfNullPathIsRejected() local 94 muxer = new MediaMuxer(nullPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfNullPathIsRejected() 101 if (null != muxer) muxer.release(); in testIfNullPathIsRejected() 107 MediaMuxer muxer = null; in testIfNullFdIsRejected() local 110 muxer = new MediaMuxer(fd, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfNullFdIsRejected() 117 if (null != muxer) muxer.release(); in testIfNullFdIsRejected() 123 MediaMuxer muxer = null; in testIfInvalidFdIsRejected() local 126 muxer = new MediaMuxer(fd, MediaMuxer.OutputFormat.MUXER_OUTPUT_3GPP); in testIfInvalidFdIsRejected() [all …]
|
D | MuxerTest.java | 150 void registerTrack(MediaMuxer muxer) { in registerTrack() argument 152 int dstIndex = muxer.addTrack(mFormat.get(trackID)); in registerTrack() 157 void insertSampleData(MediaMuxer muxer) { in insertSampleData() argument 164 muxer.writeSampleData(mOutIndexMap.get(index), mBuff, bufferInfo); in insertSampleData() 175 void muxMedia(MediaMuxer muxer) { in muxMedia() argument 176 registerTrack(muxer); in muxMedia() 177 muxer.start(); in muxMedia() 178 insertSampleData(muxer); in muxMedia() 179 muxer.stop(); in muxMedia() 182 void combineMedias(MediaMuxer muxer, Object o, int[] repeater) { in combineMedias() argument [all …]
|
/cts/tests/media/jni/ |
D | NativeMuxerUnitTest.cpp | 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() [all …]
|
D | NativeMuxerTest.cpp | 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() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMuxerTest.java | 171 MediaMuxer muxer; in testIllegalStateExceptions() local 174 muxer = new MediaMuxer(outputFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIllegalStateExceptions() 175 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions() 178 muxer.stop(); in testIllegalStateExceptions() 183 muxer.release(); in testIllegalStateExceptions() 187 muxer = new MediaMuxer(outputFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIllegalStateExceptions() 188 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions() 191 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions() 195 muxer.release(); in testIllegalStateExceptions() 199 muxer = new MediaMuxer(outputFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testIllegalStateExceptions() [all …]
|
D | EncoderTest.java | 310 MediaMuxer muxer = null; in testEncoder() local 319 muxer = new MediaMuxer(outFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testEncoder() 400 if (muxer != null) { in testEncoder() 404 muxidx = muxer.addTrack(trackFormat); in testEncoder() 405 muxer.start(); in testEncoder() 407 muxer.writeSampleData(muxidx, buffer, info); in testEncoder() 442 if (muxer != null) { in testEncoder() 443 muxer.stop(); in testEncoder() 444 muxer.release(); in testEncoder() 445 muxer = null; in testEncoder()
|
D | ExtractDecodeEditEncodeMuxTest.java | 350 MediaMuxer muxer = null; in extractDecodeEditEncodeMux() local 388 muxer = createMuxer(); in extractDecodeEditEncodeMux() 397 muxer, in extractDecodeEditEncodeMux() 482 if (muxer != null) { in extractDecodeEditEncodeMux() 483 muxer.stop(); in extractDecodeEditEncodeMux() 484 muxer.release(); in extractDecodeEditEncodeMux() 705 MediaMuxer muxer, in doExtractDecodeEditEncodeMux() argument 1093 muxer.writeSampleData( in doExtractDecodeEditEncodeMux() 1151 muxer.writeSampleData( in doExtractDecodeEditEncodeMux() 1170 outputVideoTrack = muxer.addTrack(encoderOutputVideoFormat); in doExtractDecodeEditEncodeMux() [all …]
|
/cts/tests/media/ |
D | README.md | 2 Current folder comprises of files necessary for testing media extractor, media muxer, media codec S… 13 … which the tests are to be tried. Similarly for Media extractor and media muxer parses the value o…
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 769 AMediaMuxer *muxer = AMediaMuxer_new(outfd, in Java_android_media_cts_NativeDecoderTest_testMuxerNative() local 790 ssize_t tidx = AMediaMuxer_addTrack(muxer, format); in Java_android_media_cts_NativeDecoderTest_testMuxerNative() 800 AMediaMuxer_start(muxer); in Java_android_media_cts_NativeDecoderTest_testMuxerNative() 816 AMediaMuxer_writeSampleData(muxer, idx, buf, &info); in Java_android_media_cts_NativeDecoderTest_testMuxerNative() 822 AMediaMuxer_stop(muxer); in Java_android_media_cts_NativeDecoderTest_testMuxerNative() 823 AMediaMuxer_delete(muxer); in Java_android_media_cts_NativeDecoderTest_testMuxerNative()
|