add switch_core_file_write_video

open a door to write video data
so it is possible to record a .fsv file
also possible to write to .mp4 with proper file format support
This commit is contained in:
Seven Du
2012-07-20 11:38:20 +08:00
parent 30c009b30e
commit 14cb9af607
4 changed files with 50 additions and 20 deletions
+4
View File
@@ -273,6 +273,10 @@ struct switch_file_interface {
/*! function to write from the file */
switch_status_t (*file_write) (switch_file_handle_t *, void *data, switch_size_t *len);
/*! function to seek to a certian position in the file */
switch_status_t (*file_read_video) (switch_file_handle_t *, void *data, switch_size_t *len);
/*! function to write from the file */
switch_status_t (*file_write_video) (switch_file_handle_t *, void *data, switch_size_t *len);
/*! function to seek to a certian position in the file */
switch_status_t (*file_seek) (switch_file_handle_t *, unsigned int *cur_pos, int64_t samples, int whence);
/*! function to set meta data */
switch_status_t (*file_set_string) (switch_file_handle_t *fh, switch_audio_col_t col, const char *string);