History

all: fix typos found by codespell

Timo Rothenpieler committed 1 year ago

Commit 262d41c1 parent 8d439b2303 files · +482 −481Browse files

Showing the changes to libavfilter (39 of 303 files). Show all

Unified · Split

39 files
  1. libavfilter/aarch64/vf_bwdif_neon.S +1 −1
  2. libavfilter/af_astats.c +2 −2
  3. libavfilter/af_atempo.c +1 −1
  4. libavfilter/af_drmeter.c +1 −1
  5. libavfilter/af_sofalizer.c +2 −2
  6. libavfilter/avf_showcqt.c +1 −1
  7. libavfilter/avfilter.h +2 −2
  8. libavfilter/dnn/dnn_backend_openvino.c +2 −2
  9. libavfilter/filters.h +1 −1
  10. libavfilter/framepool.h +5 −5
  11. libavfilter/framesync.h +3 −3
  12. libavfilter/qsvvpp.h +2 −2
  13. libavfilter/riscv/af_afir_init.c +1 −1
  14. libavfilter/riscv/af_afir_rvv.S +1 −1
  15. libavfilter/vf_amf_common.c +1 −1
  16. libavfilter/vf_bilateral_cuda.cu +2 −2
  17. libavfilter/vf_ciescope.c +1 −1
  18. libavfilter/vf_colorconstancy.c +9 −9
  19. libavfilter/vf_convolution_opencl.c +1 −1
  20. libavfilter/vf_coreimage.m +1 −1
  21. libavfilter/vf_curves.c +1 −1
  22. libavfilter/vf_dnn_detect.c +1 −1
  23. libavfilter/vf_drawbox.c +1 −1
  24. libavfilter/vf_drawtext.c +2 −2
  25. libavfilter/vf_fspp.c +1 −1
  26. libavfilter/vf_libplacebo.c +1 −1
  27. libavfilter/vf_mpdecimate.c +1 −1
  28. libavfilter/vf_overlay_qsv.c +1 −1
  29. libavfilter/vf_overlay_vaapi.c +1 −1
  30. libavfilter/vf_removelogo.c +2 −2
  31. libavfilter/vf_signalstats.c +3 −3
  32. libavfilter/vf_signature.c +1 −1
  33. libavfilter/vf_siti.c +1 −1
  34. libavfilter/vf_ssim360.c +2 −2
  35. libavfilter/vf_tonemap_opencl.c +1 −1
  36. libavfilter/vf_uspp.c +1 −1
  37. libavfilter/vf_zscale.c +1 −1
  38. libavfilter/vsrc_ddagrab.c +1 −1
  39. libavfilter/x86/vf_hqdn3d.asm +1 −1
libavfilter/aarch64/vf_bwdif_neon.S+1−1
@@ -148,7 +148,7 @@ · 147 unmodified lines
148148 // static const uint16_t coef_hf[3] = { 5570, 3801, 1016 };
149149 // static const uint16_t coef_sp[2] = { 5077, 981 };
150150
151−const coeffs, align=4 // align 4 means align on 2^4 boundry
151+const coeffs, align=4 // align 4 means align on 2^4 boundary
152152 .hword 4309 * 4, 213 * 4 // lf[0]*4 = v0.h[0]
153153 .hword 5570, 3801, 1016, -3801 // hf[0] = v0.h[2], -hf[1] = v0.h[5]
154154 .hword 5077, 981 // sp[0] = v0.h[6]
libavfilter/af_astats.c+2−2
@@ -836,7 +836,7 @@ static void print_stats(AVFilterContext *ctx) · 835 unmodified lines
836836 av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(p->max_sigma_x2)));
837837 if (s->measure_perchannel & MEASURE_RMS_TROUGH)
838838 if (p->min_sigma_x2 != 1)
839− av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2)));
839+ av_log(ctx, AV_LOG_INFO, "RMS through dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2)));
840840 if (s->measure_perchannel & MEASURE_CREST_FACTOR)
841841 av_log(ctx, AV_LOG_INFO, "Crest factor: %f\n", p->sigma_x2 ? FFMAX(-p->nmin, p->nmax) / sqrt(p->sigma_x2 / p->nb_samples) : 1);
842842 if (s->measure_perchannel & MEASURE_FLAT_FACTOR)
@@ -896,7 +896,7 @@ static void print_stats(AVFilterContext *ctx) · 53 unmodified lines
896896 av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(max_sigma_x2)));
897897 if (s->measure_overall & MEASURE_RMS_TROUGH)
898898 if (min_sigma_x2 != 1)
899− av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2)));
899+ av_log(ctx, AV_LOG_INFO, "RMS through dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2)));
900900 if (s->measure_overall & MEASURE_FLAT_FACTOR)
901901 av_log(ctx, AV_LOG_INFO, "Flat factor: %f\n", LINEAR_TO_DB((min_runs + max_runs) / (min_count + max_count)));
902902 if (s->measure_overall & MEASURE_PEAK_COUNT)
libavfilter/af_atempo.c+1−1
@@ -112,7 +112,7 @@ typedef struct ATempoContext { · 111 unmodified lines
112112 // number of channels:
113113 int channels;
114114
115− // row of bytes to skip from one sample to next, across multple channels;
115+ // row of bytes to skip from one sample to next, across multiple channels;
116116 // stride = (number-of-channels * bits-per-sample-per-channel) / 8
117117 int stride;
118118
libavfilter/af_drmeter.c+1−1
@@ -138,7 +138,7 @@ static void print_stats(AVFilterContext *ctx) · 137 unmodified lines
138138 int peak_bin = BINS;
139139
140140 if (!p->nb_samples) {
141− av_log(ctx, AV_LOG_INFO, "No data, dynamic range not meassurable\n");
141+ av_log(ctx, AV_LOG_INFO, "No data, dynamic range not measurable\n");
142142 return;
143143 }
144144
libavfilter/af_sofalizer.c+2−2
@@ -734,7 +734,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int · 733 unmodified lines
734734 AVComplexFloat *fft_in_r = NULL;
735735 float *data_ir_l = NULL;
736736 float *data_ir_r = NULL;
737− int offset = 0; /* used for faster pointer arithmetics in for-loop */
737+ int offset = 0; /* used for faster pointer arithmetic in for-loop */
738738 int i, j, azim_orig = azim, elev_orig = elev;
739739 int ret = 0;
740740 int n_current;
@@ -954,7 +954,7 @@ fail: · 213 unmodified lines
954954 av_freep(&data_hrtf_l); /* free temporary HRTF memory */
955955 av_freep(&data_hrtf_r);
956956
957− av_freep(&data_ir_l); /* free temprary IR memory */
957+ av_freep(&data_ir_l); /* free temporary IR memory */
958958 av_freep(&data_ir_r);
959959
960960 av_freep(&fft_out_l); /* free temporary FFT memory */
libavfilter/avf_showcqt.c+1−1
@@ -619,7 +619,7 @@ static int render_fontconfig(ShowCQTContext *s, AVFrame *tmp, char* font) · 618 unmodified lines
619619 FcDefaultSubstitute(pat);
620620
621621 if (!FcConfigSubstitute(fontconfig, pat, FcMatchPattern)) {
622− av_log(s->ctx, AV_LOG_ERROR, "could not substitue fontconfig options.\n");
622+ av_log(s->ctx, AV_LOG_ERROR, "could not substitute fontconfig options.\n");
623623 FcPatternDestroy(pat);
624624 FcConfigDestroy(fontconfig);
625625 return AVERROR(ENOMEM);
libavfilter/avfilter.h+2−2
@@ -898,7 +898,7 @@ typedef struct AVFilterParams { · 897 unmodified lines
898898 char *instance_name;
899899
900900 /**
901− * Options to be apllied to the filter.
901+ * Options to be applied to the filter.
902902 *
903903 * Filled by avfilter_graph_segment_parse(). Afterwards may be freely
904904 * modified by the caller.
@@ -1081,7 +1081,7 @@ int avfilter_graph_segment_init(AVFilterGraphSegment *seg, int flags); · 176 unmodified lines
10811081 * Unlabeled outputs are
10821082 * - linked to the first unlinked unlabeled input in the next non-disabled
10831083 * filter in the chain, if one exists
1084− * - exported in the ouputs linked list otherwise, with NULL label
1084+ * - exported in the outputs linked list otherwise, with NULL label
10851085 *
10861086 * Similarly, unlinked input pads are exported in the inputs linked list.
10871087 *
libavfilter/dnn/dnn_backend_openvino.c+2−2
@@ -1331,7 +1331,7 @@ static int get_output_ov(DNNModel *model, const char *input_name, int input_widt · 1330 unmodified lines
13311331 #endif
13321332 ret = init_model_ov(ov_model, input_name, output_name ? &output_name : NULL, 1);
13331333 if (ret != 0) {
1334− av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO exectuable network or inference request\n");
1334+ av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO executable network or inference request\n");
13351335 return ret;
13361336 }
13371337 }
@@ -1487,7 +1487,7 @@ static int dnn_execute_model_ov(const DNNModel *model, DNNExecBaseParams *exec_p · 149 unmodified lines
14871487 ret = init_model_ov(ov_model, exec_params->input_name,
14881488 exec_params->output_names, exec_params->nb_output);
14891489 if (ret != 0) {
1490− av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO exectuable network or inference request\n");
1490+ av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO executable network or inference request\n");
14911491 return ret;
14921492 }
14931493 }
libavfilter/filters.h+1−1
@@ -508,7 +508,7 @@ int ff_inlink_check_available_frame(AVFilterLink *link); · 507 unmodified lines
508508
509509 /***
510510 * Get the number of samples available on the link.
511− * @return the numer of samples available on the link.
511+ * @return the number of samples available on the link.
512512 */
513513 int ff_inlink_queued_samples(AVFilterLink *link);
514514
libavfilter/framepool.h+5−5
@@ -41,7 +41,7 @@ typedef struct FFFramePool FFFramePool; · 40 unmodified lines
4141 * @param width width of each frame in this pool
4242 * @param height height of each frame in this pool
4343 * @param format format of each frame in this pool
44− * @param align buffers alignement of each frame in this pool
44+ * @param align buffers alignment of each frame in this pool
4545 * @return newly created video frame pool on success, NULL on error.
4646 */
4747 FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size),
@@ -59,7 +59,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size), · 11 unmodified lines
5959 * @param channels channels of each frame in this pool
6060 * @param nb_samples number of samples of each frame in this pool
6161 * @param format format of each frame in this pool
62− * @param align buffers alignement of each frame in this pool
62+ * @param align buffers alignment of each frame in this pool
6363 * @return newly created audio frame pool on success, NULL on error.
6464 */
6565 FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(size_t size),
@@ -82,7 +82,7 @@ void ff_frame_pool_uninit(FFFramePool **pool); · 16 unmodified lines
8282 * @param width width of each frame in this pool
8383 * @param height height of each frame in this pool
8484 * @param format format of each frame in this pool
85− * @param align buffers alignement of each frame in this pool
85+ * @param align buffers alignment of each frame in this pool
8686 * @return 0 on success, a negative AVERROR otherwise.
8787 */
8888 int ff_frame_pool_get_video_config(FFFramePool *pool,
@@ -97,7 +97,7 @@ int ff_frame_pool_get_video_config(FFFramePool *pool, · 8 unmodified lines
9797 * @param channels channels of each frame in this pool
9898 * @param nb_samples number of samples of each frame in this pool
9999 * @param format format of each frame in this pool
100− * @param align buffers alignement of each frame in this pool
100+ * @param align buffers alignment of each frame in this pool
101101 * @return 0 on success, a negative AVERROR otherwise.
102102 */
103103 int ff_frame_pool_get_audio_config(FFFramePool *pool,
@@ -108,7 +108,7 @@ int ff_frame_pool_get_audio_config(FFFramePool *pool, · 4 unmodified lines
108108
109109
110110 /**
111− * Allocate a new AVFrame, reussing old buffers from the pool when available.
111+ * Allocate a new AVFrame, reusing old buffers from the pool when available.
112112 * This function may be called simultaneously from multiple threads.
113113 *
114114 * @return a new AVFrame on success, NULL on error.
libavfilter/framesync.h+3−3
@@ -41,7 +41,7 @@ enum EOFAction { · 40 unmodified lines
4141 * complex logic and a few user-tunable options.
4242 *
4343 * In this API, when a set of synchronized input frames is ready to be
44− * procesed is called a frame event. Frame event can be generated in
44+ * processed is called a frame event. Frame event can be generated in
4545 * response to input frames on any or all inputs and the handling of
4646 * situations where some stream extend beyond the beginning or the end of
4747 * others can be configured.
@@ -76,9 +76,9 @@ enum FFFrameSyncExtMode { · 28 unmodified lines
7676 };
7777
7878 /**
79− * Timestamp syncronization mode
79+ * Timestamp synchronization mode
8080 *
81− * Describe how the frames of a stream are syncronized based on timestamp
81+ * Describe how the frames of a stream are synchronized based on timestamp
8282 * distance.
8383 */
8484 enum FFFrameTSSyncMode {
libavfilter/qsvvpp.h+2−2
@@ -65,7 +65,7 @@ typedef struct QSVVPPContext { · 64 unmodified lines
6565
6666 mfxSession session;
6767 int (*filter_frame) (AVFilterLink *outlink, AVFrame *frame); /**< callback */
68− int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callbak */
68+ int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callback */
6969 enum AVPixelFormat out_sw_format; /**< Real output format */
7070 mfxVideoParam vpp_param;
7171 mfxFrameInfo *frame_infos; /**< frame info for each input */
@@ -110,7 +110,7 @@ typedef struct QSVVPPCrop { · 38 unmodified lines
110110 typedef struct QSVVPPParam {
111111 /* default is ff_filter_frame */
112112 int (*filter_frame)(AVFilterLink *outlink, AVFrame *frame);
113− int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callbak */
113+ int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callback */
114114
115115 /* To fill with MFX enhanced filter configurations */
116116 int num_ext_buf;
libavfilter/riscv/af_afir_init.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).
2+ * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).
33 *
44 * This file is part of FFmpeg.
55 *
libavfilter/riscv/af_afir_rvv.S+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).
2+ * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).
33 *
44 * This file is part of FFmpeg.
55 *
libavfilter/vf_amf_common.c+1−1
@@ -176,7 +176,7 @@ int amf_setup_input_output_formats(AVFilterContext *avctx, · 175 unmodified lines
176176 AVFilterFormats *input_formats;
177177 AVFilterFormats *output_formats;
178178
179− //in case if hw_device_ctx is set to DXVA2 we change order of pixel formats to set DXVA2 be choosen by default
179+ //in case if hw_device_ctx is set to DXVA2 we change order of pixel formats to set DXVA2 be chosen by default
180180 //The order is ignored if hw_frames_ctx is not NULL on the config_output stage
181181 if (avctx->hw_device_ctx) {
182182 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data;
libavfilter/vf_bilateral_cuda.cu+2−2
@@ -28,7 +28,7 @@ extern "C" · 27 unmodified lines
2828 * used float4 for better performance
2929 *
3030 * @param first_yuv first color vector
31− * @param second_yuv second color vecotr
31+ * @param second_yuv second color vector
3232 * @return answer of squared norm difference
3333 */
3434 __device__ static inline float norm_squared(float4 first_yuv, float4 second_yuv)
@@ -43,7 +43,7 @@ __device__ static inline float norm_squared(float4 first_yuv, float4 second_yuv) · 8 unmodified lines
4343 * @brief calculate w as stated in bilateral filter research paper
4444 *
4545 * @param first_yuv first color vector
46− * @param second_yuv second color vecotr
46+ * @param second_yuv second color vector
4747 * @return the calculated w
4848 */
4949 __device__ static inline float calculate_w(int x, int y, int r, int c,
libavfilter/vf_ciescope.c+1−1
@@ -1132,7 +1132,7 @@ fill_in_tongue(uint16_t* const pixels, · 1131 unmodified lines
11321132
11331133 /* Scan the image line by line and fill the tongue outline
11341134 with the RGB values determined by the color system for the x-y
1135− co-ordinates within the tongue.
1135+ coordinates within the tongue.
11361136 */
11371137
11381138 for (y = 0; y < h; ++y) {
libavfilter/vf_colorconstancy.c+9−9
@@ -176,7 +176,7 @@ static int set_gauss(AVFilterContext *ctx) · 175 unmodified lines
176176
177177 /**
178178 * Frees up buffers used by grey edge for storing derivatives final
179− * and intermidiate results. Number of buffers and number of planes
179+ * and intermediate results. Number of buffers and number of planes
180180 * for last buffer are given so it can be safely called at allocation
181181 * failure instances.
182182 *
@@ -201,7 +201,7 @@ static void cleanup_derivative_buffers(ThreadData *td, int nb_buff, int nb_plane · 18 unmodified lines
201201
202202 /**
203203 * Allocates buffers used by grey edge for storing derivatives final
204− * and intermidiate results.
204+ * and intermediate results.
205205 *
206206 * @param ctx the filter context.
207207 * @param td holds the buffers.
@@ -236,12 +236,12 @@ static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td) · 28 unmodified lines
236236 /**
237237 * Slice calculation of gaussian derivatives. Applies 1-D gaussian derivative filter
238238 * either horizontally or vertically according to meta data given in thread data.
239− * When convoluting horizontally source is always the in frame withing thread data
239+ * When convoluting horizontally source is always the in frame within thread data
240240 * while when convoluting vertically source is a buffer.
241241 *
242242 * @param ctx the filter context.
243243 * @param arg data to be passed between threads.
244− * @param jobnr current job nubmer.
244+ * @param jobnr current job number.
245245 * @param nb_jobs total number of jobs.
246246 *
247247 * @return 0.
@@ -309,7 +309,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int · 61 unmodified lines
309309 *
310310 * @param ctx the filter context.
311311 * @param arg data to be passed between threads.
312− * @param jobnr current job nubmer.
312+ * @param jobnr current job number.
313313 * @param nb_jobs total number of jobs.
314314 *
315315 * @return 0.
@@ -430,7 +430,7 @@ static int get_derivative(AVFilterContext *ctx, ThreadData *td) · 114 unmodified lines
430430 *
431431 * @param ctx the filter context.
432432 * @param arg data to be passed between threads.
433− * @param jobnr current job nubmer.
433+ * @param jobnr current job number.
434434 * @param nb_jobs total number of jobs.
435435 *
436436 * @return 0.
@@ -479,7 +479,7 @@ static int filter_slice_grey_edge(AVFilterContext* ctx, void* arg, int jobnr, in · 42 unmodified lines
479479 * Main control function for grey edge algorithm.
480480 *
481481 * @param ctx the filter context.
482− * @param in frame to perfrom grey edge on.
482+ * @param in frame to perform grey edge on.
483483 *
484484 * @return 0 in case of success, a negative value corresponding to an
485485 * AVERROR code in case of failure.
@@ -558,7 +558,7 @@ static void normalize_light(double *light) · 72 unmodified lines
558558 * after estimation.
559559 *
560560 * @param ctx the filter context.
561− * @param in frame to perfrom estimation on.
561+ * @param in frame to perform estimation on.
562562 *
563563 * @return 0 in case of success, a negative value corresponding to an
564564 * AVERROR code in case of failure.
@@ -584,7 +584,7 @@ static int illumination_estimation(AVFilterContext *ctx, AVFrame *in) · 19 unmodified lines
584584 *
585585 * @param ctx the filter context.
586586 * @param arg data to be passed between threads.
587− * @param jobnr current job nubmer.
587+ * @param jobnr current job number.
588588 * @param nb_jobs total number of jobs.
589589 *
590590 * @return 0.
libavfilter/vf_convolution_opencl.c+1−1
@@ -352,7 +352,7 @@ static const AVOption convolution_opencl_options[] = { · 351 unmodified lines
352352 { "1m", "set matrix for 2nd plane", OFFSET(matrix_str[1]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS },
353353 { "2m", "set matrix for 3rd plane", OFFSET(matrix_str[2]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS },
354354 { "3m", "set matrix for 4th plane", OFFSET(matrix_str[3]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS },
355− { "0rdiv", "set rdiv for 1nd plane", OFFSET(rdivs[0]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS},
355+ { "0rdiv", "set rdiv for 1st plane", OFFSET(rdivs[0]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS},
356356 { "1rdiv", "set rdiv for 2nd plane", OFFSET(rdivs[1]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS},
357357 { "2rdiv", "set rdiv for 3rd plane", OFFSET(rdivs[2]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS},
358358 { "3rdiv", "set rdiv for 4th plane", OFFSET(rdivs[3]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS},
libavfilter/vf_coreimage.m+1−1
@@ -58,7 +58,7 @@ typedef struct CoreImageContext { · 57 unmodified lines
5858 CFTypeRef *filters; ///< CIFilter object for all requested filters
5959 int num_filters; ///< Amount of filters in *filters
6060
61− char *output_rect; ///< Rectangle to be filled with filter intput
61+ char *output_rect; ///< Rectangle to be filled with filter input
6262 int list_filters; ///< Option used to list all available filters including generators
6363 int list_generators; ///< Option used to list all available generators
6464 } CoreImageContext;
libavfilter/vf_curves.c+1−1
@@ -493,7 +493,7 @@ static inline int interpolate_pchip(void *log_ctx, uint16_t *y, · 492 unmodified lines
493493 goto end;
494494 }
495495
496− fi = xi + n; /* output values at inteval endpoints */
496+ fi = xi + n; /* output values at interval endpoints */
497497 di = fi + n; /* output slope wrt normalized input at interval endpoints */
498498 hi = di + n; /* interval widths */
499499 mi = hi + n - 1; /* linear slope over intervals */
libavfilter/vf_dnn_detect.c+1−1
@@ -81,7 +81,7 @@ static const AVOption dnn_detect_options[] = { · 80 unmodified lines
8181 { "cell_w", "cell width", OFFSET2(cell_w), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS },
8282 { "cell_h", "cell height", OFFSET2(cell_h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS },
8383 { "nb_classes", "The number of class", OFFSET2(nb_classes), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS },
84− { "anchors", "anchors, splited by '&'", OFFSET2(anchors), AV_OPT_TYPE_FLOAT | AV_OPT_TYPE_FLAG_ARRAY, { .arr = &anchor_array_def }, FLT_MIN, FLT_MAX, FLAGS },
84+ { "anchors", "anchors, split by '&'", OFFSET2(anchors), AV_OPT_TYPE_FLOAT | AV_OPT_TYPE_FLAG_ARRAY, { .arr = &anchor_array_def }, FLT_MIN, FLT_MAX, FLAGS },
8585 { NULL }
8686 };
8787
libavfilter/vf_drawbox.c+1−1
@@ -454,7 +454,7 @@ static const AVOption drawbox_options[] = { · 453 unmodified lines
454454 { "thickness", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS },
455455 { "t", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS },
456456 { "replace", "replace color & alpha", OFFSET(replace), AV_OPT_TYPE_BOOL, { .i64=0 }, 0, 1, FLAGS },
457− { "box_source", "use datas from bounding box in side data", OFFSET(box_source_string), AV_OPT_TYPE_STRING, { .str=NULL }, 0, 1, FLAGS },
457+ { "box_source","use data from bounding box in side data", OFFSET(box_source_string), AV_OPT_TYPE_STRING, { .str=NULL }, 0, 1, FLAGS },
458458 { NULL }
459459 };
460460
libavfilter/vf_drawtext.c+2−2
@@ -562,7 +562,7 @@ static int load_font_fontconfig(AVFilterContext *ctx) · 561 unmodified lines
562562 FcDefaultSubstitute(pat);
563563
564564 if (!FcConfigSubstitute(fontconfig, pat, FcMatchPattern)) {
565− av_log(ctx, AV_LOG_ERROR, "could not substitue fontconfig options"); /* very unlikely */
565+ av_log(ctx, AV_LOG_ERROR, "could not substitute fontconfig options"); /* very unlikely */
566566 FcPatternDestroy(pat);
567567 return AVERROR(ENOMEM);
568568 }
@@ -866,7 +866,7 @@ static int func_pts(void *ctx, AVBPrint *bp, const char *function_name, unsigned · 297 unmodified lines
866866 if (argc >= 3) {
867867 if (!strcmp(fmt, "hms")) {
868868 if (!strcmp(argv[2], "24HH")) {
869− av_log(ctx, AV_LOG_WARNING, "pts third argument 24HH is deprected, use pts:hms24hh instead\n");
869+ av_log(ctx, AV_LOG_WARNING, "pts third argument 24HH is deprecated, use pts:hms24hh instead\n");
870870 fmt = "hms24";
871871 } else {
872872 av_log(ctx, AV_LOG_ERROR, "Invalid argument '%s', '24HH' was expected\n", argv[2]);
libavfilter/vf_fspp.c+1−1
@@ -463,7 +463,7 @@ static void row_fdct_c(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size · 462 unmodified lines
463463 tmp12 = tmp1 - tmp2;
464464 //Even columns are written first, this leads to different order of columns
465465 //in column_fidct(), but they are processed independently, so all ok.
466− //Later in the row_idct() columns readed at the same order.
466+ //Later in the row_idct() columns are read in the same order.
467467 dataptr[2] = tmp10 + tmp11;
468468 dataptr[3] = tmp10 - tmp11;
469469
libavfilter/vf_libplacebo.c+1−1
@@ -1412,7 +1412,7 @@ static int libplacebo_config_output(AVFilterLink *outlink) · 1411 unmodified lines
14121412
14131413 s->vkctx.output_width = outlink->w;
14141414 s->vkctx.output_height = outlink->h;
1415− /* Default to re-using the input format */
1415+ /* Default to reusing the input format */
14161416 if (s->out_format == AV_PIX_FMT_NONE || s->out_format == AV_PIX_FMT_VULKAN) {
14171417 s->vkctx.output_format = s->vkctx.input_format;
14181418 } else {
libavfilter/vf_mpdecimate.c+1−1
@@ -208,7 +208,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *cur) · 207 unmodified lines
208208 av_frame_free(&decimate->ref);
209209 decimate->ref = cur;
210210 decimate->drop_count = FFMIN(-1, decimate->drop_count-1);
211− if (decimate->keep_count < 0) // re-enable counting similiar frames to ignore before dropping
211+ if (decimate->keep_count < 0) // re-enable counting similar frames to ignore before dropping
212212 decimate->keep_count = 0;
213213
214214 if ((ret = ff_filter_frame(outlink, av_frame_clone(cur))) < 0)
libavfilter/vf_overlay_qsv.c+1−1
@@ -137,7 +137,7 @@ static int eval_expr(AVFilterContext *ctx) · 136 unmodified lines
137137 var_values[VAR_OVERLAY_X] =
138138 var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL);
139139
140− /* calc overlay_w and overlay_h again incase relative to ox,oy */
140+ /* calc overlay_w and overlay_h again in case relative to ox,oy */
141141 var_values[VAR_OVERLAY_W] =
142142 var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL);
143143 var_values[VAR_OVERLAY_H] =
libavfilter/vf_overlay_vaapi.c+1−1
@@ -108,7 +108,7 @@ static int eval_expr(AVFilterContext *avctx) · 107 unmodified lines
108108 var_values[VAR_OVERLAY_X] =
109109 var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL);
110110
111− /* calc overlay_w and overlay_h again incase relative to ox,oy */
111+ /* calc overlay_w and overlay_h again in case relative to ox,oy */
112112 var_values[VAR_OVERLAY_W] =
113113 var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL);
114114 var_values[VAR_OVERLAY_H] =
libavfilter/vf_removelogo.c+2−2
@@ -49,7 +49,7 @@ · 48 unmodified lines
4949 * remove rough edges, is stored in each pixel. This is done using an in-place
5050 * erosion algorithm, and incrementing each pixel that survives any given
5151 * erosion. Once every pixel is eroded, the maximum value is recorded, and a
52− * set of masks from size 0 to this size are generaged. The masks are circular
52+ * set of masks from size 0 to this size are generated. The masks are circular
5353 * binary masks, where each pixel within a radius N (where N is the size of the
5454 * mask) is a 1, and all other pixels are a 0. Although a gaussian mask would be
5555 * more mathematically accurate, a binary mask works better in practice because
@@ -64,7 +64,7 @@ · 8 unmodified lines
6464 * condition is met (that the image function itself is continuous), even if the
6565 * second boundary condition (that the derivative of the image function is
6666 * continuous) is not met. A masking algorithm that does preserve the second
67− * boundary coundition (perhaps something based on a highly-modified bi-cubic
67+ * boundary condition (perhaps something based on a highly-modified bi-cubic
6868 * algorithm) should offer even better results on paper, but the noise in a
6969 * typical TV signal should make anything based on derivatives hopelessly noisy.
7070 */
libavfilter/vf_signalstats.c+3−3
@@ -1,7 +1,7 @@
11 /*
22 * Copyright (c) 2010 Mark Heath mjpeg0 @ silicontrip dot org
33 * Copyright (c) 2014 Clément Bœsch
4− * Copyright (c) 2014 Dave Rice @dericed
4+ * Copyright (c) 2014 Dave Rice
55 *
66 * This file is part of FFmpeg.
77 *
@@ -304,7 +304,7 @@ static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 296 unmodified lines
304304 continue;
305305
306306 // detect two pixels above and below (to eliminate interlace artefacts)
307− // should check that video format is infact interlaced.
307+ // should check that video format is in fact interlaced.
308308
309309 #define FILTER(i, j) \
310310 filter_tout_outlier(p[(y-j) * lw + x + i], \
@@ -352,7 +352,7 @@ static int filter16_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs · 41 unmodified lines
352352 continue;
353353
354354 // detect two pixels above and below (to eliminate interlace artefacts)
355− // should check that video format is infact interlaced.
355+ // should check that video format is in fact interlaced.
356356
357357 if (y - 2 >= 0 && y + 2 < h) {
358358 for (x = 1; x < w - 1; x++) {
libavfilter/vf_signature.c+1−1
@@ -581,7 +581,7 @@ static int request_frame(AVFilterLink *outlink) · 580 unmodified lines
581581 StreamContext *sc, *sc2;
582582 MatchingInfo match;
583583 int i, j, ret;
584− int lookup = 1; /* indicates wheather EOF of all files is reached */
584+ int lookup = 1; /* indicates whether EOF of all files is reached */
585585
586586 /* process all inputs */
587587 for (i = 0; i < sic->nb_inputs; i++){
libavfilter/vf_siti.c+1−1
@@ -103,7 +103,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 102 unmodified lines
103103
104104 static int config_input(AVFilterLink *inlink)
105105 {
106− // Video input data avilable
106+ // Video input data available
107107 AVFilterContext *ctx = inlink->dst;
108108 SiTiContext *s = ctx->priv;
109109 int max_pixsteps[4];
libavfilter/vf_ssim360.c+2−2
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838
3939 /*
4040 * @file
41− * Caculate the SSIM between two input 360 videos.
41+ * Calculate the SSIM between two input 360 videos.
4242 */
4343
4444 #include <math.h>
@@ -250,7 +250,7 @@ static const AVOption ssim360_options[] = { · 205 unmodified lines
250250 OFFSET(ref_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS },
251251
252252 { "main_pad",
253− "Expansion (padding) coeffiecient for each cube face of the main video",
253+ "Expansion (padding) coefficient for each cube face of the main video",
254254 OFFSET(main_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS },
255255
256256 { "use_tape",
libavfilter/vf_tonemap_opencl.c+1−1
@@ -158,7 +158,7 @@ static int tonemap_opencl_init(AVFilterContext *avctx) · 157 unmodified lines
158158 av_log(ctx, AV_LOG_DEBUG, "mapping range from %s to %s\n",
159159 av_color_range_name(ctx->range_in),
160160 av_color_range_name(ctx->range_out));
161− // checking valid value just because of limited implementaion
161+ // checking valid value just because of limited implementation
162162 // please remove when more functionalities are implemented
163163 av_assert0(ctx->trc_out == AVCOL_TRC_BT709 ||
164164 ctx->trc_out == AVCOL_TRC_BT2020_10);
libavfilter/vf_uspp.c+1−1
@@ -410,7 +410,7 @@ static int config_input(AVFilterLink *inlink) · 409 unmodified lines
410410 }
411411 avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
412412 avctx_enc->global_quality = 123;
413− avctx_enc->thread_count = 1; // We do threading in the filter with muiltiple codecs
413+ avctx_enc->thread_count = 1; // We do threading in the filter with multiple codecs
414414 ret = avcodec_open2(avctx_enc, enc, &opts);
415415 av_dict_free(&opts);
416416 if (ret < 0)
libavfilter/vf_zscale.c+1−1
@@ -648,7 +648,7 @@ static int graphs_build(AVFrame *in, AVFrame *out, const AVPixFmtDescriptor *des · 647 unmodified lines
648648 alpha_src_format = s->alpha_src_format;
649649 alpha_dst_format = s->alpha_dst_format;
650650 /* The input slice is specified through the active_region field, unlike the output slice.
651− according to zimg requirements input and output slices should have even dimentions */
651+ according to zimg requirements input and output slices should have even dimensions */
652652 alpha_src_format.active_region.width = in->width;
653653 alpha_src_format.active_region.height = in_slice_end - in_slice_start;
654654 alpha_src_format.active_region.left = 0;
libavfilter/vsrc_ddagrab.c+1−1
@@ -716,7 +716,7 @@ static int next_frame_internal(AVFilterContext *avctx, ID3D11Texture2D **desktop · 715 unmodified lines
716716 goto error;
717717 }
718718
719− // Unforunately, we can't rely on the desktop_resource's format in this case.
719+ // Unfortunately, we can't rely on the desktop_resource's format in this case.
720720 // The API might even return it in with a format that was not in the initial
721721 // list of supported formats, and it can change/flicker randomly.
722722 // To work around this, return an internal copy of the last valid texture we got.
libavfilter/x86/vf_hqdn3d.asm+1−1
@@ -87,7 +87,7 @@ ALIGN 16 · 86 unmodified lines
8787 mov [frameantq+xq*2], t0w
8888 movifnidn dstq, dstmp
8989 %if %1 != 16
90− shr t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some contraints on register allocation
90+ shr t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some constraints on register allocation
9191 %endif
9292 %if %1 == 8
9393 mov [dstq+xq], t0b

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t