Definition at line 225 of file pixel_stream.cpp.hpp.
225 {
227 return false;
228 }
229 fled::PixelStorage storage;
230 fled::VideoColor color;
234 return false;
235 }
237 if (
readBytes(bytes,
sizeof(bytes)) !=
sizeof(bytes)) {
238 return false;
239 }
240 out->mStorage = storage;
241 out->mColor = color;
242 for (
fl::u8 i = 0; i < 3; ++i) {
244 out->mComponents[i] =
static_cast<fl::u16
>(bytes[
offset]) |
245 (
static_cast<fl::u16
>(bytes[
offset + 1]) << 8);
246 }
247 return true;
248}
bool pixelStorage(fled::PixelStorage *out) const FL_NO_EXCEPT
size_t readBytes(u8 *dst, size_t len) FL_NO_EXCEPT
bool videoColor(fled::VideoColor *out) const FL_NO_EXCEPT
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
References fl::FL_NO_EXCEPT, fl::fled::LittleEndian, fl::fled::PixelStorage::mComponentByteOrder, fl::fled::PixelStorage::mFormat, mHandle, offset(), pixelStorage(), readBytes(), fl::Rgb16, and videoColor().