Bug 1684760 - Rename precache_output to PrecacheOutput. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D100631
This commit is contained in:
Jeff Muizelaar 2021-01-03 15:09:43 +00:00
Родитель d22a451eab
Коммит 09895f6d43
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -26,7 +26,7 @@ use std::{
sync::Arc,
};
use crate::transform::{precache_output, set_rgb_colorants};
use crate::transform::{PrecacheOuput, set_rgb_colorants};
use crate::{matrix::Matrix, s15Fixed16Number, s15Fixed16Number_to_float, Intent, Intent::*};
pub static SUPPORTS_ICCV4: AtomicBool = AtomicBool::new(cfg!(feature = "iccv4-enabled"));
@ -55,9 +55,9 @@ pub struct Profile {
pub(crate) mAB: Option<Box<lutmABType>>,
pub(crate) mBA: Option<Box<lutmABType>>,
pub(crate) chromaticAdaption: Matrix,
pub(crate) output_table_r: Option<Arc<precache_output>>,
pub(crate) output_table_g: Option<Arc<precache_output>>,
pub(crate) output_table_b: Option<Arc<precache_output>>,
pub(crate) output_table_r: Option<Arc<PrecacheOuput>>,
pub(crate) output_table_g: Option<Arc<PrecacheOuput>>,
pub(crate) output_table_b: Option<Arc<PrecacheOuput>>,
}
#[derive(Default)]

Просмотреть файл

@ -62,7 +62,7 @@ pub const FLOATSCALE: f32 = PRECACHE_OUTPUT_SIZE as f32;
pub const CLAMPMAXVAL: f32 = ((PRECACHE_OUTPUT_SIZE - 1) as f32) / PRECACHE_OUTPUT_SIZE as f32;
#[repr(C)]
pub struct precache_output {
pub struct PrecacheOuput {
/* We previously used a count of 65536 here but that seems like more
* precision than we actually need. By reducing the size we can
* improve startup performance and reduce memory usage. ColorSync on
@ -71,9 +71,9 @@ pub struct precache_output {
pub data: [u8; PRECACHE_OUTPUT_SIZE],
}
impl Default for precache_output {
fn default() -> precache_output {
precache_output {
impl Default for PrecacheOuput {
fn default() -> PrecacheOuput {
PrecacheOuput {
data: [0; PRECACHE_OUTPUT_SIZE],
}
}
@ -108,9 +108,9 @@ pub struct qcms_transform {
pub output_gamma_lut_g_length: usize,
pub output_gamma_lut_b_length: usize,
pub output_gamma_lut_gray_length: usize,
pub output_table_r: Option<Arc<precache_output>>,
pub output_table_g: Option<Arc<precache_output>>,
pub output_table_b: Option<Arc<precache_output>>,
pub output_table_r: Option<Arc<PrecacheOuput>>,
pub output_table_g: Option<Arc<PrecacheOuput>>,
pub output_table_b: Option<Arc<PrecacheOuput>>,
pub transform_fn: transform_fn_t,
}
@ -998,8 +998,8 @@ pub unsafe extern "C" fn qcms_transform_data_bgra_out_lut(
qcms_transform_data_template_lut::<BGRA>(transform, src, dest, length);
}
fn precache_create() -> Arc<precache_output> {
Arc::new(precache_output::default())
fn precache_create() -> Arc<PrecacheOuput> {
Arc::new(PrecacheOuput::default())
}
#[no_mangle]