Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository = "https://github.com/memorysafety/rav1d"
exclude = ["*.c", "*.h", "*.in", "meson*", "tests/", "doc/", "package/"]

[lib]
crate-type = ["staticlib", "rlib"]
crate-type = ["staticlib", "rlib", "cdylib"]

[dependencies]
assert_matches = "1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2025-05-01"
channel = "nightly-2025-04-30"

# Commented out targets to avoid downloading or caching all these during CI
# runs. See discussion on rav1d PR #1174. Uncomment to cross-compile locally.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(rustc_attrs)]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![cfg_attr(
any(target_arch = "riscv32", target_arch = "riscv64"),
Expand Down
9 changes: 9 additions & 0 deletions src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ pub static DAV1D_SGR_PARAMS: Align4<[[u16; 2]; 16]> = Align4([
[22, 0],
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_sgr_x_by_x: Align64<[u8; 256]> = Align64([
255, 128, 85, 64, 51, 43, 37, 32, 28, 26, 23, 21, 20, 18, 17, 16, 15, 14, 13, 13, 12, 12, 11,
Expand All @@ -692,6 +693,7 @@ pub static dav1d_sgr_x_by_x: Align64<[u8; 256]> = Align64([
1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_mc_subpel_filters: Align8<[[[i8; 8]; 15]; 6]> = Align8([
[
Expand Down Expand Up @@ -798,6 +800,7 @@ pub static dav1d_mc_subpel_filters: Align8<[[[i8; 8]; 15]; 6]> = Align8([
],
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_mc_warp_filter: Align8<[[i8; 8]; 193]> = Align8([
[0, 0, 127, 1, 0, 0, 0, 0],
Expand Down Expand Up @@ -995,6 +998,7 @@ pub static dav1d_mc_warp_filter: Align8<[[i8; 8]; 193]> = Align8([
[0, 0, 0, 0, 2, 127, -1, 0],
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_resize_filter: Align8<[[i8; 8]; 64]> = Align8([
[0, 0, 0, -128, 0, 0, 0, 0],
Expand Down Expand Up @@ -1063,6 +1067,7 @@ pub static dav1d_resize_filter: Align8<[[i8; 8]; 64]> = Align8([
[0, 0, 1, -2, -128, 1, 0, 0],
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_sm_weights: Align16<[u8; 128]> = Align16([
0, 0, 255, 128, 255, 149, 85, 64, 255, 197, 146, 105, 73, 50, 37, 32, 255, 225, 196, 170, 145,
Expand All @@ -1073,6 +1078,7 @@ pub static dav1d_sm_weights: Align16<[u8; 128]> = Align16([
32, 29, 27, 25, 22, 20, 18, 16, 15, 13, 12, 10, 9, 8, 7, 6, 6, 5, 5, 4, 4, 4,
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_dr_intra_derivative: [u16; 44] = [
0, 1023, 0, 547, 372, 0, 0, 273, 215, 0, 178, 151, 0, 132, 116, 0, 102, 0, 90, 80, 0, 71, 64,
Expand Down Expand Up @@ -1121,6 +1127,7 @@ const fn gen_filters(f: [[i8; 7]; 8]) -> Align64<[i8; 64]> {
Align64(a)
}

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_filter_intra_taps: [Align64<[i8; 64]>; 5] = [
gen_filters([
Expand Down Expand Up @@ -1175,13 +1182,15 @@ pub static dav1d_filter_intra_taps: [Align64<[i8; 64]>; 5] = [
]),
];

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_obmc_masks: Align16<[u8; 64]> = Align16([
0, 0, 19, 0, 25, 14, 5, 0, 28, 22, 16, 11, 7, 3, 0, 0, 30, 27, 24, 21, 18, 15, 12, 10, 8, 6, 4,
3, 0, 0, 0, 0, 31, 29, 28, 26, 24, 23, 21, 20, 19, 17, 16, 14, 13, 12, 11, 9, 8, 7, 6, 5, 4, 4,
3, 2, 0, 0, 0, 0, 0, 0, 0, 0,
]);

#[rustc_std_internal_symbol]
#[no_mangle]
pub static dav1d_gaussian_sequence: [i16; 2048] = [
56, 568, -180, 172, 124, -84, 172, -64, -900, 24, 820, 224, 1248, 996, 272, -8, -916, -388,
Expand Down
Loading