avdevice: Apply a more consistent file naming scheme
authorDiego Biurrun <diego@biurrun.de>
Fri, 27 Mar 2015 11:40:23 +0000 (12:40 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 9 Apr 2015 14:40:12 +0000 (16:40 +0200)
14 files changed:
libavdevice/Makefile
libavdevice/alsa.c [moved from libavdevice/alsa-audio-common.c with 99% similarity]
libavdevice/alsa.h [moved from libavdevice/alsa-audio.h with 96% similarity]
libavdevice/alsa_dec.c [moved from libavdevice/alsa-audio-dec.c with 99% similarity]
libavdevice/alsa_enc.c [moved from libavdevice/alsa-audio-enc.c with 99% similarity]
libavdevice/jack.c [moved from libavdevice/jack_audio.c with 100% similarity]
libavdevice/oss.c [moved from libavdevice/oss_audio.c with 99% similarity]
libavdevice/oss.h [moved from libavdevice/oss_audio.h with 93% similarity]
libavdevice/oss_dec.c [moved from libavdevice/oss_audio_dec.c with 99% similarity]
libavdevice/oss_enc.c [moved from libavdevice/oss_audio_enc.c with 99% similarity]
libavdevice/sndio.c [moved from libavdevice/sndio_common.c with 99% similarity]
libavdevice/sndio.h [moved from libavdevice/sndio_common.h with 92% similarity]
libavdevice/sndio_dec.c
libavdevice/sndio_enc.c

index 2a21832..dfd56be 100644 (file)
@@ -7,19 +7,17 @@ OBJS    = alldevices.o                                                  \
           avdevice.o                                                    \
 
 # input/output devices
-OBJS-$(CONFIG_ALSA_INDEV)                += alsa-audio-common.o \
-                                            alsa-audio-dec.o
-OBJS-$(CONFIG_ALSA_OUTDEV)               += alsa-audio-common.o \
-                                            alsa-audio-enc.o
+OBJS-$(CONFIG_ALSA_INDEV)                += alsa_dec.o alsa.o
+OBJS-$(CONFIG_ALSA_OUTDEV)               += alsa_enc.o alsa.o
 OBJS-$(CONFIG_BKTR_INDEV)                += bktr.o
 OBJS-$(CONFIG_DV1394_INDEV)              += dv1394.o
 OBJS-$(CONFIG_FBDEV_INDEV)               += fbdev.o
-OBJS-$(CONFIG_JACK_INDEV)                += jack_audio.o timefilter.o
-OBJS-$(CONFIG_OSS_INDEV)                 += oss_audio.o oss_audio_dec.o
-OBJS-$(CONFIG_OSS_OUTDEV)                += oss_audio.o oss_audio_enc.o
+OBJS-$(CONFIG_JACK_INDEV)                += jack.o timefilter.o
+OBJS-$(CONFIG_OSS_INDEV)                 += oss_dec.o oss.o
+OBJS-$(CONFIG_OSS_OUTDEV)                += oss_enc.o oss.o
 OBJS-$(CONFIG_PULSE_INDEV)               += pulse.o
-OBJS-$(CONFIG_SNDIO_INDEV)               += sndio_common.o sndio_dec.o
-OBJS-$(CONFIG_SNDIO_OUTDEV)              += sndio_common.o sndio_enc.o
+OBJS-$(CONFIG_SNDIO_INDEV)               += sndio_dec.o sndio.o
+OBJS-$(CONFIG_SNDIO_OUTDEV)              += sndio_enc.o sndio.o
 OBJS-$(CONFIG_V4L2_INDEV)                += v4l2.o
 OBJS-$(CONFIG_VFWCAP_INDEV)              += vfwcap.o
 OBJS-$(CONFIG_X11GRAB_INDEV)             += x11grab.o
@@ -31,7 +29,7 @@ OBJS-$(CONFIG_LIBDC1394_INDEV)           += libdc1394.o
 
 OBJS-$(HAVE_LIBC_MSVCRT)                 += file_open.o
 
-SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H)     += alsa-audio.h
-SKIPHEADERS-$(HAVE_SNDIO_H)              += sndio_common.h
+SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H)     += alsa.h
+SKIPHEADERS-$(HAVE_SNDIO_H)              += sndio.h
 
 TESTPROGS = timefilter
similarity index 99%
rename from libavdevice/alsa-audio-common.c
rename to libavdevice/alsa.c
index 21f1594..6d68267 100644 (file)
@@ -33,7 +33,7 @@
 #include "libavutil/avassert.h"
 #include "libavutil/channel_layout.h"
 
-#include "alsa-audio.h"
+#include "alsa.h"
 
 static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id)
 {
similarity index 96%
rename from libavdevice/alsa-audio.h
rename to libavdevice/alsa.h
index 26eaee6..590b354 100644 (file)
@@ -27,8 +27,8 @@
  * @author Benoit Fouet ( benoit fouet free fr )
  */
 
-#ifndef AVDEVICE_ALSA_AUDIO_H
-#define AVDEVICE_ALSA_AUDIO_H
+#ifndef AVDEVICE_ALSA_H
+#define AVDEVICE_ALSA_H
 
 #include <alsa/asoundlib.h>
 #include "config.h"
@@ -93,4 +93,4 @@ int ff_alsa_xrun_recover(AVFormatContext *s1, int err);
 
 int ff_alsa_extend_reorder_buf(AlsaData *s, int size);
 
-#endif /* AVDEVICE_ALSA_AUDIO_H */
+#endif /* AVDEVICE_ALSA_H */
similarity index 99%
rename from libavdevice/alsa-audio-dec.c
rename to libavdevice/alsa_dec.c
index a6a814b..2cc5b7d 100644 (file)
@@ -53,7 +53,7 @@
 #include "libavformat/avformat.h"
 #include "libavformat/internal.h"
 
-#include "alsa-audio.h"
+#include "alsa.h"
 
 static av_cold int audio_read_header(AVFormatContext *s1)
 {
similarity index 99%
rename from libavdevice/alsa-audio-enc.c
rename to libavdevice/alsa_enc.c
index db4f5e4..30c1719 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "libavformat/avformat.h"
 
-#include "alsa-audio.h"
+#include "alsa.h"
 
 static av_cold int audio_write_header(AVFormatContext *s1)
 {
similarity index 100%
rename from libavdevice/jack_audio.c
rename to libavdevice/jack.c
similarity index 99%
rename from libavdevice/oss_audio.c
rename to libavdevice/oss.c
index 4feb937..eb8d454 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "libavformat/avformat.h"
 
-#include "oss_audio.h"
+#include "oss.h"
 
 int ff_oss_audio_open(AVFormatContext *s1, int is_output,
                       const char *audio_device)
similarity index 93%
rename from libavdevice/oss_audio.h
rename to libavdevice/oss.h
index 87ac4ad..0fbe14b 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef AVDEVICE_OSS_AUDIO_H
-#define AVDEVICE_OSS_AUDIO_H
+#ifndef AVDEVICE_OSS_H
+#define AVDEVICE_OSS_H
 
 #include "libavcodec/avcodec.h"
 
@@ -42,4 +42,4 @@ int ff_oss_audio_open(AVFormatContext *s1, int is_output,
 
 int ff_oss_audio_close(OSSAudioData *s);
 
-#endif /* AVDEVICE_OSS_AUDIO_H */
+#endif /* AVDEVICE_OSS_H */
similarity index 99%
rename from libavdevice/oss_audio_dec.c
rename to libavdevice/oss_dec.c
index 601d91c..3f786cc 100644 (file)
@@ -42,7 +42,7 @@
 #include "libavformat/avformat.h"
 #include "libavformat/internal.h"
 
-#include "oss_audio.h"
+#include "oss.h"
 
 static int audio_read_header(AVFormatContext *s1)
 {
similarity index 99%
rename from libavdevice/oss_audio_enc.c
rename to libavdevice/oss_enc.c
index 688982a..2f07558 100644 (file)
@@ -38,7 +38,7 @@
 #include "libavformat/avformat.h"
 #include "libavformat/internal.h"
 
-#include "oss_audio.h"
+#include "oss.h"
 
 static int audio_write_header(AVFormatContext *s1)
 {
similarity index 99%
rename from libavdevice/sndio_common.c
rename to libavdevice/sndio.c
index 1bea6c5..739551b 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "libavformat/avformat.h"
 
-#include "sndio_common.h"
+#include "libavdevice/sndio.h"
 
 static inline void movecb(void *addr, int delta)
 {
similarity index 92%
rename from libavdevice/sndio_common.h
rename to libavdevice/sndio.h
index 2f70213..cd5c55e 100644 (file)
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef AVDEVICE_SNDIO_COMMON_H
-#define AVDEVICE_SNDIO_COMMON_H
+#ifndef AVDEVICE_SNDIO_H
+#define AVDEVICE_SNDIO_H
 
 #include <stdint.h>
 #include <sndio.h>
@@ -45,4 +45,4 @@ typedef struct SndioData {
 int ff_sndio_open(AVFormatContext *s1, int is_output, const char *audio_device);
 int ff_sndio_close(SndioData *s);
 
-#endif /* AVDEVICE_SNDIO_COMMON_H */
+#endif /* AVDEVICE_SNDIO_H */
index 24c6d1e..7ebb8c3 100644 (file)
@@ -29,7 +29,7 @@
 #include "libavformat/avformat.h"
 #include "libavformat/internal.h"
 
-#include "sndio_common.h"
+#include "libavdevice/sndio.h"
 
 static av_cold int audio_read_header(AVFormatContext *s1)
 {
index 61ac398..fad3610 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "libavformat/avformat.h"
 
-#include "sndio_common.h"
+#include "libavdevice/sndio.h"
 
 static av_cold int audio_write_header(AVFormatContext *s1)
 {