Sha256: 3d3f8e7f79ab30043f9a5754893ec3181cb934810397b1e9ed883d495836ed87

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

#include <ruby.h>
#include <QuickTime/QuickTime.h>

extern VALUE eQuickTime, cMovie, cTrack, cExporter;

/*** MOVIE ***/

void Init_quicktime_movie();
OSErr movie_progress_proc(Movie movie, short message, short operation, Fixed percent, VALUE proc);

#define RMOVIE(obj) (Check_Type(obj, T_DATA), (struct RMovie*)DATA_PTR(obj))
#define MOVIE(obj) (RMOVIE(obj)->movie)
#define MOVIE_TIME(obj, seconds) (floor(NUM2DBL(seconds)*GetMovieTimeScale(MOVIE(obj))))

struct RMovie {
  Movie movie;
};


/*** TRACK ***/

void Init_quicktime_track();

#define RTRACK(obj) (Check_Type(obj, T_DATA), (struct RTrack*)DATA_PTR(obj))
#define TRACK(obj) (RTRACK(obj)->track)
#define TRACK_MEDIA(obj) (GetTrackMedia(TRACK(obj)))
#define TRACK_TIME(obj, seconds) (floor(NUM2DBL(seconds)*GetMediaTimeScale(TRACK_MEDIA(obj))))

struct RTrack {
  Track track;
};


/*** EXPORTER ***/

void Init_quicktime_exporter();

#define REXPORTER(obj) (Check_Type(obj, T_DATA), (struct RExporter*)DATA_PTR(obj))

struct RExporter {
  QTAtomContainer settings;
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmov-0.1.3 ext/rmov_ext.h