diff --git a/examples/decode_to_md5.c b/examples/decode_to_md5.c index 1c56303e32579292dd73b4bb45d9dfcdd5f6f2eb..fbc0f4a6f19e2b54ad8ae2c1122aa4ce72ee3328 100644 --- a/examples/decode_to_md5.c +++ b/examples/decode_to_md5.c @@ -33,8 +33,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 - #include "vpx/vp8dx.h" #include "vpx/vpx_decoder.h" diff --git a/examples/decode_with_drops.c b/examples/decode_with_drops.c index a20fdac0921d78df0f0c8570c155febb4fb2370b..9423e38ffac5350f2dd51ed829ce02cbbf34c33a 100644 --- a/examples/decode_with_drops.c +++ b/examples/decode_with_drops.c @@ -56,8 +56,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 - #include "vpx/vp8dx.h" #include "vpx/vpx_decoder.h" diff --git a/examples/postproc.c b/examples/postproc.c index 59c50b1390452d3441f57ebd5908c19101ae0d4e..c74347c4c71ddc1693dcbfc38d3cf5a336909ec0 100644 --- a/examples/postproc.c +++ b/examples/postproc.c @@ -43,8 +43,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 - #include "vpx/vp8dx.h" #include "vpx/vpx_decoder.h" diff --git a/examples/set_maps.c b/examples/set_maps.c index 2ee5bca50a5717b7de4c8be5e70564a1fd8a8fee..851adc42ea12ba5c4249ae376c8f5d6ecde7489e 100644 --- a/examples/set_maps.c +++ b/examples/set_maps.c @@ -47,7 +47,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vp8cx.h" #include "vpx/vpx_encoder.h" diff --git a/examples/simple_decoder.c b/examples/simple_decoder.c index 33187584c429703613b9d68f42d13da620ab5287..3f7d6aa34f6473bce4293500ba71d939b54f7edc 100644 --- a/examples/simple_decoder.c +++ b/examples/simple_decoder.c @@ -29,9 +29,7 @@ // ----------------- // For decoders, you only have to include `vpx_decoder.h` and then any // header files for the specific codecs you use. In this case, we're using -// vp8. The `VPX_CODEC_DISABLE_COMPAT` macro can be defined to ensure -// strict compliance with the latest SDK by disabling some backwards -// compatibility features. Defining this macro is encouraged. +// vp8. // // Initializing The Codec // ---------------------- @@ -81,8 +79,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 - #include "vpx/vp8dx.h" #include "vpx/vpx_decoder.h" diff --git a/examples/simple_encoder.c b/examples/simple_encoder.c index 30bb73af03b3e406b554fc4fe2d205ee670c45fa..f20c246daf29315370d13f904c5e42cf44b764ac 100644 --- a/examples/simple_encoder.c +++ b/examples/simple_encoder.c @@ -28,9 +28,7 @@ // ----------------- // For encoders, you only have to include `vpx_encoder.h` and then any // header files for the specific codecs you use. In this case, we're using -// vp8. The `VPX_CODEC_DISABLE_COMPAT` macro can be defined to ensure -// strict compliance with the latest SDK by disabling some backwards -// compatibility features. Defining this macro is encouraged. +// vp8. // // Getting The Default Configuration // --------------------------------- @@ -101,7 +99,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vpx_encoder.h" #include "./tools_common.h" diff --git a/examples/twopass_encoder.c b/examples/twopass_encoder.c index 76d5a2816bc672e69a12b9a8a31672a5da11c9b3..7a7653b2aeb628949b79f2784f83e08aa4595cd2 100644 --- a/examples/twopass_encoder.c +++ b/examples/twopass_encoder.c @@ -52,7 +52,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vpx_encoder.h" #include "./tools_common.h" diff --git a/examples/vp8_multi_resolution_encoder.c b/examples/vp8_multi_resolution_encoder.c index 7c050fa3eb091f6a9ffae70c94dab2e11b80b1e1..9f50dc7cf52c73023e18c231fef13ab7b5803f49 100644 --- a/examples/vp8_multi_resolution_encoder.c +++ b/examples/vp8_multi_resolution_encoder.c @@ -24,7 +24,6 @@ #include "third_party/libyuv/include/libyuv/scale.h" #include "third_party/libyuv/include/libyuv/cpu_id.h" -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vpx_encoder.h" #include "vpx/vp8cx.h" diff --git a/examples/vp8cx_set_ref.c b/examples/vp8cx_set_ref.c index 5f3f0a3798e71baad9a040d1a918c1b079480f41..b0961a2b33d35e2f724d505a593d746dd1d7bb0f 100644 --- a/examples/vp8cx_set_ref.c +++ b/examples/vp8cx_set_ref.c @@ -50,7 +50,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vp8cx.h" #include "vpx/vpx_encoder.h" diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c index 5eac92c3d6a2b881b98e73b0e0d6b04511edbc90..3de983ea2b6a215a36cc570d6d19223e7502364e 100644 --- a/examples/vpx_temporal_svc_encoder.c +++ b/examples/vpx_temporal_svc_encoder.c @@ -18,7 +18,6 @@ #include <stdlib.h> #include <string.h> -#define VPX_CODEC_DISABLE_COMPAT 1 #include "./vpx_config.h" #include "vpx_ports/vpx_timer.h" #include "vpx/vp8cx.h" diff --git a/libs.mk b/libs.mk index c7c274810eaacb82661260b8168db9608403bf97..f9f2d80702fc91e4cc729547b5a522613f9a66a7 100644 --- a/libs.mk +++ b/libs.mk @@ -531,7 +531,6 @@ libs.doxy: $(CODEC_DOC_SRCS) @echo " [CREATE] $@" @rm -f $@ @echo "INPUT += $^" >> $@ - @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ @echo "INCLUDE_PATH += ." >> $@; @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c index c465a38d1117111a9f60832dbe03e232d95e492a..ea30b443dc12491c04c6c908d7f30854a9887549 100644 --- a/vpx/src/svc_encodeframe.c +++ b/vpx/src/svc_encodeframe.c @@ -21,7 +21,6 @@ #include <stdlib.h> #include <string.h> #define VPX_DISABLE_CTRL_TYPECHECKS 1 -#define VPX_CODEC_DISABLE_COMPAT 1 #include "./vpx_config.h" #include "vpx/svc_context.h" #include "vpx/vp8cx.h" diff --git a/vpx/vpx_image.h b/vpx/vpx_image.h index 0b7bb90572da3c0d0048285dffb7ed847f762823..ef6d1dd3092e5c8e70173a4fc9def62c8eedef01 100644 --- a/vpx/vpx_image.h +++ b/vpx/vpx_image.h @@ -64,40 +64,6 @@ extern "C" { VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ -#if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT -#define IMG_FMT_PLANAR VPX_IMG_FMT_PLANAR /**< \deprecated Use #VPX_IMG_FMT_PLANAR */ -#define IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP /**< \deprecated Use #VPX_IMG_FMT_UV_FLIP */ -#define IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA /**< \deprecated Use #VPX_IMG_FMT_HAS_ALPHA */ - - /*!\brief Deprecated list of supported image formats - * \deprecated New code should use #vpx_img_fmt - */ -#define img_fmt vpx_img_fmt - /*!\brief alias for enum img_fmt. - * \deprecated New code should use #vpx_img_fmt_t - */ -#define img_fmt_t vpx_img_fmt_t - -#define IMG_FMT_NONE VPX_IMG_FMT_NONE /**< \deprecated Use #VPX_IMG_FMT_NONE */ -#define IMG_FMT_RGB24 VPX_IMG_FMT_RGB24 /**< \deprecated Use #VPX_IMG_FMT_RGB24 */ -#define IMG_FMT_RGB32 VPX_IMG_FMT_RGB32 /**< \deprecated Use #VPX_IMG_FMT_RGB32 */ -#define IMG_FMT_RGB565 VPX_IMG_FMT_RGB565 /**< \deprecated Use #VPX_IMG_FMT_RGB565 */ -#define IMG_FMT_RGB555 VPX_IMG_FMT_RGB555 /**< \deprecated Use #VPX_IMG_FMT_RGB555 */ -#define IMG_FMT_UYVY VPX_IMG_FMT_UYVY /**< \deprecated Use #VPX_IMG_FMT_UYVY */ -#define IMG_FMT_YUY2 VPX_IMG_FMT_YUY2 /**< \deprecated Use #VPX_IMG_FMT_YUY2 */ -#define IMG_FMT_YVYU VPX_IMG_FMT_YVYU /**< \deprecated Use #VPX_IMG_FMT_YVYU */ -#define IMG_FMT_BGR24 VPX_IMG_FMT_BGR24 /**< \deprecated Use #VPX_IMG_FMT_BGR24 */ -#define IMG_FMT_RGB32_LE VPX_IMG_FMT_RGB32_LE /**< \deprecated Use #VPX_IMG_FMT_RGB32_LE */ -#define IMG_FMT_ARGB VPX_IMG_FMT_ARGB /**< \deprecated Use #VPX_IMG_FMT_ARGB */ -#define IMG_FMT_ARGB_LE VPX_IMG_FMT_ARGB_LE /**< \deprecated Use #VPX_IMG_FMT_ARGB_LE */ -#define IMG_FMT_RGB565_LE VPX_IMG_FMT_RGB565_LE /**< \deprecated Use #VPX_IMG_FMT_RGB565_LE */ -#define IMG_FMT_RGB555_LE VPX_IMG_FMT_RGB555_LE /**< \deprecated Use #VPX_IMG_FMT_RGB555_LE */ -#define IMG_FMT_YV12 VPX_IMG_FMT_YV12 /**< \deprecated Use #VPX_IMG_FMT_YV12 */ -#define IMG_FMT_I420 VPX_IMG_FMT_I420 /**< \deprecated Use #VPX_IMG_FMT_I420 */ -#define IMG_FMT_VPXYV12 VPX_IMG_FMT_VPXYV12 /**< \deprecated Use #VPX_IMG_FMT_VPXYV12 */ -#define IMG_FMT_VPXI420 VPX_IMG_FMT_VPXI420 /**< \deprecated Use #VPX_IMG_FMT_VPXI420 */ -#endif /* VPX_CODEC_DISABLE_COMPAT */ - /**\brief Image Descriptor */ typedef struct vpx_image { vpx_img_fmt_t fmt; /**< Image Format */ @@ -121,13 +87,6 @@ extern "C" { #define VPX_PLANE_U 1 /**< U (Chroma) plane */ #define VPX_PLANE_V 2 /**< V (Chroma) plane */ #define VPX_PLANE_ALPHA 3 /**< A (Transparency) plane */ -#if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT -#define PLANE_PACKED VPX_PLANE_PACKED -#define PLANE_Y VPX_PLANE_Y -#define PLANE_U VPX_PLANE_U -#define PLANE_V VPX_PLANE_V -#define PLANE_ALPHA VPX_PLANE_ALPHA -#endif unsigned char *planes[4]; /**< pointer to the top left pixel for each plane */ int stride[4]; /**< stride between rows for each plane */ diff --git a/vpxdec.c b/vpxdec.c index 64700816212220b9f9a78e3ad77261d29ba68de1..091522f067d1c94abd773a20287990c8ca8125fa 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -24,7 +24,6 @@ #include "./args.h" #include "./ivfdec.h" -#define VPX_CODEC_DISABLE_COMPAT 1 #include "vpx/vpx_decoder.h" #include "vpx_ports/mem_ops.h" #include "vpx_ports/vpx_timer.h" diff --git a/y4minput.c b/y4minput.c index bcc742a2e43fbc86d1dc1775bb39c5e831fc744e..34ea96d9d57d7f629582bbfa45f2c0afc80a4c19 100644 --- a/y4minput.c +++ b/y4minput.c @@ -1041,12 +1041,12 @@ int y4m_input_fetch_frame(y4m_input *_y4m, FILE *_fin, vpx_image_t *_img) { c_w *= bytes_per_sample; c_h = (_y4m->pic_h + _y4m->dst_c_dec_v - 1) / _y4m->dst_c_dec_v; c_sz = c_w * c_h; - _img->stride[PLANE_Y] = _img->stride[PLANE_ALPHA] = + _img->stride[VPX_PLANE_Y] = _img->stride[VPX_PLANE_ALPHA] = _y4m->pic_w * bytes_per_sample; - _img->stride[PLANE_U] = _img->stride[PLANE_V] = c_w; - _img->planes[PLANE_Y] = _y4m->dst_buf; - _img->planes[PLANE_U] = _y4m->dst_buf + pic_sz; - _img->planes[PLANE_V] = _y4m->dst_buf + pic_sz + c_sz; - _img->planes[PLANE_ALPHA] = _y4m->dst_buf + pic_sz + 2 * c_sz; + _img->stride[VPX_PLANE_U] = _img->stride[VPX_PLANE_V] = c_w; + _img->planes[VPX_PLANE_Y] = _y4m->dst_buf; + _img->planes[VPX_PLANE_U] = _y4m->dst_buf + pic_sz; + _img->planes[VPX_PLANE_V] = _y4m->dst_buf + pic_sz + c_sz; + _img->planes[VPX_PLANE_ALPHA] = _y4m->dst_buf + pic_sz + 2 * c_sz; return 1; }