mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: change byte to u8 (#19930)
This commit is contained in:
parent
53e1e5e686
commit
cc220e60a5
22 changed files with 39 additions and 45 deletions
|
@ -188,7 +188,7 @@ fn C.stbi_write_bmp(filename &char, w int, h int, comp int, buffer &u8) int
|
|||
fn C.stbi_write_tga(filename &char, w int, h int, comp int, buffer &u8) int
|
||||
fn C.stbi_write_jpg(filename &char, w int, h int, comp int, buffer &u8, quality int) int
|
||||
|
||||
// fn C.stbi_write_hdr(filename &char, w int, h int, comp int, buffer &byte) int // buffer &byte => buffer &f32
|
||||
// fn C.stbi_write_hdr(filename &char, w int, h int, comp int, buffer &u8) int // buffer &u8 => buffer &f32
|
||||
|
||||
// stbi_write_png write on path a PNG file
|
||||
// row_stride_in_bytes is usually equal to: w * comp
|
||||
|
@ -222,7 +222,7 @@ pub fn stbi_write_jpg(path string, w int, h int, comp int, buf &u8, quality int)
|
|||
}
|
||||
|
||||
/*
|
||||
pub fn stbi_write_hdr(path string, w int, h int, comp int, buf &byte) ! {
|
||||
pub fn stbi_write_hdr(path string, w int, h int, comp int, buf &u8) ! {
|
||||
if 0 == C.stbi_write_hdr(&char(path.str), w , h , comp , buf){
|
||||
return error('stbi_image failed to write hdr file to "$path"')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue