Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image_write.h" | |
#include <ft2build.h> | |
#include FT_FREETYPE_H | |
#define NUM_GLYPHS 128 | |
struct glyph_info { | |
int x0, y0, x1, y1; // coords of glyph in the texture atlas |
Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:
Considerations to take when live streaming:
The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:
-
Set the buffer size (
-bufsize:v
) equal to the target bitrate (-b:v
). You want to ensure that you're encoding in CBR mode. -
Set up the encoders as shown:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | |
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full. | |
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}… | |
Getting help: | |
-h — print basic options | |
-h long — print more options | |
-h full — print all options (including all format and codec specific options, very long) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU ld (GNU Binutils for Ubuntu) 2.25.1 | |
Supported emulations: | |
elf_x86_64 | |
elf32_x86_64 | |
elf_i386 | |
i386linux | |
elf_l1om | |
elf_k1om | |
i386pep | |
i386pe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Example program for creating an OpenGL context with EGL for offscreen | |
* rendering with a framebuffer. | |
* | |
* | |
* The MIT License (MIT) | |
* Copyright (c) 2014 Sven-Kristofer Pilz | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page ,132 | |
title memcpy - Copy source memory bytes to destination | |
;*** | |
;memcpy.asm - contains memcpy and memmove routines | |
; | |
; Copyright (c) Microsoft Corporation. All rights reserved. | |
; | |
;Purpose: | |
; memcpy() copies a source memory buffer to a destination buffer. | |
; Overlapping buffers are not treated specially, so propogation may occur. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A simple Lexer meant to demonstrate a few theoretical concepts. It can | |
// support several parser concepts and is very fast (though speed is not its | |
// design goal). | |
// | |
// J. Arrieta, Nabla Zero Labs | |
// | |
// This code is released under the MIT License. | |
// | |
// Copyright 2018 Nabla Zero Labs | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0) | |
PROJECT(em_gl VERSION 0.1.0) | |
LINK_DIRECTORIES( | |
$ENV{VCPKG_ROOT}/installed/x64-windows/lib | |
) | |
FILE(GLOB SRC | |
*.cpp | |
*.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; print all command line arguments (5 characters) and exit | |
; for 64-bit systems, Linux syscalls | |
; for simplicity, this program does not calculate the length of the strings. | |
; assemble with: nasm -f elf64 -o args args.asm | |
; link with: ld -o args args.o | |
sys_write equ 1 ; the linux WRITE syscall | |
sys_exit equ 60 ; the linux EXIT syscall | |
sys_stdout equ 1 ; the file descriptor for standard output (to print/write to) |