43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
// Filename: ffmpegVirtualFile.h
|
|
// Created by: jyelon (01Aug2007)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef FFMPEGVIRTUALFILE_H
|
|
#define FFMPEGVIRTUALFILE_H
|
|
#ifdef HAVE_FFMPEG
|
|
|
|
#include "config_movies.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : FfmpegVirtualFile
|
|
// Description : Enables ffmpeg to access panda's VFS.
|
|
//
|
|
// This class only has one public method,
|
|
// register_hooks. Once the hooks are registered,
|
|
// ffmpeg will be able to open "URLs" that look
|
|
// like this:
|
|
//
|
|
// pandavfs:/c/mygame/foo.avi
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDA_MOVIES FfmpegVirtualFile {
|
|
public:
|
|
static void register_protocol();
|
|
};
|
|
|
|
#include "ffmpegVirtualFile.I"
|
|
|
|
#endif // HAVE_FFMPEG
|
|
#endif // FFMPEGVIRTUALFILE_H
|
|
|