Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations.
Showing the changes to libavfilter (22 of 363 files). Show all
Unified · Split
| @@ -351,7 +351,6 @@ static const AVOption options[] = { · 350 unmodified lines | |||
| 351 | 351 | ||
| 352 | static const AVClass aresample_class = { | 352 | static const AVClass aresample_class = { |
| 353 | .class_name = "aresample", | 353 | .class_name = "aresample", |
| 354 | .item_name = av_default_item_name, | ||
| 355 | .option = options, | 354 | .option = options, |
| 356 | .version = LIBAVUTIL_VERSION_INT, | 355 | .version = LIBAVUTIL_VERSION_INT, |
| 357 | .child_class_iterate = resample_child_class_iterate, | 356 | .child_class_iterate = resample_child_class_iterate, |
| @@ -60,7 +60,6 @@ static const AVOption filtergraph_options[] = { · 59 unmodified lines | |||
| 60 | 60 | ||
| 61 | static const AVClass filtergraph_class = { | 61 | static const AVClass filtergraph_class = { |
| 62 | .class_name = "AVFilterGraph", | 62 | .class_name = "AVFilterGraph", |
| 63 | .item_name = av_default_item_name, | ||
| 64 | .version = LIBAVUTIL_VERSION_INT, | 63 | .version = LIBAVUTIL_VERSION_INT, |
| 65 | .option = filtergraph_options, | 64 | .option = filtergraph_options, |
| 66 | .category = AV_CLASS_CATEGORY_FILTER, | 65 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -320,7 +320,6 @@ const AVClass *ff_framesync_child_class_iterate(void **iter); · 319 unmodified lines | |||
| 320 | #define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \ | 320 | #define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \ |
| 321 | static const AVClass name##_class = { \ | 321 | static const AVClass name##_class = { \ |
| 322 | .class_name = desc, \ | 322 | .class_name = desc, \ |
| 323 | .item_name = av_default_item_name, \ | ||
| 324 | .option = options, \ | 323 | .option = options, \ |
| 325 | .version = LIBAVUTIL_VERSION_INT, \ | 324 | .version = LIBAVUTIL_VERSION_INT, \ |
| 326 | .category = AV_CLASS_CATEGORY_FILTER, \ | 325 | .category = AV_CLASS_CATEGORY_FILTER, \ |
| @@ -311,7 +311,6 @@ int ff_request_frame(AVFilterLink *link); · 310 unmodified lines | |||
| 311 | #define AVFILTER_DEFINE_CLASS_EXT(name, desc, options) \ | 311 | #define AVFILTER_DEFINE_CLASS_EXT(name, desc, options) \ |
| 312 | static const AVClass name##_class = { \ | 312 | static const AVClass name##_class = { \ |
| 313 | .class_name = desc, \ | 313 | .class_name = desc, \ |
| 314 | .item_name = av_default_item_name, \ | ||
| 315 | .option = options, \ | 314 | .option = options, \ |
| 316 | .version = LIBAVUTIL_VERSION_INT, \ | 315 | .version = LIBAVUTIL_VERSION_INT, \ |
| 317 | .category = AV_CLASS_CATEGORY_FILTER, \ | 316 | .category = AV_CLASS_CATEGORY_FILTER, \ |
| @@ -336,7 +336,6 @@ static const AVFilterPad stack_outputs[] = { · 335 unmodified lines | |||
| 336 | #define DEFINE_STACK_FILTER(category, api, capi, filter_flags) \ | 336 | #define DEFINE_STACK_FILTER(category, api, capi, filter_flags) \ |
| 337 | static const AVClass category##_##api##_class = { \ | 337 | static const AVClass category##_##api##_class = { \ |
| 338 | .class_name = #category "_" #api, \ | 338 | .class_name = #category "_" #api, \ |
| 339 | .item_name = av_default_item_name, \ | ||
| 340 | .option = category##_##api##_options, \ | 339 | .option = category##_##api##_options, \ |
| 341 | .version = LIBAVUTIL_VERSION_INT, \ | 340 | .version = LIBAVUTIL_VERSION_INT, \ |
| 342 | }; \ | 341 | }; \ |
| @@ -435,7 +435,6 @@ static const AVOption options[] = { · 434 unmodified lines | |||
| 435 | 435 | ||
| 436 | static const AVClass cuda_bilateral_class = { | 436 | static const AVClass cuda_bilateral_class = { |
| 437 | .class_name = "cudabilateral", | 437 | .class_name = "cudabilateral", |
| 438 | .item_name = av_default_item_name, | ||
| 439 | .option = options, | 438 | .option = options, |
| 440 | .version = LIBAVUTIL_VERSION_INT, | 439 | .version = LIBAVUTIL_VERSION_INT, |
| 441 | }; | 440 | }; |
| @@ -338,7 +338,6 @@ exit: · 337 unmodified lines | |||
| 338 | 338 | ||
| 339 | static const AVClass bwdif_cuda_class = { | 339 | static const AVClass bwdif_cuda_class = { |
| 340 | .class_name = "bwdif_cuda", | 340 | .class_name = "bwdif_cuda", |
| 341 | .item_name = av_default_item_name, | ||
| 342 | .option = ff_yadif_options, | 341 | .option = ff_yadif_options, |
| 343 | .version = LIBAVUTIL_VERSION_INT, | 342 | .version = LIBAVUTIL_VERSION_INT, |
| 344 | .category = AV_CLASS_CATEGORY_FILTER, | 343 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -375,7 +375,6 @@ static int bwdif_vulkan_config_output(AVFilterLink *outlink) · 374 unmodified lines | |||
| 375 | 375 | ||
| 376 | static const AVClass bwdif_vulkan_class = { | 376 | static const AVClass bwdif_vulkan_class = { |
| 377 | .class_name = "bwdif_vulkan", | 377 | .class_name = "bwdif_vulkan", |
| 378 | .item_name = av_default_item_name, | ||
| 379 | .option = ff_yadif_options, | 378 | .option = ff_yadif_options, |
| 380 | .version = LIBAVUTIL_VERSION_INT, | 379 | .version = LIBAVUTIL_VERSION_INT, |
| 381 | .category = AV_CLASS_CATEGORY_FILTER, | 380 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -454,7 +454,6 @@ static const AVOption options[] = { · 453 unmodified lines | |||
| 454 | 454 | ||
| 455 | static const AVClass cudachromakey_class = { | 455 | static const AVClass cudachromakey_class = { |
| 456 | .class_name = "cudachromakey", | 456 | .class_name = "cudachromakey", |
| 457 | .item_name = av_default_item_name, | ||
| 458 | .option = options, | 457 | .option = options, |
| 459 | .version = LIBAVUTIL_VERSION_INT, | 458 | .version = LIBAVUTIL_VERSION_INT, |
| 460 | }; | 459 | }; |
| @@ -392,7 +392,6 @@ static const AVOption options[] = { · 391 unmodified lines | |||
| 392 | 392 | ||
| 393 | static const AVClass cudacolorspace_class = { | 393 | static const AVClass cudacolorspace_class = { |
| 394 | .class_name = "colorspace_cuda", | 394 | .class_name = "colorspace_cuda", |
| 395 | .item_name = av_default_item_name, | ||
| 396 | .option = options, | 395 | .option = options, |
| 397 | .version = LIBAVUTIL_VERSION_INT, | 396 | .version = LIBAVUTIL_VERSION_INT, |
| 398 | }; | 397 | }; |
| @@ -392,7 +392,6 @@ static const AVOption deint_vaapi_options[] = { · 391 unmodified lines | |||
| 392 | 392 | ||
| 393 | static const AVClass deint_vaapi_class = { | 393 | static const AVClass deint_vaapi_class = { |
| 394 | .class_name = "deinterlace_vaapi", | 394 | .class_name = "deinterlace_vaapi", |
| 395 | .item_name = av_default_item_name, | ||
| 396 | .option = deint_vaapi_options, | 395 | .option = deint_vaapi_options, |
| 397 | .version = LIBAVUTIL_VERSION_INT, | 396 | .version = LIBAVUTIL_VERSION_INT, |
| 398 | }; | 397 | }; |
| @@ -167,7 +167,6 @@ static av_cold void hwdownload_uninit(AVFilterContext *avctx) · 166 unmodified lines | |||
| 167 | 167 | ||
| 168 | static const AVClass hwdownload_class = { | 168 | static const AVClass hwdownload_class = { |
| 169 | .class_name = "hwdownload", | 169 | .class_name = "hwdownload", |
| 170 | .item_name = av_default_item_name, | ||
| 171 | .option = NULL, | 170 | .option = NULL, |
| 172 | .version = LIBAVUTIL_VERSION_INT, | 171 | .version = LIBAVUTIL_VERSION_INT, |
| 173 | }; | 172 | }; |
| @@ -1022,7 +1022,6 @@ static const AVOption scale_options[] = { · 1021 unmodified lines | |||
| 1022 | 1022 | ||
| 1023 | static const AVClass scale_class = { | 1023 | static const AVClass scale_class = { |
| 1024 | .class_name = "scale(2ref)", | 1024 | .class_name = "scale(2ref)", |
| 1025 | .item_name = av_default_item_name, | ||
| 1026 | .option = scale_options, | 1025 | .option = scale_options, |
| 1027 | .version = LIBAVUTIL_VERSION_INT, | 1026 | .version = LIBAVUTIL_VERSION_INT, |
| 1028 | .category = AV_CLASS_CATEGORY_FILTER, | 1027 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -603,7 +603,6 @@ static const AVOption options[] = { · 602 unmodified lines | |||
| 603 | 603 | ||
| 604 | static const AVClass cudascale_class = { | 604 | static const AVClass cudascale_class = { |
| 605 | .class_name = "cudascale", | 605 | .class_name = "cudascale", |
| 606 | .item_name = av_default_item_name, | ||
| 607 | .option = options, | 606 | .option = options, |
| 608 | .version = LIBAVUTIL_VERSION_INT, | 607 | .version = LIBAVUTIL_VERSION_INT, |
| 609 | }; | 608 | }; |
| @@ -1013,7 +1013,6 @@ static const AVOption options[] = { · 1012 unmodified lines | |||
| 1013 | 1013 | ||
| 1014 | static const AVClass nppscale_class = { | 1014 | static const AVClass nppscale_class = { |
| 1015 | .class_name = "nppscale", | 1015 | .class_name = "nppscale", |
| 1016 | .item_name = av_default_item_name, | ||
| 1017 | .option = options, | 1016 | .option = options, |
| 1018 | .version = LIBAVUTIL_VERSION_INT, | 1017 | .version = LIBAVUTIL_VERSION_INT, |
| 1019 | .category = AV_CLASS_CATEGORY_FILTER, | 1018 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -235,7 +235,6 @@ static const AVOption options[] = { · 234 unmodified lines | |||
| 235 | 235 | ||
| 236 | static const AVClass nppsharpen_class = { | 236 | static const AVClass nppsharpen_class = { |
| 237 | .class_name = "nppsharpen", | 237 | .class_name = "nppsharpen", |
| 238 | .item_name = av_default_item_name, | ||
| 239 | .option = options, | 238 | .option = options, |
| 240 | .version = LIBAVUTIL_VERSION_INT, | 239 | .version = LIBAVUTIL_VERSION_INT, |
| 241 | }; | 240 | }; |
| @@ -75,7 +75,6 @@ static const AVOption spp_options[] = { · 74 unmodified lines | |||
| 75 | 75 | ||
| 76 | static const AVClass spp_class = { | 76 | static const AVClass spp_class = { |
| 77 | .class_name = "spp", | 77 | .class_name = "spp", |
| 78 | .item_name = av_default_item_name, | ||
| 79 | .option = spp_options, | 78 | .option = spp_options, |
| 80 | .version = LIBAVUTIL_VERSION_INT, | 79 | .version = LIBAVUTIL_VERSION_INT, |
| 81 | .category = AV_CLASS_CATEGORY_FILTER, | 80 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -440,7 +440,6 @@ static const AVOption options[] = { · 439 unmodified lines | |||
| 440 | 440 | ||
| 441 | static const AVClass npptranspose_class = { | 441 | static const AVClass npptranspose_class = { |
| 442 | .class_name = "npptranspose", | 442 | .class_name = "npptranspose", |
| 443 | .item_name = av_default_item_name, | ||
| 444 | .option = options, | 443 | .option = options, |
| 445 | .version = LIBAVUTIL_VERSION_INT, | 444 | .version = LIBAVUTIL_VERSION_INT, |
| 446 | }; | 445 | }; |
| @@ -824,7 +824,6 @@ static const AVFilterPad vpp_outputs[] = { · 823 unmodified lines | |||
| 824 | #define DEFINE_QSV_FILTER(x, sn, ln, fmts) \ | 824 | #define DEFINE_QSV_FILTER(x, sn, ln, fmts) \ |
| 825 | static const AVClass x##_class = { \ | 825 | static const AVClass x##_class = { \ |
| 826 | .class_name = #sn "_qsv", \ | 826 | .class_name = #sn "_qsv", \ |
| 827 | .item_name = av_default_item_name, \ | ||
| 828 | .option = x##_options, \ | 827 | .option = x##_options, \ |
| 829 | .version = LIBAVUTIL_VERSION_INT, \ | 828 | .version = LIBAVUTIL_VERSION_INT, \ |
| 830 | }; \ | 829 | }; \ |
| @@ -326,7 +326,6 @@ static int config_output(AVFilterLink *outlink) · 325 unmodified lines | |||
| 326 | 326 | ||
| 327 | static const AVClass yadif_class = { | 327 | static const AVClass yadif_class = { |
| 328 | .class_name = "yadif", | 328 | .class_name = "yadif", |
| 329 | .item_name = av_default_item_name, | ||
| 330 | .option = ff_yadif_options, | 329 | .option = ff_yadif_options, |
| 331 | .version = LIBAVUTIL_VERSION_INT, | 330 | .version = LIBAVUTIL_VERSION_INT, |
| 332 | .category = AV_CLASS_CATEGORY_FILTER, | 331 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -338,7 +338,6 @@ exit: · 337 unmodified lines | |||
| 338 | 338 | ||
| 339 | static const AVClass yadif_cuda_class = { | 339 | static const AVClass yadif_cuda_class = { |
| 340 | .class_name = "yadif_cuda", | 340 | .class_name = "yadif_cuda", |
| 341 | .item_name = av_default_item_name, | ||
| 342 | .option = ff_yadif_options, | 341 | .option = ff_yadif_options, |
| 343 | .version = LIBAVUTIL_VERSION_INT, | 342 | .version = LIBAVUTIL_VERSION_INT, |
| 344 | .category = AV_CLASS_CATEGORY_FILTER, | 343 | .category = AV_CLASS_CATEGORY_FILTER, |
| @@ -61,7 +61,6 @@ static int vs2av_log(int type, const char *tag, const char *format, ...) · 60 unmodified lines | |||
| 61 | VS2AVLogCtx ctx; | 61 | VS2AVLogCtx ctx; |
| 62 | AVClass class = { | 62 | AVClass class = { |
| 63 | .class_name = tag, | 63 | .class_name = tag, |
| 64 | .item_name = av_default_item_name, | ||
| 65 | .option = 0, | 64 | .option = 0, |
| 66 | .version = LIBAVUTIL_VERSION_INT, | 65 | .version = LIBAVUTIL_VERSION_INT, |
| 67 | .category = AV_CLASS_CATEGORY_FILTER, | 66 | .category = AV_CLASS_CATEGORY_FILTER, |