Skip to content

Commit

Permalink
Update license (#119)
Browse files Browse the repository at this point in the history
Summary: Update license config to ensure the OSS license

Differential Revision: D60343080

Co-authored-by: Moto Hira <[email protected]>
  • Loading branch information
moto-meta and mthrok authored Jul 28, 2024
1 parent 230cb00 commit 314af1e
Show file tree
Hide file tree
Showing 165 changed files with 1,167 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

set -eux

Expand Down
7 changes: 7 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

/*
*/
Expand Down
8 changes: 8 additions & 0 deletions docs/source/_static/js/custom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* We add extra br tags to the autodoc output, so each parameter is shown on
* its own line.
Expand Down
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
Expand Down
6 changes: 6 additions & 0 deletions docs/source/custom_directives.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

import logging
import posixpath
import re
Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

message(STATUS "########################################")
message(STATUS "# Configuring SPDL")
message(STATUS "########################################")
Expand Down
6 changes: 6 additions & 0 deletions src/binding/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

message(STATUS "########################################")
message(STATUS "# Configuring SPDL Python binding")
message(STATUS "########################################")
Expand Down
8 changes: 8 additions & 0 deletions src/binding/bind.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <nanobind/nanobind.h>

#ifndef SPDL_FFMPEG_EXT_NAME
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/adaptors.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/adaptor.h>

#include <fmt/core.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/buffer.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/buffer.h>

#include <fmt/core.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/conversion.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/conversion.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/decoding.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/decoding.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/demuxing.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/demuxing.h>

#include <cstring>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/encoding.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/encoding.h>
#include <libspdl/core/transfer.h>

Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/frames.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/frames.h>

#include <fmt/core.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/packets.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/packets.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/tracing.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/utils.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/transfer.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/transfer.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/types.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/types.h>

#include <nanobind/nanobind.h>
Expand Down
8 changes: 8 additions & 0 deletions src/binding/core/utils.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/types.h>
#include <libspdl/core/utils.h>

Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/adaptor.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <libspdl/core/types.h>
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/adaptor/adaptor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/adaptor.h>

#include "libspdl/core/detail/ffmpeg/ctx_utils.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/adaptor/bytes.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/adaptor.h>

#include "libspdl/core/detail/ffmpeg/ctx_utils.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/adaptor/mmap.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/adaptor.h>

#include "libspdl/core/detail/ffmpeg/ctx_utils.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/buffer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <libspdl/core/storage.h>
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/buffer/cpu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/buffer.h>

#include "libspdl/core/detail/logging.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/buffer/cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/buffer.h>

namespace spdl::core {
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/conversion.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once
#include <libspdl/core/buffer.h>
#include <libspdl/core/frames.h>
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/decoder.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/decoding.h>

#include "libspdl/core/detail/ffmpeg/decoder.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/decoding.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/decoding.h>
#include <libspdl/core/demuxing.h>

Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/decoding.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <libspdl/core/frames.h>
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/demuxing.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include <libspdl/core/demuxing.h>

#include "libspdl/core/detail/ffmpeg/bsf.h"
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/demuxing.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include <libspdl/core/adaptor.h>
Expand Down
8 changes: 8 additions & 0 deletions src/libspdl/core/detail/cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "libspdl/core/detail/cuda.h"
#include "libspdl/core/detail/tracing.h"

Expand Down
Loading

0 comments on commit 314af1e

Please sign in to comment.