#include <camogm.h>
Collaboration diagram for camogm_state:

Data Fields | |
| int | segment_duration |
| int | segment_length |
| int | save_gp |
| char | path_prefix [256] |
| char | path [300] |
| int | cirbuf_rp |
| int | fd_circ |
| -1 - invalid | |
| int | fd_head |
| file descriptor for circbuf | |
| int | fd_fparmsall |
| file descriptor for JPEG header | |
| int | fd_exif |
| file descriptor for sensor/compressor parameters | |
| int | head_size |
| file descriptor for Exif data | |
| char | jpegHeader [JPEG_HEADER_MAXSIZE] |
| JPEG header size. | |
| int | metadata_start |
| interframe_params_t | frame_params |
| interframe_params_t | this_frame_params |
| int | jpeg_len |
| int | frame_period |
| int | width |
| in microseconds (1/10 of what is needed for the Ogm header) | |
| int | height |
| int | starting |
| int | running |
| ogg_stream_state | os |
| ogg_page | og |
| ogg_packet | op |
| elph_ogg_packet | eop |
| int | serialno |
| ogg_int64_t | packetno |
| ogg_int64_t | granulepos |
| FILE * | vf |
| int | ivf |
| video file (ogm, fopen) | |
| int | last |
| video file (jpeg, mov - open) | |
| int | exif |
| int | exifSize |
| unsigned char | ed [MAX_EXIF_SIZE] |
| int | circ_buff_size |
| int | senspars_size |
| char | debug_name [256] |
| int | set_samples_per_unit |
| double | timescale |
| double | set_timescale |
| current timescale, default 1.0 | |
| int | max_frames |
| int | set_max_frames |
| int | frames_per_chunk |
| int | set_frames_per_chunk |
| int | frameno |
| int * | frame_lengths |
| off_t | frame_data_start |
| ogg_int64_t | time_unit |
| Quicktime (and else?) - frame data start (0xff 0xd8...). | |
| int | formats |
| int | format |
| bitmask of used (initialized) formats | |
| int | set_format |
| output file format | |
| elph_packet_chunk | packetchunks [7] |
| output format to set (will be updated after stop) | |
| int | chunk_index |
| int | buf_overruns |
| int | buf_min |
| int | set_frames_skip |
| int | frames_skip |
| will be copied to frames_skip if stopped or at start | |
| int | frames_skip_left |
| int | kml_enable |
| int | kml_used |
| enable KML file generation | |
| char | kml_path [300] |
| KML file generation used (change only when stopped). | |
| FILE * | kml_file |
| full path for KML file (if any) | |
| double | kml_horHalfFov |
| stream to write kml file | |
| double | kml_vertHalfFov |
| half horizontal Fov (degrees) | |
| double | kml_near |
| half vertical Fov (degrees) | |
| int | kml_height_mode |
| Use in KML "near" parameter (<=0 - don't use it). | |
| double | kml_height |
| 1 - actual, 0 - ground | |
| int | kml_period |
| extra height to add | |
| int | kml_last_ts |
| generate PhotoOverlay for each kml_period seconds; | |
| int | kml_last_uts |
| last generated kml file timestamp | |
| exif_dir_table_t | kml_exif [ExifKmlNumber] |
| last generated kml file timestamp, microseconds | |
| int | fd_sens |
| file descriptor for JPEG header | |
| interframe_params_t | frame_params |
| interframe_params_t | this_frame_params |
| FILE * | vf |
| int * | frame_lengths |
| FILE * | kml_file |
| full path for KML file (if any) | |
| exif_dir_table_t | kml_exif [ExifKmlNumber] |
| last generated kml file timestamp, microseconds | |
| int | audio_enable |
| store locations of the fields needed for KML generations in the Exif block | |
| int | audio_rate |
| int | audio_channels |
| int | audio_format |
| int | allow_sync |
Definition at line 71 of file camogm.h.
Definition at line 72 of file camogm.h.
Referenced by camogm_set_segment_duration(), camogm_status(), and sendImageFrame().
Definition at line 73 of file camogm.h.
Referenced by camogm_set_segment_length(), camogm_status(), and sendImageFrame().
Definition at line 74 of file camogm.h.
Referenced by camogm_set_save_gp(), camogm_status(), and sendImageFrame().
Definition at line 75 of file camogm.h.
Referenced by audio_start(), camogm_frame_jpeg(), camogm_frame_kml(), camogm_set_prefix(), camogm_start_jpeg(), camogm_start_mov(), camogm_start_ogm(), and camogm_status().
| char camogm_state::path |
Definition at line 76 of file camogm.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_start_jpeg(), camogm_start_mov(), camogm_start_ogm(), and camogm_status().
Definition at line 77 of file camogm.h.
Referenced by camogm_reset(), camogm_start(), camogm_status(), and sendImageFrame().
-1 - invalid
Definition at line 78 of file camogm.h.
Referenced by camogm_start(), main(), sendImageFrame(), and waitDaemonEnabled().
file descriptor for circbuf
Definition at line 79 of file camogm.h.
Referenced by camogm_start(), and main().
file descriptor for sensor/compressor parameters
Definition at line 82 of file camogm.h.
Referenced by main(), and sendImageFrame().
file descriptor for Exif data
Definition at line 83 of file camogm.h.
Referenced by camogm_start(), main(), and sendImageFrame().
JPEG header size.
Definition at line 84 of file camogm.h.
Referenced by camogm_start(), and sendImageFrame().
Definition at line 86 of file camogm.h.
Referenced by camogm_start(), camogm_start_mov(), camogm_start_ogm(), camogm_status(), and sendImageFrame().
Definition at line 87 of file camogm.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_start(), camogm_status(), and sendImageFrame().
Definition at line 89 of file camogm.h.
Referenced by camogm_end_mov(), camogm_start(), and camogm_status().
in microseconds (1/10 of what is needed for the Ogm header)
Definition at line 90 of file camogm.h.
Referenced by camogm_end_mov(), camogm_start(), camogm_start_ogm(), and camogm_status().
Definition at line 91 of file camogm.h.
Referenced by camogm_end_mov(), camogm_start(), camogm_start_ogm(), and camogm_status().
Definition at line 92 of file camogm.h.
Referenced by camogm_init(), camogm_set_format(), camogm_set_frames_per_chunk(), camogm_set_frames_skip(), camogm_set_max_frames(), camogm_set_timescale(), camogm_start(), camogm_status(), camogm_stop(), and main().
Definition at line 93 of file camogm.h.
Referenced by camogm_init(), camogm_set_format(), camogm_set_frames_per_chunk(), camogm_set_frames_skip(), camogm_set_max_frames(), camogm_set_timescale(), camogm_start(), camogm_status(), camogm_stop(), and main().
| ogg_stream_state camogm_state::os |
Definition at line 94 of file camogm.h.
Referenced by camogm_end_ogm(), camogm_frame_ogm(), and camogm_start_ogm().
| ogg_page camogm_state::og |
Definition at line 95 of file camogm.h.
Referenced by camogm_end_ogm(), camogm_frame_ogm(), and camogm_start_ogm().
| ogg_packet camogm_state::op |
| elph_ogg_packet camogm_state::eop |
| ogg_int64_t camogm_state::packetno |
Definition at line 99 of file camogm.h.
Referenced by camogm_end_ogm(), camogm_frame_ogm(), and camogm_start_ogm().
| ogg_int64_t camogm_state::granulepos |
Definition at line 100 of file camogm.h.
Referenced by camogm_end_ogm(), camogm_frame_ogm(), and camogm_start_ogm().
| FILE* camogm_state::vf |
Definition at line 101 of file camogm.h.
Referenced by camogm_end_ogm(), camogm_frame_ogm(), camogm_init(), camogm_start_ogm(), camogm_status(), camogm_stop(), ogm_flush_to_file(), and sendImageFrame().
video file (ogm, fopen)
Definition at line 102 of file camogm.h.
Referenced by camogm_end_mov(), camogm_frame_jpeg(), camogm_frame_mov(), camogm_start_mov(), camogm_status(), parse(), and sendImageFrame().
video file (jpeg, mov - open)
Definition at line 103 of file camogm.h.
Referenced by camogm_init(), and camogm_stop().
Definition at line 105 of file camogm.h.
Referenced by camogm_init(), camogm_set_exif(), camogm_status(), and sendImageFrame().
| unsigned char camogm_state::ed |
Definition at line 111 of file camogm.h.
Referenced by camogm_start(), main(), and sendImageFrame().
Definition at line 113 of file camogm.h.
Referenced by camogm_debug(), camogm_init(), and camogm_status().
| double camogm_state::timescale |
Definition at line 116 of file camogm.h.
Referenced by camogm_end_mov(), camogm_frame_ogm(), camogm_set_timescale(), camogm_start(), camogm_start_ogm(), and camogm_status().
| double camogm_state::set_timescale |
current timescale, default 1.0
Definition at line 117 of file camogm.h.
Referenced by camogm_set_timescale(), and camogm_start().
Definition at line 118 of file camogm.h.
Referenced by camogm_set_max_frames(), camogm_start(), camogm_start_mov(), camogm_status(), and sendImageFrame().
Definition at line 120 of file camogm.h.
Referenced by camogm_end_mov(), camogm_set_frames_per_chunk(), camogm_start(), camogm_start_mov(), and camogm_status().
Definition at line 122 of file camogm.h.
Referenced by camogm_end_mov(), camogm_frame_mov(), camogm_init(), camogm_start(), camogm_status(), and sendImageFrame().
Definition at line 123 of file camogm.h.
Referenced by camogm_end_mov(), camogm_frame_mov(), camogm_init(), and camogm_start_mov().
| ogg_int64_t camogm_state::time_unit |
Quicktime (and else?) - frame data start (0xff 0xd8...).
Definition at line 125 of file camogm.h.
Referenced by camogm_start(), and camogm_start_ogm().
Definition at line 126 of file camogm.h.
Referenced by camogm_free(), camogm_init(), camogm_set_format(), and camogm_start().
bitmask of used (initialized) formats
Definition at line 127 of file camogm.h.
Referenced by audio_end(), audio_process(), audio_start(), camogm_frame_kml(), camogm_free(), camogm_set_format(), camogm_start(), camogm_status(), camogm_stop(), and sendImageFrame().
output file format
Definition at line 128 of file camogm.h.
Referenced by camogm_set_format(), camogm_start(), and sendImageFrame().
| elph_packet_chunk camogm_state::packetchunks |
output format to set (will be updated after stop)
Definition at line 129 of file camogm.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_frame_mov(), camogm_frame_ogm(), and sendImageFrame().
Definition at line 130 of file camogm.h.
Referenced by camogm_frame_jpeg(), camogm_frame_kml(), camogm_frame_mov(), camogm_frame_ogm(), and sendImageFrame().
Definition at line 131 of file camogm.h.
Referenced by camogm_reset(), camogm_start(), and camogm_status().
Definition at line 133 of file camogm.h.
Referenced by camogm_set_frames_skip(), and camogm_start().
will be copied to frames_skip if stopped or at start
Definition at line 134 of file camogm.h.
Referenced by camogm_set_frames_skip(), camogm_start(), camogm_status(), and sendImageFrame().
number of frames to skip after the one recorded (for time lapse) if negetive - -(interval between frames in seconds)
Definition at line 136 of file camogm.h.
Referenced by camogm_set_frames_skip(), camogm_start(), camogm_status(), and sendImageFrame().
number of frames left to skip before the next one to be processed if (frames_skip <0) - next timestamp to save an image
Definition at line 139 of file camogm.h.
Referenced by camogm_kml_set_enable(), camogm_start(), and camogm_status().
enable KML file generation
Definition at line 140 of file camogm.h.
Referenced by camogm_status(), camogm_stop(), and sendImageFrame().
KML file generation used (change only when stopped).
Definition at line 141 of file camogm.h.
Referenced by camogm_init(), and camogm_status().
| FILE* camogm_state::kml_file |
full path for KML file (if any)
Definition at line 142 of file camogm.h.
Referenced by camogm_end_kml(), camogm_frame_kml(), and camogm_init().
| double camogm_state::kml_horHalfFov |
stream to write kml file
Definition at line 143 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_horHalfFov(), and camogm_status().
half horizontal Fov (degrees)
Definition at line 144 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_vertHalfFov(), and camogm_status().
| double camogm_state::kml_near |
half vertical Fov (degrees)
Definition at line 145 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_near(), and camogm_status().
Use in KML "near" parameter (<=0 - don't use it).
Definition at line 146 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_height_mode(), and camogm_status().
| double camogm_state::kml_height |
1 - actual, 0 - ground
Definition at line 147 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_height(), and camogm_status().
extra height to add
Definition at line 148 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_period(), and camogm_status().
generate PhotoOverlay for each kml_period seconds;
Definition at line 149 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_period(), and camogm_status().
last generated kml file timestamp
Definition at line 150 of file camogm.h.
Referenced by camogm_frame_kml(), camogm_kml_set_period(), and camogm_status().
| struct exif_dir_table_t camogm_state::kml_exif[ExifKmlNumber] |
last generated kml file timestamp, microseconds
Definition at line 151 of file camogm.h.
Referenced by camogm_frame_kml(), and camogm_start_kml().
| FILE* camogm_state::vf |
| FILE* camogm_state::kml_file |
| struct exif_dir_table_t camogm_state::kml_exif[ExifKmlNumber] |
store locations of the fields needed for KML generations in the Exif block
Definition at line 153 of file camogm.h.
Referenced by audio_init(), camogm_end_ogm(), camogm_set_audio_state(), and camogm_start_ogm().
Definition at line 154 of file camogm.h.
Referenced by audio_init(), begin_wave(), camogm_audio_init(), and camogm_set_audio_format().
Definition at line 155 of file camogm.h.
Referenced by audio_init(), audio_process(), begin_wave(), camogm_audio_init(), and camogm_set_audio_format().
Definition at line 157 of file camogm.h.
Referenced by camogm_frame_ogm(), and camogm_set_sync_state().
1.5.1