]> git.sesse.net Git - vlc/commitdiff
Encore un commit venu tout droit des abysses de l'enfer, d�sol� pour
authorSam Hocevar <sam@videolan.org>
Fri, 3 Mar 2000 07:03:34 +0000 (07:03 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 3 Mar 2000 07:03:34 +0000 (07:03 +0000)
le flood, c'est la derni�re fois.

  . apr�s le demoronifier, le GPLifier: il y a les ent�tes de la GPL dans
   chaque fichier ; votre mission, si vous l'acceptez, est de mettre votre
   nom dans chaque fichier qui est votre oeuvre ou auquel vous avez
   particip�, pour qu'on sache qui a fait quoi. Pas de fausse modestie,
   c'est plus pour des raisons pratiques que pour la gloire.

  . rajout de -lthreads pour que �a linke sous Hurd

  . rajout de quelques #include pour que �a compile sous FreeBSD
   (d'ailleurs �a compile mais �a ne linke pas, je ne sais pas comment
   linker avec la libpthread sur la machine de Dae)

  . quelques #ifdef SYS_BSD �� et l�.

96 files changed:
Makefile
include/ac3_decoder.h
include/ac3_decoder_thread.h
include/audio_decoder.h
include/audio_output.h
include/common.h
include/config.h
include/debug.h
include/decoder_fifo.h
include/input.h
include/input_netlist.h
include/input_vlan.h
include/int_types.h
include/interface.h
include/intf_msg.h
include/main.h
include/mtime.h
include/netutils.h
include/rsc_files.h
include/spu_decoder.h
include/threads.h [moved from include/vlc_thread.h with 90% similarity]
include/vdec_idct.h
include/vdec_motion.h
include/video.h
include/video_decoder.h
include/video_fifo.h
include/video_graphics.h
include/video_output.h
include/video_parser.h
include/vpar_blocks.h
include/vpar_headers.h
include/vpar_synchro.h
src/ac3_decoder/ac3_bit_allocate.c
src/ac3_decoder/ac3_bit_stream.h
src/ac3_decoder/ac3_decoder.c
src/ac3_decoder/ac3_decoder_thread.c
src/ac3_decoder/ac3_downmix.c
src/ac3_decoder/ac3_exponent.c
src/ac3_decoder/ac3_imdct.c
src/ac3_decoder/ac3_internal.h
src/ac3_decoder/ac3_mantissa.c
src/ac3_decoder/ac3_parse.c
src/ac3_decoder/ac3_rematrix.c
src/audio_decoder/audio_constants.h
src/audio_decoder/audio_decoder.c
src/audio_decoder/audio_math.c
src/audio_decoder/audio_math.h
src/audio_output/audio_output.c
src/audio_output/audio_sys.h
src/generic_decoder/generic_decoder.c
src/generic_decoder/generic_decoder.h
src/input/input.c
src/input/input_ctrl.c
src/input/input_ctrl.h
src/input/input_file.c
src/input/input_file.h
src/input/input_netlist.c
src/input/input_network.c
src/input/input_network.h
src/input/input_pcr.c
src/input/input_pcr.h
src/input/input_psi.c
src/input/input_psi.h
src/input/input_vlan.c
src/interface/interface.c
src/interface/intf_cmd.c
src/interface/intf_cmd.h
src/interface/intf_console.c
src/interface/intf_console.h
src/interface/intf_ctrl.c
src/interface/intf_ctrl.h
src/interface/intf_msg.c
src/interface/intf_sys.h
src/interface/main.c
src/misc/decoder_fifo.c
src/misc/mtime.c
src/misc/netutils.c
src/misc/rsc_files.c
src/spu_decoder/spu_decoder.c
src/video_decoder/vdec_idct.c
src/video_decoder/vdec_idctmmx.S
src/video_decoder/vdec_motion.c
src/video_decoder/vdec_motion_inner.c
src/video_decoder/video_decoder.c
src/video_output/video_output.c
src/video_output/video_sys.h
src/video_output/video_text.c
src/video_output/video_text.h
src/video_output/video_yuv.c
src/video_output/video_yuv.h
src/video_output/video_yuv_mmx.S
src/video_parser/video_fifo.c
src/video_parser/video_parser.c
src/video_parser/vpar_blocks.c
src/video_parser/vpar_headers.c
src/video_parser/vpar_synchro.c

index 7b6b985c04e3596f8f4c70f1c1f86abce520d85e..303a0540e9646321b3d8c2d0488dc47c0ba0a2a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@
 
 # Environment
 CC=egcc
+#CC=gcc295
 SHELL=/bin/sh
 
 # Audio output settings
@@ -82,7 +83,9 @@ PROGRAM_OPTIONS += DEBUG
 endif
 
 # PROGRAM_BUILD is a complete identification of the build
-PROGRAM_BUILD = `date -R` $(USER)@`hostname`
+# ( we can't use fancy options with date since OSes like Solaris
+# or FreeBSD have strange date implementations )
+PROGRAM_BUILD = `date` $(USER)@`hostname`
 
 # DEFINE will contain some of the constants definitions decided in Makefile, 
 # including ARCH_xx and SYS_xx. It will be passed to C compiler.
@@ -105,12 +108,18 @@ endif
 #
 # C headers directories
 #
-INCLUDE += -Iinclude
+INCLUDE += -Iinclude -I/usr/local/include -I/usr/X11R6/include
 
 #
 # Libraries
 #
+LIB += -L/usr/local/lib
+
+ifeq ($(SYS),GNU)
+LIB += -lthreads
+else
 LIB += -lpthread
+endif
 LIB += -lm
 LIB += -ldl
 
@@ -132,8 +141,10 @@ ifeq ($(ARCH),X86)
 CCFLAGS += -malign-double
 #CCFLAGS += -march=pentium
 ifeq ($(PPRO), YES)
+ifneq ($(SYS), BSD)
 CCFLAGS += -march=pentiumpro
 endif
+endif
 # Eventual MMX optimizations for x86
 ifeq ($(MMX), YES)
 CFLAGS += -DHAVE_MMX
@@ -327,7 +338,7 @@ FORCE:
 # Real targets
 #
 vlc: $(C_OBJ) $(ASM_OBJ) $(PLUGIN_OBJ)
-       $(CC) $(LCFLAGS) $(CFLAGS) --export-dynamic -rdynamic -o $@ $(C_OBJ) $(ASM_OBJ) 
+       $(CC) $(CCFLAGS) $(LCFLAGS) $(CFLAGS) --export-dynamic -rdynamic -o $@ $(C_OBJ) $(ASM_OBJ)      
 
 #
 # Generic rules (see below)
index 9e14925a7e3efafa0a606473c0af9015cec353d2..b08bdd914056dbe2da0b6d259aaad701c267fefb 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * ac3_decoder.h : ac3 decoder interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /**** ac3 decoder API - public ac3 decoder structures */
index ee61d8da4320760fd547abd04ff73eb77887dbaa..f2e3c344429ceacc1026da3a7249a6e2bd8ecc2e 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * ac3_decoder_thread.h : ac3 decoder thread interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 45ea6aa58a0b10caf0f79f0894052ad119d69b95..5012363287b67a131954f206a57abec4e0865ad3 100644 (file)
@@ -1,12 +1,32 @@
 /*****************************************************************************
  * audio_decoder.h : audio decoder thread interface
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * = Prototyped functions are implemented in audio_decoder/audio_decoder.c
  *
  * = Required headers :
  *   - "common.h"                                    ( u32, byte_t, boolean_t )
- *   - "vlc_thread.h"                                          ( vlc_thread_t )
+ *   - "threads.h"                                             ( vlc_thread_t )
  *   - "input.h"                                ( ts_packet_t, input_thread_t )
  *   - "decoder_fifo.h"                                      ( decoder_fifo_t )
  *   - "audio_output.h"                          ( aout_fifo_t, aout_thread_t )
index e9edc58f8b1fd6f1408f35494fff0a23aed6f293..a1465ced3f19dec99750359e514475f30842926f 100644 (file)
@@ -1,12 +1,32 @@
 /*****************************************************************************
  * audio_output.h : audio output thread interface
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  * - <sys/soundcard.h>                                       ( audio_buf_info )
  * - "common.h"                                                   ( boolean_t )
  * - "mtime.h"                                                      ( mtime_t )
- * - "vlc_thread.h"                                            ( vlc_thread_t )
+ * - "threads.h"                                               ( vlc_thread_t )
  *****************************************************************************/
 
 /* TODO :
index af734ad62f56cbba30a70836fe3a2b4b3b49674f..cc49cd53525576b5261f4d840ff082027858b156 100644 (file)
@@ -1,9 +1,28 @@
 /*****************************************************************************
  * common.h: common definitions
- * (c)1998 VideoLAN
- *****************************************************************************
- * Collection of usefull common types and macros definitions
+ * Collection of useful common types and macros definitions
  *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * required headers:
  *  config.h
  *****************************************************************************/
index 1616f6cee6b88272b432344bad352ac6067b271d..09cc1e334f7d59779d1cfc82a9dc0fe4372fb4d3 100644 (file)
@@ -1,8 +1,25 @@
 /*****************************************************************************
  * config.h: limits and configuration
- * (c)1999 VideoLAN
- *****************************************************************************
  * Defines all compilation-time configuration constants and size limits
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* Conventions regarding names of symbols and variables
index f3a3cf8135c03abe18df21097204cf2054323b14..c7184c26c43d6b6563a61312cbeb09f4a77b6664 100644 (file)
@@ -1,9 +1,28 @@
 /*****************************************************************************
  * debug.h: vlc debug macros
- * (c)1999 VideoLAN
- *****************************************************************************
  * Stand alone file
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  * - <string.h>
  * - intf_msg.h
index 5fe121567a3b15003d4a3d32cfb827bd067686f4..98572d26882472e1d0ff430571a8427e3944a821 100644 (file)
@@ -1,11 +1,31 @@
 /*****************************************************************************
  * decoder_fifo.h: interface for decoders PES fifo
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  * - "config.h"
  * - "common.h"
- * - "vlc_thread.h"
+ * - "threads.h"
  * - "input.h"
  *****************************************************************************/
 
index 6c0842e54102ef8908064f467b7a609ce26e156d..7a2dadccf38925012bb8613b7e9e89417ec1ad0c 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * input.h: input thread interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 4e1c8b5ccf73ebfbf841fcecd7cfd632dd9cd7b7..07929e32f59898c52679b89b037dddf1e3e92fee 100644 (file)
@@ -1,10 +1,27 @@
 /*****************************************************************************
  * input_netlist.h: netlist interface
- * (c)1998 VideoLAN
- *****************************************************************************
  * The netlists are an essential part of the input structure. We maintain a
  * list of free TS packets and free PES packets to avoid continuous malloc
  * and free.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 #include "intf_msg.h"
index 3a24bd07b58ce502763400e8cd6725221b7e6324..783b86e606b00da9b306c3a9ef3b4e9151555a7d 100644 (file)
@@ -1,12 +1,30 @@
 /*****************************************************************************
  * input_vlan.h: vlan input method
- * (c)1999 VideoLAN
- *****************************************************************************
- * XXX??
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  * <netinet/in.h>
- * "vlc_thread.h"
+ * "threads.h"
  *****************************************************************************/
 
 /*****************************************************************************
index e42cb2d24e1add3dd355a2f62513a225774d8ecf..7148026f1a94d9b4871b661d5aaf497f75480c3f 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * int_types.h: internal types
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 /* Basic types definitions */
 typedef unsigned char          u8;
 typedef signed char            s8;
index eda7ce599170582e1ef857a98e0292d4401863b9..2a8f55c3c74d5bd40eeed6dd144fd467ad585885 100644 (file)
@@ -1,10 +1,29 @@
 /*****************************************************************************
  * interface.h: interface access for other threads
- * (c)1999 VideoLAN
- *****************************************************************************
  * This library provides basic functions for threads to interact with user
  * interface, such as message output.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  *  <sys/uio.h>
  *  <X11/Xlib.h>
@@ -12,7 +31,7 @@
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
index 5b44f17c71b3c2deb5e04ae7d6e97e74cdf5e9fb..9f5ede2d625c7d5336ff9d2da8331c50db67ac50 100644 (file)
@@ -1,9 +1,26 @@
 /*****************************************************************************
  * intf_msg.h: messages interface
- * (c)1999 VideoLAN
- *****************************************************************************
  * This library provides basic functions for threads to interact with user
  * interface, such as message output. See config.h for output configuration.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index b1ae2416379ea3cfb7de039893e7b566b1d3db27..4eb7b660e65e8bcc38ea1aba2a316f1725931da8 100644 (file)
@@ -1,8 +1,25 @@
 /*****************************************************************************
  * main.h: access to all program variables
- * (c)1999 VideoLAN
- *****************************************************************************
  * Declaration and extern access to global program object.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index a3bc2a0d837f3dffe5cea848c6b8458691121645..b4cd66574ac17c467b5a26b8d1c1738a25860e4f 100644 (file)
@@ -1,7 +1,5 @@
 /*****************************************************************************
- * mtime.h: high rezolution time management functions
- * (c)1999 VideoLAN
- *****************************************************************************
+ * mtime.h: high resolution time management functions
  * This header provides portable high precision time management functions,
  * which should be the only ones used in other segments of the program, since
  * functions like gettimeofday() and ftime() are not always supported.
@@ -10,6 +8,27 @@
  * 'm' stands for 'micro', since maximum resolution is the microsecond.
  * Functions prototyped are implemented in interface/mtime.c.
  *****************************************************************************
+ * Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  *  none
  * this header includes inline functions
index 902f657ead7b5ac21f2dfa194e08ecd69e7d1363..3b788b86bfdf55ecb957694e7e8f88a3adeeadb1 100644 (file)
@@ -1,10 +1,29 @@
 /*****************************************************************************
  * netutils.h: various network functions
- * (c)1999 VideoLAN
- *****************************************************************************
- * This header describe miscellanous utility functions shared between several
+ * This header describes miscellanous utility functions shared between several
  * modules.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  *  <netinet/in.h>
  *****************************************************************************/
index 7d3861dc98e6daf50e274b4e032c8f4c61bc146b..9747060578eab85e94d41d021143431a8a06d569 100644 (file)
@@ -1,10 +1,29 @@
 /*****************************************************************************
  * rsc_files.h: resources files manipulation functions
- * (c)1999 VideoLAN
- *****************************************************************************
- * This library describe a general format used to store 'resources'. Resources
+ * This library describes a general format used to store 'resources'. Resources
  * can be anything, including pictures, audio streams, and so on.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  config.h
  *  common.h
index 0a373320cca4f190392f373274e9240b221aeb16..dfc7309e017c762a6f188bbe06b7d5e47dc0b4f7 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * spu_decoder.h : sub picture unit decoder thread interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
similarity index 90%
rename from include/vlc_thread.h
rename to include/threads.h
index 8b6abaa51363389954ae9e8c22946f3a4921e7c9..73fb41d67a6a6e051df935cd5ad13a0e05bc6ca9 100644 (file)
@@ -1,11 +1,29 @@
 /*****************************************************************************
- * vlc_thread.h : thread implementation for vieolan client
- * (c)1999 VideoLAN
- *****************************************************************************
+ * threads.h : thread implementation for VideoLAN client
  * This header is supposed to provide a portable threads implementation.
  * Currently, it is a wrapper to either the POSIX pthreads library, or
  * the Mach cthreads (for the GNU/Hurd).
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+
 #ifdef SYS_GNU
 #include <cthreads.h>
 #else
index 997b96a7e190062dd84015212c609360fc888865..4c8c9c89398493d3e3dea2bbe03381a8aaf7f7ad 100644 (file)
@@ -1,12 +1,31 @@
 /*****************************************************************************
  * vdec_idct.h : types for the inverse discrete cosine transform
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "video_parser.h"
  *****************************************************************************/
 
index e9e145b82369acb66b38f5a6021b332f9b8214f1..ec817c54fc7dbc18c61247d21bdad2e279f91ba0 100644 (file)
@@ -1,12 +1,31 @@
 /*****************************************************************************
  * vdec_motion.h : types for the motion compensation algorithm
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "video_parser.h"
  *  "undec_picture.h"
  *****************************************************************************/
@@ -40,4 +59,4 @@ void vdec_MotionField16x8444( struct macroblock_s * p_mb );
 void vdec_MotionFieldDMV444( struct macroblock_s * p_mb );
 void vdec_MotionFrameFrame444( struct macroblock_s * p_mb );
 void vdec_MotionFrameField444( struct macroblock_s * p_mb );
-void vdec_MotionFrameDMV444( struct macroblock_s * p_mb );
\ No newline at end of file
+void vdec_MotionFrameDMV444( struct macroblock_s * p_mb );
index 038420fcafee4867469e757c86924124da37a5ed..da9ef0e26fba50a039585f7c9b4d70c77c750cb4 100644 (file)
@@ -1,10 +1,29 @@
 /*****************************************************************************
  * video.h: common video definitions
- * (c)1999 VideoLAN
- *****************************************************************************
  * This header is required by all modules which have to handle pictures. It
  * includes all common video types and constants.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
index 326699243de7a46b5ed72145bc58d8a6add24a28..1365c03dd2724d47df5abd69841ff104abbec8aa 100644 (file)
@@ -1,13 +1,32 @@
 /*****************************************************************************
  * video_decoder.h : video decoder thread
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
index ef997d91e9a20581ed06138ebd58b11608b58374..67dba426a008a8c327fc7a4a4792599c42852c66 100644 (file)
@@ -1,12 +1,31 @@
 /*****************************************************************************
  * video_fifo.h : FIFO for the pool of video_decoders
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "video_parser.h"
  *  "undec_picture.h"
  *****************************************************************************/
index b2b63927024ce2c34d34c9213f15996db9cd9a91..db901398ba2ec45a1f29ccbf7fbfd1c4c2ed9728 100644 (file)
@@ -1,10 +1,29 @@
 /*****************************************************************************
  * video_graphics.h: pictures manipulation primitives
- * (c)1999 VideoLAN
- *****************************************************************************
  * Includes function to compose, convert and display pictures, and also basic
  * functions to copy pictures data or descriptors.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
index e7f06f1a6f589cffd5ff137186f62111ad83cb8a..e61ae7c6eff8173429803dd495c77cce586f669b 100644 (file)
@@ -1,10 +1,27 @@
 /*****************************************************************************
  * video_output.h : video output thread
- * (c)1999 VideoLAN
- *****************************************************************************
  * This module describes the programming interface for video output threads.
  * It includes functions allowing to open a new thread, send pictures to a
  * thread, and destroy a previously oppenned video output thread.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 89916b83ab6fc8abb2c8d403a6e475e26add8f86..a4c188880cb8fcb0a363d55736836d2bfbf0064a 100644 (file)
@@ -1,13 +1,32 @@
 /*****************************************************************************
  * video_parser.h : video parser thread
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
index 5750985a86fe27f2656e9633976d48e332bf9908..86d10702f865285a3a22c39e5ec237c21a7d0332 100644 (file)
@@ -1,13 +1,32 @@
 /*****************************************************************************
  * vpar_blocks.h : video parser blocks management
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
@@ -161,4 +180,4 @@ void vpar_PictureData2B420TZ( struct vpar_thread_s * p_vpar, int i_mb_base );
 void vpar_PictureData2I420BZ( struct vpar_thread_s * p_vpar, int i_mb_base );
 void vpar_PictureData2P420BZ( struct vpar_thread_s * p_vpar, int i_mb_base );
 void vpar_PictureData2B420BZ( struct vpar_thread_s * p_vpar, int i_mb_base );
-#endif
\ No newline at end of file
+#endif
index 382b023759132f9ed195927b4e265f0106313162..21523df675230caad136ef1255a998a25d31c57a 100644 (file)
@@ -1,13 +1,32 @@
 /*****************************************************************************
  * vpar_headers.h : video parser : headers parsing
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
index 4ebf089351f90df503f9c77637dcb0490dcec9bf..c37b95cfe19800ea5e1fe193bb2041b6e6cd1668 100644 (file)
@@ -1,13 +1,32 @@
 /*****************************************************************************
  * vpar_synchro.h : video parser blocks management
- * (c)1999 VideoLAN
- *****************************************************************************
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "video.h"
  *  "video_output.h"
index c32e7d4cd7276c0f594190e1f37816acb90b5242..3d812e0d38d5200d77d259b3ca98e53765175432 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_bit_allocate.c: ac3 allocation tables
+ *****************************************************************************
+ * Copyright (C) 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include "int_types.h"
 #include "ac3_decoder.h"
 #include "ac3_internal.h"
index 3c4040c0abeeadda762dbf161591b2ecc3483f0e..44bb456d0f7241975580d796b6850bbb38356cc3 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_bit_stream.h: getbits functions for the ac3 decoder
+ *****************************************************************************
+ * Copyright (C) 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 static __inline__ u8 GetByte (ac3_byte_stream_t * p_byte_stream)
 {
     /* Are there some bytes left in the current buffer ? */
index 43d7d7cdb22239acbcaeb876dc66a843a332d00c..fb6e8026211b1683fd04c516885b668e64134f6b 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_decoder.c: core ac3 decoder
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include "int_types.h"
 #include "ac3_decoder.h"
 #include "ac3_internal.h"
index a119ac495937d17e14b637bb965a55562c39c261..3038448f358a940a7a55d86df60e8cd746b2ca39 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * ac3_decoder_thread.c: ac3 decoder thread
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
 #include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                                      /* malloc(), free() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "debug.h"                                      /* "input_netlist.h" */
 
 #include "intf_msg.h"                        /* intf_DbgMsg(), intf_ErrMsg() */
index ce138c6eb0ed0b23332e133e5b189350a8aff673..7c160a1e619f9c3bdb95641170f700079f27af41 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_downmix.c: ac3 downmix functions
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include "int_types.h"
 #include "ac3_decoder.h"
 #include "ac3_internal.h"
index a8af25a80bb69c436aa1a6d2a5cb4e1030f1c901..80902b25c9347a858f2e6f9b1d2a4d334ffe794d 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_exponent.c: ac3 exponent calculations
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include <stdio.h>                                           /* "intf_msg.h" */
 
 #include "int_types.h"
index 95b7aa2969c418bc93efd93ebff81e214eadd64b..3466ad532d3c499e16b94a86870be901915adb0b 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_imdct.c: ac3 DCT
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include <math.h>
 
 #include "int_types.h"
index d27be5a503e87b657169f1b24e9cf8fd7cbecc49..fc1a335741eca07b42c1a6ffd855f3ef081f91f3 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_internals.h: needed by the ac3 decoder
+ *****************************************************************************
+ * Copyright (C) 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 /* Exponent strategy constants */
 #define EXP_REUSE      (0)
 #define EXP_D15                (1)
index 58e844ca835d8f3e9158a512d2f8166a7f7cc761..51d876b9841179a4868c51b7f744fcad8f7d4c03 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_mantissa.c: ac3 mantissa computation
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include <stdio.h>                                           /* "intf_msg.h" */
 
 #include "int_types.h"
index 4a37d6c8e82e47606cde7d49d02f7f579d37aa81..e55c3b3e6de2bf121be27e224901a012cc25f090 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_parse.c: ac3 parsing procedures
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include "int_types.h"
 #include "ac3_decoder.h"
 #include "ac3_internal.h"
index 1c5d4763331c6f927dce6efb417b63cd101b3eb3..8dbfc90f16a9dc56575c9566d4017af17e509393 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * ac3_rematrix.c: ac3 audio rematrixing
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 #include "int_types.h"
 #include "ac3_decoder.h"
 #include "ac3_internal.h"
index 382e60ab02f1c1bc2ae172cec0a071b7832e9586..7d3866abd515a1f3a0439aae5b23da7012910d38 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * audio_constants.h : defines the MPEG1 Layer I-II audio constants and tables
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 
index acaf230e961d639f79f5bbef94dd653f2f05aae6..a3620bafe262ef51ac1cfe869dcc9ff3f876486a 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * audio_decoder.c: MPEG1 Layer I-II audio decoder thread
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <unistd.h>
+#include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                                      /* malloc(), free() */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>                                           /* ntohl() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "debug.h"                                      /* "input_netlist.h" */
 
 #include "intf_msg.h"                        /* intf_DbgMsg(), intf_ErrMsg() */
 #include "input_netlist.h"                         /* input_NetlistFreePES() */
 #include "decoder_fifo.h"         /* DECODER_FIFO_(ISEMPTY|START|INCSTART)() */
 
-#include "audio_output.h"
+#include "audio_output.h"               /* aout_fifo_t (for audio_decoder.h) */
 
 #include "audio_constants.h"
 #include "audio_decoder.h"
-#include "audio_math.h"
+#include "audio_math.h"                                    /* DCT32(), PCM() */
 
 /*****************************************************************************
  * Local prototypes
index 02185a7ff383a44444bc47689509bb2b2824708c..17832d7b1bf02800984929ecada61c9db5b5a005 100644 (file)
@@ -1,35 +1,47 @@
 /*****************************************************************************
  * audio_math.c: Inverse Discrete Cosine Transform and Pulse Code Modulation
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <unistd.h>
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                                      /* malloc(), free() */
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>                                           /* ntohl() */
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "config.h"
 #include "common.h"
-#include "mtime.h"
-#include "vlc_thread.h"
-#include "debug.h"
+#include "mtime.h"                                                /* mtime_t */
+#include "threads.h"
 
 #include "intf_msg.h"                        /* intf_DbgMsg(), intf_ErrMsg() */
 
-#include "input.h"
-#include "input_netlist.h"
-#include "decoder_fifo.h"
+#include "input.h"                      /* pes_packet_t (for decoder_fifo.h) */
+#include "decoder_fifo.h"            /* decoder_fifo_t (for audio_decoder.h) */
 
-#include "audio_output.h"
+#include "audio_output.h"               /* aout_fifo_t (for audio_decoder.h) */
 
-#include "audio_constants.h"
-#include "audio_decoder.h"
-#include "audio_math.h"
+#include "audio_decoder.h"                                    /* adec_bank_t */
 
 /*****************************************************************************
  * DCT32: Fast 32 points Discrete Cosine Transform
index f68c9dbf727657753e57fc2240b1ae2dc88ce2fc..f7d604c416048b2c69475c8654e0ad588c32c601 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * audio_math.h : PCM and DCT
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 267fb7568283b8c9284d3d0465cce0f57eebe7de..e7df9795970a2709ef386a30553d3175cf0978d9 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * audio_output.c : audio output thread
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* TODO:
@@ -18,7 +36,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <unistd.h>
+#include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                            /* calloc(), malloc(), free() */
@@ -28,7 +46,7 @@
 #include "common.h"
 #include "config.h"
 #include "mtime.h"                             /* mtime_t, mdate(), msleep() */
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"                        /* intf_DbgMsg(), intf_ErrMsg() */
 
index f99051a066921fefd7f009d05ca04117575b0389..12ba1aab6b18513fa57a10e2338a6071f043f659 100644 (file)
@@ -1,7 +1,27 @@
 /*****************************************************************************
  * audio_sys.h : header of the method-dependant functions library
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  * - "common.h" ( byte_t )
  * - "audio_output.h" ( aout_dsp_t )
index ee8d050a5d03adc63269b2b6a0924bced85c1f89..3efd9b804be1f4bdf49c2cd94606c2692187fc23 100644 (file)
@@ -1,7 +1,5 @@
 /*****************************************************************************
  * generic_decoder.c : generic decoder thread
- * (c)1999 VideoLAN
- *****************************************************************************
  * This decoder provides a way to parse packets which do not belong to any
  * known stream type, or to redirect packets to files. It can extract PES files
  * from a multiplexed stream, identify automatically ES in a stream missing
  * mode.
  * A single generic decoder is able to handle several ES, therefore it can be
  * used as a 'default' decoder by the input thread.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include "vlc.h"
-
-/*#include <errno.h>
+#include <errno.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
-#include "thread.h"
+#include "threads.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"   */
-/*
+#include "debug.h"
+
 #include "input.h"
 #include "input_netlist.h"
 #include "decoder_fifo.h"
 
 #include "generic_decoder.h"
 
-#include "video.h"
-#include "video_output.h"
-#include "video_decoder.h"*/
-
 /*
  * Local prototypes
  */
index 07a127bcfd1afd04bdc51934740d04e830309908..c77df815b73c8ba54dcfc3ba7738193db4a99cf9 100644 (file)
@@ -1,12 +1,32 @@
 /*****************************************************************************
  * generic_decoder.h : generic decoder thread
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
  *  "mtime.h"
- *  "vlc_thread.h"
+ *  "threads.h"
  *  "input.h"
  *  "decoder_fifo.h"
  * XXX??
index 8a67dea45e442c481b6fd79fe692781bee1be947..a7d9f742856936c8b0fc2104e4a669795ea5b7c4 100644 (file)
@@ -1,16 +1,34 @@
 /*****************************************************************************
  * input.c: input thread
- * (c)1998 VideoLAN
- *****************************************************************************
  * Read an MPEG2 stream, demultiplex and parse it before sending it to
  * decoders.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
 #include <errno.h>                                                  /* errno */
-#include <sys/uio.h>                                             /* required */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 #include <string.h>                                            /* strerror() */
 
 #include <stdlib.h>                                                /* free() */
@@ -19,7 +37,7 @@
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "intf_msg.h"
 #include "debug.h"
 
 #include "input_network.h"
 
 #include "audio_output.h"                                   /* aout_thread_t */
+
 #include "audio_decoder.h"                                  /* adec_thread_t */
 
+#include "ac3_decoder.h"              /* ac3dec_t (for ac3_decoder_thread.h) */
+#include "ac3_decoder_thread.h"                           /* ac3dec_thread_t */
+
 #include "video.h"                          /* picture_t (for video_output.h) */
 #include "video_output.h"                                   /* vout_thread_t */
 
@@ -44,9 +66,6 @@
 #include "vpar_synchro.h"            /* video_synchro_t (for video_parser.h) */
 #include "video_parser.h"                                   /* vpar_thread_t */
 
-#include "ac3_decoder.h"              /* ac3dec_t (for ac3_decoder_thread.h) */
-#include "ac3_decoder_thread.h"                           /* ac3dec_thread_t */
-
 #include "spu_decoder.h"                                  /* spudec_thread_t */
 
 #include "main.h"
index bad138b11c39e62e805502ce2881152c2fca4271..41c7b015a67236d99a3b3578a27401b20d906d6f 100644 (file)
@@ -1,52 +1,65 @@
 /*****************************************************************************
- * input_ctrl.c: Decodeur control
- * (c)1999 VideoLAN
+ * input_ctrl.c: Decoder control
+ * Controls the extraction and the decoding of the programs elements carried
+ * within a stream.
  *****************************************************************************
- * Control the extraction and the decoding of the programs elements carried in
- * a stream.
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-
-#include <errno.h>
-#include <sys/uio.h>                                                /* iovec */
-#include <stdlib.h>                              /* atoi(), malloc(), free() */
-#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include <netinet/in.h>                                             /* ntohs */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "intf_msg.h"
 #include "debug.h"
 
 #include "input.h"
 #include "input_netlist.h"
-
 #include "decoder_fifo.h"
 
-#include "audio_output.h"
-#include "audio_decoder.h"
-#include "ac3_decoder.h"
-#include "ac3_decoder_thread.h"
-
-#include "video.h"
-#include "video_output.h"
-#include "vdec_idct.h"
-//#include "video_decoder.h"
-#include "vdec_motion.h"
-#include "vpar_blocks.h"
-#include "vpar_headers.h"
-#include "vpar_synchro.h"
-#include "video_parser.h"
-
-#include "spu_decoder.h"
+#include "audio_output.h"                                   /* aout_thread_t */
+
+#include "audio_decoder.h"                                  /* adec_thread_t */
+
+#include "ac3_decoder.h"              /* ac3dec_t (for ac3_decoder_thread.h) */
+#include "ac3_decoder_thread.h"                           /* ac3dec_thread_t */
+
+#include "video.h"                          /* picture_t (for video_output.h) */
+#include "video_output.h"                                   /* vout_thread_t */
+
+#include "vdec_idct.h"                     /* dctelem_t (for video_parser.h) */
+#include "vdec_motion.h"                  /* f_motion_t (for video_parser.h) */
+#include "vpar_blocks.h"                /* macroblock_t (for video_parser.h) */
+#include "vpar_headers.h"                 /* sequence_t (for video_parser.h) */
+#include "vpar_synchro.h"            /* video_synchro_t (for video_parser.h) */
+#include "video_parser.h"                                   /* vpar_thread_t */
+
+#include "spu_decoder.h"                                  /* spudec_thread_t */
 
 /*****************************************************************************
  * input_AddPgrmElem: Start the extraction and the decoding of a program element
index 9ec254e4133fdaef5b6243cd4eb245c6f5a32496..b35e47f360ac8a1df1b4656be181499364fdb6c3 100644 (file)
@@ -1,7 +1,27 @@
 /*****************************************************************************
  * input_ctrl.h: Decodeur control
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Requires:
  *  "config.h"
  *  "common.h"
index 4e71857b0cf03f57669e882949ebcb63b517a25f..32949453ba6b31c6128bb67b6cb6b04f0d6f9e27 100644 (file)
@@ -1,18 +1,36 @@
 /*****************************************************************************
  * input_file.c: functions to read from a file
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "input.h"
 #include "input_file.h"
index 3a1d3111ffef5de7951536632c9b45334b43e31d..81497875073e65a1adbe728e5853a1bba92aae2b 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * input_file.h: file streams functions interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index ca961781a16fc59e0581d955eb18e730cb414dfe..c64f5462b62bc0feb68a5a30b31f850d383130fb 100644 (file)
@@ -1,24 +1,41 @@
 /*****************************************************************************
  * netlist.c: input thread
- * (c)1998 VideoLAN
- *****************************************************************************
  * Manages the TS and PES netlists (see netlist.h).
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
+
+#include <stdlib.h>                                                /* free() */
+#include <string.h>                                            /* strerror() */
+#include <errno.h>                                                  /* errno */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "intf_msg.h"
 #include "debug.h"
 #include "input.h"
index be3dbc5fca28088ab8176eeeb7b8c31a708a3e09..9e932ff43ec6279a5877bd25fb9676bbed2138e4 100644 (file)
@@ -1,29 +1,48 @@
 /*****************************************************************************
  * network.c: functions to read from the network
- * (c)1999 VideoLAN
- *****************************************************************************
  * Manages a socket.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <string.h>
-#include <stdio.h>
-#include <netdb.h>     /* servent, getservbyname(), hostent, gethostbyname() */
-#include <sys/socket.h>         /* socket(), setsockopt(), bind(), connect() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
+#include <string.h>                                            /* strerror() */
 #include <unistd.h>                                               /* close() */
+#include <errno.h>                                                  /* errno */
+#include <sys/time.h>                                   /* "input_network.h" */
+
+#ifdef SYS_BSD
+#include <sys/socket.h>                                   /* struct sockaddr */
+#endif
+
+#include <netdb.h>     /* servent, getservbyname(), hostent, gethostbyname() */
 #include <netinet/in.h>                     /* sockaddr_in, htons(), htonl() */
-#include <errno.h>
-#include <sys/time.h>
-#include <unistd.h>
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "netutils.h"
 
 #include "input.h"
index 1e0d153ffc32dd46b33f9f6007df03ae74adddbe..1ceeb453ac4bdc3b86bf0edd0219319746f28c4c 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * input_network.h: network functions interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 9132db7da641557eb69680589185f49587ce5bf6..11a5e51ae94673e0df2c93914de4ae4620de67e6 100644 (file)
@@ -1,24 +1,39 @@
 /*****************************************************************************
  * pcr.c: PCR management
- * (c)1999 VideoLAN
- *****************************************************************************
  * Manages structures containing PCR information.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/uio.h>                                                /* iovec */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 #include <stdlib.h>                              /* atoi(), malloc(), free() */
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include <netinet/in.h>                                           /* ntohl() */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "debug.h"
 #include "input.h"
 #include "intf_msg.h"
index b25dff0cde4a735d0cc4f915c6dfdbd9b62b57d7..38b03eda093dca32331f572419bb21b1ff23e1ec 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * input_pcr.h: PCR management interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* Maximum number of samples used to compute the dynamic average value,
index b597a640fd2c4a6099a08cc0fdcf026742d8204d..b03745dab13f7bb59353acf9f4f4b9c2925ca514 100644 (file)
@@ -1,15 +1,33 @@
 /*****************************************************************************
  * psi.c: PSI management
- * (c)1999 VideoLAN
- *****************************************************************************
  * Manages structures containing PSI information, and affiliated decoders.
- * TO DO: Fonctions d'init des structures
+ * TODO: Fonctions d'init des structures
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 #include <stdlib.h>                                     /* free(), realloc() */
 #include <string.h>                                               /* bzero() */
 #include <netinet/in.h>                                           /* ntohs() */
@@ -17,7 +35,7 @@
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "intf_msg.h"
 #include "debug.h"
 
index 9a358d1593bf379af25081fde2e570b812690c62..ee33971f231a7919f96f3e0bb4023843c674d263 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * psi.h: PSI management interface
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index b59ddf729fbb1dc30d8d0d6a6d8c6d37766a83d8..c901077d738137aab62fcacd184710bdf14140fb 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * input_vlan.c: vlan management library
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
 #include <string.h>                                   /* strerror(), bzero() */
 #include <stdlib.h>                                                /* free() */
 
+#ifdef SYS_BSD
+#include <netinet/in.h>                                    /* struct in_addr */
+#include <sys/socket.h>                                   /* struct sockaddr */
+#endif
+
 #include <arpa/inet.h>                           /* inet_ntoa(), inet_aton() */
-#include <sys/ioctl.h>                                            /* ioctl() */
 
 #ifdef SYS_LINUX
+#include <sys/ioctl.h>                                            /* ioctl() */
 #include <net/if.h>                            /* interface (arch-dependent) */
 #endif
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "netutils.h"
 #include "input_vlan.h"
 #include "intf_msg.h"
index c9573fa71c8b61dc0a018224ebfcd9f14f3214ae..3636431bd628c5cd5655a7abf5117d92fc07e5aa 100644 (file)
@@ -1,19 +1,36 @@
 /*****************************************************************************
  * interface.c: interface access for other threads
- * (c)1998 VideoLAN
- *****************************************************************************
  * This library provides basic functions for threads to interact with user
  * interface, such as command line.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
+#include <errno.h>                                                 /* ENOMEM */
+#include <stdio.h>                                              /* sprintf() */
+#include <stdlib.h>                                      /* free(), strtol() */
+#include <string.h>                                            /* strerror() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
 #include <dlfcn.h>                                                /* plugins */
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "input.h"
+
 #include "intf_msg.h"
 #include "interface.h"
 #include "intf_cmd.h"
 #include "intf_console.h"
-#include "main.h"
+
 #include "video.h"
 #include "video_output.h"
 
+#include "main.h"
+
 /*****************************************************************************
  * intf_channel_t: channel description
  *****************************************************************************
index d2e0723f126738688cdd92b0a2319a7fa0724c0e..6ccb75bcc287c52e2ddbea82cc3b78975e6422df 100644 (file)
@@ -1,24 +1,41 @@
 /*****************************************************************************
  * intf_cmd.c: interface commands parsing and executions functions
- * (c)1998 VideoLAN
- *****************************************************************************
  * This file implements the interface commands execution functions. It is used
  * by command-line oriented interfaces and scripts. The commands themselves are
  * implemented in intf_ctrl.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <errno.h>                                                  /* errno */
+#include <stdio.h>                                                   /* FILE */
+#include <stdlib.h>                                    /* strtod(), strtol() */
+#include <string.h>                                            /* strerror() */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "interface.h"
 #include "intf_msg.h"
index c83ebe02f4fae5d748761248d6a39ef950ecc39f..ab6aebcffa4e94778bb2175741ebfdb37ba48c97 100644 (file)
@@ -1,11 +1,30 @@
 /*****************************************************************************
  * intf_cmd.h: interface commands parsing and executions functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * This file implements the interface commands execution functions. It is used
  * by command-line oriented interfaces and scripts. The commands themselves are
  * implemented in intf_ctrl.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  *  none
  *****************************************************************************/
index e65337d2c73a39f263d77934454e3f93c7d81141..bb158dd83ef4889937f07c1aeada522b1f733422 100644 (file)
@@ -1,12 +1,30 @@
 /*****************************************************************************
  * intf_console.c: generic console for interface
- * (c)1998 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
+#include <stdlib.h>                                              /* malloc() */
 
 #include "config.h"
 
index 97358cd4a571735813b9214c40d5ad4fd803ccee..5c82d55362e33f2b65f7a528df2413cc1a95adfa 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * intf_console.h: generic console methods for interface
- * (c)1998 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index d76425e7cb84bfd444174d0991b70095e5f601a7..5ccff0acbe43ce3892f056ad6f48e368c6ae98cf 100644 (file)
@@ -1,7 +1,5 @@
 /*****************************************************************************
  * intf_ctrl.c: interface commands access to control functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * Library of functions common to all interfaces, allowing access to various
  * structures and settings. Interfaces should only use those functions
  * to read or write informations from other threads.
  * error codes defined in command.h. Custom error codes are allowed, but should
  * be positive.
  * More informations about parameters stand in `list of commands' section.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/stat.h>                        /* on BSD, fstat() needs stat.h */
+#include <sys/uio.h>                                            /* "input.h" */
+#include <stdio.h>                                              /* fprintf() */
+#include <stdlib.h>                                      /* malloc(), free() */
+#include <unistd.h>                                       /* close(), read() */
+#include <fcntl.h>                                                 /* open() */
 
 /* Common headers */
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "debug.h"
 #include "intf_msg.h"
 
index 88f7bce7e043fa4f3d0111d6eb62e60852ce3800..2a8d6c766f600af70773b7d1bf1a1f3082b73392 100644 (file)
@@ -1,11 +1,30 @@
 /*****************************************************************************
  * intf_ctrl.h: interface commands access to control functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * Library of functions common to all interfaces, allowing access to various
  * structures and settings. Interfaces should only use those functions
  * to read or write informations from other threads.
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Required headers:
  *  none
  *****************************************************************************/
index 166889aff3e96a34fe74f77569196a275978084a..7fb09521b1ea317ad7c3819dfc8ba7a17c200820 100644 (file)
@@ -1,29 +1,47 @@
 /*****************************************************************************
  * intf_msg.c: messages interface
- * (c)1998 VideoLAN
- *****************************************************************************
  * This library provides basic functions for threads to interact with user
  * interface, such as message output. See config.h for output configuration.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
+#include <errno.h>                                                  /* errno */
+#include <fcntl.h>                     /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
+#include <stdio.h>                                               /* required */
+#include <stdarg.h>                                       /* va_list for BSD */
+#include <stdlib.h>                                              /* malloc() */
+#include <string.h>                                            /* strerror() */
+#include <unistd.h>                                      /* close(), write() */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "intf_msg.h"
 #include "interface.h"
 #include "intf_console.h"
+
 #include "main.h"
 
 /*****************************************************************************
@@ -127,9 +145,14 @@ p_intf_msg_t intf_MsgCreate( void )
         /* Log file initialization - on failure, file pointer will be null,
          * and no log will be issued, but this is not considered as an
          * error */
-        p_msg->i_log_file = open( DEBUG_LOG,
-                                  O_CREAT | O_TRUNC | O_SYNC | O_WRONLY,
-                                  0666 );
+        p_msg->i_log_file = open( DEBUG_LOG, O_CREAT | O_TRUNC |
+#ifndef SYS_BSD
+                                  O_SYNC |
+#else
+                                  O_ASYNC |
+#endif /* SYS_BSD */
+                                  O_WRONLY, 0666 );
+
 #endif
     }
     return( p_msg );
index 206fb1bd80a61ba976a33636e796de7b2186b113..13426ce266b13f09e4c54300ed9b69a513be3377 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * intf_sys.h: system dependant interface API
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index b11baa2aca6118adf1ba7c857933919d2a98a65c..5b6967e9305cbe76d6e35761487878e810084073 100644 (file)
@@ -1,29 +1,50 @@
 /*****************************************************************************
  * main.c: main vlc source
- * (c)1998 VideoLAN
- *****************************************************************************
  * Includes the main() function for vlc. Parses command line, start interface
  * and spawn threads.
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <getopt.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <getopt.h>                                              /* getopt() */
+#include <signal.h>                               /* SIGHUP, SIGINT, SIGKILL */
+#include <stdio.h>                                              /* sprintf() */
+
+#include <errno.h>                                                 /* ENOMEM */
+#include <stdlib.h>                                  /* getenv(), strtol(),  */
+#include <string.h>                                            /* strerror() */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "input_vlan.h"
+
 #include "intf_msg.h"
 #include "interface.h"
+
 #include "audio_output.h"
+
 #include "main.h"
 
 /*****************************************************************************
index f8a94f2f02ffba22d485be55761a9db84da38029..f0a4c9031f0434c6733a8ad3e866de12502caaa8 100644 (file)
@@ -1,14 +1,33 @@
 /*****************************************************************************
  * decoder_fifo.c: auxiliaries functions used in decoder_fifo.h
- * (c)1998 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
index 6d2393c0512b3ab4387a36cd75531045525850d8..af4809e1b4760837fbd75c3e4d42fec47ea6cbde 100644 (file)
@@ -1,18 +1,36 @@
 /*****************************************************************************
  * mtime.c: high rezolution time management functions
- * (c)1998 VideoLAN
- *****************************************************************************
  * Functions are prototyped in mtime.h.
  *****************************************************************************
- * to-do list:
- *  see if using Linux real-time extensions is possible and profitable
+ * Copyright (C) 1998, 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
+/*
+ * TODO:
+ *  see if using Linux real-time extensions is possible and profitable
+ */
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdio.h>
-#include <unistd.h>
+#include <stdio.h>                                              /* sprintf() */
 #include <sys/time.h>
 
 #include "common.h"
index 56f830fdffad40c17f4907d7dd1a08d28e8e8d8f..2aeed67c736af3ce0e34e6a6289850ec539e8acd 100644 (file)
@@ -1,8 +1,24 @@
 /*****************************************************************************
  * netutils.c: various network functions
- * (c)1999 VideoLAN
  *****************************************************************************
- * XXX??
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
 #include <stdlib.h>                             /* free(), realloc(), atoi() */
 #include <errno.h>                                                /* errno() */
 #include <string.h>                                      /* bzero(), bcopy() */
-#include <sys/ioctl.h>                                            /* ioctl() */
+
+#ifdef SYS_BSD
+#include <netinet/in.h>                                    /* struct in_addr */
+#include <sys/socket.h>                                   /* struct sockaddr */
+#endif
+
 #include <arpa/inet.h>                                   /* htons(), htonl() */
 
 #ifdef SYS_LINUX
+#include <sys/ioctl.h>                                            /* ioctl() */
 #include <net/if.h>                            /* interface (arch-dependent) */
 #endif
 
index 9137f710becc3e8c647c640828202443121789e2..e2816354f207f8ebdf2d575e44958248ea5969fa 100644 (file)
@@ -1,9 +1,26 @@
 /*****************************************************************************
  * rsc_files.c: resources files manipulation functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * This library describe a general format used to store 'resources'. Resources
  * can be anything, including pictures, audio streams, and so on.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
+#include <errno.h>                                                  /* errno */
+#include <fcntl.h>                                                 /* open() */
+#include <stdlib.h>                                                /* free() */
+#include <string.h>                                /* strerror(), strncopy() */
+#include <unistd.h>                     /* read(), close(), lseek(), write() */
 
 #include "config.h"
 #include "common.h"
index 5f276966d231345f36c36bbe2d1395d920006d30..3fa4708141e66c83e66da7efdb413d6e692efbc9 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * spu_decoder.c : spu decoder thread
- * (c)2000 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* repompé sur video_decoder.c
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-//#include "vlc.h"
-
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <stdlib.h>                                      /* malloc(), free() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
+#include <unistd.h>                                              /* getpid() */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
+#include "debug.h"                                                 /* ASSERT */
 
 #include "input.h"
 #include "input_netlist.h"
index d9a9c3308239ebc162e557e97174ebdac198b1a9..b0b1aaee0036b21f15395228ffa38bad1a560008 100644 (file)
@@ -1,29 +1,40 @@
 /*****************************************************************************
  * vdec_idct.c : IDCT functions
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
index 78e81c0d2e4a05422ca1683ebf27be42a130f3f7..b002d90659c894a1785fc0e7248d40ef15430809 100644 (file)
@@ -1,3 +1,26 @@
+/*****************************************************************************
+ * vdec_idctmmx.S : MMX IDCT implementation
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
 /*
  * the input data is tranposed and each 16 bit element in the 8x8 matrix
  * is left aligned:
index 14c7a2b1eaeb814977e0ffec6a91ebaec20a89cb..bde293bda10c33ea7f34f727ca67d356be8bed68 100644 (file)
@@ -1,28 +1,40 @@
 /*****************************************************************************
  * vdec_motion.c : motion compensation routines
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
@@ -165,7 +177,7 @@ static __inline__ void Motion420(
                          * p_mb->p_picture->i_width;
     if( i_source_offset >= p_source->i_width * p_source->i_height )
     {
-        fprintf( stderr, "vdec error: bad motion vector\n" );
+        intf_ErrMsg( "vdec error: bad motion vector\n" );
         return;
     }
 
@@ -192,7 +204,7 @@ static __inline__ void Motion420(
                           * p_mb->p_picture->i_chroma_width;
     if( i_source_offset >= (p_source->i_width * p_source->i_height) / 4 )
     {
-        fprintf( stderr, "vdec error: bad motion vector\n" );
+        intf_ErrMsg( "vdec error: bad motion vector\n" );
         return;
     }
 
index 51f0f0b02b12facf10ec6614426c2f1b150114f3..56689d8de1b34074ce05b619e3bf1bb7417e9888 100644 (file)
@@ -1,28 +1,40 @@
 /*****************************************************************************
  * vdec_motion.c : motion compensation routines
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
index 4f59d0b999881c9221bfb044000e7e45fdee095c..03d49892aa9287ea2c7730051e3a5cd96f212251 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * video_decoder.c : video decoder thread
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* FIXME: passer en terminate/destroy avec les signaux supplémentaires ?? */
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-//#include "vlc.h"
-
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <stdlib.h>                                                /* free() */
+#include <unistd.h>                                              /* getpid() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                          /* for input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
@@ -445,7 +457,7 @@ void vdec_DecodeMacroblock( vdec_thread_t *p_vdec, macroblock_t * p_mb )
          */
         if( p_mb->pf_motion == 0 )
         {
-            fprintf( stderr, "vdec error: pf_motion set to NULL\n" );
+            intf_ErrMsg( "vdec error: pf_motion set to NULL\n" );
         }
         else
         {
index 797cb59678ccf5131151006736ba773fb7247722..dd54b6b122d51cba62cd5dee64218b7bac4151d7 100644 (file)
@@ -1,30 +1,48 @@
 /*****************************************************************************
  * video_output.c : video output thread
- * (c)2000 VideoLAN
- *****************************************************************************
  * This module describes the programming interface for video output threads.
  * It includes functions allowing to open a new thread, send pictures to a
- * thread, and destroy a previously oppenned video output thread.
+ * thread, and destroy a previously oppened video output thread.
+ *****************************************************************************
+ * Copyright (C) 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <errno.h>                                                 /* ENOMEM */
+#include <stdlib.h>                                                /* free() */
+#include <stdio.h>                                              /* sprintf() */
+#include <string.h>                                            /* strerror() */
 
 #include <dlfcn.h>                                                /* plugins */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "video.h"
 #include "video_output.h"
 #include "video_text.h"
 #include "video_yuv.h"
+
 #include "intf_msg.h"
 #include "main.h"
 
index 94f218463dbb19aa4ff6dfd2eedf23c5c2b31a5a..4f68e348f797818a1e8123ba3f4d09d8221ab257 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * video_sys.h: system dependant video output display method API
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 874aeca72578c8f6a139d39275760c7aaa3b4398..d21a5f430bb2c179feb98742090ab981b3da66c3 100644 (file)
@@ -1,21 +1,39 @@
 /*****************************************************************************
  * video_text.c : text manipulation functions
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
+#include <errno.h>                                                  /* errno */
+#include <stdlib.h>                                                /* free() */
+#include <string.h>                                            /* strerror() */
+#include <fcntl.h>                                                 /* open() */
+#include <unistd.h>                                       /* read(), close() */
 
 #include "common.h"
 #include "config.h"
 #include "video_text.h"
+
 #include "intf_msg.h"
 
 /*****************************************************************************
index cc60e935730e4e4a7a32ffbfef51ea1810942416..37d6b4c0c89b4751546fd781f91a1955d0e146c5 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * video_text.h : text manipulation functions
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* Text styles - these are primary text styles, used by the vout_Print function.
index 23a9b0e54ed2143dac16d5f856213e89a3698e2f..3b8ed95f7a3778522638fcf9960f4da7c33d6d23 100644 (file)
@@ -1,27 +1,45 @@
 /*****************************************************************************
  * video_yuv.c: YUV transformation functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * Provides functions to perform the YUV conversion. The functions provided here
  * are a complete and portable C implementation, and may be replaced in certain
  * case by optimized functions.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <math.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
+#include <math.h>                                            /* exp(), pow() */
+#include <errno.h>                                                 /* ENOMEM */
+#include <stdlib.h>                                                /* free() */
+#include <string.h>                                            /* strerror() */
 
 #include "common.h"
 #include "config.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 #include "video.h"
 #include "video_output.h"
 #include "video_yuv.h"
+
 #include "intf_msg.h"
 
 /*****************************************************************************
index 748a0a1eba5ed393be6c4952c39d534fcb80b4c2..10939cfa218020d132553a76f6cfd8e3d1c03e9f 100644 (file)
@@ -1,9 +1,26 @@
 /*****************************************************************************
  * video_yuv.h: YUV transformation functions
- * (c)1999 VideoLAN
- *****************************************************************************
  * Provides functions prototypes to perform the YUV conversion. The functions
  * may be implemented in one of the video_yuv_* files.
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
index 1b03d86138049d84e12ffda18ac35558689bce45..e0fd3ced30129c0e0aea7faa23e673ffef6f8851 100644 (file)
@@ -1,7 +1,27 @@
 /*****************************************************************************
  * video_yuv_mmx.S: YUV transformation, optimized for MMX processors
- * (c)1999 VideoLAN
  *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ * 
+ * Authors:
+ * 
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *****************************************************************************/
+
+/*****************************************************************************
  * Following functions are defined:
  * vout_YUV420_16_MMX
  *            This function performs YUV12-to-RGB16 color conversion for H26x.
index 0c625def24daaddd940af6f26424c54f7adf1cbf..3c48da63b0b7b085dadadaf05d23ce918052c895 100644 (file)
@@ -1,22 +1,36 @@
 /*****************************************************************************
  * video_fifo.c : video FIFO management
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                             /* "input.h */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
 #include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
index 292c32d80ee315d7e9a293be8a7ea99e6de97dc3..29b3dabbb381e9d72fc1a11f65224faf421ebc01 100644 (file)
@@ -1,6 +1,24 @@
 /*****************************************************************************
  * video_parser.c : video parser thread
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /* FIXME: passer en terminate/destroy avec les signaux supplémentaires ?? */
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <stdlib.h>                                      /* malloc(), free() */
+#include <unistd.h>                                              /* getpid() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
 #include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
index ed643606ac2be77f1fc4e3a42f19779e2f4b7b18..ec14db40c1d8b09be638e7839b14f5ccb32a9723 100644 (file)
@@ -1,22 +1,36 @@
 /*****************************************************************************
  * vpar_blocks.c : blocks parsing
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
 #include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 #include "video_parser.h"
 #include "video_fifo.h"
 
-
-
-
-
-
-
 static int i_count = 0;
 
-
-
-
-
-
 /*
  * Welcome to vpar_blocks.c ! Here's where the heavy processor-critical parsing
  * task is done. This file is divided in several parts :
@@ -1642,7 +1645,7 @@ i_count++;
 
     if( i_inc < 0 )
     {
-        fprintf( stderr, "vpar error: bad address increment (%d)\n", i_inc );
+        intf_ErrMsg( "vpar error: bad address increment (%d)\n", i_inc );
         p_vpar->picture.b_error = 1;
         return;
     }
@@ -1863,7 +1866,7 @@ static __inline__ void SliceHeader( vpar_thread_t * p_vpar,
 
     if( *pi_mb_address < i_mb_address_save )
     {
-        fprintf( stderr, "vpar error: slices do not follow, maybe a PES has been trashed\n" );
+        intf_ErrMsg( "vpar error: slices do not follow, maybe a PES has been trashed\n" );
         p_vpar->picture.b_error = 1;
         return;
     }
index db10c7ca0c3544e21b7c0a51b03130e3aca433ce..41499974ed39286f5f51b0fde19a169cb6f986b0 100644 (file)
@@ -1,28 +1,41 @@
 /*****************************************************************************
  * vpar_headers.c : headers parsing
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <stdlib.h>                                                /* free() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
@@ -218,7 +231,7 @@ static __inline__ void LoadMatrix( vpar_thread_t * p_vpar, quant_matrix_t * p_ma
         /* Allocate a piece of memory to load the matrix. */
         if( (p_matrix->pi_matrix = (int *)malloc( 64*sizeof(int) )) == NULL )
         {
-            intf_ErrMsg("vpar error: allocation error in LoadMatrix()\n");
+            intf_ErrMsg( "vpar error: allocation error in LoadMatrix()\n" );
             p_vpar->b_error = 1;
             return;
         }
@@ -762,7 +775,7 @@ static void PictureHeader( vpar_thread_t * p_vpar )
         /* Try to find an optimized function. */
         if( ppf_picture_data[p_vpar->picture.i_structure][p_vpar->picture.i_coding_type] == NULL )
         {
-            fprintf( stderr, "vpar error: bad ppf_picture_data function pointer (struct:%d, coding type:%d)\n",
+            intf_ErrMsg( "vpar error: bad ppf_picture_data function pointer (struct:%d, coding type:%d)\n",
                      p_vpar->picture.i_structure, p_vpar->picture.i_coding_type );
         }
         else
index e5d65fbf5a4769d86cb00b72cdd214db1c9be269..7c7c18a8eacd608d9755c9e8f3d7a0aa1a9d0620 100644 (file)
@@ -1,28 +1,41 @@
 /*****************************************************************************
  * vpar_motion.c : motion vectors parsing
- * (c)1999 VideoLAN
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ *
+ * Authors:
+ *
+ * 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 2 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/uio.h>
+#include <stdlib.h>                                                /* free() */
+#include <sys/types.h>                        /* on BSD, uio.h needs types.h */
+#include <sys/uio.h>                                            /* "input.h" */
 
 #include "config.h"
 #include "common.h"
 #include "mtime.h"
-#include "vlc_thread.h"
+#include "threads.h"
 
 #include "intf_msg.h"
-#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
 
 #include "input.h"
-#include "input_netlist.h"
 #include "decoder_fifo.h"
 #include "video.h"
 #include "video_output.h"
@@ -35,7 +48,6 @@
 #include "vpar_headers.h"
 #include "vpar_synchro.h"
 #include "video_parser.h"
-#include "video_fifo.h"
 
 #define MAX_COUNT 3
 
@@ -535,7 +547,7 @@ void vpar_SynchroSetCurrentDate( vpar_thread_t * p_vpar, int i_coding_type )
         {
             if( p_pes->i_pts < p_vpar->synchro.i_current_frame_date )
             {
-                fprintf( stderr, "vpar warning: pts_date < current_date\n" );
+                intf_ErrMsg( "vpar warning: pts_date < current_date\n" );
             }
             p_vpar->synchro.i_current_frame_date = p_pes->i_pts;
             p_pes->b_has_pts = 0;
@@ -556,7 +568,7 @@ void vpar_SynchroSetCurrentDate( vpar_thread_t * p_vpar, int i_coding_type )
         {
             if( p_vpar->synchro.i_backward_frame_date < p_vpar->synchro.i_current_frame_date )
             {
-                fprintf( stderr, "vpar warning: backward_date < current_date (%Ld)\n",
+                intf_ErrMsg( "vpar warning: backward_date < current_date (%Ld)\n",
                          p_vpar->synchro.i_backward_frame_date - p_vpar->synchro.i_current_frame_date );
             }
             p_vpar->synchro.i_current_frame_date = p_vpar->synchro.i_backward_frame_date;