[vlc-commits] [Git][videolan/vlc][master] preparser: add rgba/argb support

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Jun 10 12:53:04 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
0896b458 by Thomas Guillem at 2026-06-10T14:25:54+02:00
preparser: add rgba/argb support

In order to easily debug the YUV->RGBA/ARGB conversion path.
Should not be used from medialib.

- - - - -


3 changed files:

- bin/preparser/cmdline.c
- include/vlc_preparser.h
- src/preparser/internal.c


Changes:

=====================================
bin/preparser/cmdline.c
=====================================
@@ -253,6 +253,10 @@ opt_set_OutputFormat(struct preparser_args *args, const char *arg)
         args->output.format = VLC_THUMBNAILER_FORMAT_JPEG;
     } else if (!strcmp(arg, "webp")) {
         args->output.format = VLC_THUMBNAILER_FORMAT_WEBP;
+    } else if (!strcmp(arg, "rgba")) {
+        args->output.format = VLC_THUMBNAILER_FORMAT_RGBA;
+    } else if (!strcmp(arg, "argb")) {
+        args->output.format = VLC_THUMBNAILER_FORMAT_ARGB;
     } else {
         fprintf(stderr, "Error: Unknown output format `%s'\n", arg);
         return false;
@@ -314,7 +318,7 @@ static const struct preparser_opt options[] = {
     opt_add_string("output-path", opt_set_OutputPath, "Path of the thumbnail"),
     opt_add_integer("output-width", opt_set_OutputWidth, "Width of the thumbnail"),
     opt_add_integer("output-height", opt_set_OutputHeight, "Height of the thumbnail"),
-    opt_add_string("output-format", opt_set_OutputFormat, "Format of the thumbnail (png/jp[e]g/webp)"),
+    opt_add_string("output-format", opt_set_OutputFormat, "Format of the thumbnail (png/jp[e]g/webp/rgba/argb)"),
     opt_add_bool("output-crop", opt_set_OutputCrop, "Crop the thumbnail"),
     opt_add_integer("verbose", opt_set_Verbose, "Verbosity (0,1,2)"),
 };


=====================================
include/vlc_preparser.h
=====================================
@@ -230,6 +230,8 @@ enum vlc_thumbnailer_format
     VLC_THUMBNAILER_FORMAT_PNG,
     VLC_THUMBNAILER_FORMAT_WEBP,
     VLC_THUMBNAILER_FORMAT_JPEG,
+    VLC_THUMBNAILER_FORMAT_RGBA,
+    VLC_THUMBNAILER_FORMAT_ARGB,
 };
 
 /**


=====================================
src/preparser/internal.c
=====================================
@@ -725,6 +725,14 @@ CheckThumbnailerFormat(enum vlc_thumbnailer_format format,
             .format = VLC_THUMBNAILER_FORMAT_JPEG, .fourcc = VLC_CODEC_JPEG,
             .module = "jpeg", .ext = "jpg",
         },
+        {
+            .format = VLC_THUMBNAILER_FORMAT_RGBA, .fourcc = VLC_CODEC_RGBA,
+            .module = "avcodec", .ext = "rgba",
+        },
+        {
+            .format = VLC_THUMBNAILER_FORMAT_ARGB, .fourcc = VLC_CODEC_ARGB,
+            .module = "avcodec", .ext = "argb",
+        },
     };
 
     for (size_t i = 0; i < ARRAY_SIZE(formats); ++i)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0896b458867fa291f0633aab1135c9a704403511

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0896b458867fa291f0633aab1135c9a704403511
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list