ispc-downsampler 0.4.0

Image downsampler crate using ISPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
struct WeightDimensions {
    float src_center;
    float src_start;
    float src_end;
};

struct WeightCollection {
    uniform const uint32* starts;
    uniform const uint32* weight_counts;
    uniform const float* const* values;
};

struct SampleWeights {
    uniform const WeightCollection* vertical_weights;
    uniform const WeightCollection* horizontal_weights;
};