/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerUnitTest.java | 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() [all …]
|
D | MuxerTest.java | 170 void registerTrack(MediaMuxer muxer) { in registerTrack() argument 172 int dstIndex = muxer.addTrack(mFormat.get(trackID)); in registerTrack() 177 void insertSampleData(MediaMuxer muxer) { in insertSampleData() argument 184 muxer.writeSampleData(mOutIndexMap.get(index), mBuff, bufferInfo); in insertSampleData() 195 void muxMedia(MediaMuxer muxer) { in muxMedia() argument 196 registerTrack(muxer); in muxMedia() 197 muxer.start(); in muxMedia() 198 insertSampleData(muxer); in muxMedia() 199 muxer.stop(); in muxMedia() 202 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, 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() [all …]
|
D | NativeMuxerTest.cpp | 79 bool registerTrack(AMediaMuxer* muxer); 81 bool insertSampleData(AMediaMuxer* muxer); 83 bool writeAFewSamplesData(AMediaMuxer* muxer, uint32_t fromIndex, uint32_t toIndex); 85 bool writeAFewSamplesDataFromTime(AMediaMuxer* muxer, int64_t* fromTime, uint32_t numSamples, 88 bool muxMedia(AMediaMuxer* muxer); 90 bool appendMedia(AMediaMuxer *muxer, uint32_t fromIndex, uint32_t toIndex); 92 bool appendMediaFromTime(AMediaMuxer *muxer, int64_t *appendFromTime, 95 bool combineMedias(AMediaMuxer* muxer, MuxerNativeTestHelper* that, const int* repeater); 216 bool MuxerNativeTestHelper::registerTrack(AMediaMuxer* muxer) { in registerTrack() argument 218 int dstIndex = AMediaMuxer_addTrack(muxer, mFormat[trackID]); in registerTrack() [all …]
|
/cts/tests/tests/media/muxer/jni/ |
D | native_muxer_jni.cpp | 32 AMediaMuxer *muxer = AMediaMuxer_new(outfd, in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() local 52 ssize_t tidx = AMediaMuxer_addTrack(muxer, format); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() 63 AMediaMuxer_start(muxer); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() 77 AMediaMuxer_writeSampleData(muxer, idx, buf, &info); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() 93 AMediaMuxer_writeSampleData(muxer, muxer_track_indices.at(i), in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() 99 AMediaMuxer_stop(muxer); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative() 100 AMediaMuxer_delete(muxer); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
|
/cts/tests/tests/media/muxer/src/android/media/muxer/cts/ |
D | MediaMuxerTest.java | 17 package android.media.muxer.cts; 738 MediaMuxer muxer; in cloneMediaUsingMuxer() local 739 muxer = new MediaMuxer(dstMediaPath, fmt); in cloneMediaUsingMuxer() 748 int dstIndex = muxer.addTrack(muxedFormat); in cloneMediaUsingMuxer() 763 muxer.setOrientationHint(degrees); in cloneMediaUsingMuxer() 770 muxer.setLocation(BAD_LATITUDE, LONGITUDE); in cloneMediaUsingMuxer() 777 muxer.setLocation(LATITUDE, BAD_LONGITUDE); in cloneMediaUsingMuxer() 784 muxer.setLocation(LATITUDE, LONGITUDE); in cloneMediaUsingMuxer() 787 muxer.start(); in cloneMediaUsingMuxer() 803 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, in cloneMediaUsingMuxer() [all …]
|
D | WorkDir.java | 17 package android.media.muxer.cts;
|
D | Stub.java | 17 package android.media.muxer.cts;
|
D | NativeMuxerTest.java | 17 package android.media.muxer.cts;
|
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/ |
D | EncoderTest.java | 309 MediaMuxer muxer = null; in testEncoder() local 318 muxer = new MediaMuxer(outFile, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in testEncoder() 412 if (muxer != null) { in testEncoder() 416 muxidx = muxer.addTrack(trackFormat); in testEncoder() 417 muxer.start(); in testEncoder() 419 muxer.writeSampleData(muxidx, buffer, info); in testEncoder() 454 if (muxer != null) { in testEncoder() 455 muxer.stop(); in testEncoder() 456 muxer.release(); in testEncoder() 457 muxer = null; in testEncoder()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | EncodeVirtualDisplayTest.java | 327 MediaMuxer muxer = null; in doTestEncodeVirtual() local 332 muxer = new MediaMuxer(fileName, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4); in doTestEncodeVirtual() 439 if (muxer != null && trackIndex == -1) { in doTestEncodeVirtual() 440 trackIndex = muxer.addTrack(newFormat); in doTestEncodeVirtual() 441 muxer.start(); in doTestEncodeVirtual() 455 if (muxer != null) { in doTestEncodeVirtual() 456 muxer.writeSampleData(trackIndex, encodedData, info); in doTestEncodeVirtual() 489 if (muxer != null) { in doTestEncodeVirtual() 490 muxer.stop(); in doTestEncodeVirtual() 491 muxer.release(); in doTestEncodeVirtual()
|
D | ExtractDecodeEditEncodeMuxTest.java | 408 MediaMuxer muxer = null; in extractDecodeEditEncodeMux() local 446 muxer = createMuxer(); in extractDecodeEditEncodeMux() 455 muxer, in extractDecodeEditEncodeMux() 540 if (muxer != null) { in extractDecodeEditEncodeMux() 541 muxer.stop(); in extractDecodeEditEncodeMux() 542 muxer.release(); in extractDecodeEditEncodeMux() 774 MediaMuxer muxer, in doExtractDecodeEditEncodeMux() argument 1158 muxer.writeSampleData( in doExtractDecodeEditEncodeMux() 1216 muxer.writeSampleData( in doExtractDecodeEditEncodeMux() 1235 outputVideoTrack = muxer.addTrack(encoderOutputVideoFormat); in doExtractDecodeEditEncodeMux() [all …]
|
/cts/tests/tests/media/ |
D | copy_all_media.sh | 29 ./muxer/copy_media.sh $@ || exit 1
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecEncoderTestBase.java | 133 MediaMuxer muxer = null; in muxOutput() local 135 muxer = new MediaMuxer(filePath, muxerFormat); in muxOutput() 136 int trackID = muxer.addTrack(format); in muxOutput() 137 muxer.start(); in muxOutput() 140 muxer.writeSampleData(trackID, buffer, info); in muxOutput() 143 muxer.stop(); in muxOutput() 145 if (muxer != null) muxer.release(); in muxOutput()
|
/cts/tests/media/ |
D | README.md | 2 Current folder comprises of files necessary for testing media extractor, media muxer, media codec S… 67 To select muxers by type, *mux-sel* can be passed to muxer tests to select one or more muxers. 69 Example: To limit muxer tests to mp4 and webm types
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | RecordingTest.java | 557 MediaMuxer muxer = new MediaMuxer(mOutMediaFileName, in testBasic10BitRecording() local 572 mediaCodec.setCallback(new MediaCodecListener(muxer, condition), in testBasic10BitRecording() 633 muxer.stop(); in testBasic10BitRecording() 639 if (muxer != null) { in testBasic10BitRecording() 640 muxer.release(); in testBasic10BitRecording()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 2811 MediaMuxer muxer = null; 2814 muxer = new MediaMuxer(outputFilePath, 2828 mediaCodec.setCallback(new ItsUtils.MediaCodecListener(muxer, condition), mCameraHandler); 2867 muxer.stop(); 2870 muxer.release();
|