History

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

Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.

Anton Khirnov committed 2 years ago

Commit 08bebeb1 parent a8bc79c363 files · +408 −0Browse files

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

Unified · Split

22 files
  1. libavfilter/af_aresample.c +1 −0
  2. libavfilter/avfiltergraph.c +1 −0
  3. libavfilter/framesync.h +1 −0
  4. libavfilter/internal.h +1 −0
  5. libavfilter/stack_internal.c +1 −0
  6. libavfilter/vf_bilateral_cuda.c +1 −0
  7. libavfilter/vf_bwdif_cuda.c +1 −0
  8. libavfilter/vf_bwdif_vulkan.c +1 −0
  9. libavfilter/vf_chromakey_cuda.c +1 −0
  10. libavfilter/vf_colorspace_cuda.c +1 −0
  11. libavfilter/vf_deinterlace_vaapi.c +1 −0
  12. libavfilter/vf_hwdownload.c +1 −0
  13. libavfilter/vf_scale.c +1 −0
  14. libavfilter/vf_scale_cuda.c +1 −0
  15. libavfilter/vf_scale_npp.c +1 −0
  16. libavfilter/vf_sharpen_npp.c +1 −0
  17. libavfilter/vf_spp.c +1 −0
  18. libavfilter/vf_transpose_npp.c +1 −0
  19. libavfilter/vf_vpp_qsv.c +1 −0
  20. libavfilter/vf_yadif.c +1 −0
  21. libavfilter/vf_yadif_cuda.c +1 −0
  22. libavfilter/vidstabutils.c +1 −0
libavfilter/af_aresample.c+1−0
@@ -351,6 +351,7 @@ 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,
354355 .option = options,
355356 .version = LIBAVUTIL_VERSION_INT,
356357 .child_class_iterate = resample_child_class_iterate,
libavfilter/avfiltergraph.c+1−0
@@ -61,6 +61,7 @@ static const AVOption filtergraph_options[] = { · 60 unmodified lines
6161
6262 static const AVClass filtergraph_class = {
6363 .class_name = "AVFilterGraph",
64+ .item_name = av_default_item_name,
6465 .version = LIBAVUTIL_VERSION_INT,
6566 .option = filtergraph_options,
6667 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/framesync.h+1−0
@@ -320,6 +320,7 @@ 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, \
323324 .option = options, \
324325 .version = LIBAVUTIL_VERSION_INT, \
325326 .category = AV_CLASS_CATEGORY_FILTER, \
libavfilter/internal.h+1−0
@@ -317,6 +317,7 @@ int ff_request_frame(AVFilterLink *link); · 316 unmodified lines
317317 #define AVFILTER_DEFINE_CLASS_EXT(name, desc, options) \
318318 static const AVClass name##_class = { \
319319 .class_name = desc, \
320+ .item_name = av_default_item_name, \
320321 .option = options, \
321322 .version = LIBAVUTIL_VERSION_INT, \
322323 .category = AV_CLASS_CATEGORY_FILTER, \
libavfilter/stack_internal.c+1−0
@@ -336,6 +336,7 @@ 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, \
339340 .option = category##_##api##_options, \
340341 .version = LIBAVUTIL_VERSION_INT, \
341342 }; \
libavfilter/vf_bilateral_cuda.c+1−0
@@ -435,6 +435,7 @@ 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,
438439 .option = options,
439440 .version = LIBAVUTIL_VERSION_INT,
440441 };
libavfilter/vf_bwdif_cuda.c+1−0
@@ -338,6 +338,7 @@ exit: · 337 unmodified lines
338338
339339 static const AVClass bwdif_cuda_class = {
340340 .class_name = "bwdif_cuda",
341+ .item_name = av_default_item_name,
341342 .option = ff_yadif_options,
342343 .version = LIBAVUTIL_VERSION_INT,
343344 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_bwdif_vulkan.c+1−0
@@ -375,6 +375,7 @@ 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,
378379 .option = ff_yadif_options,
379380 .version = LIBAVUTIL_VERSION_INT,
380381 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_chromakey_cuda.c+1−0
@@ -454,6 +454,7 @@ 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,
457458 .option = options,
458459 .version = LIBAVUTIL_VERSION_INT,
459460 };
libavfilter/vf_colorspace_cuda.c+1−0
@@ -392,6 +392,7 @@ 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,
395396 .option = options,
396397 .version = LIBAVUTIL_VERSION_INT,
397398 };
libavfilter/vf_deinterlace_vaapi.c+1−0
@@ -392,6 +392,7 @@ 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,
395396 .option = deint_vaapi_options,
396397 .version = LIBAVUTIL_VERSION_INT,
397398 };
libavfilter/vf_hwdownload.c+1−0
@@ -167,6 +167,7 @@ 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,
170171 .option = NULL,
171172 .version = LIBAVUTIL_VERSION_INT,
172173 };
libavfilter/vf_scale.c+1−0
@@ -1040,6 +1040,7 @@ static const AVOption scale_options[] = { · 1039 unmodified lines
10401040
10411041 static const AVClass scale_class = {
10421042 .class_name = "scale(2ref)",
1043+ .item_name = av_default_item_name,
10431044 .option = scale_options,
10441045 .version = LIBAVUTIL_VERSION_INT,
10451046 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_scale_cuda.c+1−0
@@ -603,6 +603,7 @@ 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,
606607 .option = options,
607608 .version = LIBAVUTIL_VERSION_INT,
608609 };
libavfilter/vf_scale_npp.c+1−0
@@ -1013,6 +1013,7 @@ 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,
10161017 .option = options,
10171018 .version = LIBAVUTIL_VERSION_INT,
10181019 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_sharpen_npp.c+1−0
@@ -235,6 +235,7 @@ 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,
238239 .option = options,
239240 .version = LIBAVUTIL_VERSION_INT,
240241 };
libavfilter/vf_spp.c+1−0
@@ -75,6 +75,7 @@ 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,
7879 .option = spp_options,
7980 .version = LIBAVUTIL_VERSION_INT,
8081 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_transpose_npp.c+1−0
@@ -440,6 +440,7 @@ 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,
443444 .option = options,
444445 .version = LIBAVUTIL_VERSION_INT,
445446 };
libavfilter/vf_vpp_qsv.c+1−0
@@ -824,6 +824,7 @@ 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, \
827828 .option = x##_options, \
828829 .version = LIBAVUTIL_VERSION_INT, \
829830 }; \
libavfilter/vf_yadif.c+1−0
@@ -326,6 +326,7 @@ 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,
329330 .option = ff_yadif_options,
330331 .version = LIBAVUTIL_VERSION_INT,
331332 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vf_yadif_cuda.c+1−0
@@ -338,6 +338,7 @@ exit: · 337 unmodified lines
338338
339339 static const AVClass yadif_cuda_class = {
340340 .class_name = "yadif_cuda",
341+ .item_name = av_default_item_name,
341342 .option = ff_yadif_options,
342343 .version = LIBAVUTIL_VERSION_INT,
343344 .category = AV_CLASS_CATEGORY_FILTER,
libavfilter/vidstabutils.c+1−0
@@ -61,6 +61,7 @@ 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,
6465 .option = 0,
6566 .version = LIBAVUTIL_VERSION_INT,
6667 .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