File: hwaccel.pxd

package info (click to toggle)
python-av 16.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: python: 7,607; sh: 182; ansic: 174; makefile: 135
file content (19 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cdef extern from "libavcodec/avcodec.h" nogil:
    cdef enum:
        AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX,
        AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX,
        AV_CODEC_HW_CONFIG_METHOD_INTERNAL,
        AV_CODEC_HW_CONFIG_METHOD_AD_HOC,
    cdef struct AVCodecHWConfig:
        AVPixelFormat pix_fmt
        int methods
        AVHWDeviceType device_type
    cdef const AVCodecHWConfig* avcodec_get_hw_config(const AVCodec *codec, int index)
    cdef enum:
        AV_HWACCEL_CODEC_CAP_EXPERIMENTAL
    cdef struct AVHWAccel:
        char *name
        AVMediaType type
        AVCodecID id
        AVPixelFormat pix_fmt
        int capabilities