Skip to content

Commit

Permalink
all: Make header guard names consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jan 31, 2016
1 parent def5667 commit 180f9a0
Show file tree
Hide file tree
Showing 46 changed files with 134 additions and 134 deletions.
6 changes: 3 additions & 3 deletions compat/aix/math.h
Expand Up @@ -19,13 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef FFMPEG_COMPAT_AIX_MATH_H
#define FFMPEG_COMPAT_AIX_MATH_H
#ifndef COMPAT_AIX_MATH_H
#define COMPAT_AIX_MATH_H

#define class class_in_math_h_causes_problems

#include_next <math.h>

#undef class

#endif /* FFMPEG_COMPAT_AIX_MATH_H */
#endif /* COMPAT_AIX_MATH_H */
6 changes: 3 additions & 3 deletions compat/msvcrt/snprintf.h
Expand Up @@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef COMPAT_SNPRINTF_H
#define COMPAT_SNPRINTF_H
#ifndef COMPAT_MSVCRT_SNPRINTF_H
#define COMPAT_MSVCRT_SNPRINTF_H

#include <stdarg.h>
#include <stdio.h>
Expand All @@ -35,4 +35,4 @@ int avpriv_vsnprintf(char *s, size_t n, const char *fmt, va_list ap);
#define _snprintf avpriv_snprintf
#define vsnprintf avpriv_vsnprintf

#endif /* COMPAT_SNPRINTF_H */
#endif /* COMPAT_MSVCRT_SNPRINTF_H */
6 changes: 3 additions & 3 deletions compat/os2threads.h
Expand Up @@ -23,8 +23,8 @@
* os2threads to pthreads wrapper
*/

#ifndef AVCODEC_OS2PTHREADS_H
#define AVCODEC_OS2PTHREADS_H
#ifndef COMPAT_OS2THREADS_H
#define COMPAT_OS2THREADS_H

#define INCL_DOS
#include <os2.h>
Expand Down Expand Up @@ -190,4 +190,4 @@ static av_always_inline int pthread_once(pthread_once_t *once_control, void (*in

return 0;
}
#endif /* AVCODEC_OS2PTHREADS_H */
#endif /* COMPAT_OS2THREADS_H */
6 changes: 3 additions & 3 deletions compat/tms470/math.h
Expand Up @@ -16,8 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef FFMPEG_COMPAT_TMS470_MATH_H
#define FFMPEG_COMPAT_TMS470_MATH_H
#ifndef COMPAT_TMS470_MATH_H
#define COMPAT_TMS470_MATH_H

#include_next <math.h>

Expand All @@ -27,4 +27,4 @@
#define INFINITY (*(const float*)((const unsigned []){ 0x7f800000 }))
#define NAN (*(const float*)((const unsigned []){ 0x7fc00000 }))

#endif /* FFMPEG_COMPAT_TMS470_MATH_H */
#endif /* COMPAT_TMS470_MATH_H */
6 changes: 3 additions & 3 deletions compat/w32pthreads.h
Expand Up @@ -26,8 +26,8 @@
* w32threads to pthreads wrapper
*/

#ifndef FFMPEG_COMPAT_W32PTHREADS_H
#define FFMPEG_COMPAT_W32PTHREADS_H
#ifndef COMPAT_W32PTHREADS_H
#define COMPAT_W32PTHREADS_H

/* Build up a pthread-like API using underlying Windows API. Have only static
* methods so as to not conflict with a potentially linked in pthread-win32
Expand Down Expand Up @@ -415,4 +415,4 @@ static av_unused void w32thread_init(void)

}

#endif /* FFMPEG_COMPAT_W32PTHREADS_H */
#endif /* COMPAT_W32PTHREADS_H */
6 changes: 3 additions & 3 deletions libavcodec/aacps.h
Expand Up @@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_PS_H
#define AVCODEC_PS_H
#ifndef AVCODEC_AACPS_H
#define AVCODEC_AACPS_H

#include <stdint.h>

Expand Down Expand Up @@ -83,4 +83,4 @@ void AAC_RENAME(ff_ps_ctx_init)(PSContext *ps);
int AAC_RENAME(ff_ps_read_data)(AVCodecContext *avctx, GetBitContext *gb, PSContext *ps, int bits_left);
int AAC_RENAME(ff_ps_apply)(AVCodecContext *avctx, PSContext *ps, INTFLOAT L[2][38][64], INTFLOAT R[2][38][64], int top);

#endif /* AVCODEC_PS_H */
#endif /* AVCODEC_AACPS_H */
6 changes: 3 additions & 3 deletions libavcodec/aacps_fixed_tablegen.h
Expand Up @@ -23,8 +23,8 @@
*
*/

#ifndef AACPS_FIXED_TABLEGEN_H
#define AACPS_FIXED_TABLEGEN_H
#ifndef AVCODEC_AACPS_FIXED_TABLEGEN_H
#define AVCODEC_AACPS_FIXED_TABLEGEN_H

#include <math.h>
#include <stdint.h>
Expand Down Expand Up @@ -400,4 +400,4 @@ static void ps_tableinit(void)
}
#endif /* CONFIG_HARDCODED_TABLES */

#endif /* AACPS_FIXED_TABLEGEN_H */
#endif /* AVCODEC_AACPS_FIXED_TABLEGEN_H */
6 changes: 3 additions & 3 deletions libavcodec/aacps_tablegen.h
Expand Up @@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AACPS_TABLEGEN_H
#define AACPS_TABLEGEN_H
#ifndef AVCODEC_AACPS_TABLEGEN_H
#define AVCODEC_AACPS_TABLEGEN_H

#include <math.h>
#include <stdint.h>
Expand Down Expand Up @@ -214,4 +214,4 @@ static av_cold void ps_tableinit(void)
}
#endif /* CONFIG_HARDCODED_TABLES */

#endif /* AACPS_TABLEGEN_H */
#endif /* AVCODEC_AACPS_TABLEGEN_H */
6 changes: 3 additions & 3 deletions libavcodec/aacpsdsp.h
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef LIBAVCODEC_AACPSDSP_H
#define LIBAVCODEC_AACPSDSP_H
#ifndef AVCODEC_AACPSDSP_H
#define AVCODEC_AACPSDSP_H

#include "aac_defines.h"

Expand Down Expand Up @@ -54,4 +54,4 @@ void ff_psdsp_init_arm(PSDSPContext *s);
void ff_psdsp_init_mips(PSDSPContext *s);
void ff_psdsp_init_x86(PSDSPContext *s);

#endif /* LIBAVCODEC_AACPSDSP_H */
#endif /* AVCODEC_AACPSDSP_H */
6 changes: 3 additions & 3 deletions libavcodec/bswapdsp.h
Expand Up @@ -16,8 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_BSWAP_BUF_H
#define AVCODEC_BSWAP_BUF_H
#ifndef AVCODEC_BSWAPDSP_H
#define AVCODEC_BSWAPDSP_H

#include <stdint.h>

Expand All @@ -29,4 +29,4 @@ typedef struct BswapDSPContext {
void ff_bswapdsp_init(BswapDSPContext *c);
void ff_bswapdsp_init_x86(BswapDSPContext *c);

#endif /* AVCODEC_BSWAP_BUF_H */
#endif /* AVCODEC_BSWAPDSP_H */
6 changes: 3 additions & 3 deletions libavcodec/dxva2.h
Expand Up @@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_DXVA_H
#define AVCODEC_DXVA_H
#ifndef AVCODEC_DXVA2_H
#define AVCODEC_DXVA2_H

/**
* @file
Expand Down Expand Up @@ -90,4 +90,4 @@ struct dxva_context {
* @}
*/

#endif /* AVCODEC_DXVA_H */
#endif /* AVCODEC_DXVA2_H */
6 changes: 3 additions & 3 deletions libavcodec/dxva2_internal.h
Expand Up @@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_DXVA_INTERNAL_H
#define AVCODEC_DXVA_INTERNAL_H
#ifndef AVCODEC_DXVA2_INTERNAL_H
#define AVCODEC_DXVA2_INTERNAL_H

#define COBJMACROS

Expand Down Expand Up @@ -118,4 +118,4 @@ int ff_dxva2_common_end_frame(AVCodecContext *, AVFrame *,
DECODER_BUFFER_DESC *bs,
DECODER_BUFFER_DESC *slice));

#endif /* AVCODEC_DXVA_INTERNAL_H */
#endif /* AVCODEC_DXVA2_INTERNAL_H */
6 changes: 3 additions & 3 deletions libavcodec/g729postfilter.h
Expand Up @@ -18,8 +18,8 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef FFMPEG_G729POSTFILTER_H
#define FFMPEG_G729POSTFILTER_H
#ifndef AVCODEC_G729POSTFILTER_H
#define AVCODEC_G729POSTFILTER_H

#include <stdint.h>
#include "audiodsp.h"
Expand Down Expand Up @@ -113,4 +113,4 @@ void ff_g729_postfilter(AudioDSPContext *adsp, int16_t* ht_prev_data, int* voici
int16_t ff_g729_adaptive_gain_control(int gain_before, int gain_after, int16_t *speech,
int subframe_size, int16_t gain_prev);

#endif // FFMPEG_G729POSTFILTER_H
#endif // AVCODEC_G729POSTFILTER_H
6 changes: 3 additions & 3 deletions libavcodec/gif.h
Expand Up @@ -26,8 +26,8 @@
* GIF format definitions.
*/

#ifndef AVCODEC_GIFDEFS_H
#define AVCODEC_GIFDEFS_H
#ifndef AVCODEC_GIF_H
#define AVCODEC_GIF_H

#include <stdint.h>

Expand All @@ -46,4 +46,4 @@ static const uint8_t gif89a_sig[6] = "GIF89a";
#define GIF_APP_EXT_LABEL 0xff
#define NETSCAPE_EXT_STR "NETSCAPE2.0"

#endif /* AVCODEC_GIFDEFS_H */
#endif /* AVCODEC_GIF_H */
6 changes: 3 additions & 3 deletions libavcodec/lossless_audiodsp.h
Expand Up @@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_LLAUDDSP_H
#define AVCODEC_LLAUDDSP_H
#ifndef AVCODEC_LOSSLESS_AUDIODSP_H
#define AVCODEC_LOSSLESS_AUDIODSP_H

#include <stdint.h>

Expand All @@ -43,4 +43,4 @@ void ff_llauddsp_init_arm(LLAudDSPContext *c);
void ff_llauddsp_init_ppc(LLAudDSPContext *c);
void ff_llauddsp_init_x86(LLAudDSPContext *c);

#endif /* AVCODEC_LLAUDDSP_H */
#endif /* AVCODEC_LOSSLESS_AUDIODSP_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/aacdec_mips.h
Expand Up @@ -54,8 +54,8 @@
* Reference: libavcodec/aacdec.c
*/

#ifndef AVCODEC_MIPS_AACDEC_FLOAT_H
#define AVCODEC_MIPS_AACDEC_FLOAT_H
#ifndef AVCODEC_MIPS_AACDEC_MIPS_H
#define AVCODEC_MIPS_AACDEC_MIPS_H

#include "libavcodec/aac.h"
#include "libavutil/mips/asmdefs.h"
Expand Down Expand Up @@ -248,4 +248,4 @@ static inline float *VMUL4S_mips(float *dst, const float *v, unsigned idx,
#define VMUL4S VMUL4S_mips
#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */

#endif /* AVCODEC_MIPS_AACDEC_FLOAT_H */
#endif /* AVCODEC_MIPS_AACDEC_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/aacsbr_mips.h
Expand Up @@ -51,8 +51,8 @@
* Reference: libavcodec/aacsbr.c
*/

#ifndef AVCODEC_MIPS_AACSBR_FLOAT_H
#define AVCODEC_MIPS_AACSBR_FLOAT_H
#ifndef AVCODEC_MIPS_AACSBR_MIPS_H
#define AVCODEC_MIPS_AACSBR_MIPS_H

#include "libavcodec/aac.h"
#include "libavcodec/sbr.h"
Expand Down Expand Up @@ -491,4 +491,4 @@ static void sbr_qmf_synthesis_mips(FFTContext *mdct,
#endif /* HAVE_MIPSFPU */
#endif /* HAVE_INLINE_ASM */

#endif /* AVCODEC_MIPS_AACSBR_FLOAT_H */
#endif /* AVCODEC_MIPS_AACSBR_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/amrwbdec_mips.h
Expand Up @@ -49,8 +49,8 @@
* @file
* Reference: libavcodec/amrwbdec.c
*/
#ifndef AVCODEC_AMRWBDEC_MIPS_H
#define AVCODEC_AMRWBDEC_MIPS_H
#ifndef AVCODEC_MIPS_AMRWBDEC_MIPS_H
#define AVCODEC_MIPS_AMRWBDEC_MIPS_H
#include "config.h"

#if HAVE_MIPSFPU && HAVE_INLINE_ASM
Expand All @@ -59,4 +59,4 @@ void ff_hb_fir_filter_mips(float *out, const float fir_coef[],
#define hb_fir_filter ff_hb_fir_filter_mips
#endif

#endif /* AVCODEC_AMRWBDEC_MIPS_H */
#endif /* AVCODEC_MIPS_AMRWBDEC_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/h264chroma_mips.h
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef H264_CHROMA_MIPS_H
#define H264_CHROMA_MIPS_H
#ifndef AVCODEC_MIPS_H264CHROMA_MIPS_H
#define AVCODEC_MIPS_H264CHROMA_MIPS_H

#include "libavcodec/h264.h"
void ff_put_h264_chroma_mc8_msa(uint8_t *dst, uint8_t *src, int stride,
Expand All @@ -44,4 +44,4 @@ void ff_put_h264_chroma_mc4_mmi(uint8_t *dst, uint8_t *src, int stride,
void ff_avg_h264_chroma_mc4_mmi(uint8_t *dst, uint8_t *src, int stride,
int h, int x, int y);

#endif /* H264_CHROMA_MIPS_H */
#endif /* AVCODEC_MIPS_H264CHROMA_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/h264dsp_mips.h
Expand Up @@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef H264_DSP_MIPS_H
#define H264_DSP_MIPS_H
#ifndef AVCODEC_MIPS_H264DSP_MIPS_H
#define AVCODEC_MIPS_H264DSP_MIPS_H

#include "libavcodec/h264.h"
#include "constants.h"
Expand Down Expand Up @@ -574,4 +574,4 @@ void ff_avg_h264_qpel4_mc23_mmi(uint8_t *dst, const uint8_t *src,
void ff_avg_h264_qpel4_mc33_mmi(uint8_t *dst, const uint8_t *src,
ptrdiff_t dst_stride);

#endif // #ifndef H264_DSP_MIPS_H
#endif // #ifndef AVCODEC_MIPS_H264DSP_MIPS_H
6 changes: 3 additions & 3 deletions libavcodec/mips/h264pred_mips.h
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef H264_PRED_MIPS_H
#define H264_PRED_MIPS_H
#ifndef AVCODEC_MIPS_H264PRED_MIPS_H
#define AVCODEC_MIPS_H264PRED_MIPS_H

#include "constants.h"
#include "libavcodec/h264pred.h"
Expand All @@ -45,4 +45,4 @@ void ff_pred8x8_dc_8_mmi(uint8_t *src, ptrdiff_t stride);
void ff_pred8x16_vertical_8_mmi(uint8_t *src, ptrdiff_t stride);
void ff_pred8x16_horizontal_8_mmi(uint8_t *src, ptrdiff_t stride);

#endif /* H264_PRED_MIPS_H */
#endif /* AVCODEC_MIPS_H264PRED_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/lsp_mips.h
Expand Up @@ -51,8 +51,8 @@
* @file
* Reference: libavcodec/lsp.c
*/
#ifndef AVCODEC_LSP_MIPS_H
#define AVCODEC_LSP_MIPS_H
#ifndef AVCODEC_MIPS_LSP_MIPS_H
#define AVCODEC_MIPS_LSP_MIPS_H

#if HAVE_MIPSFPU && HAVE_INLINE_ASM
#include "libavutil/mips/asmdefs.h"
Expand Down Expand Up @@ -108,4 +108,4 @@ static av_always_inline void ff_lsp2polyf_mips(const double *lsp, double *f, int
}
#define ff_lsp2polyf ff_lsp2polyf_mips
#endif /* HAVE_MIPSFPU && HAVE_INLINE_ASM */
#endif /* AVCODEC_LSP_MIPS_H */
#endif /* AVCODEC_MIPS_LSP_MIPS_H */
6 changes: 3 additions & 3 deletions libavcodec/mips/mpegvideo_mips.h
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef MPEGVIDEO_MIPS_H
#define MPEGVIDEO_MIPS_H
#ifndef AVCODEC_MIPS_MPEGVIDEO_MIPS_H
#define AVCODEC_MIPS_MPEGVIDEO_MIPS_H

#include "libavcodec/mpegvideo.h"

Expand All @@ -35,4 +35,4 @@ void ff_dct_unquantize_mpeg2_intra_mmi(MpegEncContext *s, int16_t *block,
int n, int qscale);
void ff_denoise_dct_mmi(MpegEncContext *s, int16_t *block);

#endif /* MPEGVIDEO_MIPS_H */
#endif /* AVCODEC_MIPS_MPEGVIDEO_MIPS_H */

0 comments on commit 180f9a0

Please sign in to comment.