History

avfilter/libplacebo: use a transparent default fillcolor

This will leave the background transparent when the target format contains an alpha channel, without affecting the behavior on formats without one.

Niklas Haas committed 1 year ago

Commit cd81f081 parent e18f87e2 files · +2 −2Browse files

Unified · Split

2 files
  1. doc/filters.texi +1 −1
  2. libavfilter/vf_libplacebo.c +1 −1
doc/filters.texi+1−1
@@ -16458,7 +16458,7 @@ approaches. · 16457 unmodified lines
16458Set the color used to fill the output area not covered by the output image, for16458Set the color used to fill the output area not covered by the output image, for
16459example as a result of @option{normalize_sar}. For the general syntax of this16459example as a result of @option{normalize_sar}. For the general syntax of this
16460option, check the @ref{color syntax,,"Color" section in the ffmpeg-utils16460option, check the @ref{color syntax,,"Color" section in the ffmpeg-utils
16461manual,ffmpeg-utils}. Defaults to @code{black}.16461manual,ffmpeg-utils}. Defaults to @code{black@@0}.
16462 16462
16463@item corner_rounding16463@item corner_rounding
16464Render frames with rounded corners. The value, given as a float ranging from16464Render frames with rounded corners. The value, given as a float ranging from
libavfilter/vf_libplacebo.c+1−1
@@ -1288,7 +1288,7 @@ static const AVOption libplacebo_options[] = { · 1287 unmodified lines
1288 { "force_divisible_by", "enforce that the output resolution is divisible by a defined integer when force_original_aspect_ratio is used", OFFSET(force_divisible_by), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, 256, STATIC },1288 { "force_divisible_by", "enforce that the output resolution is divisible by a defined integer when force_original_aspect_ratio is used", OFFSET(force_divisible_by), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, 256, STATIC },
1289 { "normalize_sar", "force SAR normalization to 1:1 by adjusting pos_x/y/w/h", OFFSET(normalize_sar), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, STATIC },1289 { "normalize_sar", "force SAR normalization to 1:1 by adjusting pos_x/y/w/h", OFFSET(normalize_sar), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, STATIC },
1290 { "pad_crop_ratio", "ratio between padding and cropping when normalizing SAR (0=pad, 1=crop)", OFFSET(pad_crop_ratio), AV_OPT_TYPE_FLOAT, {.dbl=0.0}, 0.0, 1.0, DYNAMIC },1290 { "pad_crop_ratio", "ratio between padding and cropping when normalizing SAR (0=pad, 1=crop)", OFFSET(pad_crop_ratio), AV_OPT_TYPE_FLOAT, {.dbl=0.0}, 0.0, 1.0, DYNAMIC },
1291 { "fillcolor", "Background fill color", OFFSET(fillcolor), AV_OPT_TYPE_STRING, {.str = "black"}, .flags = DYNAMIC },1291 { "fillcolor", "Background fill color", OFFSET(fillcolor), AV_OPT_TYPE_STRING, {.str = "black@0"}, .flags = DYNAMIC },
1292 { "corner_rounding", "Corner rounding radius", OFFSET(corner_rounding), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, 0.0, 1.0, .flags = DYNAMIC },1292 { "corner_rounding", "Corner rounding radius", OFFSET(corner_rounding), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, 0.0, 1.0, .flags = DYNAMIC },
1293 { "extra_opts", "Pass extra libplacebo-specific options using a :-separated list of key=value pairs", OFFSET(extra_opts), AV_OPT_TYPE_DICT, .flags = DYNAMIC },1293 { "extra_opts", "Pass extra libplacebo-specific options using a :-separated list of key=value pairs", OFFSET(extra_opts), AV_OPT_TYPE_DICT, .flags = DYNAMIC },
1294 1294

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