atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
image.c File Reference

Functions to render an image from the OpenGL window. More...

#include "global.h"
#include "interface.h"
#include "project.h"
#include "glwindow.h"
#include "glview.h"
#include "movie.h"
#include <libavformat/avformat.h>
+ Include dependency graph for image.c:

Go to the source code of this file.

Functions

void fill_image (VideoStream *vs, int width, int height, glwin *view)
 render an image from an OpenGL rendering
 
void init_frame_buffer (int x, int y)
 init a frame buffer
 
void close_frame_buffer ()
 close the frame buffer
 
G_MODULE_EXPORT void run_render_image (GtkDialog *info, gint response_id, gpointer data)
 render an image from the OpenGL window - running the dialog
 
void render_image (glwin *view, video_options *iopts)
 render an image from the OpenGL window - prepare the dialog
 

Variables

GdkWindow * xwin
 
GLXContext glcontext
 
Pixmap pixmap
 
GLXPixmap glpixmap
 
GdkPixbuf * pixbuf
 
char * image_name [IMAGE_FORMATS]
 
char * image_list [IMAGE_FORMATS]
 

Detailed Description

Functions to render an image from the OpenGL window.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file image.c.

Function Documentation

◆ close_frame_buffer()

void close_frame_buffer ( )
extern

close the frame buffer

Definition at line 1206 of file movie.c.

◆ fill_image()

void fill_image ( VideoStream * vs,
int width,
int height,
glwin * view )
extern

render an image from an OpenGL rendering

Parameters
vsthe video stream
widthimage width
heightimage height
viewthe target glwin

Definition at line 273 of file movie.c.

◆ init_frame_buffer()

void init_frame_buffer ( int x,
int y )
extern

init a frame buffer

Parameters
xx size - image width
yy size - image height

Definition at line 1178 of file movie.c.

◆ render_image()

void render_image ( glwin * view,
video_options * iopts )

render an image from the OpenGL window - prepare the dialog

Parameters
viewthe target glwin
ioptsthe rendering options

Definition at line 164 of file image.c.

◆ run_render_image()

G_MODULE_EXPORT void run_render_image ( GtkDialog * info,
gint response_id,
gpointer data )

render an image from the OpenGL window - running the dialog

Parameters
infothe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 94 of file image.c.

Variable Documentation

◆ glcontext

GLXContext glcontext
extern

◆ glpixmap

GLXPixmap glpixmap
extern

◆ image_list

char* image_list[IMAGE_FORMATS]
Initial value:
= {"png",
"jpeg",
"tiff",
"bmp"}

Definition at line 62 of file image.c.

◆ image_name

char* image_name[IMAGE_FORMATS]
Initial value:
= {"PNG",
"JPG/JPEG",
"TIFF",
"Bitmap"}

Definition at line 57 of file image.c.

◆ pixbuf

GdkPixbuf* pixbuf
extern

Definition at line 122 of file movie.c.

◆ pixmap

Pixmap pixmap
extern

◆ xwin

GdkWindow* xwin
extern