qsv: rename to qsvdec
authorAnton Khirnov <anton@khirnov.net>
Fri, 13 Mar 2015 06:55:53 +0000 (07:55 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 27 Mar 2015 20:56:36 +0000 (21:56 +0100)
This is to avoid conflicts with the upcoming QSV encoding support.

configure
libavcodec/Makefile
libavcodec/qsvdec.c [moved from libavcodec/qsv.c with 99% similarity]
libavcodec/qsvdec.h [moved from libavcodec/qsv_internal.h with 95% similarity]
libavcodec/qsvdec_h264.c [moved from libavcodec/qsv_h264.c with 99% similarity]

index 3c38a8c..9aac777 100755 (executable)
--- a/configure
+++ b/configure
@@ -1597,7 +1597,7 @@ CONFIG_EXTRA="
     nettle
     pixblockdsp
     qpeldsp
-    qsv
+    qsvdec
     rangecoder
     riffdec
     riffenc
@@ -1828,7 +1828,7 @@ h263p_encoder_select="h263_encoder"
 h264_decoder_select="cabac golomb h264chroma h264dsp h264pred h264qpel startcode videodsp"
 h264_decoder_suggest="error_resilience"
 h264_qsv_decoder_deps="libmfx"
-h264_qsv_decoder_select="h264_mp4toannexb_bsf h264_parser qsv h264_qsv_hwaccel"
+h264_qsv_decoder_select="h264_mp4toannexb_bsf h264_parser qsvdec h264_qsv_hwaccel"
 hevc_decoder_select="bswapdsp cabac golomb videodsp"
 huffyuv_decoder_select="bswapdsp huffyuvdsp"
 huffyuv_encoder_select="bswapdsp huffman huffyuvencdsp"
index 71ebdb8..eafc86a 100644 (file)
@@ -80,7 +80,7 @@ OBJS-$(CONFIG_MPEGVIDEOENC)            += mpegvideo_enc.o mpeg12data.o  \
                                           mpegvideoencdsp.o
 OBJS-$(CONFIG_PIXBLOCKDSP)             += pixblockdsp.o
 OBJS-$(CONFIG_QPELDSP)                 += qpeldsp.o
-OBJS-$(CONFIG_QSV)                     += qsv.o
+OBJS-$(CONFIG_QSVDEC)                  += qsvdec.o
 OBJS-$(CONFIG_RANGECODER)              += rangecoder.o
 RDFT-OBJS-$(CONFIG_HARDCODED_TABLES)   += sin_tables.o
 OBJS-$(CONFIG_RDFT)                    += rdft.o $(RDFT-OBJS-yes)
@@ -222,7 +222,7 @@ OBJS-$(CONFIG_H264_DECODER)            += h264.o h264_cabac.o h264_cavlc.o \
                                           h264_direct.o h264_loopfilter.o  \
                                           h264_mb.o h264_picture.o h264_ps.o \
                                           h264_refs.o h264_sei.o h264_slice.o
-OBJS-$(CONFIG_H264_QSV_DECODER)        += qsv_h264.o
+OBJS-$(CONFIG_H264_QSV_DECODER)        += qsvdec_h264.o
 OBJS-$(CONFIG_HEVC_DECODER)            += hevc.o hevc_mvs.o hevc_ps.o hevc_sei.o \
                                           hevc_cabac.o hevc_refs.o hevcpred.o    \
                                           hevcdsp.o hevc_filter.o
@@ -719,7 +719,7 @@ SKIPHEADERS                            += %_tablegen.h                  \
 SKIPHEADERS-$(CONFIG_DXVA2)            += dxva2.h dxva2_internal.h
 SKIPHEADERS-$(CONFIG_LIBSCHROEDINGER)  += libschroedinger.h
 SKIPHEADERS-$(CONFIG_MPEG_XVMC_DECODER) += xvmc.h
-SKIPHEADERS-$(CONFIG_QSV)              += qsv.h qsv_internal.h
+SKIPHEADERS-$(CONFIG_QSVDEC)           += qsv.h qsvdec.h
 SKIPHEADERS-$(CONFIG_VAAPI)            += vaapi_internal.h
 SKIPHEADERS-$(CONFIG_VDA)              += vda.h vda_internal.h
 SKIPHEADERS-$(CONFIG_VDPAU)            += vdpau.h vdpau_internal.h
similarity index 99%
rename from libavcodec/qsv.c
rename to libavcodec/qsvdec.c
index eef0604..03e31c5 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "avcodec.h"
 #include "internal.h"
-#include "qsv_internal.h"
+#include "qsvdec.h"
 
 int ff_qsv_error(int mfx_err)
 {
similarity index 95%
rename from libavcodec/qsv_internal.h
rename to libavcodec/qsvdec.h
index 8ab149a..d12fde2 100644 (file)
@@ -20,8 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef AVCODEC_QSV_INTERNAL_H
-#define AVCODEC_QSV_INTERNAL_H
+#ifndef AVCODEC_QSVDEC_H
+#define AVCODEC_QSVDEC_H
 
 #include <stdint.h>
 #include <sys/types.h>
@@ -83,4 +83,4 @@ int ff_qsv_decode(AVCodecContext *s, QSVContext *q,
 
 int ff_qsv_close(QSVContext *q);
 
-#endif /* AVCODEC_QSV_INTERNAL_H */
+#endif /* AVCODEC_QSVDEC_H */
similarity index 99%
rename from libavcodec/qsv_h264.c
rename to libavcodec/qsvdec_h264.c
index a482e9c..958ce70 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "avcodec.h"
 #include "internal.h"
-#include "qsv_internal.h"
+#include "qsvdec.h"
 #include "qsv.h"
 
 typedef struct QSVH264Context {