|
FFmpeg
|
#include <math.h>#include <stdlib.h>#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "libavutil/vulkan.h"#include "libavutil/vulkan_spirv.h"#include "avcodec.h"#include "codec_internal.h"#include "encode.h"#include "hwconfig.h"#include "internal.h"#include "apv.h"#include "cbs.h"#include "cbs_apv.h"Go to the source code of this file.
Data Structures | |
| struct | DCTPushData |
| struct | EntropyPushData |
| struct | CompactPushData |
| struct | VulkanEncodeAPVFrameData |
| struct | VulkanEncodeAPVContext |
Macros | |
| #define | APV_DEFAULT_QMAT 16 |
| #define | APV_MAX_NUM_COMP 4 |
| #define | OFFSET(x) offsetof(VulkanEncodeAPVContext, x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Enumerations | |
| enum | { APV_QMATRIX_FLAT = 0, APV_QMATRIX_HEVC = 1 } |
Functions | |
| static int | apv_qmatrix_value (int qmatrix, int i) |
| static int | chroma_format_from_pix_fmt (enum AVPixelFormat sw_fmt) |
| static int | profile_idc_from_pix_fmt (enum AVPixelFormat sw_fmt) |
| static int | init_dct_shader (AVCodecContext *avctx) |
| static int | init_entropy_shader (AVCodecContext *avctx, int blocks_per_mb, FFVulkanShader *shd) |
| static int | init_compact_shader (AVCodecContext *avctx) |
| static void | build_dct_push_const (AVCodecContext *avctx) |
| static int | submit_frame (AVCodecContext *avctx, FFVkExecContext *exec, AVFrame *frame) |
| static int | build_packet (AVCodecContext *avctx, FFVkExecContext *exec, AVPacket *pkt) |
| static int | vulkan_encode_apv_receive_packet (AVCodecContext *avctx, AVPacket *pkt) |
| static av_cold int | vulkan_encode_apv_close (AVCodecContext *avctx) |
| static av_cold int | vulkan_encode_apv_init (AVCodecContext *avctx) |
Variables | |
| const unsigned char | ff_apv_encode_dct_comp_spv_data [] |
| const unsigned int | ff_apv_encode_dct_comp_spv_len |
| const unsigned char | ff_apv_encode_tiles_comp_spv_data [] |
| const unsigned int | ff_apv_encode_tiles_comp_spv_len |
| const unsigned char | ff_seg_gather_comp_spv_data [] |
| const unsigned int | ff_seg_gather_comp_spv_len |
| static const uint8_t | apv_qmat_hevc_intra [64] |
| static const uint8_t | apv_level_scale [6] = { 40, 45, 51, 57, 64, 71 } |
| static const AVOption | vulkan_encode_apv_options [] |
| static const FFCodecDefault | vulkan_encode_apv_defaults [] |
| static const AVClass | vulkan_encode_apv_class |
| static const AVCodecHWConfigInternal *const | vulkan_encode_apv_hw_configs [] |
| const FFCodec | ff_apv_vulkan_encoder |
| #define APV_DEFAULT_QMAT 16 |
Definition at line 49 of file apv_encode_vulkan.c.
| #define APV_MAX_NUM_COMP 4 |
Definition at line 50 of file apv_encode_vulkan.c.
| #define OFFSET | ( | x | ) | offsetof(VulkanEncodeAPVContext, x) |
Definition at line 1041 of file apv_encode_vulkan.c.
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 1042 of file apv_encode_vulkan.c.
| anonymous enum |
| Enumerator | |
|---|---|
| APV_QMATRIX_FLAT | |
| APV_QMATRIX_HEVC | |
Definition at line 180 of file apv_encode_vulkan.c.
|
static |
Definition at line 191 of file apv_encode_vulkan.c.
Referenced by build_dct_push_const(), and build_packet().
|
static |
Definition at line 199 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 219 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 233 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 273 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 314 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 350 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_init().
|
static |
Definition at line 391 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_receive_packet().
|
static |
Definition at line 601 of file apv_encode_vulkan.c.
Referenced by vulkan_encode_apv_receive_packet().
|
static |
Definition at line 757 of file apv_encode_vulkan.c.
|
static |
Definition at line 807 of file apv_encode_vulkan.c.
|
static |
Definition at line 844 of file apv_encode_vulkan.c.
| const unsigned char ff_apv_encode_dct_comp_spv_data[] |
Referenced by init_dct_shader().
| const unsigned int ff_apv_encode_dct_comp_spv_len |
Referenced by init_dct_shader().
| const unsigned char ff_apv_encode_tiles_comp_spv_data[] |
Referenced by init_entropy_shader().
| const unsigned int ff_apv_encode_tiles_comp_spv_len |
Referenced by init_entropy_shader().
| const unsigned char ff_seg_gather_comp_spv_data[] |
Referenced by init_compact_shader().
| const unsigned int ff_seg_gather_comp_spv_len |
Referenced by init_compact_shader().
|
static |
Definition at line 169 of file apv_encode_vulkan.c.
Referenced by apv_qmatrix_value().
|
static |
Definition at line 197 of file apv_encode_vulkan.c.
Referenced by apv_decode_tile_component(), and build_dct_push_const().
|
static |
Definition at line 1043 of file apv_encode_vulkan.c.
|
static |
Definition at line 1067 of file apv_encode_vulkan.c.
|
static |
Definition at line 1072 of file apv_encode_vulkan.c.
|
static |
Definition at line 1079 of file apv_encode_vulkan.c.
| const FFCodec ff_apv_vulkan_encoder |
Definition at line 1084 of file apv_encode_vulkan.c.
1.8.17