package core:image/netpbm
⌘K
Ctrl+K
or
/
Index
Variables (0)
This section is empty.
Types
Format ¶
Format :: image.Netpbm_Format
Format_Error ¶
Format_Error :: image.Netpbm_Error
Formats ¶
Formats :: bit_set[image.Netpbm_Format]
Header ¶
Header :: image.Netpbm_Header
Info ¶
Info :: image.Netpbm_Info
Constants
ASCII ¶
ASCII: bit_set[image.Netpbm_Format] : Formats{.P1, .P2, .P3}
BINARY ¶
BINARY: bit_set[image.Netpbm_Format] : Formats{.P4, .P5, .P6} + PAM + PFM
PAM ¶
PAM: bit_set[image.Netpbm_Format] : Formats{.P7}
PBM ¶
PBM: bit_set[image.Netpbm_Format] : Formats{.P1, .P4}
PFM ¶
PFM: bit_set[image.Netpbm_Format] : Formats{.Pf, .PF}
PGM ¶
PGM: bit_set[image.Netpbm_Format] : Formats{.P2, .P5}
PNM ¶
PNM: bit_set[image.Netpbm_Format] : PBM + PGM + PPM
PPM ¶
PPM: bit_set[image.Netpbm_Format] : Formats{.P3, .P6}
Variables
This section is empty.
Procedures
autoselect_pbm_format_from_image ¶
autoselect_pbm_format_from_image :: proc(img: ^image.Image, prefer_binary: bool = true, force_black_and_white: bool = false, pfm_scale: f32 = f32(1.0)) -> (res: image.Netpbm_Info, ok: bool) {…}
Automatically try to select an appropriate format to save to based on img.channel
and img.depth
decode_image ¶
decode_image :: proc(img: ^image.Image, header: image.Netpbm_Header, data: []u8, allocator := context.allocator) -> (err: image.Error) {…}
header_destroy ¶
header_destroy :: proc( using header: ^image.Netpbm_Header) {…}
load_from_bytes ¶
load_from_bytes :: proc(data: []u8, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
load_from_file ¶
load_from_file :: proc(filename: string, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
parse_header ¶
parse_header :: proc(data: []u8, allocator := context.allocator) -> (header: image.Netpbm_Header, length: int, err: image.Error) {…}
save_to_buffer ¶
save_to_buffer :: proc(img: ^image.Image, custom_info: image.Netpbm_Info = {}, allocator := context.allocator) -> (buffer: []u8, err: image.Error) {…}
save_to_file ¶
save_to_file :: proc(filename: string, img: ^image.Image, custom_info: image.Netpbm_Info = {}, allocator := context.allocator) -> (err: image.Error) {…}
Procedure Groups
load ¶
load :: proc{ load_from_file, load_from_bytes, }
save ¶
save :: proc{ save_to_file, save_to_buffer, }
Source Files
Generation Information
Generated with odin version dev-2023-06 (vendor "odin") Windows_amd64 @ 2023-06-02 21:08:32.495568400 +0000 UTC