#ifndef FFMPEG_MOVIE_H #define FFMPEG_MOVIE_H #include #include /* movie constructor */ PHP_FUNCTION(ffmpeg_movie); /* movie methods */ PHP_FUNCTION(getDuration); PHP_FUNCTION(getFrameCount); PHP_FUNCTION(getFrameRate); PHP_FUNCTION(getFileName); PHP_FUNCTION(getComment); PHP_FUNCTION(getTitle); PHP_FUNCTION(getAuthor); PHP_FUNCTION(getCopyright); PHP_FUNCTION(getAlbum); PHP_FUNCTION(getGenre); PHP_FUNCTION(getTrackNumber); PHP_FUNCTION(getYear); PHP_FUNCTION(getFrameWidth); PHP_FUNCTION(getFrameHeight); PHP_FUNCTION(getFrameNumber); PHP_FUNCTION(getPixelFormat); PHP_FUNCTION(getBitRate); PHP_FUNCTION(hasAudio); PHP_FUNCTION(getNextKeyFrame); PHP_FUNCTION(getFrame); PHP_FUNCTION(getVideoCodec); PHP_FUNCTION(getAudioCodec); PHP_FUNCTION(getAudioChannels); PHP_FUNCTION(getAudioSampleRate); PHP_FUNCTION(getAudioBitRate); PHP_FUNCTION(getVideoBitRate); PHP_FUNCTION(getPixelAspectRatio); typedef struct { AVFormatContext *fmt_ctx; AVCodecContext *codec_ctx[MAX_STREAMS]; int64_t last_pts; int frame_number; long rsrc_id; } ff_movie_context; #endif // FFMPEG_MOVIE_H /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: noet sw=4 ts=4 * vim<600: noet sw=4 ts=4 */