1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

media / base / libvpx_thread_wrapper.cc [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/base/libvpx_thread_wrapper.h"

#include "media/base/codec_worker_impl.h"
#include "third_party/libvpx/source/libvpx/vpx_util/vpx_thread.h"

namespace media {

void InitLibVpxThreadWrapper() {
  const VPxWorkerInterface interface =
      CodecWorkerImpl<VPxWorkerInterface, VPxWorkerImpl, VPxWorker,
                      VPxWorkerStatus, VPX_WORKER_STATUS_NOT_OK,
                      VPX_WORKER_STATUS_OK,
                      VPX_WORKER_STATUS_WORKING>::GetCodecWorkerInterface();

  CHECK(vpx_set_worker_interface(&interface));
}

}  // namespace media