Consts
AV_PIX_FMT_FLAG_ALPHA = 128
AV_PIX_FMT_FLAG_BAYER = 256
AV_PIX_FMT_FLAG_FLOAT = 512
AV_PIX_FMT_FLAG_RGB = 32
FF_LOSS_ALPHA = 0x00000008
FF_LOSS_CHROMA = 0x00000020
FF_LOSS_COLORQUANT = 0x00000010
FF_LOSS_COLORSPACE = 0x00000004
FF_LOSS_DEPTH = 0x00000002
FF_LOSS_RESOLUTION = 0x00000001
Procs
proc av_chroma_location_from_name(name: cstring): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_chroma_location_name(lovation: AVChromaLocation): cstring {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_primaries_from_name(name: cstring): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_primaries_name(primaries: AVColorPrimaries): cstring {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_range_from_name(name: cstring): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_range_name(range: AVColorRange): cstring {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_space_from_name(name: cstring): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_space_name(space: AVColorSpace): cstring {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_transfer_from_name(name: cstring): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_color_transfer_name(transfer: AVColorTransferCharacteristic): cstring {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_find_best_pix_fmt_of_2(dst_pix_fmt1, dst_pix_fmt2, srcc_pix_fmt: AVPixelFormat; has_alpha: cint; loss_ptr: ptr cint): AVPixelFormat {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_bits_per_pixel(pixdesc: ptr AVPixFmtDescriptor): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_padded_bits_per_pixel(pixdesc: ptr AVPixFmtDescriptor): cint {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_pix_fmt(name: cstring): AVPixelFormat {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_pix_fmt_loss(dst_pix_fmt, src_pix_fmt: AVPixelFormat; has_alpha: cint): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_pix_fmt_name(pix_fmt: AVPixelFormat): cstring {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_pix_fmt_string(buf: cstring; buf_size: cint; pix_fmt: AVPixelFormat): cstring {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_count_planes(pix_fmt: AVPixelFormat): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_desc_get(pix_fmt: AVPixelFormat): ptr AVPixFmtDescriptor {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_desc_get_id(desc: ptr AVPixFmtDescriptor): AVPixelFormat {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_desc_next(prev: ptr AVPixFmtDescriptor): ptr AVPixFmtDescriptor {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_get_chroma_sub_sample(pix_fmt: AVPixelFormat; h_shift, v_shift: ptr cint): cint {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_pix_fmt_swap_endianness(pix_fmt: AVPixelFormat): AVPixelFormat {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_read_image_line(dst: ptr uint16; data: ptr ptr uint8; linesize: ptr cint; desc: ptr AVPixFmtDescriptor; x, y, c, w, read_pal_componnent: cint) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_read_image_line2(dst: pointer; data: ptr ptr uint8; linesize: ptr cint; desc: ptr AVPixFmtDescriptor; x, y, c, w, read_pal_component, dst_element_size: cint) {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_write_image_line(src: ptr uint16; data: ptr ptr uint8; linesize: ptr cint; desc: ptr AVPixFmtDescriptor; x, y, c, w: cint) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_write_image_line2(src: pointer; data: ptr ptr uint8; linesize: ptr cint; desc: ptr AVPixFmtDescriptor; x, y, c, w: cint) {. importc, cdecl, ...raises: [], tags: [], forbids: [].}