X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libpostproc%2Fpostprocess_altivec_template.c;h=e93ce7ef8f24d7791de80c3313a6597d5fe759cc;hp=9dc1116e5420486833fb1e81d2f590e1ae31d553;hb=a89889164cc784138ef184844ffa8abed394a497;hpb=97cda6b944e210fc1c19e1a84e6741a461f9059c;ds=sidebyside diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c index 9dc1116e54..e93ce7ef8f 100644 --- a/libpostproc/postprocess_altivec_template.c +++ b/libpostproc/postprocess_altivec_template.c @@ -20,13 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - -#ifdef CONFIG_DARWIN -#define AVV(x...) (x) -#else -#define AVV(x...) {x} -#endif +#include "avutil.h" #define ALTIVEC_TRANSPOSE_8x8_SHORT(src_a,src_b,src_c,src_d,src_e,src_f,src_g,src_h) \ do { \ @@ -200,7 +194,7 @@ static inline void doVertLowPass_altivec(uint8_t *src, int stride, PPContext *c) One could remove the recomputation of the perm vector by assuming (stride % 16) == 0, unfortunately this is not always true. Quite a lot of load/stores - can be removed by assuming proper alignement of + can be removed by assuming proper alignment of src & stride :-( */ uint8_t *src2 = src; @@ -388,7 +382,7 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext One could remove the recomputation of the perm vector by assuming (stride % 16) == 0, unfortunately this is not always true. Quite a lot of load/stores - can be removed by assuming proper alignement of + can be removed by assuming proper alignment of src & stride :-( */ uint8_t *src2 = src; @@ -475,7 +469,7 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext const vector signed short dornotd = vec_sel((vector signed short)zero, dclampedfinal, vec_cmplt(absmE, vqp)); - /* add/substract to l4 and l5 */ + /* add/subtract to l4 and l5 */ const vector signed short vb4minusd = vec_sub(vb4, dornotd); const vector signed short vb5plusd = vec_add(vb5, dornotd); /* finally, stores */ @@ -512,7 +506,7 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) { One could remove the recomputation of the perm vector by assuming (stride % 16) == 0, unfortunately this is not always true. Quite a lot of load/stores - can be removed by assuming proper alignement of + can be removed by assuming proper alignment of src & stride :-( */ uint8_t *srcCopy = src;