src/ffmpeg/libavcodec/avcodec

Search:
Group by:

Consts

AV_CODEC_FLAG_CLOSED_GOP = 2147483648'u
AV_EF_AGGRESSIVE = 262144
AV_EF_CAREFUL = 65536
AV_EF_COMPLIANT = 131072
FF_BUG_AMV = 32
FF_BUG_EDGE = 1024
FF_BUG_IEDGE = 32768
FF_BUG_MS = 8192
FF_CMP_RD = 6
FF_CMP_W53 = 11
FF_CMP_W97 = 12
FF_DEBUG_BUFFERS = 0x00008000
FF_DEBUG_BUGS = 0x00001000
FF_DEBUG_DCT_COEFF = 0x00000040
FF_DEBUG_ER = 0x00000400
FF_DEBUG_GREEN_MD = 0x00800000
FF_DEBUG_MMCO = 0x00000800
FF_DEBUG_NOMC = 0x01000000
FF_DEBUG_SKIP = 0x00000080
FF_DEBUG_STARTCODE = 0x00000100
FF_DEBUG_THREADS = 0x00010000
FF_DEBUG_VIS_MV_B_BACK = 0x00000004
FF_DEBUG_VIS_MV_B_FOR = 0x00000002
FF_DEBUG_VIS_MV_P_FOR = 0x00000001
PARSER_FLAG_ONCE = 0x00000002
SLICE_FLAG_ALLOW_FIELD = 0x00000002
SLICE_FLAG_ALLOW_PLANE = 0x00000004
SLICE_FLAG_CODED_ORDER = 0x00000001

Procs

proc av_fast_padded_malloc(ptr: pointer; size: ptr uint; min_size: uint) {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_fast_padded_mallocz(ptr: pointer; size: ptr uint; min_size: uint) {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_audio_frame_duration(avvctx: ptr AVCodecContext; frame_bytes: cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_audio_frame_duration2(par: ptr AVCodecParameters; frame_bytes: cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_bits_per_sample(codec_id: AVCodecID): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc av_get_exact_bits_per_sample(codec_id: AVCodecID): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc av_get_pcm_codec(fmt: AVSampleFormat; be: cint): AVCodecID {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc av_get_profile_name(codec: ptr AVCodec; profile: cint): cstring {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc av_parser_change(s: ptr AVCodecParserContext; avctx: ptr AVCodecContext;
                      poutbuf: ptr ptr uint8; poutbuf_size: ptr cint;
                      buf: ptr uint8; buf_size: cint; keyframe: cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_parser_close(s: ptr AVCodecParserContext) {.importc, cdecl, ...raises: [],
    tags: [], forbids: [].}
proc av_parser_init(codec_id: cint): ptr AVCodecParserContext {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc av_parser_iterate(opaque: ptr pointer): ptr AVCodecParser {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc av_parser_parse2(s: ptr AVCodecParserContext; avctx: ptr AVCodecContext;
                      poutbuf: ptr ptr uint8; poutbuf_size: ptr cint;
                      buf: ptr uint8; buf_size: cint; pts: int64; dts: int64;
                      pos: int64): cint {.importc, cdecl, ...raises: [], tags: [],
    forbids: [].}
proc avcodec_align_dimensions(s: ptr AVCodecContext; width: ptr cint;
                              height: ptr cint) {.importc, cdecl, ...raises: [],
    tags: [], forbids: [].}
proc avcodec_align_dimensions2(s: ptr AVCodecContext; width: ptr cint;
                               height: ptr cint; linesize_align: ptr cint) {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_alloc_context3(codec: ptr AVCodec): ptr AVCodecContext {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_chroma_pos_to_enum(xpos: cint; ypos: cint): AVChromaLocation {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_close(avctx: ptr AVCodecContext): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_configuration(): cstring {.importc, cdecl, ...raises: [], tags: [],
                                        forbids: [].}
proc avcodec_decode_subtitle2(avctx: ptr AVCodecContext; sub: ptr AVSubtitle;
                              got_sub_ptr: ptr cint; avpkt: ptr AVPacket): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_default_execute(c: ptr AVCodecContext; func: proc (
    c2: ptr AVCodecContext; arg2: pointer): cint; arg: pointer; ret: ptr cint;
                             count: cint; size: cint): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_default_execute2(c: ptr AVCodecContext; func: proc (
    c2: ptr AVCodecContext; arg2: pointer; a3: cint; a4: cint): cint;
                              arg: pointer; ret: ptr cint; count: ptr cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_default_get_buffer2(s: ptr AVCodecContext; frame: ptr AVFrame;
                                 flags: cint): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_default_get_format(s: ptr AVCodecContext;
                                fmt: UncheckedArray[AVPixelFormat]): AVPixelFormat {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_encode_audio2(avctx: ptr AVCodecContext; avpkt: ptr AVPacket;
                           frame: ptr AVFrame; got_packet_ptr: ptr cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_encode_subtitle(avctx: ptr AVCodecContext; buf: ptr uint8;
                             buf_size: cint; sub: ptr AVSubtitle): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_encode_video2(avctx: ptr AVCodecContext; avpkt: ptr AVPacket;
                           frame: ptr AVFrame; got_packet_ptr: ptr cint): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_enum_to_chroma_pos(xpos: ptr cint; ypos: ptr cint;
                                pos: AVChromaLocation): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_fill_audio_frame(frame: ptr AVFrame; nb_channels: cint;
                              sample_fmt: AVSampleFormat; buf: ptr uint8;
                              buf_size: cint; align: cint): cint {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_find_best_pix_fmt_of_list(pix_fmt_list: UncheckedArray[
    AVPixelFormat]; src_pix_fmt: AVPixelFormat; has_alpha: cint;
                                       loss_ptr: ptr cint): AVPixelFormat {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_flush_buffers(avctx: ptr AVCodecContext) {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_free_context(avctx: ptr ptr AVCodecContext) {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_get_class(): ptr AVClass {.importc, cdecl, ...raises: [], tags: [],
                                        forbids: [].}
proc avcodec_get_hw_frames_parameters(avctx: ptr AVCodecContext;
                                      device_ref: ptr AVBufferRef;
                                      hw_pix_fmt: AVPixelFormat;
                                      out_frames_ref: ptr ptr AVBufferRef): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_is_open(s: ptr AVCodecContext): cint {.importc, cdecl, ...raises: [],
    tags: [], forbids: [].}
proc avcodec_license(): cchar {.importc, cdecl, ...raises: [], tags: [],
                                forbids: [].}
proc avcodec_open2(avctx: ptr AVCodecContext; codec: ptr AVCodec;
                   options: ptr ptr AVDictionary): cint {.importc, cdecl,
    ...raises: [], tags: [], forbids: [].}
proc avcodec_parameters_from_context(par: ptr AVCodecParameters;
                                     codec: ptr AVCodecContext): cint {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_parameters_to_context(codec: ptr AVCodecContext;
                                   par: ptr AVCodecParameters): cint {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_pix_fmt_to_codec_tag(pix_fmt: AVPixelFormat): uint {.importc,
    cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_profile_name(codec_id: AVCodecID; profile: cint): cstring {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_receive_frame(avctx: ptr AVCodecContext; frame: ptr AVFrame): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_receive_packet(avctx: ptr AVCodecContext; avpkt: ptr AVPacket): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_send_frame(avctx: ptr AVCodecContext; frame: ptr AVFrame): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_send_packet(avctx: ptr AVCodecContext; avpkt: ptr AVPacket): cint {.
    importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc avcodec_string(buf: cstring; buf_size: cint; enc: ptr AVCodecContext;
                    encode: cint) {.importc, cdecl, ...raises: [], tags: [],
                                    forbids: [].}
proc avcodec_version(): cuint {.importc, cdecl, ...raises: [], tags: [],
                                forbids: [].}
proc avsubtitle_free(sub: ptr AVSubtitle) {.importc, cdecl, ...raises: [],
    tags: [], forbids: [].}