File: video_enc_params.pxd

package info (click to toggle)
python-av 16.1.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,728 kB
  • sloc: python: 8,059; sh: 181; ansic: 174; makefile: 140
file content (25 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from libc.stdint cimport uint32_t, int32_t
from libc.stddef cimport size_t


cdef extern from "libavutil/video_enc_params.h" nogil:
    cdef enum AVVideoEncParamsType:
        AV_VIDEO_ENC_PARAMS_NONE
        AV_VIDEO_ENC_PARAMS_VP9
        AV_VIDEO_ENC_PARAMS_H264
        AV_VIDEO_ENC_PARAMS_MPEG2

    cdef struct AVVideoEncParams:
        uint32_t                nb_blocks
        size_t                  blocks_offset
        size_t                  block_size
        AVVideoEncParamsType    type
        int32_t                 qp
        int32_t                 delta_qp[4][2]

    cdef struct AVVideoBlockParams:
        int32_t     src_x
        int32_t     src_y
        int32_t     w
        int32_t     h
        int32_t     delta_qp