Export option payload structs and enums in cxx_api.rs.h

- Add SEncoderStatistics, SDecoderStatistics, SVuiSarInfo,
  SBitrateInfo, SLTRRecoverRequest, SLTRMarkingFeedback, SLTRConfig,
  SProfileInfo, SLevelInfo, SDeliveryStatus, LAYER_NUM, and
  KEY_FRAME_REQUEST_TYPE to #[cxx::bridge] in cxx_api.rs, along with
  Default implementations.
- Convert rust_types::SEncoderStatistics to ffi::SEncoderStatistics in
  ISVCEncoder::get_option for ENCODER_OPTION_GET_STATISTICS so the u64
  byte/frame counters in cxx_api.rs.h are layout-safe across LP64 and
  LLP64.

Bug: 527969915
Change-Id: Id17e610c21c2bbada7d81daea567aef680de319b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/third_party/openh264rs/+/8710115
Reviewed-by: Frank Liberato <liberato@google.com>
Reviewed-by: Eugene Zemtsov <ezemtsov@google.com>
Reviewed-by: Frank Liberato <liberato@chromium.org>
1 file changed
tree: da55acd20e7ce336ab1fc938434867fab66dd798
  1. benches/
  2. src/
  3. tests/
  4. tools/
  5. .gitignore
  6. build.rs
  7. Cargo.toml
  8. LICENSE_CHROMIUM
  9. LICENSE_CISCO
  10. OWNERS
  11. README.md
  12. rustfmt.toml
  13. sources.gni
README.md

openh264rs

Rust port of Cisco OpenH264 (H.264/AVC encoder and decoder). Designed as a source-level drop-in replacement for the C and C++ APIs of OpenH264.