package core:image/jpeg

⌘K
Ctrl+K
or
/

    Types

    Block ¶

    Block :: [Component][64]i16
     

    8x8 block of pixels

    Coefficient ¶

    Coefficient :: enum u8 {
    	DC, 
    	AC, 
    }

    Color_Component ¶

    Color_Component :: struct {
    	dc_table_idx:           u8,
    	ac_table_idx:           u8,
    	quantization_table_idx: u8,
    	v_sampling_factor:      int,
    	h_sampling_factor:      int,
    }

    Component ¶

    Component :: enum u8 {
    	Y  = 1, 
    	Cb = 2, 
    	Cr = 3, 
    }

    Error ¶

    Error :: image.Error

    Huffman_Table ¶

    Huffman_Table :: struct {
    	symbols: [176]u8,
    	codes:   [176]u32,
    	offsets: [17]u8,
    }

    Image ¶

    Image :: image.Image

    Options ¶

    Options :: image.Options

    Quantization_Table ¶

    Quantization_Table :: [64]u16be

    Constants

    BLOCK_SIZE ¶

    BLOCK_SIZE: int : 8

    COEFFICIENT_COUNT ¶

    COEFFICIENT_COUNT: int : BLOCK_SIZE * BLOCK_SIZE

    HUFFMAN_MAX_BITS ¶

    HUFFMAN_MAX_BITS: int : 16

    HUFFMAN_MAX_SYMBOLS ¶

    HUFFMAN_MAX_SYMBOLS: int : 176

    SEGMENT_MAX_SIZE ¶

    SEGMENT_MAX_SIZE: int : 65533

    THUMBNAIL_PALETTE_SIZE ¶

    THUMBNAIL_PALETTE_SIZE: int : 768
     

    768 bytes of 24-bit RGB values.

    Variables

    This section is empty.

    Procedures

    destroy ¶

    destroy :: proc(img: ^image.Image) {…}

    load_from_bytes ¶

    load_from_bytes :: proc(data: []u8, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}

    load_from_context ¶

    load_from_context :: proc(ctx: ^$C, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}

    load_from_file ¶

    load_from_file :: proc(filename: string, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}

    Procedure Groups

    Source Files

    Generation Information

    Generated with odin version dev-2025-09 (vendor "odin") Windows_amd64 @ 2025-09-08 21:13:26.573212000 +0000 UTC