Files
armorpaint/base/sources/backends/apple_video.h
T

43 lines
1.3 KiB
C
Raw Normal View History

2025-02-26 18:46:36 +01:00
// #pragma once
// #include <objc/runtime.h>
// #include <iron_gpu.h>
// typedef struct {
// double start;
// double videoStart;
// double next;
// unsigned long long audioTime;
// bool playing;
// bool loop;
// void *sound;
// bool image_initialized;
2025-06-19 19:55:16 +02:00
// gpu_texture_t image;
2025-02-26 18:46:36 +01:00
// double lastTime;
// float duration;
// bool finished;
// int myWidth;
// int myHeight;
// id videoAsset;
// id assetReader;
// id videoTrackOutput;
// id audioTrackOutput;
// id url;
2025-03-09 17:02:12 +01:00
// } iron_video_impl_t;
2025-02-26 18:46:36 +01:00
2025-03-09 17:02:12 +01:00
// typedef struct iron_internal_video_sound_stream {
2025-02-26 18:46:36 +01:00
// float *buffer;
// int bufferSize;
// int bufferWritePosition;
// int bufferReadPosition;
// uint64_t read;
// uint64_t written;
2025-03-09 17:02:12 +01:00
// } iron_internal_video_sound_stream_t;
2025-02-26 18:46:36 +01:00
2025-03-09 17:02:12 +01:00
// void iron_internal_video_sound_stream_init(iron_internal_video_sound_stream_t *stream, int channel_count, int frequency);
// void iron_internal_video_sound_stream_destroy(iron_internal_video_sound_stream_t *stream);
// void iron_internal_video_sound_stream_insert_data(iron_internal_video_sound_stream_t *stream, float *data, int sample_count);
// float *iron_internal_video_sound_stream_next_frame(iron_internal_video_sound_stream_t *stream);
// bool iron_internal_video_sound_stream_ended(iron_internal_video_sound_stream_t *stream);