History

all: Don't set AVClass.item_name to its default value

Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations.

Andreas Rheinhardt committed 2 years ago

Commit 0c6203c1 parent 46775e6363 files · +0 −408Browse files

Showing the changes to libavfilter (22 of 363 files). Show all

Unified · Split

22 files
  1. libavfilter/af_aresample.c +0 −1
  2. libavfilter/avfiltergraph.c +0 −1
  3. libavfilter/framesync.h +0 −1
  4. libavfilter/internal.h +0 −1
  5. libavfilter/stack_internal.c +0 −1
  6. libavfilter/vf_bilateral_cuda.c +0 −1
  7. libavfilter/vf_bwdif_cuda.c +0 −1
  8. libavfilter/vf_bwdif_vulkan.c +0 −1
  9. libavfilter/vf_chromakey_cuda.c +0 −1
  10. libavfilter/vf_colorspace_cuda.c +0 −1
  11. libavfilter/vf_deinterlace_vaapi.c +0 −1
  12. libavfilter/vf_hwdownload.c +0 −1
  13. libavfilter/vf_scale.c +0 −1
  14. libavfilter/vf_scale_cuda.c +0 −1
  15. libavfilter/vf_scale_npp.c +0 −1
  16. libavfilter/vf_sharpen_npp.c +0 −1
  17. libavfilter/vf_spp.c +0 −1
  18. libavfilter/vf_transpose_npp.c +0 −1
  19. libavfilter/vf_vpp_qsv.c +0 −1
  20. libavfilter/vf_yadif.c +0 −1
  21. libavfilter/vf_yadif_cuda.c +0 −1
  22. libavfilter/vidstabutils.c +0 −1
libavfilter/af_aresample.c+0−1
@@ -351,7 +351,6 @@ static const AVOption options[] = { · 350 unmodified lines
351351
352352 static const AVClass aresample_class = {
353353 .class_name = "aresample",
354− .item_name = av_default_item_name,
355354 .option = options,
356355 .version = LIBAVUTIL_VERSION_INT,
357356 .child_class_iterate = resample_child_class_iterate,
libavfilter/avfiltergraph.c+0−1
@@ -60,7 +60,6 @@ static const AVOption filtergraph_options[] = { · 59 unmodified lines
6060
6161 static const AVClass filtergraph_class = {
6262 .class_name = "AVFilterGraph",
63− .item_name = av_default_item_name,
6463 .version = LIBAVUTIL_VERSION_INT,
6564 .option = filtergraph_options,
6665 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/framesync.h+0−1
@@ -320,7 +320,6 @@ const AVClass *ff_framesync_child_class_iterate(void **iter); · 319 unmodified lines
320320 #define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \
321321 static const AVClass name##_class = { \
322322 .class_name = desc, \
323− .item_name = av_default_item_name, \
324323 .option = options, \
325324 .version = LIBAVUTIL_VERSION_INT, \
326325 .category = AV_CLASS_CATEGORY_FILTER, \
libavfilter/internal.h+0−1
@@ -311,7 +311,6 @@ int ff_request_frame(AVFilterLink *link); · 310 unmodified lines
311311 #define AVFILTER_DEFINE_CLASS_EXT(name, desc, options) \
312312 static const AVClass name##_class = { \
313313 .class_name = desc, \
314− .item_name = av_default_item_name, \
315314 .option = options, \
316315 .version = LIBAVUTIL_VERSION_INT, \
317316 .category = AV_CLASS_CATEGORY_FILTER, \
libavfilter/stack_internal.c+0−1
@@ -336,7 +336,6 @@ static const AVFilterPad stack_outputs[] = { · 335 unmodified lines
336336 #define DEFINE_STACK_FILTER(category, api, capi, filter_flags) \
337337 static const AVClass category##_##api##_class = { \
338338 .class_name = #category "_" #api, \
339− .item_name = av_default_item_name, \
340339 .option = category##_##api##_options, \
341340 .version = LIBAVUTIL_VERSION_INT, \
342341 }; \
libavfilter/vf_bilateral_cuda.c+0−1
@@ -435,7 +435,6 @@ static const AVOption options[] = { · 434 unmodified lines
435435
436436 static const AVClass cuda_bilateral_class = {
437437 .class_name = "cudabilateral",
438− .item_name = av_default_item_name,
439438 .option = options,
440439 .version = LIBAVUTIL_VERSION_INT,
441440 };
libavfilter/vf_bwdif_cuda.c+0−1
@@ -338,7 +338,6 @@ exit: · 337 unmodified lines
338338
339339 static const AVClass bwdif_cuda_class = {
340340 .class_name = "bwdif_cuda",
341− .item_name = av_default_item_name,
342341 .option = ff_yadif_options,
343342 .version = LIBAVUTIL_VERSION_INT,
344343 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_bwdif_vulkan.c+0−1
@@ -375,7 +375,6 @@ static int bwdif_vulkan_config_output(AVFilterLink *outlink) · 374 unmodified lines
375375
376376 static const AVClass bwdif_vulkan_class = {
377377 .class_name = "bwdif_vulkan",
378− .item_name = av_default_item_name,
379378 .option = ff_yadif_options,
380379 .version = LIBAVUTIL_VERSION_INT,
381380 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_chromakey_cuda.c+0−1
@@ -454,7 +454,6 @@ static const AVOption options[] = { · 453 unmodified lines
454454
455455 static const AVClass cudachromakey_class = {
456456 .class_name = "cudachromakey",
457− .item_name = av_default_item_name,
458457 .option = options,
459458 .version = LIBAVUTIL_VERSION_INT,
460459 };
libavfilter/vf_colorspace_cuda.c+0−1
@@ -392,7 +392,6 @@ static const AVOption options[] = { · 391 unmodified lines
392392
393393 static const AVClass cudacolorspace_class = {
394394 .class_name = "colorspace_cuda",
395− .item_name = av_default_item_name,
396395 .option = options,
397396 .version = LIBAVUTIL_VERSION_INT,
398397 };
libavfilter/vf_deinterlace_vaapi.c+0−1
@@ -392,7 +392,6 @@ static const AVOption deint_vaapi_options[] = { · 391 unmodified lines
392392
393393 static const AVClass deint_vaapi_class = {
394394 .class_name = "deinterlace_vaapi",
395− .item_name = av_default_item_name,
396395 .option = deint_vaapi_options,
397396 .version = LIBAVUTIL_VERSION_INT,
398397 };
libavfilter/vf_hwdownload.c+0−1
@@ -167,7 +167,6 @@ static av_cold void hwdownload_uninit(AVFilterContext *avctx) · 166 unmodified lines
167167
168168 static const AVClass hwdownload_class = {
169169 .class_name = "hwdownload",
170− .item_name = av_default_item_name,
171170 .option = NULL,
172171 .version = LIBAVUTIL_VERSION_INT,
173172 };
libavfilter/vf_scale.c+0−1
@@ -1022,7 +1022,6 @@ static const AVOption scale_options[] = { · 1021 unmodified lines
10221022
10231023 static const AVClass scale_class = {
10241024 .class_name = "scale(2ref)",
1025− .item_name = av_default_item_name,
10261025 .option = scale_options,
10271026 .version = LIBAVUTIL_VERSION_INT,
10281027 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_scale_cuda.c+0−1
@@ -603,7 +603,6 @@ static const AVOption options[] = { · 602 unmodified lines
603603
604604 static const AVClass cudascale_class = {
605605 .class_name = "cudascale",
606− .item_name = av_default_item_name,
607606 .option = options,
608607 .version = LIBAVUTIL_VERSION_INT,
609608 };
libavfilter/vf_scale_npp.c+0−1
@@ -1013,7 +1013,6 @@ static const AVOption options[] = { · 1012 unmodified lines
10131013
10141014 static const AVClass nppscale_class = {
10151015 .class_name = "nppscale",
1016− .item_name = av_default_item_name,
10171016 .option = options,
10181017 .version = LIBAVUTIL_VERSION_INT,
10191018 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_sharpen_npp.c+0−1
@@ -235,7 +235,6 @@ static const AVOption options[] = { · 234 unmodified lines
235235
236236 static const AVClass nppsharpen_class = {
237237 .class_name = "nppsharpen",
238− .item_name = av_default_item_name,
239238 .option = options,
240239 .version = LIBAVUTIL_VERSION_INT,
241240 };
libavfilter/vf_spp.c+0−1
@@ -75,7 +75,6 @@ static const AVOption spp_options[] = { · 74 unmodified lines
7575
7676 static const AVClass spp_class = {
7777 .class_name = "spp",
78− .item_name = av_default_item_name,
7978 .option = spp_options,
8079 .version = LIBAVUTIL_VERSION_INT,
8180 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_transpose_npp.c+0−1
@@ -440,7 +440,6 @@ static const AVOption options[] = { · 439 unmodified lines
440440
441441 static const AVClass npptranspose_class = {
442442 .class_name = "npptranspose",
443− .item_name = av_default_item_name,
444443 .option = options,
445444 .version = LIBAVUTIL_VERSION_INT,
446445 };
libavfilter/vf_vpp_qsv.c+0−1
@@ -824,7 +824,6 @@ static const AVFilterPad vpp_outputs[] = { · 823 unmodified lines
824824 #define DEFINE_QSV_FILTER(x, sn, ln, fmts) \
825825 static const AVClass x##_class = { \
826826 .class_name = #sn "_qsv", \
827− .item_name = av_default_item_name, \
828827 .option = x##_options, \
829828 .version = LIBAVUTIL_VERSION_INT, \
830829 }; \
libavfilter/vf_yadif.c+0−1
@@ -326,7 +326,6 @@ static int config_output(AVFilterLink *outlink) · 325 unmodified lines
326326
327327 static const AVClass yadif_class = {
328328 .class_name = "yadif",
329− .item_name = av_default_item_name,
330329 .option = ff_yadif_options,
331330 .version = LIBAVUTIL_VERSION_INT,
332331 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_yadif_cuda.c+0−1
@@ -338,7 +338,6 @@ exit: · 337 unmodified lines
338338
339339 static const AVClass yadif_cuda_class = {
340340 .class_name = "yadif_cuda",
341− .item_name = av_default_item_name,
342341 .option = ff_yadif_options,
343342 .version = LIBAVUTIL_VERSION_INT,
344343 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vidstabutils.c+0−1
@@ -61,7 +61,6 @@ static int vs2av_log(int type, const char *tag, const char *format, ...) · 60 unmodified lines
6161 VS2AVLogCtx ctx;
6262 AVClass class = {
6363 .class_name = tag,
64− .item_name = av_default_item_name,
6564 .option = 0,
6665 .version = LIBAVUTIL_VERSION_INT,
6766 .category = AV_CLASS_CATEGORY_FILTER,

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