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(), aribcaption_decode(), aribcaption_trans_ass_subtitle(), aribcaption_trans_bitmap_subtitle(), aribcaption_trans_text_subtitle(), 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(), dvbsub_decode(), dvbsub_display_end_segment(), dvbsub_parse_page_segment(), dvdsub_decode(), dvdsub_encode(), enc_subtitle(), 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(), fg_free(), 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

Definition at line 35 of file dnn_backend_native_layer_mathbinary.c.

Referenced by ac_decode_bool(), add_yblock(), adpcm_agm_expand_nibble(), ath(), comp(), comp_block(), dct_unquantize_h263_axp(), decode_blocks(), decode_mb(), decode_plane(), convert_from_tensorflow.TFConverter::dump_avg_pool_to_file(), convert_from_tensorflow.TFConverter::dump_complex_conv2d_to_file(), convert_from_tensorflow.TFConverter::dump_dense_to_file(), convert_from_tensorflow.TFConverter::dump_depth2space_to_file(), convert_from_tensorflow.TFConverter::dump_mathbinary_to_file(), convert_from_tensorflow.TFConverter::dump_mathunary_to_file(), convert_from_tensorflow.TFConverter::dump_maximum_to_file(), convert_from_tensorflow.TFConverter::dump_mirrorpad_to_file(), convert_from_tensorflow.TFConverter::dump_simple_conv2d_to_file(), encode_init(), ff_decklink_list_devices(), ff_dnn_execute_layer_math_binary(), ff_hevc_hls_residual_coding(), ff_snow_inner_add_yblock(), filter_slice_chroma16(), convert_from_tensorflow.TFConverter::generate_sub_block_op_scope_info(), h263_dct_unquantize_msa(), hash(), idct16_1d(), idct8_1d(), interleave_TMPL(), intra_predict_dc_4blk_8x8_msa(), intra_predict_mad_cow_dc_0lt_8x8_msa(), intra_predict_mad_cow_dc_l0t_8x8_msa(), intra_predict_vert_dc_8x8_msa(), inverse(), lift(), liftS(), postprocess_chroma(), predict_plane(), predict_slice(), predict_slice_buffered(), rd_get(), reallocate_outputs(), snow_horizontal_compose_lift_lead_out(), transform_4x4_luma(), and wv_get_value().

◆ 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 
)