The Serenity Operating System 🐞
Find a file
Rodrigo Tobar adc45635e9 LibPDF: Add initial image display support
After adding support for XObject Form rendering, the next was to display
XObject images. This commit adds this initial support,

Images come in many shapes and forms: encodings: color spaces, bits per
component, width, height, etc. This initial support is constrained to
the color spaces we currently support, to images that use 8 bits per
component, to images that do *not* use the JPXDecode filter, and that
are not Masks. There are surely other constraints that aren't considered
in this initial support, so expect breakage here and there.

In addition to supporting images, we also support applying an alpha mask
(SMask) on them. Additionally, a new rendering preference allows to skip
image loading and rendering altogether, instead showing an empty
rectangle as a placeholder (useful for when actual images are not
supported). Since RenderingPreferences is becoming a bit more complex,
we add a hash option that will allow us to keep track of different
preferences (e.g., in a HashMap).
2022-12-10 10:49:03 +01:00
.devcontainer Meta: Add devcontainer configuration for use with Github Codespaces 2022-11-25 18:41:21 -07:00
.github Meta: Switch to clang-format-15 as the standard formatter 2022-12-03 23:52:23 +00:00
AK Everywhere: Remove unnecessary AK and Detail namespace scoping 2022-12-09 11:25:30 +00:00
Base Base: Add a note about Jails open access in the Mitigations(7) document 2022-12-09 23:09:00 -07:00
Documentation Documentation: Add a note on paths in the kernel development guidelines 2022-12-09 22:59:50 -07:00
Kernel Kernel/FileSystem: Convert the mount table from Vector to IntrusiveList 2022-12-09 23:29:33 -07:00
Meta LibWeb: Add namespace qualifier to type names equal to a C++ namespace 2022-12-10 00:21:10 +00:00
Ports AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Tests AK: Unref old m_data in String's move assignment 2022-12-09 00:02:53 +01:00
Toolchain Toolchain: Add libxcrypt to serenity.nix 2022-11-13 19:38:14 +00:00
Userland LibPDF: Add initial image display support 2022-12-10 10:49:03 +01:00
.clang-format Meta: Switch to clang-format-15 as the standard formatter 2022-12-03 23:52:23 +00:00
.clang-tidy
.editorconfig Meta: Add .editorconfig 2022-09-10 17:32:55 +01:00
.gitattributes
.gitignore Meta: Ignore vim's .exrc config 2022-10-06 16:06:50 +01:00
.mailmap Meta: Add mattco98's full name to mailmap 2022-11-23 17:13:49 +00:00
.pre-commit-config.yaml
.prettierignore
.prettierrc
.ycm_extra_conf.py Meta: Make YCM work when the current dir is not the root of the tree 2022-10-30 23:57:25 +01:00
azure-pipelines.yml
CMakeLists.txt Toolchain: Update LLVM to 15.0.3 2022-10-24 15:33:58 +02:00
CONTRIBUTING.md Meta: Update all references of clang-format-14 to clang-format-15 2022-12-04 09:13:24 -07:00
LICENSE
README.md Meta: Add Gregory Bertilson to the contributors list :^) 2022-11-30 10:12:11 +01:00
SECURITY.md

SerenityOS

Graphical Unix-like operating system for x86 computers.

GitHub Actions Status Azure DevOps Status Fuzzing Status Sonar Cube Static Analysis Discord

About

SerenityOS is a love letter to '90s user interfaces with a custom Unix-like core. It flatters with sincerity by stealing beautiful ideas from various other systems.

Roughly speaking, the goal is a marriage between the aesthetic of late-1990s productivity software and the power-user accessibility of late-2000s *nix. This is a system by us, for us, based on the things we like.

You can watch videos of the system being developed on YouTube:

FAQ: Frequently Asked Questions

Screenshot

Screenshot as of b36968c.png

Features

  • Modern x86 32-bit and 64-bit kernel with pre-emptive multi-threading
  • Browser with JavaScript, WebAssembly, and more (check the spec compliance for JS, CSS, and WASM)
  • Security features (hardware protections, limited userland capabilities, W^X memory, pledge & unveil, (K)ASLR, OOM-resistance, web-content isolation, state-of-the-art TLS algorithms, ...)
  • System services (WindowServer, LoginServer, AudioServer, WebServer, RequestServer, CrashServer, ...) and modern IPC
  • Good POSIX compatibility (LibC, Shell, syscalls, signals, pseudoterminals, filesystem notifications, standard Unix utilities, ...)
  • POSIX-like virtual file systems (/proc, /dev, /sys, /tmp, ...) and ext2 file system
  • Network stack and applications with support for IPv4, TCP, UDP; DNS, HTTP, Gemini, IMAP, NTP
  • Profiling, debugging and other development tools (Kernel-supported profiling, detailed program analysis with software emulation in UserspaceEmulator, CrashReporter, interactive GUI playground, HexEditor, HackStudio IDE for C++ and more)
  • Libraries for everything from cryptography to OpenGL, audio, JavaScript, GUI, playing chess, ...
  • Support for many common and uncommon file formats (PNG, JPEG, GIF, MP3, WAV, FLAC, ZIP, TAR, PDF, QOI, Gemini, ...)
  • Unified style and design philosophy, flexible theming system, custom (bitmap and vector) fonts
  • Games (Solitaire, Minesweeper, 2048, chess, Conway's Game of Life, ...) and demos (CatDog, Starfield, Eyes, mandelbrot set, WidgetGallery, ...)
  • Every-day GUI programs and utilities (Spreadsheet with JavaScript, TextEditor, Terminal, PixelPaint, various multimedia viewers and players, Mail, Assistant, Calculator, ...)

... and all of the above are right in this repository, no extra dependencies, built from-scratch by us :^)

Additionally, there are over two hundred ports of popular open-source software, including games, compilers, Unix tools, multimedia apps and more.

How do I read the documentation?

Man pages are available online at man.serenityos.org. These pages are generated from the Markdown source files in Base/usr/share/man and updated automatically.

When running SerenityOS you can use man for the terminal interface, or help for the GUI.

Code-related documentation can be found in the documentation folder.

How do I build and run this?

See the SerenityOS build instructions. Serenity runs on Linux, macOS (aarch64 might be a challenge), Windows (with WSL2) and many other *Nixes with hardware or software virtualization.

Get in touch and participate!

Join our Discord server: SerenityOS Discord

Before opening an issue, please see the issue policy.

A general guide for contributing can be found in CONTRIBUTING.md.

Authors

And many more! See here for a full contributor list. The people listed above have landed more than 100 commits in the project. :^)

License

SerenityOS is licensed under a 2-clause BSD license.