OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "media/filters/in_memory_url_protocol.h" | 21 #include "media/filters/in_memory_url_protocol.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace media { | 24 namespace media { |
25 | 25 |
26 class FFmpegCommonTest : public testing::Test { | 26 class FFmpegCommonTest : public testing::Test { |
27 public: | 27 public: |
28 FFmpegCommonTest() { | 28 FFmpegCommonTest() { |
29 FFmpegGlue::InitializeFFmpeg(); | 29 FFmpegGlue::InitializeFFmpeg(); |
30 } | 30 } |
31 ~FFmpegCommonTest() override{}; | 31 ~FFmpegCommonTest() override {} |
32 }; | 32 }; |
33 | 33 |
34 uint8_t kExtraData[5] = {0x00, 0x01, 0x02, 0x03, 0x04}; | 34 uint8_t kExtraData[5] = {0x00, 0x01, 0x02, 0x03, 0x04}; |
35 | 35 |
36 template <typename T> | 36 template <typename T> |
37 void TestConfigConvertExtraData( | 37 void TestConfigConvertExtraData( |
38 AVStream* stream, | 38 AVStream* stream, |
39 T* decoder_config, | 39 T* decoder_config, |
40 const base::Callback<bool(const AVStream*, T*)>& converter_fn) { | 40 const base::Callback<bool(const AVStream*, T*)>& converter_fn) { |
41 // Should initially convert. | 41 // Should initially convert. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // values; diff should verify. | 243 // values; diff should verify. |
244 #if 0 | 244 #if 0 |
245 printf("<enum name=\"FFmpegCodecHashes\" type=\"int\">\n"); | 245 printf("<enum name=\"FFmpegCodecHashes\" type=\"int\">\n"); |
246 for (const auto& kv : sorted_hashes) | 246 for (const auto& kv : sorted_hashes) |
247 printf(" <int value=\"%d\" label=\"%s\"/>\n", kv.first, kv.second); | 247 printf(" <int value=\"%d\" label=\"%s\"/>\n", kv.first, kv.second); |
248 printf("</enum>\n"); | 248 printf("</enum>\n"); |
249 #endif | 249 #endif |
250 } | 250 } |
251 | 251 |
252 } // namespace media | 252 } // namespace media |
OLD | NEW |