feat: video publishing (#42)
- Prepare webrtc abstraction ( for future wasm support ) - Added track publish support for videos - Added LogoTrack example to simple_room demo - Lot of cleanup - There are compiler warnings I'll solve on our v1 release
This commit is contained in:
@@ -14,7 +14,7 @@ pub mod ffi {
|
||||
dst_stride_argb: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
);
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn i420_to_bgra(
|
||||
src_y: *const u8,
|
||||
@@ -27,7 +27,7 @@ pub mod ffi {
|
||||
dst_stride_bgra: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
);
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn i420_to_abgr(
|
||||
src_y: *const u8,
|
||||
@@ -40,7 +40,7 @@ pub mod ffi {
|
||||
dst_stride_abgr: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
);
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn i420_to_rgba(
|
||||
src_y: *const u8,
|
||||
@@ -53,6 +53,41 @@ pub mod ffi {
|
||||
dst_stride_rgba: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
);
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn argb_to_i420(
|
||||
src_argb: *const u8,
|
||||
src_stride_argb: i32,
|
||||
dst_y: *mut u8,
|
||||
dst_stride_y: i32,
|
||||
dst_u: *mut u8,
|
||||
dst_stride_u: i32,
|
||||
dst_v: *mut u8,
|
||||
dst_stride_v: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn abgr_to_i420(
|
||||
src_abgr: *const u8,
|
||||
src_stride_abgr: i32,
|
||||
dst_y: *mut u8,
|
||||
dst_stride_y: i32,
|
||||
dst_u: *mut u8,
|
||||
dst_stride_u: i32,
|
||||
dst_v: *mut u8,
|
||||
dst_stride_v: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
) -> Result<()>;
|
||||
|
||||
unsafe fn argb_to_rgb24(
|
||||
src_argb: *const u8,
|
||||
src_stride_argb: i32,
|
||||
dst_rgb24: *mut u8,
|
||||
dst_stride_rgb24: i32,
|
||||
width: i32,
|
||||
height: i32,
|
||||
) -> Result<()>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user