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

Functions to create the encoding (image/video) window. More...

#include "global.h"
#include "interface.h"
#include "glview.h"
#include "movie.h"
+ Include dependency graph for w_encode.c:

Go to the source code of this file.

Functions

gboolean spin (gpointer data)
 spin
 
G_MODULE_EXPORT void set_video_frames (GtkEntry *res, gpointer data)
 set number of frames
 
G_MODULE_EXPORT void set_video_extra_frames (GtkEntry *res, gpointer data)
 set video extra frames
 
G_MODULE_EXPORT void set_video_res (GtkEntry *res, gpointer data)
 set video / image resolution
 
G_MODULE_EXPORT void set_video_codec (GtkComboBox *ComboBoxGtk)
 change video codec
 
G_MODULE_EXPORT void set_video_opengl_spin (GtkSpinButton *res, gpointer data)
 set encoding OpenGL quality callback - spin
 
G_MODULE_EXPORT void set_video_bitrate (GtkEntry *res, gpointer data)
 set video bitrate entry callback
 
void clean_animation (glwin *view)
 clean saved animation data
 
void set_encoding_widget_sensitivity (gboolean video, int sensitivity)
 Adjust the sensitivity for the widgets of the encoding window.
 
G_MODULE_EXPORT void set_image_format (GtkComboBox *box, gpointer data)
 selecting the image format
 
G_MODULE_EXPORT void run_window_encode (GtkDialog *win, gint response_id, gpointer data)
 encoding a movie - running the dialog
 
void window_encode (glwin *view, gboolean video)
 encoding a movie - creating the dialog
 

Variables

int video_res [2]
 
int framesec
 
int extraframes
 
int codec
 
int oglquality
 
int bitrate
 
char * codec_name [VIDEO_CODECS]
 
char * image_name [IMAGE_FORMATS]
 
GtkWidget * resf
 
GtkWidget * rese
 
GtkWidget * resb
 
GtkWidget * res [2]
 
GtkWidget * cod
 
GtkWidget * form
 
GtkWidget * encoding_pb
 
gboolean encode_video
 

Detailed Description

Functions to create the encoding (image/video) 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 w_encode.c.

Function Documentation

◆ clean_animation()

void clean_animation ( glwin * view)

clean saved animation data

Parameters
viewthe target glwin

Definition at line 186 of file w_encode.c.

◆ run_window_encode()

G_MODULE_EXPORT void run_window_encode ( GtkDialog * win,
gint response_id,
gpointer data )

encoding a movie - running the dialog

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

Definition at line 278 of file w_encode.c.

◆ set_encoding_widget_sensitivity()

void set_encoding_widget_sensitivity ( gboolean video,
int sensitivity )

Adjust the sensitivity for the widgets of the encoding window.

Parameters
videoencoding video (yes / no)
sensitivitysensitivity

Definition at line 223 of file w_encode.c.

◆ set_image_format()

G_MODULE_EXPORT void set_image_format ( GtkComboBox * box,
gpointer data )

selecting the image format

Parameters
boxthe GtkComboBox sending the signal
datathe associated data pointer

Definition at line 246 of file w_encode.c.

◆ set_video_bitrate()

G_MODULE_EXPORT void set_video_bitrate ( GtkEntry * res,
gpointer data )

set video bitrate entry callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 166 of file w_encode.c.

◆ set_video_codec()

G_MODULE_EXPORT void set_video_codec ( GtkComboBox * ComboBoxGtk)

change video codec

Parameters
*ComboBoxGtkthe GtkComboBox sending the signal

Definition at line 135 of file w_encode.c.

◆ set_video_extra_frames()

G_MODULE_EXPORT void set_video_extra_frames ( GtkEntry * res,
gpointer data )

set video extra frames

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 93 of file w_encode.c.

◆ set_video_frames()

G_MODULE_EXPORT void set_video_frames ( GtkEntry * res,
gpointer data )

set number of frames

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 72 of file w_encode.c.

◆ set_video_opengl_spin()

G_MODULE_EXPORT void set_video_opengl_spin ( GtkSpinButton * res,
gpointer data )

set encoding OpenGL quality callback - spin

Parameters
resthe GtkSpinButton sending the signal
datathe associated data pointer

Definition at line 148 of file w_encode.c.

◆ set_video_res()

G_MODULE_EXPORT void set_video_res ( GtkEntry * res,
gpointer data )

set video / image resolution

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 114 of file w_encode.c.

◆ spin()

gboolean spin ( gpointer data)
extern

spin

Parameters
datathe associated data pointer

Definition at line 56 of file w_spiner.c.

◆ window_encode()

void window_encode ( glwin * view,
gboolean video )

encoding a movie - creating the dialog

Parameters
viewthe target glwin
videovideo (1) or image (0)

Definition at line 319 of file w_encode.c.

Variable Documentation

◆ bitrate

int bitrate

Definition at line 58 of file w_encode.c.

◆ cod

GtkWidget* cod

Definition at line 213 of file w_encode.c.

◆ codec

int codec

Definition at line 56 of file w_encode.c.

◆ codec_name

char* codec_name[VIDEO_CODECS]
extern

Definition at line 90 of file movie.c.

◆ encode_video

gboolean encode_video

Definition at line 267 of file w_encode.c.

◆ encoding_pb

GtkWidget* encoding_pb

Definition at line 266 of file w_encode.c.

◆ extraframes

int extraframes

Definition at line 55 of file w_encode.c.

◆ form

GtkWidget* form

Definition at line 236 of file w_encode.c.

◆ framesec

int framesec

Definition at line 54 of file w_encode.c.

◆ image_name

char* image_name[IMAGE_FORMATS]
extern

Definition at line 57 of file image.c.

◆ oglquality

int oglquality

Definition at line 57 of file w_encode.c.

◆ res

GtkWidget* res[2]

Definition at line 212 of file w_encode.c.

◆ resb

GtkWidget* resb

Definition at line 211 of file w_encode.c.

◆ rese

GtkWidget* rese

Definition at line 210 of file w_encode.c.

◆ resf

GtkWidget* resf

Definition at line 209 of file w_encode.c.

◆ video_res

int video_res[2]

Definition at line 53 of file w_encode.c.