Skip to content

Instantly share code, notes, and snippets.

@mitchcurtis
mitchcurtis / main.qml
Created July 2, 2018 06:40
OpacityMask cutout
import QtQuick 2.0
import QtQuick.Window 2.0
import QtGraphicalEffects 1.0
Window {
id: window
width: 400
height: 400
visible: true
@nakaly
nakaly / vf_rgb.c
Last active December 2, 2022 14:28
YUV <-> RGB by ffmpeg
// Convert from YUV to RGB
struct SwsContext *sws_ctx = NULL;
sws_ctx =
sws_getContext
(
inlink->w,
inlink->h,
inlink->format,
outlink->w,
outlink->h,