Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f88e1d9e authored by Linus Nilsson's avatar Linus Nilsson Committed by Android (Google) Code Review
Browse files

Merge "Transcoder: Add 4K transcoder unit test"

parents 0e6db8c6 91ea1f4c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -334,6 +334,17 @@ TEST_F(MediaTranscoderTests, TestVideoTranscode_HevcToAvc_Rotation) {
    testTranscodeVideo(srcPath, destPath, AMEDIA_MIMETYPE_VIDEO_AVC);
}

TEST_F(MediaTranscoderTests, TestVideoTranscode_4K) {
#if defined(__i386__) || defined(__x86_64__)
    LOG(WARNING) << "Skipping 4K test on x86 as SW encoder does not support 4K.";
    return;
#else
    const char* srcPath = "/data/local/tmp/TranscodingTestAssets/Video_4K_HEVC_10Frames_Audio.mp4";
    const char* destPath = "/data/local/tmp/MediaTranscoder_4K.MP4";
    testTranscodeVideo(srcPath, destPath, AMEDIA_MIMETYPE_VIDEO_AVC);
#endif
}

TEST_F(MediaTranscoderTests, TestPreserveBitrate) {
    const char* srcPath = "/data/local/tmp/TranscodingTestAssets/cubicle_avc_480x240_aac_24KHz.mp4";
    const char* destPath = "/data/local/tmp/MediaTranscoder_PreserveBitrate.MP4";