Procs
proc av_buffer_alloc(size: csize_t): ptr AVBufferRef {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_allocz(size: csize_t): ptr AVBufferRef {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_create(data: ptr uint8; size: csize_t; free: proc (opaque: pointer; data: ptr uint8); opaque: pointer; flags: cint): ptr AVBufferRef {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_default_free(opaque: pointer; data: ptr uint8) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_get_opaque(buf: ptr AVBufferRef) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_get_ref_count(ubf: ptr AVBufferRef): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_is_writable(buf: ptr AVBufferRef): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_make_writable(buf: ptr ptr AVBufferRef): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_pool_buffer_get_opaque(ref: ptr AVBufferRef) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_pool_get(pool: ptr AVBufferPool): AVBufferRef {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_pool_init(size: csize_t; alloc: proc (size: csize_t): ptr AVBufferRef): AVBufferPool {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_pool_init2(size: csize_t; opaque: pointer; alloc: proc ( opaque: pointer; size: csize_t): ptr AVBufferRef; pool_free: proc (opaque: pointer)): ptr AVBufferPool {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_pool_uninit(pool: ptr ptr AVBufferPool) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_realloc(buf: ptr ptr AVBufferRef; size: csize_t): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_ref(buf: ptr AVBufferRef): ptr AVBufferRef {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_replace(dst: ptr ptr AVBufferRef; src: ptr AVBufferRef): cint {. importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_buffer_unref(buf: ptr ptr AVBufferRef) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}