FFmpeg
Typedefs | Functions
dnn_backend_native_layer_mathbinary.c File Reference
#include "dnn_backend_native.h"
#include "dnn_backend_native_layer_mathbinary.h"

Go to the source code of this file.

Typedefs

typedef float(* FunType) (float src0, float src1)
 

Functions

static float sub (float src0, float src1)
 
static float add (float src0, float src1)
 
static float mul (float src0, float src1)
 
static float realdiv (float src0, float src1)
 
static float minimum (float src0, float src1)
 
static float floormod (float src0, float src1)
 
static void math_binary_commutative (FunType pfun, const DnnLayerMathBinaryParams *params, const DnnOperand *input, DnnOperand *output, DnnOperand *operands, const int32_t *input_operand_indexes)
 
static void math_binary_not_commutative (FunType pfun, const DnnLayerMathBinaryParams *params, const DnnOperand *input, DnnOperand *output, DnnOperand *operands, const int32_t *input_operand_indexes)
 
int ff_dnn_load_layer_math_binary (Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
 
int ff_dnn_execute_layer_math_binary (DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
 

Detailed Description

DNN native backend implementation.

Definition in file dnn_backend_native_layer_mathbinary.c.

Typedef Documentation

◆ FunType

typedef float(* FunType) (float src0, float src1)

Definition at line 29 of file dnn_backend_native_layer_mathbinary.c.

Function Documentation

◆ sub()

static float sub ( float  src0,
float  src1 
)
static

Definition at line 31 of file dnn_backend_native_layer_mathbinary.c.

Referenced by add_event(), amrwb_decode_frame(), aqt_read_header(), ass_decode_frame(), ass_encode_frame(), ass_read_header(), avcodec_decode_subtitle2(), avcodec_encode_subtitle(), avsubtitle_free(), check_itxfm(), copy_subcoefs(), dct_unquantize_h263_axp(), dec_gain(), decode(), decode_frame(), decode_pixel_in_context(), decode_plane(), decoder_decode_frame(), display_end_segment(), do_subtitle_out(), dvbsub_decode(), dvbsub_display_end_segment(), dvbsub_parse_page_segment(), dvdsub_decode(), dvdsub_encode(), encode_frame(), encode_residual_ch(), ff_ass_add_rect(), ff_ass_add_rect2(), ff_dnn_execute_layer_math_binary(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ff_tx_init_subtx(), ffmpeg_cleanup(), find_subframe_rice_params(), get_subtitle_defaults(), h263_dct_unquantize_msa(), init_frame(), jacosub_decode_frame(), jacosub_read_header(), libaribb24_decode(), libaribb24_handle_regions(), lrc_read_header(), mcc_read_header(), metasound_read_bitstream(), microdvd_decode_frame(), microdvd_read_header(), mov_text_decode_frame(), mov_text_encode_frame(), mpl2_decode_frame(), mpl2_read_header(), mpsub_read_header(), nb_decode(), pjs_read_header(), process_frame(), read_and_decode_spectrum(), read_global_param(), realtext_decode_frame(), realtext_read_header(), remove_wasted_bits(), sami_decode_frame(), sami_read_header(), save_subtitle_set(), sb_decode(), scc_read_header(), show_subtitle(), srt_decode_frame(), srt_encode_frame(), stl_read_header(), sub2video_update(), subframe_count_exact(), subsampling_bounds(), subtitle_handler(), subviewer1_read_header(), subviewer_decode_frame(), subviewer_read_header(), teletext_decode_frame(), text_decode_frame(), text_encode_frame(), ttml_encode_frame(), twinvq_read_bitstream(), v4l2_prepare_decoder(), v4l2_subscribe_eos_event(), vplayer_read_header(), vulkan_map_frame_to_mem(), webvtt_decode_frame(), webvtt_encode_frame(), webvtt_read_header(), wrap(), and write_subframes().

◆ add()

static float add ( float  src0,
float  src1 
)
static

◆ mul()

static float mul ( float  src0,
float  src1 
)
static

◆ realdiv()

static float realdiv ( float  src0,
float  src1 
)
static

◆ minimum()

static float minimum ( float  src0,
float  src1 
)
static

◆ floormod()

static float floormod ( float  src0,
float  src1 
)
static

◆ math_binary_commutative()

static void math_binary_commutative ( FunType  pfun,
const DnnLayerMathBinaryParams params,
const DnnOperand input,
DnnOperand output,
DnnOperand operands,
const int32_t input_operand_indexes 
)
static

◆ math_binary_not_commutative()

static void math_binary_not_commutative ( FunType  pfun,
const DnnLayerMathBinaryParams params,
const DnnOperand input,
DnnOperand output,
DnnOperand operands,
const int32_t input_operand_indexes 
)
static

◆ ff_dnn_load_layer_math_binary()

int ff_dnn_load_layer_math_binary ( Layer layer,
AVIOContext model_file_context,
int  file_size,
int  operands_num 
)

Definition at line 100 of file dnn_backend_native_layer_mathbinary.c.

◆ ff_dnn_execute_layer_math_binary()

int ff_dnn_execute_layer_math_binary ( DnnOperand operands,
const int32_t input_operand_indexes,
int32_t  output_operand_index,
const void *  parameters,
NativeContext ctx 
)