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

Commit 91ea1f4c authored by Linus Nilsson's avatar Linus Nilsson
Browse files

Transcoder: Add 4K transcoder unit test

Bug: 175406816
Test: Added unit test
Change-Id: I3e79bc0eac1dc2e9edf4096ad91f23699e527e6c
parent b3bd0a07
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";