| Message ID | 20261009194007.23175-2-robert.mader@collabora.com |
|---|---|
| State | Superseded |
| Headers | show |
| Series |
|
| Related | show |
Quoting Robert Mader (2026-10-09 20:40:04) > While libyuv::ARGBToNV12() seems to ignore the alpha values, let's > set them to fully opaque to avoid potential glitches going forward. > > Signed-off-by: Robert Mader <robert.mader@collabora.com> > Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Transparent pixels are not very helpful in a test pattern generator... So I agree Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> > --- > src/libcamera/pipeline/virtual/test_pattern_generator.cpp | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp > index 1be3847d63a4..7b53e8b32327 100644 > --- a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp > +++ b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp > @@ -100,7 +100,7 @@ void ColorBarsGenerator::configure(const Size &size) > *buf++ = kColorBar[index][2]; /* B */ > *buf++ = kColorBar[index][1]; /* G */ > *buf++ = kColorBar[index][0]; /* R */ > - *buf++ = 0x00; /* A */ > + *buf++ = 0xff; /* A */ > } > } > } > @@ -127,7 +127,7 @@ void DiagonalLinesGenerator::configure(const Size &size) > *buf++ = kColorBar[index][2]; /* B */ > *buf++ = kColorBar[index][1]; /* G */ > *buf++ = kColorBar[index][0]; /* R */ > - *buf++ = 0x00; /* A */ > + *buf++ = 0xff; /* A */ > } > } > } > -- > 2.56.0 >
diff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp index 1be3847d63a4..7b53e8b32327 100644 --- a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp +++ b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp @@ -100,7 +100,7 @@ void ColorBarsGenerator::configure(const Size &size) *buf++ = kColorBar[index][2]; /* B */ *buf++ = kColorBar[index][1]; /* G */ *buf++ = kColorBar[index][0]; /* R */ - *buf++ = 0x00; /* A */ + *buf++ = 0xff; /* A */ } } } @@ -127,7 +127,7 @@ void DiagonalLinesGenerator::configure(const Size &size) *buf++ = kColorBar[index][2]; /* B */ *buf++ = kColorBar[index][1]; /* G */ *buf++ = kColorBar[index][0]; /* R */ - *buf++ = 0x00; /* A */ + *buf++ = 0xff; /* A */ } } }