Skip to content

Instantly share code, notes, and snippets.

View YeldhamDev's full-sized avatar

Michael Alexsander YeldhamDev

View GitHub Profile
#ifndef FFMPEG_STREAMER_H
#define FFMPEG_STREAMER_H
#include "player.h"
#include "core/reference.h"
#include "scene/audio/audio_stream_player.h"
#include "scene/main/node.h"
#include "scene/resources/texture.h"
#include "servers/audio/audio_stream.h"
#include "ffmpeg_streamer.h"
void FFmpegStreamer::load_path(String p_path, bool p_convert_to_rgb) {
CharString utf8 = p_path.utf8();
const char *cstr = utf8.get_data();
video_player = player_create(cstr, p_convert_to_rgb ? 1 : 0);
Ref<AudioStreamPlaybackFFmpeg> playback = audio_player->get_stream_playback();
playback->set_player(video_player);
@YeldhamDev
YeldhamDev / iconify.scm
Created May 18, 2019 00:30
"*.ico" generator script for GIMP
;Iconify.scm
;===========================
;Author...Giuseppe Bilotta
;Modified for Gimp 2.4.6+ by Ouch67
;http://www.gimptalk.com/forum/broken-scripts-t33501.html
;Resubmission to Gimp Plugin Registry & GimpTalk by Gargy
;Modified for Gimp 2.8 by Roland Clobus
;------------
;Description...: Iconify plug-in converts a single layer of a single image into a multi-layered image ready to be saved as a Windows icon.
;The new image will contain all standard sizes (16x16, 32x32, 48x48) at all standard bit depths (16 colors, 256 colors, 32-bit RGBA), with transparency support.