mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 02:10:51 +00:00
Co-authored-by: Gustavo Maciel <gus@tavomaciel>
This commit is contained in:
@@ -1759,7 +1759,7 @@ pub const Init = extern struct {
|
||||
pub const VideoDecoderInit = extern struct {
|
||||
magic: u32,
|
||||
codec: VideoCodec,
|
||||
parameterSets: [*c]const uint8_t,
|
||||
parameterSets: [*c]const u8,
|
||||
parameterSetsSize: u32,
|
||||
cachedAuBytes: u32,
|
||||
flags: u8,
|
||||
@@ -1772,7 +1772,7 @@ pub const Init = extern struct {
|
||||
|
||||
pub const VideoDecoderFrame = extern struct {
|
||||
magic: u32,
|
||||
bitstream: [*c]const uint8_t,
|
||||
bitstream: [*c]const u8,
|
||||
aus: [*c]const VideoDecoderAu,
|
||||
numAus: u32,
|
||||
presentationTimeUs: i64,
|
||||
|
||||
@@ -75,6 +75,8 @@ local function convert_type_0(arg)
|
||||
return arg.ctype:gsub("float", "f32")
|
||||
elseif arg.ctype == "const char*" then
|
||||
return "[*c]const u8"
|
||||
elseif arg.ctype == "const uint8_t*" then
|
||||
return "[*c]const u8"
|
||||
elseif hasPrefix(arg.ctype, "char") then
|
||||
return arg.ctype:gsub("char", "u8")
|
||||
elseif hasSuffix(arg.fulltype, "Handle") then
|
||||
|
||||
Reference in New Issue
Block a user