RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
|
Last change
on this file since 9e516d0d was
9e516d0d,
checked in by Olly Betts <olly@…>, 14 years ago
|
|
configure.in,src/moviemaker.cc,src/moviemaker.h: Use libswscale to
convert images to add to the video. Movie export now working
again!
git-svn-id: file:///home/survex-svn/survex/trunk@3619 4b37db11-9a0c-4f06-9ece-9ab7cdaee568
|
-
Property mode set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | // |
|---|
| 2 | // moviemaker.h |
|---|
| 3 | // |
|---|
| 4 | // Class for writing movies from Aven. |
|---|
| 5 | // |
|---|
| 6 | // Copyright (C) 2004,2010 Olly Betts |
|---|
| 7 | // |
|---|
| 8 | // This program is free software; you can redistribute it and/or modify |
|---|
| 9 | // it under the terms of the GNU General Public License as published by |
|---|
| 10 | // the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | // (at your option) any later version. |
|---|
| 12 | // |
|---|
| 13 | // This program is distributed in the hope that it will be useful, |
|---|
| 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | // GNU General Public License for more details. |
|---|
| 17 | // |
|---|
| 18 | // You should have received a copy of the GNU General Public License |
|---|
| 19 | // along with this program; if not, write to the Free Software |
|---|
| 20 | // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 21 | // |
|---|
| 22 | |
|---|
| 23 | struct AVFormatContext; |
|---|
| 24 | struct AVStream; |
|---|
| 25 | struct AVFrame; |
|---|
| 26 | struct AVPicture; |
|---|
| 27 | struct SwsContext; |
|---|
| 28 | |
|---|
| 29 | class MovieMaker { |
|---|
| 30 | AVFormatContext *oc; |
|---|
| 31 | AVStream *st; |
|---|
| 32 | int out_size; |
|---|
| 33 | AVFrame *frame; |
|---|
| 34 | unsigned char *outbuf; |
|---|
| 35 | AVPicture *out; |
|---|
| 36 | unsigned char *pixels; |
|---|
| 37 | SwsContext *sws_ctx; |
|---|
| 38 | |
|---|
| 39 | public: |
|---|
| 40 | MovieMaker(); |
|---|
| 41 | bool Open(const char *fnm, int width, int height); |
|---|
| 42 | unsigned char * GetBuffer() const; |
|---|
| 43 | int GetWidth() const; |
|---|
| 44 | int GetHeight() const; |
|---|
| 45 | void AddFrame(); |
|---|
| 46 | ~MovieMaker(); |
|---|
| 47 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.