Showing the changes to libavfilter (39 of 303 files). Show all
Unified · Split
| @@ -148,7 +148,7 @@ · 147 unmodified lines | ||
| 148 | 148 | // static const uint16_t coef_hf[3] = { 5570, 3801, 1016 }; |
| 149 | 149 | // static const uint16_t coef_sp[2] = { 5077, 981 }; |
| 150 | 150 | |
| 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 | |
| 152 | 152 | .hword 4309 * 4, 213 * 4 // lf[0]*4 = v0.h[0] |
| 153 | 153 | .hword 5570, 3801, 1016, -3801 // hf[0] = v0.h[2], -hf[1] = v0.h[5] |
| 154 | 154 | .hword 5077, 981 // sp[0] = v0.h[6] |
| @@ -836,7 +836,7 @@ static void print_stats(AVFilterContext *ctx) · 835 unmodified lines | ||
| 836 | 836 | av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(p->max_sigma_x2))); |
| 837 | 837 | if (s->measure_perchannel & MEASURE_RMS_TROUGH) |
| 838 | 838 | 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))); | |
| 840 | 840 | if (s->measure_perchannel & MEASURE_CREST_FACTOR) |
| 841 | 841 | 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); |
| 842 | 842 | if (s->measure_perchannel & MEASURE_FLAT_FACTOR) |
| @@ -896,7 +896,7 @@ static void print_stats(AVFilterContext *ctx) · 53 unmodified lines | ||
| 896 | 896 | av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(max_sigma_x2))); |
| 897 | 897 | if (s->measure_overall & MEASURE_RMS_TROUGH) |
| 898 | 898 | 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))); | |
| 900 | 900 | if (s->measure_overall & MEASURE_FLAT_FACTOR) |
| 901 | 901 | av_log(ctx, AV_LOG_INFO, "Flat factor: %f\n", LINEAR_TO_DB((min_runs + max_runs) / (min_count + max_count))); |
| 902 | 902 | if (s->measure_overall & MEASURE_PEAK_COUNT) |
| @@ -112,7 +112,7 @@ typedef struct ATempoContext { · 111 unmodified lines | ||
| 112 | 112 | // number of channels: |
| 113 | 113 | int channels; |
| 114 | 114 | |
| 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; | |
| 116 | 116 | // stride = (number-of-channels * bits-per-sample-per-channel) / 8 |
| 117 | 117 | int stride; |
| 118 | 118 | |
| @@ -138,7 +138,7 @@ static void print_stats(AVFilterContext *ctx) · 137 unmodified lines | ||
| 138 | 138 | int peak_bin = BINS; |
| 139 | 139 | |
| 140 | 140 | 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"); | |
| 142 | 142 | return; |
| 143 | 143 | } |
| 144 | 144 | |
| @@ -734,7 +734,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int · 733 unmodified lines | ||
| 734 | 734 | AVComplexFloat *fft_in_r = NULL; |
| 735 | 735 | float *data_ir_l = NULL; |
| 736 | 736 | 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 */ | |
| 738 | 738 | int i, j, azim_orig = azim, elev_orig = elev; |
| 739 | 739 | int ret = 0; |
| 740 | 740 | int n_current; |
| @@ -954,7 +954,7 @@ fail: · 213 unmodified lines | ||
| 954 | 954 | av_freep(&data_hrtf_l); /* free temporary HRTF memory */ |
| 955 | 955 | av_freep(&data_hrtf_r); |
| 956 | 956 | |
| 957 | − av_freep(&data_ir_l); /* free temprary IR memory */ | |
| 957 | + av_freep(&data_ir_l); /* free temporary IR memory */ | |
| 958 | 958 | av_freep(&data_ir_r); |
| 959 | 959 | |
| 960 | 960 | av_freep(&fft_out_l); /* free temporary FFT memory */ |
| @@ -619,7 +619,7 @@ static int render_fontconfig(ShowCQTContext *s, AVFrame *tmp, char* font) · 618 unmodified lines | ||
| 619 | 619 | FcDefaultSubstitute(pat); |
| 620 | 620 | |
| 621 | 621 | 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"); | |
| 623 | 623 | FcPatternDestroy(pat); |
| 624 | 624 | FcConfigDestroy(fontconfig); |
| 625 | 625 | return AVERROR(ENOMEM); |
| @@ -898,7 +898,7 @@ typedef struct AVFilterParams { · 897 unmodified lines | ||
| 898 | 898 | char *instance_name; |
| 899 | 899 | |
| 900 | 900 | /** |
| 901 | − * Options to be apllied to the filter. | |
| 901 | + * Options to be applied to the filter. | |
| 902 | 902 | * |
| 903 | 903 | * Filled by avfilter_graph_segment_parse(). Afterwards may be freely |
| 904 | 904 | * modified by the caller. |
| @@ -1081,7 +1081,7 @@ int avfilter_graph_segment_init(AVFilterGraphSegment *seg, int flags); · 176 unmodified lines | ||
| 1081 | 1081 | * Unlabeled outputs are |
| 1082 | 1082 | * - linked to the first unlinked unlabeled input in the next non-disabled |
| 1083 | 1083 | * 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 | |
| 1085 | 1085 | * |
| 1086 | 1086 | * Similarly, unlinked input pads are exported in the inputs linked list. |
| 1087 | 1087 | * |
| @@ -1331,7 +1331,7 @@ static int get_output_ov(DNNModel *model, const char *input_name, int input_widt · 1330 unmodified lines | ||
| 1331 | 1331 | #endif |
| 1332 | 1332 | ret = init_model_ov(ov_model, input_name, output_name ? &output_name : NULL, 1); |
| 1333 | 1333 | 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"); | |
| 1335 | 1335 | return ret; |
| 1336 | 1336 | } |
| 1337 | 1337 | } |
| @@ -1487,7 +1487,7 @@ static int dnn_execute_model_ov(const DNNModel *model, DNNExecBaseParams *exec_p · 149 unmodified lines | ||
| 1487 | 1487 | ret = init_model_ov(ov_model, exec_params->input_name, |
| 1488 | 1488 | exec_params->output_names, exec_params->nb_output); |
| 1489 | 1489 | 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"); | |
| 1491 | 1491 | return ret; |
| 1492 | 1492 | } |
| 1493 | 1493 | } |
| @@ -508,7 +508,7 @@ int ff_inlink_check_available_frame(AVFilterLink *link); · 507 unmodified lines | ||
| 508 | 508 | |
| 509 | 509 | /*** |
| 510 | 510 | * 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. | |
| 512 | 512 | */ |
| 513 | 513 | int ff_inlink_queued_samples(AVFilterLink *link); |
| 514 | 514 | |
| @@ -41,7 +41,7 @@ typedef struct FFFramePool FFFramePool; · 40 unmodified lines | ||
| 41 | 41 | * @param width width of each frame in this pool |
| 42 | 42 | * @param height height of each frame in this pool |
| 43 | 43 | * @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 | |
| 45 | 45 | * @return newly created video frame pool on success, NULL on error. |
| 46 | 46 | */ |
| 47 | 47 | 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 | ||
| 59 | 59 | * @param channels channels of each frame in this pool |
| 60 | 60 | * @param nb_samples number of samples of each frame in this pool |
| 61 | 61 | * @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 | |
| 63 | 63 | * @return newly created audio frame pool on success, NULL on error. |
| 64 | 64 | */ |
| 65 | 65 | 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 | ||
| 82 | 82 | * @param width width of each frame in this pool |
| 83 | 83 | * @param height height of each frame in this pool |
| 84 | 84 | * @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 | |
| 86 | 86 | * @return 0 on success, a negative AVERROR otherwise. |
| 87 | 87 | */ |
| 88 | 88 | 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 | ||
| 97 | 97 | * @param channels channels of each frame in this pool |
| 98 | 98 | * @param nb_samples number of samples of each frame in this pool |
| 99 | 99 | * @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 | |
| 101 | 101 | * @return 0 on success, a negative AVERROR otherwise. |
| 102 | 102 | */ |
| 103 | 103 | 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 | ||
| 108 | 108 | |
| 109 | 109 | |
| 110 | 110 | /** |
| 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. | |
| 112 | 112 | * This function may be called simultaneously from multiple threads. |
| 113 | 113 | * |
| 114 | 114 | * @return a new AVFrame on success, NULL on error. |
| @@ -41,7 +41,7 @@ enum EOFAction { · 40 unmodified lines | ||
| 41 | 41 | * complex logic and a few user-tunable options. |
| 42 | 42 | * |
| 43 | 43 | * 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 | |
| 45 | 45 | * response to input frames on any or all inputs and the handling of |
| 46 | 46 | * situations where some stream extend beyond the beginning or the end of |
| 47 | 47 | * others can be configured. |
| @@ -76,9 +76,9 @@ enum FFFrameSyncExtMode { · 28 unmodified lines | ||
| 76 | 76 | }; |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | − * Timestamp syncronization mode | |
| 79 | + * Timestamp synchronization mode | |
| 80 | 80 | * |
| 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 | |
| 82 | 82 | * distance. |
| 83 | 83 | */ |
| 84 | 84 | enum FFFrameTSSyncMode { |
| @@ -65,7 +65,7 @@ typedef struct QSVVPPContext { · 64 unmodified lines | ||
| 65 | 65 | |
| 66 | 66 | mfxSession session; |
| 67 | 67 | 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 */ | |
| 69 | 69 | enum AVPixelFormat out_sw_format; /**< Real output format */ |
| 70 | 70 | mfxVideoParam vpp_param; |
| 71 | 71 | mfxFrameInfo *frame_infos; /**< frame info for each input */ |
| @@ -110,7 +110,7 @@ typedef struct QSVVPPCrop { · 38 unmodified lines | ||
| 110 | 110 | typedef struct QSVVPPParam { |
| 111 | 111 | /* default is ff_filter_frame */ |
| 112 | 112 | 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 */ | |
| 114 | 114 | |
| 115 | 115 | /* To fill with MFX enhanced filter configurations */ |
| 116 | 116 | int num_ext_buf; |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | − * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). | |
| 2 | + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). | |
| 3 | 3 | * |
| 4 | 4 | * This file is part of FFmpeg. |
| 5 | 5 | * |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | − * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). | |
| 2 | + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). | |
| 3 | 3 | * |
| 4 | 4 | * This file is part of FFmpeg. |
| 5 | 5 | * |
| @@ -176,7 +176,7 @@ int amf_setup_input_output_formats(AVFilterContext *avctx, · 175 unmodified lines | ||
| 176 | 176 | AVFilterFormats *input_formats; |
| 177 | 177 | AVFilterFormats *output_formats; |
| 178 | 178 | |
| 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 | |
| 180 | 180 | //The order is ignored if hw_frames_ctx is not NULL on the config_output stage |
| 181 | 181 | if (avctx->hw_device_ctx) { |
| 182 | 182 | AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; |
| @@ -28,7 +28,7 @@ extern "C" · 27 unmodified lines | ||
| 28 | 28 | * used float4 for better performance |
| 29 | 29 | * |
| 30 | 30 | * @param first_yuv first color vector |
| 31 | − * @param second_yuv second color vecotr | |
| 31 | + * @param second_yuv second color vector | |
| 32 | 32 | * @return answer of squared norm difference |
| 33 | 33 | */ |
| 34 | 34 | __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 | ||
| 43 | 43 | * @brief calculate w as stated in bilateral filter research paper |
| 44 | 44 | * |
| 45 | 45 | * @param first_yuv first color vector |
| 46 | − * @param second_yuv second color vecotr | |
| 46 | + * @param second_yuv second color vector | |
| 47 | 47 | * @return the calculated w |
| 48 | 48 | */ |
| 49 | 49 | __device__ static inline float calculate_w(int x, int y, int r, int c, |
| @@ -1132,7 +1132,7 @@ fill_in_tongue(uint16_t* const pixels, · 1131 unmodified lines | ||
| 1132 | 1132 | |
| 1133 | 1133 | /* Scan the image line by line and fill the tongue outline |
| 1134 | 1134 | with the RGB values determined by the color system for the x-y |
| 1135 | − co-ordinates within the tongue. | |
| 1135 | + coordinates within the tongue. | |
| 1136 | 1136 | */ |
| 1137 | 1137 | |
| 1138 | 1138 | for (y = 0; y < h; ++y) { |
| @@ -176,7 +176,7 @@ static int set_gauss(AVFilterContext *ctx) · 175 unmodified lines | ||
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * 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 | |
| 180 | 180 | * for last buffer are given so it can be safely called at allocation |
| 181 | 181 | * failure instances. |
| 182 | 182 | * |
| @@ -201,7 +201,7 @@ static void cleanup_derivative_buffers(ThreadData *td, int nb_buff, int nb_plane · 18 unmodified lines | ||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * Allocates buffers used by grey edge for storing derivatives final |
| 204 | − * and intermidiate results. | |
| 204 | + * and intermediate results. | |
| 205 | 205 | * |
| 206 | 206 | * @param ctx the filter context. |
| 207 | 207 | * @param td holds the buffers. |
| @@ -236,12 +236,12 @@ static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td) · 28 unmodified lines | ||
| 236 | 236 | /** |
| 237 | 237 | * Slice calculation of gaussian derivatives. Applies 1-D gaussian derivative filter |
| 238 | 238 | * 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 | |
| 240 | 240 | * while when convoluting vertically source is a buffer. |
| 241 | 241 | * |
| 242 | 242 | * @param ctx the filter context. |
| 243 | 243 | * @param arg data to be passed between threads. |
| 244 | − * @param jobnr current job nubmer. | |
| 244 | + * @param jobnr current job number. | |
| 245 | 245 | * @param nb_jobs total number of jobs. |
| 246 | 246 | * |
| 247 | 247 | * @return 0. |
| @@ -309,7 +309,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int · 61 unmodified lines | ||
| 309 | 309 | * |
| 310 | 310 | * @param ctx the filter context. |
| 311 | 311 | * @param arg data to be passed between threads. |
| 312 | − * @param jobnr current job nubmer. | |
| 312 | + * @param jobnr current job number. | |
| 313 | 313 | * @param nb_jobs total number of jobs. |
| 314 | 314 | * |
| 315 | 315 | * @return 0. |
| @@ -430,7 +430,7 @@ static int get_derivative(AVFilterContext *ctx, ThreadData *td) · 114 unmodified lines | ||
| 430 | 430 | * |
| 431 | 431 | * @param ctx the filter context. |
| 432 | 432 | * @param arg data to be passed between threads. |
| 433 | − * @param jobnr current job nubmer. | |
| 433 | + * @param jobnr current job number. | |
| 434 | 434 | * @param nb_jobs total number of jobs. |
| 435 | 435 | * |
| 436 | 436 | * @return 0. |
| @@ -479,7 +479,7 @@ static int filter_slice_grey_edge(AVFilterContext* ctx, void* arg, int jobnr, in · 42 unmodified lines | ||
| 479 | 479 | * Main control function for grey edge algorithm. |
| 480 | 480 | * |
| 481 | 481 | * @param ctx the filter context. |
| 482 | − * @param in frame to perfrom grey edge on. | |
| 482 | + * @param in frame to perform grey edge on. | |
| 483 | 483 | * |
| 484 | 484 | * @return 0 in case of success, a negative value corresponding to an |
| 485 | 485 | * AVERROR code in case of failure. |
| @@ -558,7 +558,7 @@ static void normalize_light(double *light) · 72 unmodified lines | ||
| 558 | 558 | * after estimation. |
| 559 | 559 | * |
| 560 | 560 | * @param ctx the filter context. |
| 561 | − * @param in frame to perfrom estimation on. | |
| 561 | + * @param in frame to perform estimation on. | |
| 562 | 562 | * |
| 563 | 563 | * @return 0 in case of success, a negative value corresponding to an |
| 564 | 564 | * AVERROR code in case of failure. |
| @@ -584,7 +584,7 @@ static int illumination_estimation(AVFilterContext *ctx, AVFrame *in) · 19 unmodified lines | ||
| 584 | 584 | * |
| 585 | 585 | * @param ctx the filter context. |
| 586 | 586 | * @param arg data to be passed between threads. |
| 587 | − * @param jobnr current job nubmer. | |
| 587 | + * @param jobnr current job number. | |
| 588 | 588 | * @param nb_jobs total number of jobs. |
| 589 | 589 | * |
| 590 | 590 | * @return 0. |
| @@ -352,7 +352,7 @@ static const AVOption convolution_opencl_options[] = { · 351 unmodified lines | ||
| 352 | 352 | { "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 }, |
| 353 | 353 | { "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 }, |
| 354 | 354 | { "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}, | |
| 356 | 356 | { "1rdiv", "set rdiv for 2nd plane", OFFSET(rdivs[1]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, |
| 357 | 357 | { "2rdiv", "set rdiv for 3rd plane", OFFSET(rdivs[2]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, |
| 358 | 358 | { "3rdiv", "set rdiv for 4th plane", OFFSET(rdivs[3]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, |
| @@ -58,7 +58,7 @@ typedef struct CoreImageContext { · 57 unmodified lines | ||
| 58 | 58 | CFTypeRef *filters; ///< CIFilter object for all requested filters |
| 59 | 59 | int num_filters; ///< Amount of filters in *filters |
| 60 | 60 | |
| 61 | − char *output_rect; ///< Rectangle to be filled with filter intput | |
| 61 | + char *output_rect; ///< Rectangle to be filled with filter input | |
| 62 | 62 | int list_filters; ///< Option used to list all available filters including generators |
| 63 | 63 | int list_generators; ///< Option used to list all available generators |
| 64 | 64 | } CoreImageContext; |
| @@ -493,7 +493,7 @@ static inline int interpolate_pchip(void *log_ctx, uint16_t *y, · 492 unmodified lines | ||
| 493 | 493 | goto end; |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | − fi = xi + n; /* output values at inteval endpoints */ | |
| 496 | + fi = xi + n; /* output values at interval endpoints */ | |
| 497 | 497 | di = fi + n; /* output slope wrt normalized input at interval endpoints */ |
| 498 | 498 | hi = di + n; /* interval widths */ |
| 499 | 499 | mi = hi + n - 1; /* linear slope over intervals */ |
| @@ -81,7 +81,7 @@ static const AVOption dnn_detect_options[] = { · 80 unmodified lines | ||
| 81 | 81 | { "cell_w", "cell width", OFFSET2(cell_w), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS }, |
| 82 | 82 | { "cell_h", "cell height", OFFSET2(cell_h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS }, |
| 83 | 83 | { "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 }, | |
| 85 | 85 | { NULL } |
| 86 | 86 | }; |
| 87 | 87 | |
| @@ -454,7 +454,7 @@ static const AVOption drawbox_options[] = { · 453 unmodified lines | ||
| 454 | 454 | { "thickness", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS }, |
| 455 | 455 | { "t", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS }, |
| 456 | 456 | { "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 }, | |
| 458 | 458 | { NULL } |
| 459 | 459 | }; |
| 460 | 460 | |
| @@ -562,7 +562,7 @@ static int load_font_fontconfig(AVFilterContext *ctx) · 561 unmodified lines | ||
| 562 | 562 | FcDefaultSubstitute(pat); |
| 563 | 563 | |
| 564 | 564 | 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 */ | |
| 566 | 566 | FcPatternDestroy(pat); |
| 567 | 567 | return AVERROR(ENOMEM); |
| 568 | 568 | } |
| @@ -866,7 +866,7 @@ static int func_pts(void *ctx, AVBPrint *bp, const char *function_name, unsigned · 297 unmodified lines | ||
| 866 | 866 | if (argc >= 3) { |
| 867 | 867 | if (!strcmp(fmt, "hms")) { |
| 868 | 868 | 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"); | |
| 870 | 870 | fmt = "hms24"; |
| 871 | 871 | } else { |
| 872 | 872 | av_log(ctx, AV_LOG_ERROR, "Invalid argument '%s', '24HH' was expected\n", argv[2]); |
| @@ -463,7 +463,7 @@ static void row_fdct_c(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size · 462 unmodified lines | ||
| 463 | 463 | tmp12 = tmp1 - tmp2; |
| 464 | 464 | //Even columns are written first, this leads to different order of columns |
| 465 | 465 | //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. | |
| 467 | 467 | dataptr[2] = tmp10 + tmp11; |
| 468 | 468 | dataptr[3] = tmp10 - tmp11; |
| 469 | 469 | |
| @@ -1412,7 +1412,7 @@ static int libplacebo_config_output(AVFilterLink *outlink) · 1411 unmodified lines | ||
| 1412 | 1412 | |
| 1413 | 1413 | s->vkctx.output_width = outlink->w; |
| 1414 | 1414 | s->vkctx.output_height = outlink->h; |
| 1415 | − /* Default to re-using the input format */ | |
| 1415 | + /* Default to reusing the input format */ | |
| 1416 | 1416 | if (s->out_format == AV_PIX_FMT_NONE || s->out_format == AV_PIX_FMT_VULKAN) { |
| 1417 | 1417 | s->vkctx.output_format = s->vkctx.input_format; |
| 1418 | 1418 | } else { |
| @@ -208,7 +208,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *cur) · 207 unmodified lines | ||
| 208 | 208 | av_frame_free(&decimate->ref); |
| 209 | 209 | decimate->ref = cur; |
| 210 | 210 | 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 | |
| 212 | 212 | decimate->keep_count = 0; |
| 213 | 213 | |
| 214 | 214 | if ((ret = ff_filter_frame(outlink, av_frame_clone(cur))) < 0) |
| @@ -137,7 +137,7 @@ static int eval_expr(AVFilterContext *ctx) · 136 unmodified lines | ||
| 137 | 137 | var_values[VAR_OVERLAY_X] = |
| 138 | 138 | var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL); |
| 139 | 139 | |
| 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 */ | |
| 141 | 141 | var_values[VAR_OVERLAY_W] = |
| 142 | 142 | var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL); |
| 143 | 143 | var_values[VAR_OVERLAY_H] = |
| @@ -108,7 +108,7 @@ static int eval_expr(AVFilterContext *avctx) · 107 unmodified lines | ||
| 108 | 108 | var_values[VAR_OVERLAY_X] = |
| 109 | 109 | var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL); |
| 110 | 110 | |
| 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 */ | |
| 112 | 112 | var_values[VAR_OVERLAY_W] = |
| 113 | 113 | var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL); |
| 114 | 114 | var_values[VAR_OVERLAY_H] = |
| @@ -49,7 +49,7 @@ · 48 unmodified lines | ||
| 49 | 49 | * remove rough edges, is stored in each pixel. This is done using an in-place |
| 50 | 50 | * erosion algorithm, and incrementing each pixel that survives any given |
| 51 | 51 | * 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 | |
| 53 | 53 | * binary masks, where each pixel within a radius N (where N is the size of the |
| 54 | 54 | * mask) is a 1, and all other pixels are a 0. Although a gaussian mask would be |
| 55 | 55 | * more mathematically accurate, a binary mask works better in practice because |
| @@ -64,7 +64,7 @@ · 8 unmodified lines | ||
| 64 | 64 | * condition is met (that the image function itself is continuous), even if the |
| 65 | 65 | * second boundary condition (that the derivative of the image function is |
| 66 | 66 | * 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 | |
| 68 | 68 | * algorithm) should offer even better results on paper, but the noise in a |
| 69 | 69 | * typical TV signal should make anything based on derivatives hopelessly noisy. |
| 70 | 70 | */ |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2010 Mark Heath mjpeg0 @ silicontrip dot org |
| 3 | 3 | * Copyright (c) 2014 Clément Bœsch |
| 4 | − * Copyright (c) 2014 Dave Rice @dericed | |
| 4 | + * Copyright (c) 2014 Dave Rice | |
| 5 | 5 | * |
| 6 | 6 | * This file is part of FFmpeg. |
| 7 | 7 | * |
| @@ -304,7 +304,7 @@ static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 296 unmodified lines | ||
| 304 | 304 | continue; |
| 305 | 305 | |
| 306 | 306 | // 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. | |
| 308 | 308 | |
| 309 | 309 | #define FILTER(i, j) \ |
| 310 | 310 | 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 | ||
| 352 | 352 | continue; |
| 353 | 353 | |
| 354 | 354 | // 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. | |
| 356 | 356 | |
| 357 | 357 | if (y - 2 >= 0 && y + 2 < h) { |
| 358 | 358 | for (x = 1; x < w - 1; x++) { |
| @@ -581,7 +581,7 @@ static int request_frame(AVFilterLink *outlink) · 580 unmodified lines | ||
| 581 | 581 | StreamContext *sc, *sc2; |
| 582 | 582 | MatchingInfo match; |
| 583 | 583 | 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 */ | |
| 585 | 585 | |
| 586 | 586 | /* process all inputs */ |
| 587 | 587 | for (i = 0; i < sic->nb_inputs; i++){ |
| @@ -103,7 +103,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 102 unmodified lines | ||
| 103 | 103 | |
| 104 | 104 | static int config_input(AVFilterLink *inlink) |
| 105 | 105 | { |
| 106 | − // Video input data avilable | |
| 106 | + // Video input data available | |
| 107 | 107 | AVFilterContext *ctx = inlink->dst; |
| 108 | 108 | SiTiContext *s = ctx->priv; |
| 109 | 109 | int max_pixsteps[4]; |
| @@ -38,7 +38,7 @@ · 37 unmodified lines | ||
| 38 | 38 | |
| 39 | 39 | /* |
| 40 | 40 | * @file |
| 41 | − * Caculate the SSIM between two input 360 videos. | |
| 41 | + * Calculate the SSIM between two input 360 videos. | |
| 42 | 42 | */ |
| 43 | 43 | |
| 44 | 44 | #include <math.h> |
| @@ -250,7 +250,7 @@ static const AVOption ssim360_options[] = { · 205 unmodified lines | ||
| 250 | 250 | OFFSET(ref_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS }, |
| 251 | 251 | |
| 252 | 252 | { "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", | |
| 254 | 254 | OFFSET(main_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS }, |
| 255 | 255 | |
| 256 | 256 | { "use_tape", |
| @@ -158,7 +158,7 @@ static int tonemap_opencl_init(AVFilterContext *avctx) · 157 unmodified lines | ||
| 158 | 158 | av_log(ctx, AV_LOG_DEBUG, "mapping range from %s to %s\n", |
| 159 | 159 | av_color_range_name(ctx->range_in), |
| 160 | 160 | 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 | |
| 162 | 162 | // please remove when more functionalities are implemented |
| 163 | 163 | av_assert0(ctx->trc_out == AVCOL_TRC_BT709 || |
| 164 | 164 | ctx->trc_out == AVCOL_TRC_BT2020_10); |
| @@ -410,7 +410,7 @@ static int config_input(AVFilterLink *inlink) · 409 unmodified lines | ||
| 410 | 410 | } |
| 411 | 411 | avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; |
| 412 | 412 | 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 | |
| 414 | 414 | ret = avcodec_open2(avctx_enc, enc, &opts); |
| 415 | 415 | av_dict_free(&opts); |
| 416 | 416 | if (ret < 0) |
| @@ -648,7 +648,7 @@ static int graphs_build(AVFrame *in, AVFrame *out, const AVPixFmtDescriptor *des · 647 unmodified lines | ||
| 648 | 648 | alpha_src_format = s->alpha_src_format; |
| 649 | 649 | alpha_dst_format = s->alpha_dst_format; |
| 650 | 650 | /* 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 */ | |
| 652 | 652 | alpha_src_format.active_region.width = in->width; |
| 653 | 653 | alpha_src_format.active_region.height = in_slice_end - in_slice_start; |
| 654 | 654 | alpha_src_format.active_region.left = 0; |
| @@ -716,7 +716,7 @@ static int next_frame_internal(AVFilterContext *avctx, ID3D11Texture2D **desktop · 715 unmodified lines | ||
| 716 | 716 | goto error; |
| 717 | 717 | } |
| 718 | 718 | |
| 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. | |
| 720 | 720 | // The API might even return it in with a format that was not in the initial |
| 721 | 721 | // list of supported formats, and it can change/flicker randomly. |
| 722 | 722 | // To work around this, return an internal copy of the last valid texture we got. |
| @@ -87,7 +87,7 @@ ALIGN 16 · 86 unmodified lines | ||
| 87 | 87 | mov [frameantq+xq*2], t0w |
| 88 | 88 | movifnidn dstq, dstmp |
| 89 | 89 | %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 | |
| 91 | 91 | %endif |
| 92 | 92 | %if %1 == 8 |
| 93 | 93 | mov [dstq+xq], t0b |