apps/camogm2/camogm_ogm.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int camogm_init_ogm (void)
 may add something - called first time format is changed to this one (only once) recording is stopped
int camogm_start_ogm (void)
int camogm_frame_ogm (void)
int camogm_end_ogm (void)
 Zero packets are OK, use them to end file with "last" turned on.
void camogm_free_ogm (void)
void camogm_audio_ogm_push (void *buf, int len, long granules_shift, int prefix)


Function Documentation

void camogm_audio_ogm_push ( void *  buf,
int  len,
long  granules_shift,
int  prefix 
)

Definition at line 340 of file camogm_ogm.c.

References ogm_stream_t::granulepos, ogm_flush_to_file(), ogm_stream_t::os, PACKET_IS_SYNCPOINT, ogm_stream_t::packetno, and saudio.

Referenced by audio_process().

int camogm_end_ogm ( void   ) 

Zero packets are OK, use them to end file with "last" turned on.

put zero-packet it into stream

+++++++++++++++++++++++++++++++++++++++++++++++++++++

Definition at line 217 of file camogm_ogm.c.

References camogm_state::audio_enable, buf, camogm_audio_end(), CAMOGM_FRAME_FILE_ERR, D0, debug_file, ogm_stream_t::granulepos, camogm_state::granulepos, camogm_state::og, ogm_flush_to_file(), ogm_stream_t::os, camogm_state::os, ogm_stream_t::packetno, camogm_state::packetno, state, svideo, and camogm_state::vf.

int camogm_frame_ogm ( void   ) 

Definition at line 168 of file camogm_ogm.c.

References camogm_state::allow_sync, CAMOGM_FRAME_FILE_ERR, camogm_state::chunk_index, D0, debug_file, ogm_stream_t::granulepos, camogm_state::granulepos, camogm_state::og, ogm_flush_to_file(), ogm_stream_t::os, camogm_state::os, camogm_state::packetchunks, ogm_stream_t::packetno, camogm_state::packetno, state, svideo, camogm_state::timescale, and camogm_state::vf.

void camogm_free_ogm ( void   ) 

Definition at line 65 of file camogm_ogm.c.

int camogm_init_ogm ( void   ) 

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

*************************************************************************** ! FILE NAME : camogm_ogm.c ! DESCRIPTION: Provides writing to ogm 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_ogm.c,v
! Revision 1.1.1.1 2008/11/27 20:04:01 elphel ! ! ! Revision 1.2 2007/11/19 03:23:21 elphel ! 7.1.5.5 Added support for *.mov files in camogm. ! ! Revision 1.1 2007/11/16 08:49:58 elphel ! Initial release of camogm - program to record video/image to the camera hard drive (or other storage) !

Definition at line 62 of file camogm_ogm.c.

int camogm_start_ogm ( void   ) 

Definition at line 69 of file camogm_ogm.c.

References camogm_state::audio_enable, camogm_audio_init(), CAMOGM_FRAME_FILE_ERR, D0, D2, debug_file, camogm_state::frame_params, ogm_stream_t::granulepos, camogm_state::granulepos, camogm_state::height, memcpy(), memset(), camogm_state::og, ogm_flush_to_file(), ogm_stream_t::os, camogm_state::os, PACKET_TYPE_COMMENT, ogm_stream_t::packetno, camogm_state::packetno, camogm_state::path, camogm_state::path_prefix, put_uint16(), put_uint32(), put_uint64(), camogm_state::serialno, stream_header::size, state, stream_header::streamtype, stream_header::subtype, svideo, camogm_state::time_unit, camogm_state::timescale, interframe_params_t::timestamp_sec, interframe_params_t::timestamp_usec, camogm_state::vf, and camogm_state::width.


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