blob: 090e73a7dcc72b71f31d91ad8f6065de8646594d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/media.h"
#include <cpu-features.h>
#include "base/files/file_path.h"
namespace media {
namespace internal {
bool InitializeMediaLibraryInternal(const base::FilePath& module_dir) {
// No real initialization is necessary but we do need to check if
// Neon is supported because the FFT library requires Neon.
return (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0;
}
} // namespace internal
} // namespace media
|