apps/camogm2/camogm_kml.c File Reference

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/uio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <time.h>
#include <string.h>
#include <netinet/in.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <asm/elphel/c313a.h>
#include <asm/elphel/ext353.h>
#include <asm/byteorder.h>
#include <ogg/ogg.h>
#include "ogmstreams.h"
#include "camogm_kml.h"
#include "camogm.h"

Include dependency graph for camogm_kml.c:

Go to the source code of this file.

Functions

int camogm_init_kml (void)
 may add something - called first time format is changed to this one (only once) recording is stopped
void camogm_free_kml (void)
int camogm_start_kml (void)
int camogm_frame_kml (void)
int camogm_end_kml (void)

Variables

const char ExifDirFileName [] = "/dev/exif_metadir"
 Not all are needed, just copied from the camogm.c.


Function Documentation

int camogm_end_kml ( void   ) 

Definition at line 311 of file camogm_kml.c.

References camogm_state::kml_file, and state.

int camogm_frame_kml ( void   ) 

Definition at line 149 of file camogm_kml.c.

References CAMOGM_FORMAT_JPEG, CAMOGM_FRAME_FILE_ERR, camogm_state::chunk_index, D0, D1, D2, debug_file, exif_dir_table_t::dst, camogm_state::ed, EXIF_COMPASS_PITCH_ASCII, EXIF_COMPASS_ROLL_ASCII, Exif_GPSInfo_CompassDirection, Exif_GPSInfo_CompassDirection_Index, Exif_GPSInfo_CompassPitch, Exif_GPSInfo_CompassPitch_Index, Exif_GPSInfo_CompassPitchRef, Exif_GPSInfo_CompassPitchRef_Index, Exif_GPSInfo_CompassRoll, Exif_GPSInfo_CompassRoll_Index, Exif_GPSInfo_CompassRollRef, Exif_GPSInfo_CompassRollRef_Index, Exif_GPSInfo_GPSAltitude, Exif_GPSInfo_GPSAltitude_Index, Exif_GPSInfo_GPSAltitudeRef, Exif_GPSInfo_GPSAltitudeRef_Index, Exif_GPSInfo_GPSDateStamp, Exif_GPSInfo_GPSDateStamp_Index, Exif_GPSInfo_GPSLatitude, Exif_GPSInfo_GPSLatitude_Index, Exif_GPSInfo_GPSLatitudeRef, Exif_GPSInfo_GPSLatitudeRef_Index, Exif_GPSInfo_GPSLongitude, Exif_GPSInfo_GPSLongitude_Index, Exif_GPSInfo_GPSLongitudeRef, Exif_GPSInfo_GPSLongitudeRef_Index, Exif_GPSInfo_GPSTimeStamp, Exif_GPSInfo_GPSTimeStamp_Index, camogm_state::format, ip, camogm_state::kml_exif, camogm_state::kml_file, camogm_state::kml_height, camogm_state::kml_height_mode, camogm_state::kml_horHalfFov, camogm_state::kml_last_ts, camogm_state::kml_last_uts, camogm_state::kml_near, camogm_state::kml_period, camogm_state::kml_vertHalfFov, exif_dir_table_t::ltag, memcpy(), camogm_state::packetchunks, camogm_state::path, camogm_state::path_prefix, state, camogm_state::this_frame_params, interframe_params_t::timestamp_sec, and interframe_params_t::timestamp_usec.

void camogm_free_kml ( void   ) 

Definition at line 71 of file camogm_kml.c.

int camogm_init_kml ( void   ) 

may add something - called first time format is changed to this one (only once) recording is stopped

Definition at line 68 of file camogm_kml.c.

int camogm_start_kml ( void   ) 

Definition at line 92 of file camogm_kml.c.

References CAMOGM_FRAME_FILE_ERR, D0, D2, debug_file, Exif_GPSInfo_CompassDirection, Exif_GPSInfo_CompassDirection_Index, Exif_GPSInfo_CompassDirectionRef, Exif_GPSInfo_CompassDirectionRef_Index, Exif_GPSInfo_CompassPitch, Exif_GPSInfo_CompassPitch_Index, Exif_GPSInfo_CompassPitchRef, Exif_GPSInfo_CompassPitchRef_Index, Exif_GPSInfo_CompassRoll, Exif_GPSInfo_CompassRoll_Index, Exif_GPSInfo_CompassRollRef, Exif_GPSInfo_CompassRollRef_Index, Exif_GPSInfo_GPSAltitude, Exif_GPSInfo_GPSAltitude_Index, Exif_GPSInfo_GPSAltitudeRef, Exif_GPSInfo_GPSAltitudeRef_Index, Exif_GPSInfo_GPSDateStamp, Exif_GPSInfo_GPSDateStamp_Index, Exif_GPSInfo_GPSLatitude, Exif_GPSInfo_GPSLatitude_Index, Exif_GPSInfo_GPSLatitudeRef, Exif_GPSInfo_GPSLatitudeRef_Index, Exif_GPSInfo_GPSLongitude, Exif_GPSInfo_GPSLongitude_Index, Exif_GPSInfo_GPSLongitudeRef, Exif_GPSInfo_GPSLongitudeRef_Index, Exif_GPSInfo_GPSTimeStamp, Exif_GPSInfo_GPSTimeStamp_Index, Exif_Photo_DateTimeOriginal, Exif_Photo_DateTimeOriginal_Index, ExifDirFileName, ExifKmlNumber, camogm_state::kml_exif, exif_dir_table_t::ltag, memcpy(), read, and state.


Variable Documentation

const char ExifDirFileName[] = "/dev/exif_metadir"

Not all are needed, just copied from the camogm.c.

*************************************************************************** ! FILE NAME : camogm_kml.c ! DESCRIPTION: Provides writing to series of individual JPEG files for camogm ! Copyright (C) 2007 Elphel, Inc. ! -----------------------------------------------------------------------------** ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** ! !

Log
camogm_kml.c,v
! Revision 1.1.1.1 2008/11/27 20:04:01 elphel ! ! ! Revision 1.1 2008/05/02 12:45:58 spectr_rain ! initial revision with the sound support ! ! Revision 1.2 2008/04/13 21:05:20 elphel ! Fixing KML generation ! ! Revision 1.1 2008/04/11 23:06:52 elphel ! files to handle KML generation ! !

Definition at line 65 of file camogm_kml.c.


Generated on Fri Nov 28 00:06:54 2008 for elphel by  doxygen 1.5.1