Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: media/filters/ffmpeg_demuxer_unittest.cc

Issue 816353010: Implemented HEVC video demuxing and parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <deque> 6 #include <deque>
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 CreateDemuxer("bear_rotate_270.mp4"); 967 CreateDemuxer("bear_rotate_270.mp4");
968 InitializeDemuxer(); 968 InitializeDemuxer();
969 969
970 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO); 970 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO);
971 ASSERT_TRUE(stream); 971 ASSERT_TRUE(stream);
972 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation()); 972 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation());
973 } 973 }
974 974
975 #endif 975 #endif
976 976
977 #if defined(USE_PROPRIETARY_CODECS) && defined(ENABLE_HEVC_DEMUXING)
978 TEST_F(FFmpegDemuxerTest, HEVC_in_MP4_container) {
979 CreateDemuxer("bear-hevc-frag.mp4");
980 InitializeDemuxer();
981
982 DemuxerStream* video = demuxer_->GetStream(DemuxerStream::VIDEO);
983 ASSERT_TRUE(video);
984
985 video->Read(NewReadCB(FROM_HERE, 3569, 66733, true));
986 message_loop_.Run();
987
988 video->Read(NewReadCB(FROM_HERE, 1042, 200200, false));
989 message_loop_.Run();
990 }
991 #endif
992
977 } // namespace media 993 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698