Giter Site home page Giter Site logo

rust-openh264-sys's Introduction

OpenH264-Sys

该库采用静态链接的方式直接链接 libopenh264.1.8.0.a ,所以你的系统里面如果装了其它的版本的话,并不会因此而受到一些版本问题的困扰。

请确保你的操作系统已经有了以下命令行程序可供使用(大部分系统里面都已经内置):

  • make
  • git
  • cc(gcc/clang)
  • c++(g++/clang++)
  • ar
  • nasm
git clone --recurse-submodules -j8 https://github.com/LuoZijun/rust-openh264-sys.git
cargo build
cargo test

Cargo.toml:

[dependencies]
openh264-sys = { git = "https://github.com/LuoZijun/rust-openh264-sys" }

src/main.rs:

extern crate openh264_sys;

fn main() {
    let version: OpenH264Version = unsafe { WelsGetCodecVersion() };
    println!("{:?}", version);
}

更友好的高阶接口: https://github.com/LuoZijun/rust-openh264

saturday06/rust-openh264-sys , 目前不支持静态链接

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.