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

Side by Side Diff: media/formats/mp4/mp4_stream_parser_unittest.cc

Issue 816353010: Implemented HEVC video demuxing and parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added hevc handling in media/base/android/media_codec_bridge.cc Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 ReadTestDataFile("bear-1280x720-a_frag-cenc_missing-saiz-saio.mp4"); 236 ReadTestDataFile("bear-1280x720-a_frag-cenc_missing-saiz-saio.mp4");
237 EXPECT_FALSE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); 237 EXPECT_FALSE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512));
238 } 238 }
239 239
240 // Test a file where all video samples start with an Access Unit 240 // Test a file where all video samples start with an Access Unit
241 // Delimiter (AUD) NALU. 241 // Delimiter (AUD) NALU.
242 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { 242 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) {
243 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512); 243 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512);
244 } 244 }
245 245
246 #if defined(ENABLE_HEVC_DEMUXING)
247 TEST_F(MP4StreamParserTest, HEVC_in_MP4_container) {
248 ParseMP4File("bear-hevc-frag.mp4", 512);
249 }
250 #endif
251
246 // TODO(strobe): Create and test media which uses CENC auxiliary info stored 252 // TODO(strobe): Create and test media which uses CENC auxiliary info stored
247 // inside a private box 253 // inside a private box
248 254
249 } // namespace mp4 255 } // namespace mp4
250 } // namespace media 256 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698