Mercurial > hg > aimc
comparison trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.h @ 398:3ee03a6b95a0
- All \t to two spaces (style guide compliance)
author | tomwalters |
---|---|
date | Fri, 15 Oct 2010 05:46:53 +0000 |
parents | 7a573750b186 |
children | dd13c9834ceb |
comparison
equal
deleted
inserted
replaced
397:7a573750b186 | 398:3ee03a6b95a0 |
---|---|
39 * \brief Helper class to use libavcodec to write a movie file | 39 * \brief Helper class to use libavcodec to write a movie file |
40 */ | 40 */ |
41 class LibavformatWriter { | 41 class LibavformatWriter { |
42 public: | 42 public: |
43 LibavformatWriter(); | 43 LibavformatWriter(); |
44 ~LibavformatWriter() { }; | 44 ~LibavformatWriter() { }; |
45 bool Init(const char *sMovieFile, int width, int height, float framerate); | 45 bool Init(const char *sMovieFile, int width, int height, float framerate); |
46 void WriteFrame(unsigned char *pFrameBuffer); | 46 void WriteFrame(unsigned char *pFrameBuffer); |
47 void End(); | 47 void End(); |
48 private: | 48 private: |
49 AVFrame *picture, *tmp_picture; | 49 AVFrame *picture, *tmp_picture; |
50 uint8_t *video_outbuf; | 50 uint8_t *video_outbuf; |
51 int frame_count, video_outbuf_size; | 51 int frame_count, video_outbuf_size; |
52 int sws_flags; | 52 int sws_flags; |
68 * \brief Output class for output to a movie | 68 * \brief Output class for output to a movie |
69 */ | 69 */ |
70 class GraphicsOutputDeviceMovieDirect : public GraphicsOutputDeviceMovie { | 70 class GraphicsOutputDeviceMovieDirect : public GraphicsOutputDeviceMovie { |
71 public: | 71 public: |
72 GraphicsOutputDeviceMovieDirect(AimParameters *pParam); | 72 GraphicsOutputDeviceMovieDirect(AimParameters *pParam); |
73 virtual ~GraphicsOutputDeviceMovieDirect() { }; | 73 virtual ~GraphicsOutputDeviceMovieDirect() { }; |
74 /*! \brief Initializes this output device, prepares plotting tools. | 74 /*! \brief Initializes this output device, prepares plotting tools. |
75 * \param sSoundFile Sound file for the movie | 75 * \param sSoundFile Sound file for the movie |
76 * \param sMovieFile Movie filename to produce | 76 * \param sMovieFile Movie filename to produce |
77 * \return true on success, false on failure. | 77 * \return true on success, false on failure. |
78 * | 78 * |
79 * As usual, make sure to call this function before any other. If this | 79 * As usual, make sure to call this function before any other. If this |
80 * Initialize() failed, you shouldn't try the other functions either. | 80 * Initialize() failed, you shouldn't try the other functions either. |
81 */ | 81 */ |
82 bool Initialize(const char *sSoundFile, const char *sMovieFile); | 82 bool Initialize(const char *sSoundFile, const char *sMovieFile); |
83 void Stop(); | 83 void Stop(); |
84 void gRelease(); | 84 void gRelease(); |
85 private: | 85 private: |
86 LibavformatWriter* m_pOutputMovie; | 86 LibavformatWriter* m_pOutputMovie; |
87 }; | 87 }; |
88 | 88 |
89 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_DIRECT_H__ */ | 89 #endif /* __GRAPHICS_OUTPUT_DEVICE_MOVIE_DIRECT_H__ */ |