Y = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 | BT.709 | BT.2020 | |
---|---|---|---|
a | 0.299 | 0.2126 | 0.2627 |
b | 0.587 | 0.7152 | 0.6780 |
#import <Foundation/Foundation.h> | |
#import <IOKit/IOKitLib.h> | |
#import <IOKit/graphics/IOGraphicsLib.h> | |
// this helped me out a lot <3: https://stackoverflow.com/questions/3239749/programmatically-change-mac-display-brightness | |
int main(int argc, char *argv[]) { | |
io_iterator_t iterator; | |
kern_return_t result = IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IODisplayConnect"), &iterator); | |
Y = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 | BT.709 | BT.2020 | |
---|---|---|---|
a | 0.299 | 0.2126 | 0.2627 |
b | 0.587 | 0.7152 | 0.6780 |
// -*- SHARED -*- | |
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
COMBINE_HIDPI_IMAGES = YES | |
INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks | |
SKIP_INSTALL = YES | |
COPY_PHASE_STRIP = NO | |
IPHONEOS_DEPLOYMENT_TARGET = 14.0 | |
MACOSX_DEPLOYMENT_TARGET = 10.15 | |
TVOS_DEPLOYMENT_TARGET = 14.0 |
Consumer ready 360° cameras are becoming ever more accessible and many people are experimenting with a variety of 360° content. Out of the many cameras on the market the Ricoh Theta S is one of the most user-friendly, turn-key solutions with lots of built-in features. However, the camera's videos are limited 1920x960 resolution and the Theta+ app only lets you create a timelapse with up to 300 or 400 images. The workaround is to use interval shooting to capture as many images as you'd like at the 5376x2688 to full resolution and then stitch them together manually into an HD video. There are few GUI solutions (especially open-source/free) which let you do this with ease. Here's how you do it:
// (c) 2016 Markakod | |
#include "HitMe.h" | |
#include "WebImageDownloader.h" | |
UWebImageDownloader* UWebImageDownloader::GetWebImageDownloader(FString WebImageName, FString URL, bool& IsValid) | |
{ | |
IsValid = false; | |
UWebImageDownloader *Object = NewObject<UWebImageDownloader>(); |
# Merge Script | |
# http://code.hootsuite.com/an-introduction-to-creating-and-distributing-embedded-frameworks-in-ios/ | |
# 1 | |
# Set bash script to exit immediately if any commands fail. | |
set -e | |
# 2 | |
# Setup some constants for use later on. |
:: Build client | |
RunUAT BuildCookRun -project="full_path.uproject"^ | |
-noP4 -platform=Win64^ | |
-clientconfig=Development -serverconfig=Development^ | |
-cook -allmaps -build -stage^ | |
-pak -archive -archivedirectory="Output Directory" | |
:: Cook client | |
RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject^ | |
-noP4 -platform=Win64^ |
/*----------------------------------------------------*/ | |
#pragma mark - XCTAsserts | |
/*----------------------------------------------------*/ | |
XCTAssert(expression, format...); | |
XCTAssertTrue(expression, format...); | |
XCTAssertFalse(expression, format...); | |
XCTAssertEqual(expression1, expression2, format...); | |
XCTAssertNotEqual(expression1, expression2, format...); | |
XCTAssertNil(expression, format...); |
To remove a submodule you need to: