FFmpeg
Loading...
Searching...
No Matches
libkvazaar.c File Reference
#include <kvazaar.h>
#include <stdint.h>
#include <string.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/dict.h"
#include "libavutil/error.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "encode.h"

Go to the source code of this file.

Data Structures

struct  LibkvazaarContext
 

Macros

#define OFFSET(x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static av_cold int libkvazaar_init (AVCodecContext *avctx)
 
static av_cold int libkvazaar_close (AVCodecContext *avctx)
 
static int libkvazaar_encode (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

static enum AVPixelFormat pix_fmts []
 
static const AVOption options []
 
class { 
 
      class_name = "libkvazaar" 
 
      item_name = av_default_item_name 
 
      option = options 
 
      version = LIBAVUTIL_VERSION_INT 
 
};  
 
static const FFCodecDefault defaults []
 
const FFCodec ff_libkvazaar_encoder
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 301 of file libkvazaar.c.

◆ VE

Definition at line 302 of file libkvazaar.c.

Function Documentation

◆ libkvazaar_init()

static av_cold int libkvazaar_init ( AVCodecContext * avctx)
static

Definition at line 51 of file libkvazaar.c.

◆ libkvazaar_close()

static av_cold int libkvazaar_close ( AVCodecContext * avctx)
static

Definition at line 151 of file libkvazaar.c.

◆ libkvazaar_encode()

static int libkvazaar_encode ( AVCodecContext * avctx,
AVPacket * avpkt,
const AVFrame * frame,
int * got_packet_ptr )
static

Definition at line 163 of file libkvazaar.c.

Variable Documentation

◆ pix_fmts

enum AVPixelFormat pix_fmts[]
static
Initial value:
= {
}
@ AV_PIX_FMT_NONE
Definition pixfmt.h:72
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition pixfmt.h:73

Definition at line 296 of file libkvazaar.c.

Referenced by AVFILTER_DEFINE_CLASS_EXT(), configure_video_filters(), cuvid_decode_init(), cuvid_handle_video_sequence(), cuvid_prepare_format_list(), decode_frame_header(), DEF_CHOOSE_FORMAT(), drm_transfer_get_formats(), encode_frames(), encode_preinit_video(), ff_default_get_supported_config(), ff_mjpeg_decode_sof(), ff_vaapi_vpp_query_formats(), geq_query_formats(), get_format(), get_format(), get_format(), get_format(), get_format(), get_hw_format(), get_pixel_format(), get_pixel_format(), get_pixel_format(), get_pixel_format(), get_pixel_format(), get_pixel_format(), get_pixel_format(), get_vaapi_format(), init(), LLVMFuzzerTestOneInput(), main(), main(), mediacodec_dec_get_video_codec(), mpeg_get_pixelformat(), open_output_file(), qsv_decode_preinit(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), query_formats(), update_size(), and vaapi_transfer_get_formats().

◆ options

const AVOption options[]
static
Initial value:
= {
{ "kvazaar-params", "Set kvazaar parameters as a comma-separated list of key=value pairs.",
OFFSET(kvz_params), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, VE },
{ NULL },
}
#define VE
Definition amfenc_av1.c:30
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition opt.h:275

Definition at line 303 of file libkvazaar.c.

◆ class_name

class_name = "libkvazaar"
private

Definition at line 310 of file libkvazaar.c.

Referenced by av_opt_show2().

◆ item_name

item_name = av_default_item_name
private

Definition at line 311 of file libkvazaar.c.

Referenced by format_line(), and mov_read_infe().

◆ option

option = options
private

Definition at line 312 of file libkvazaar.c.

Referenced by check_avoptions_used(), set_expr(), set_expr(), set_expr(), set_expr(), and set_expr().

◆ version

version = LIBAVUTIL_VERSION_INT
private

Definition at line 313 of file libkvazaar.c.

Referenced by adpcm_compress_trellis(), aiff_read_header(), amf_load_library(), amf_parse_object(), ape_probe(), atrac3_decode_init(), atrac9_decode_init(), cbs_h264_split_fragment(), cbs_h265_split_fragment(), cbs_lcevc_split_fragment(), check_file_header(), checkasm_check_key(), cine_read_header(), codec2_read_header(), decklink_create_iterator(), decode_frame(), decode_frame(), decode_frame_header(), decode_header(), decode_header(), decode_init(), dfa_decode_frame(), dfa_read_header(), do_apply_filter(), drm_device_create(), dss_read_header(), dvbsub_parse_clut_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dwa_uncompress(), ebml_write_header(), ff_av1_parse_seq_header(), ff_hls_write_playlist_header(), ff_hls_write_playlist_version(), ff_is_dtls_packet(), ff_mov_read_chnl(), ff_mss12_decode_init(), ff_opus_parse_extradata(), ff_rac_terminate(), ff_wma_get_frame_len_bits(), ff_wma_run_level_decode(), ffv1_vk_buffer_size(), fsb_read_header(), fwse_read_header(), get_aiff_header(), get_packet_header(), hash_uri(), hca_read_header(), id3v2_parse(), iff_read_header(), init_decode_shader(), init_hca(), init_idct_shader(), libdav1d_parse_extradata(), magy_decode_frame(), main(), mkv_write_header(), mov_cenc_write_saio_tag(), mov_metadata_creation_time(), mov_parse_stsd_audio(), mov_read_chnl(), mov_read_chpl(), mov_read_coll(), mov_read_elst(), mov_read_iinf(), mov_read_iloc(), mov_read_infe(), mov_read_iprp(), mov_read_iref(), mov_read_iref_cdsc(), mov_read_iref_dimg(), mov_read_kind(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pcmc(), mov_read_pssh(), mov_read_SA3D(), mov_read_saio(), mov_read_SAND(), mov_read_sbgp(), mov_read_sgpd(), mov_read_sidx(), mov_read_smdm(), mov_read_sv3d(), mov_read_tenc(), mov_read_tfdt(), mov_read_tkhd(), mov_read_vpcc(), mov_write_audio_tag(), mov_write_edts_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_tkhd_tag(), mp3_parse_info_tag(), mpegts_write_section1(), musx_probe(), musx_read_header(), mv_read_header(), mxf_write_identification(), ogg_read_page(), parse_decoder_init(), parse_models(), parse_psfile(), parse_psfile(), pixlet_decode_frame(), process_line(), prores_raw_parse(), rac_check_termination(), read_header(), read_header(), read_tfra(), read_tfra(), rm_read_audio_stream_info(), rsd_read_header(), shn_probe(), slicecontext_init(), smjpeg_read_header(), spdif_header_mpeg(), swf_write_header(), txd_decode_frame(), update_av_program_info(), update_size_and_version(), vble_decode_frame(), voc_probe(), voc_write_header(), vp3_decode_frame(), vp9_encode_set_roi(), wsd_read_header(), and xwd_decode_frame().

◆ [class]

const AVClass class { ... }

◆ defaults

const FFCodecDefault defaults[]
static
Initial value:
= {
{ "b", "0" },
{ NULL },
}

Definition at line 316 of file libkvazaar.c.

◆ ff_libkvazaar_encoder

const FFCodec ff_libkvazaar_encoder
Initial value:
= {
.p.name = "libkvazaar",
CODEC_LONG_NAME("libkvazaar H.265 / HEVC"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY |
.p.priv_class = &class,
.priv_data_size = sizeof(LibkvazaarContext),
.close = libkvazaar_close,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP |
.p.wrapper_name = "libkvazaar",
}
static const FFCodecDefault defaults[]
Definition amfenc_av1.c:723
#define CODEC_PIXFMTS_ARRAY(array)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_OTHER_THREADS
Codec supports multithreading through a method other than slice- or frame-level multithreading.
Definition codec.h:112
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition codec.h:79
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_HEVC
Definition codec_id.h:223
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int libkvazaar_init(AVCodecContext *avctx)
Definition libkvazaar.c:51
static av_cold int libkvazaar_close(AVCodecContext *avctx)
Definition libkvazaar.c:151
static enum AVPixelFormat pix_fmts[]
Definition libkvazaar.c:296
static int libkvazaar_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition libkvazaar.c:163
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
Definition pixfmt.h:766
@ AVCOL_RANGE_JPEG
Full range content.
Definition pixfmt.h:783

Definition at line 321 of file libkvazaar.c.