OSDN Git Service

add tstools.
[rec10/rec10-git.git] / tstools / DtsEdit / src / gpac / laser.h
diff --git a/tstools/DtsEdit/src/gpac/laser.h b/tstools/DtsEdit/src/gpac/laser.h
new file mode 100644 (file)
index 0000000..4e05d63
--- /dev/null
@@ -0,0 +1,88 @@
+/*\r
+ *                     GPAC - Multimedia Framework C SDK\r
+ *\r
+ *                     Authors: Jean le Feuvre\r
+ *                             Copyright (c) 2005-200X ENST\r
+ *                                     All rights reserved\r
+ *\r
+ *  This file is part of GPAC / BIFS codec sub-project\r
+ *\r
+ *  GPAC is free software; you can redistribute it and/or modify\r
+ *  it under the terms of the GNU Lesser General Public License as published by\r
+ *  the Free Software Foundation; either version 2, or (at your option)\r
+ *  any later version.\r
+ *   \r
+ *  GPAC is distributed in the hope that it will be useful,\r
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ *  GNU Lesser General Public License for more details.\r
+ *   \r
+ *  You should have received a copy of the GNU Lesser General Public\r
+ *  License along with this library; see the file COPYING.  If not, write to\r
+ *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. \r
+ *\r
+ */\r
+\r
+#ifndef _GF_LASER_H_\r
+#define _GF_LASER_H_\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+#include <gpac/nodes_svg.h>\r
+\r
+/*for LASeRConfig*/\r
+#include <gpac/mpeg4_odf.h>\r
+\r
+#ifndef GPAC_DISABLE_SVG\r
+\r
+typedef struct __tag_laser_codec GF_LASeRCodec;\r
+\r
+\r
+/*LASeR decoder constructor*/\r
+GF_LASeRCodec *gf_laser_decoder_new(GF_SceneGraph *scenegraph);\r
+void gf_laser_decoder_del(GF_LASeRCodec *codec);\r
+\r
+/*sets the scene time. Scene time is the real clock of the bifs stream in secs*/\r
+void gf_laser_decoder_set_clock(GF_LASeRCodec *codec, Double (*GetSceneTime)(void *st_cbk), void *st_cbk );\r
+\r
+/*setup a stream*/\r
+GF_Err gf_laser_decoder_configure_stream(GF_LASeRCodec *codec, u16 ESID, char *DecoderSpecificInfo, u32 DecoderSpecificInfoLength);\r
+/*removes a stream*/\r
+GF_Err gf_laser_decoder_remove_stream(GF_LASeRCodec *codec, u16 ESID);\r
+\r
+/*decode a laser AU and applies it to the graph (non-memory mode only)*/\r
+GF_Err gf_laser_decode_au(GF_LASeRCodec *codec, u16 ESID, char *data, u32 data_length);\r
+\r
+/*Memory laser decoding - fills the command list with the content of the AU - cf scenegraph_vrml.h for commands usage\r
+       @ESID: ID of input stream\r
+       @data, @data_length: BIFS AU\r
+       @com_list: target list for decoded commands\r
+*/\r
+GF_Err gf_laser_decode_command_list(GF_LASeRCodec *codec, u16 ESID, char *data, u32 data_length, GF_List *com_list);\r
+\r
+\r
+/*constructor - @graph: scene graph being encoded*/\r
+GF_LASeRCodec *gf_laser_encoder_new(GF_SceneGraph *graph);\r
+/*destructor*/\r
+void gf_laser_encoder_del(GF_LASeRCodec *codec);\r
+/*setup a destination stream*/\r
+GF_Err gf_laser_encoder_new_stream(GF_LASeRCodec *codec, u16 ESID, GF_LASERConfig *cfg);\r
+/*encodes a list of commands for the given stream in the output buffer - data is dynamically allocated for output*/\r
+GF_Err gf_laser_encode_au(GF_LASeRCodec *codec, u16 ESID, GF_List *command_list, Bool reset_encoding_context, char **out_data, u32 *out_data_length);\r
+/*returns encoded config desc*/\r
+GF_Err gf_laser_encoder_get_config(GF_LASeRCodec *codec, u16 ESID, char **out_data, u32 *out_data_length);\r
+\r
+/*Encodes current graph as a scene replace*/\r
+GF_Err gf_laser_encoder_get_rap(GF_LASeRCodec *codec, char **out_data, u32 *out_data_length);\r
+\r
+\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif\r
+\r