Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply cargo-c on av-metrics #28

Open
3 tasks done
Luni-4 opened this issue Oct 14, 2019 · 2 comments · Fixed by #37
Open
3 tasks done

Apply cargo-c on av-metrics #28

Luni-4 opened this issue Oct 14, 2019 · 2 comments · Fixed by #37
Assignees
Labels
enhancement New feature or request

Comments

@Luni-4
Copy link
Member

Luni-4 commented Oct 14, 2019

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
@Luni-4 Luni-4 added the enhancement New feature or request label Oct 14, 2019
@Luni-4 Luni-4 reopened this Nov 27, 2019
@Luni-4
Copy link
Member Author

Luni-4 commented Nov 27, 2019

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
)

@Luni-4 Luni-4 removed their assignment May 7, 2020
@dwbuiten dwbuiten self-assigned this May 12, 2020
@Luni-4
Copy link
Member Author

Luni-4 commented Jan 13, 2021

@dwbuiten

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants