FFmpeg
|
DNN native backend implementation. More...
#include "dnn_backend_native.h"
#include "libavutil/avassert.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) |
DNN native backend implementation.
Definition in file dnn_backend_native_layer_mathbinary.c.
Definition at line 30 of file dnn_backend_native_layer_mathbinary.c.
|
static |
Definition at line 32 of file dnn_backend_native_layer_mathbinary.c.
Referenced by add_event(), amrwb_decode_frame(), aqt_read_header(), ass_decode_frame(), ass_read_header(), check_itxfm(), dct_unquantize_h263_axp(), dec_gain(), decode(), decode_frame(), decode_pixel_in_context(), decode_plane(), display_end_segment(), dvbsub_decode(), dvdsub_decode(), encode_residual_ch(), ff_dnn_execute_layer_math_binary(), ff_subtitles_queue_insert(), ff_subtitles_queue_read_packet(), ffmpeg_cleanup(), h263_dct_unquantize_msa(), init_frame(), jacosub_decode_frame(), jacosub_read_header(), libaribb24_decode(), lrc_read_header(), matroska_convert_tag(), mcc_read_header(), metasound_read_bitstream(), microdvd_decode_frame(), microdvd_read_header(), mov_text_decode_frame(), mpl2_decode_frame(), mpl2_read_header(), mpsub_read_header(), 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(), scc_read_header(), srt_decode_frame(), stl_read_header(), subsampling_bounds(), subtitle_handler(), subviewer1_read_header(), subviewer_decode_frame(), subviewer_read_header(), teletext_decode_frame(), text_decode_frame(), twinvq_read_bitstream(), vplayer_read_header(), vulkan_map_frame_to_mem(), vulkan_map_to(), webvtt_decode_frame(), webvtt_read_header(), and write_subframes().
|
static |
Definition at line 36 of file dnn_backend_native_layer_mathbinary.c.
Referenced by adpcm_agm_expand_nibble(), ath(), dct_unquantize_h263_axp(), decode_blocks(), decode_mb(), decode_plane(), encode_init(), ff_decklink_list_devices(), ff_dnn_execute_layer_math_binary(), ff_hevc_hls_residual_coding(), filter_slice_chroma16(), h263_dct_unquantize_msa(), 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(), postprocess_chroma(), snow_horizontal_compose_lift_lead_out(), transform_4x4_luma(), and wv_get_value().
|
static |
Definition at line 40 of file dnn_backend_native_layer_mathbinary.c.
Referenced by calc_add_mv(), dequant_lsps(), draw_bar_rgb(), draw_bar_yuv(), ff_dnn_execute_layer_math_binary(), ff_mpc_dequantize_and_synth(), h263_dct_unquantize_msa(), lag_read_prob_header(), mpeg2_dct_unquantize_inter_msa(), scale_coefs(), scale_slice(), test_vector_dmac_scalar(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul_scalar(), and xan_wc3_decode_frame().
|
static |
Definition at line 44 of file dnn_backend_native_layer_mathbinary.c.
Referenced by ff_dnn_execute_layer_math_binary().
|
static |
Definition at line 48 of file dnn_backend_native_layer_mathbinary.c.
Referenced by ff_dnn_execute_layer_math_binary(), main(), and update_gain_history().
|
static |
Definition at line 52 of file dnn_backend_native_layer_mathbinary.c.
Referenced by ff_dnn_execute_layer_math_binary().
|
static |
Definition at line 57 of file dnn_backend_native_layer_mathbinary.c.
Referenced by ff_dnn_execute_layer_math_binary().
|
static |
Definition at line 77 of file dnn_backend_native_layer_mathbinary.c.
Referenced by ff_dnn_execute_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 101 of file dnn_backend_native_layer_mathbinary.c.
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 | ||
) |
Definition at line 149 of file dnn_backend_native_layer_mathbinary.c.
Referenced by test_broadcast_input0(), test_broadcast_input1(), and test_no_broadcast().