Showing the changes to libavfilter (2 of 5 files). Show all
Unified · Split
| @@ -138,6 +138,10 @@ int dnn_execute_layer_math_unary(DnnOperand *operands, const int32_t *input_oper · 137 unmodified lines | |||
| 138 | for (int i = 0; i < dims_count; ++i) | 138 | for (int i = 0; i < dims_count; ++i) |
| 139 | dst[i] = floor(src[i]); | 139 | dst[i] = floor(src[i]); |
| 140 | return 0; | 140 | return 0; |
| 141 | case DMUO_ROUND: | ||
| 142 | for (int i = 0; i < dims_count; ++i) | ||
| 143 | dst[i] = round(src[i]); | ||
| 144 | return 0; | ||
| 141 | default: | 145 | default: |
| 142 | return -1; | 146 | return -1; |
| 143 | } | 147 | } |
| @@ -45,6 +45,7 @@ typedef enum { · 44 unmodified lines | |||
| 45 | DMUO_ATANH = 12, | 45 | DMUO_ATANH = 12, |
| 46 | DMUO_CEIL = 13, | 46 | DMUO_CEIL = 13, |
| 47 | DMUO_FLOOR = 14, | 47 | DMUO_FLOOR = 14, |
| 48 | DMUO_ROUND = 15, | ||
| 48 | DMUO_COUNT | 49 | DMUO_COUNT |
| 49 | } DNNMathUnaryOperation; | 50 | } DNNMathUnaryOperation; |
| 50 | 51 | ||