Skip to content

Commit

Permalink
Use larger LUT for CRC computation
Browse files Browse the repository at this point in the history
Results in a ~15% speed up
  • Loading branch information
quietvoid committed Jun 15, 2024
1 parent 9dc7fb2 commit cdc64e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dolby_vision/src/rpu/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crc::{Crc, CRC_32_MPEG_2};
use crc::{Crc, Table, CRC_32_MPEG_2};

pub mod dovi_rpu;
pub mod extension_metadata;
Expand All @@ -11,7 +11,7 @@ pub mod vdr_dm_data;

pub mod utils;

static CRC32_INSTANCE: Crc<u32> = Crc::<u32>::new(&CRC_32_MPEG_2);
static CRC32_INSTANCE: Crc<u32, Table<16>> = Crc::<u32, Table<16>>::new(&CRC_32_MPEG_2);

pub const NUM_COMPONENTS: usize = 3;

Expand Down

0 comments on commit cdc64e3

Please sign in to comment.