atomes
1.1.16
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
movie.h
Go to the documentation of this file.
1
/* This file is part of the 'atomes' software
2
3
'atomes' is free software: you can redistribute it and/or modify it under the terms
4
of the GNU Affero General Public License as published by the Free Software Foundation,
5
either version 3 of the License, or (at your option) any later version.
6
7
'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
See the GNU General Public License for more details.
10
11
You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12
If not, see <https://www.gnu.org/licenses/>
13
14
Copyright (C) 2022-2024 by CNRS and University of Strasbourg */
15
23
/*
24
* This header file: 'movie.h'
25
*
26
* Contains:
27
28
- Data structure declarations for movie encoding
29
- Function declarations for movie encoding
30
31
*/
32
33
#ifndef MOVIE_H_
34
#define MOVIE_H_
35
36
#define VIDEO_CODECS 5
37
#define IMAGE_FORMATS 4
38
39
#include <libavutil/avassert.h>
40
#include <libavcodec/avcodec.h>
41
#include <libavutil/avutil.h>
42
#if LIBAVCODEC_VERSION_MAJOR > 54
43
#include <libavutil/imgutils.h>
44
#include <libavutil/timestamp.h>
45
#endif
46
#include <libavformat/avformat.h>
47
#include <libavutil/opt.h>
48
#include <libswscale/swscale.h>
49
50
// a wrapper around a single output AVStream
51
typedef
struct
VideoStream
VideoStream
;
52
struct
VideoStream
53
{
54
AVStream *
st
;
55
AVCodecContext *
cc
;
56
AVFrame *
frame
;
57
struct
SwsContext *
sws_ctx
;
58
};
59
60
typedef
struct
video_options
video_options
;
61
struct
video_options
62
{
63
int
proj
;
64
int
framesec
;
65
int
extraframes
;
66
int
codec
;
67
int
oglquality
;
68
int
bitrate
;
69
int
*
video_res
;
70
};
71
72
extern
void
render_image
(
glwin
* view,
video_options
* iopts);
73
extern
void
save_movie
(
glwin
* view,
video_options
* vopts);
74
#endif
render_image
void render_image(glwin *view, video_options *iopts)
render an image from the OpenGL window - prepare the dialog
Definition
image.c:164
save_movie
void save_movie(glwin *view, video_options *vopts)
saving a movie - prepare the dialog
Definition
movie.c:1291
VideoStream
Definition
movie.h:53
VideoStream::cc
AVCodecContext * cc
Definition
movie.h:55
VideoStream::sws_ctx
struct SwsContext * sws_ctx
Definition
movie.h:57
VideoStream::st
AVStream * st
Definition
movie.h:54
VideoStream::frame
AVFrame * frame
Definition
movie.h:56
glwin
Definition
glwin.h:875
video_options
Definition
movie.h:62
video_options::oglquality
int oglquality
Definition
movie.h:67
video_options::codec
int codec
Definition
movie.h:66
video_options::proj
int proj
Definition
movie.h:63
video_options::extraframes
int extraframes
Definition
movie.h:65
video_options::video_res
int * video_res
Definition
movie.h:69
video_options::bitrate
int bitrate
Definition
movie.h:68
video_options::framesec
int framesec
Definition
movie.h:64
opengl
draw
movie.h
Generated by
1.10.0