You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
43 lines
943 B
C++
43 lines
943 B
C++
/**
|
|
* @file
|
|
* @brief Header file for Godot wrapper
|
|
* @author Jonathan Thomas <jonathan@openshot.org>
|
|
*
|
|
* @ref License
|
|
*/
|
|
|
|
// Copyright (c) 2008-2025 OpenShot Studios, LLC
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "godot_cpp/classes/ref_counted.hpp"
|
|
#include "godot_cpp/classes/image.hpp"
|
|
#include "godot_cpp/variant/variant.hpp"
|
|
#include "Timeline.h"
|
|
#include "FFmpegReader.h"
|
|
|
|
using namespace godot;
|
|
|
|
class ExampleClass : public RefCounted {
|
|
GDCLASS(ExampleClass, RefCounted)
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
ExampleClass();
|
|
~ExampleClass() override;
|
|
|
|
void load_file(String path);
|
|
void print_type(const Variant &p_variant) const;
|
|
void print_json(const Variant &p_variant);
|
|
Ref<Image> get_image(int64_t frame_number);
|
|
|
|
private:
|
|
openshot::Timeline* timeline = nullptr;
|
|
openshot::FFmpegReader* reader = nullptr;
|
|
bool constructor_called = false;
|
|
};
|