History

avfilter/vf_alphamerge: warn if input not full range

Alpha planes must always be full range, so complain loudly if fed limited range grayscale input.

Niklas Haas committed 3 years ago

Commit ea955701 parent b7284f21 file · +6 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_alphamerge.c+6−0
@@ -60,6 +60,12 @@ static int do_alphamerge(FFFrameSync *fs) · 59 unmodified lines
6060 if (!alpha_buf)
6161 return ff_filter_frame(ctx->outputs[0], main_buf);
6262
63+ if (alpha_buf->color_range == AVCOL_RANGE_MPEG) {
64+ av_log(ctx, AV_LOG_WARNING, "alpha plane color range tagged as %s, "
65+ "output will be wrong!\n",
66+ av_color_range_name(alpha_buf->color_range));
67+ }
68+
6369 if (s->is_packed_rgb) {
6470 int x, y;
6571 uint8_t *pin, *pout;

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