1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
media / base / libaom_thread_wrapper.cc [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/logging.h"
#include "media/base/codec_worker_impl.h"
#include "media/base/libvpx_thread_wrapper.h"
#include "third_party/libaom/source/libaom/aom_util/aom_thread.h"
namespace media {
void InitLibAomThreadWrapper() {
const AVxWorkerInterface interface =
CodecWorkerImpl<AVxWorkerInterface, AVxWorkerImpl, AVxWorker,
AVxWorkerStatus, AVX_WORKER_STATUS_NOT_OK,
AVX_WORKER_STATUS_OK,
AVX_WORKER_STATUS_WORKING>::GetCodecWorkerInterface();
CHECK(aom_set_worker_interface(&interface));
}
} // namespace media