This file contains 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
#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" |
This file contains 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 "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); |
This file contains 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
;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. |