rust-av/av-metrics

Apply cargo-c on av-metrics

Luni-4 opened this issue · 2 comments

Allow C/C++ projects to use av-metrics

  • create a capi.rs
  • conditionally add it depending on the cargo_c feature
  • write an example in the c-example/ directory

Missing frame metrics API, here's a prototype

const *MetricType calculate_frame_metric(
    const uint8_t *frame1_data[3],
    const usize frame1_strides[3],
    const uint8_t *frame2_data[3],
    const usize frame2_strides[3],
    uint32_t width,
    uint32_t height,
    uint32_t bitdepth,
    enum Colorspace color
)

@dwbuiten

For now I'm no more interested in C-API, so if you want, you can close this issue :)