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