History

avcodec/bit_depth_template: Remove empty macro INIT_CLIP

Zhao Zhili committed 1 year ago

Commit d157e1f1 parent 66e98884 files · +0 −17Browse files

Showing the changes to libavcodec (4 of 4 files). Show all

Unified · Split

4 files
  1. libavcodec/bit_depth_template.c +0 −3
  2. libavcodec/h264pred_template.c +0 −3
  3. libavcodec/h264qpel_template.c +0 −9
  4. libavcodec/mips/h264qpel_mmi.c +0 −2
libavcodec/bit_depth_template.c+0−3
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 # undef pixel4
3131 # undef dctcoef
3232 # undef idctin
33−# undef INIT_CLIP
3433 # undef no_rnd_avg_pixel4
3534 # undef rnd_avg_pixel4
3635 # undef AV_RN2P
@@ -64,7 +63,6 @@ · 27 unmodified lines
6463 # define idctin int16_t
6564 #endif
6665
67−# define INIT_CLIP
6866 # define no_rnd_avg_pixel4 no_rnd_avg64
6967 # define rnd_avg_pixel4 rnd_avg64
7068 # define AV_RN2P AV_RN32
@@ -84,7 +82,6 @@ · 13 unmodified lines
8482 # define dctcoef int16_t
8583 # define idctin int16_t
8684
87−# define INIT_CLIP
8885 # define no_rnd_avg_pixel4 no_rnd_avg32
8986 # define rnd_avg_pixel4 rnd_avg32
9087 # define AV_RN2P AV_RN16
libavcodec/h264pred_template.c+0−3
@@ -414,7 +414,6 @@ static inline void FUNCC(pred16x16_plane_compat)(uint8_t *_src, · 413 unmodified lines
414414 {
415415 int i, j, k;
416416 int a;
417− INIT_CLIP
418417 pixel *src = (pixel*)_src;
419418 int stride = _stride>>(sizeof(pixel)-1);
420419 const pixel * const src0 = src +7-stride;
@@ -748,7 +747,6 @@ static void FUNCC(pred8x8_plane)(uint8_t *_src, ptrdiff_t _stride) · 327 unmodified lines
748747 {
749748 int j, k;
750749 int a;
751− INIT_CLIP
752750 pixel *src = (pixel*)_src;
753751 int stride = _stride>>(sizeof(pixel)-1);
754752 const pixel * const src0 = src +3-stride;
@@ -784,7 +782,6 @@ static void FUNCC(pred8x16_plane)(uint8_t *_src, ptrdiff_t _stride) · 29 unmodified lines
784782 {
785783 int j, k;
786784 int a;
787− INIT_CLIP
788785 pixel *src = (pixel*)_src;
789786 int stride = _stride>>(sizeof(pixel)-1);
790787 const pixel * const src0 = src +3-stride;
libavcodec/h264qpel_template.c+0−9
@@ -78,7 +78,6 @@ static inline void FUNC(copy_block16)(uint8_t *dst, const uint8_t *restrict src, · 77 unmodified lines
7878 static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *p_dst, const uint8_t *restrict p_src, int dstStride, int srcStride)\
7979 {\
8080 const int h=2;\
81− INIT_CLIP\
8281 int i;\
8382 pixel *dst = (pixel*)p_dst;\
8483 const pixel *restrict src = (const pixel*)p_src;\
@@ -96,7 +95,6 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *p_dst, const · 11 unmodified lines
9695 static av_unused void FUNC(OPNAME ## h264_qpel2_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
9796 {\
9897 const int w=2;\
99− INIT_CLIP\
10098 int i;\
10199 pixel *dst = (pixel*)_dst;\
102100 const pixel *restrict src = (const pixel*)_src;\
@@ -123,7 +121,6 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixel · 20 unmodified lines
123121 const int h=2;\
124122 const int w=2;\
125123 const int pad = (BIT_DEPTH == 10) ? (-10 * ((1<<BIT_DEPTH)-1)) : 0;\
126− INIT_CLIP\
127124 int i;\
128125 pixel *dst = (pixel*)_dst;\
129126 const pixel *restrict src = (const pixel*)_src;\
@@ -156,7 +153,6 @@ static av_unused void FUNC(OPNAME ## h264_qpel2_hv_lowpass)(uint8_t *_dst, pixel · 26 unmodified lines
156153 static void FUNC(OPNAME ## h264_qpel4_h_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
157154 {\
158155 const int h=4;\
159− INIT_CLIP\
160156 int i;\
161157 pixel *dst = (pixel*)_dst;\
162158 const pixel *restrict src = (const pixel*)_src;\
@@ -176,7 +172,6 @@ static void FUNC(OPNAME ## h264_qpel4_h_lowpass)(uint8_t *_dst, const uint8_t *r · 13 unmodified lines
176172 static void FUNC(OPNAME ## h264_qpel4_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
177173 {\
178174 const int w=4;\
179− INIT_CLIP\
180175 int i;\
181176 pixel *dst = (pixel*)_dst;\
182177 const pixel *restrict src = (const pixel*)_src;\
@@ -207,7 +202,6 @@ static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 24 unmodified lines
207202 const int h=4;\
208203 const int w=4;\
209204 const int pad = (BIT_DEPTH == 10) ? (-10 * ((1<<BIT_DEPTH)-1)) : 0;\
210− INIT_CLIP\
211205 int i;\
212206 pixel *dst = (pixel*)_dst;\
213207 const pixel *restrict src = (const pixel*)_src;\
@@ -247,7 +241,6 @@ static void FUNC(OPNAME ## h264_qpel4_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 33 unmodified lines
247241 static void FUNC(OPNAME ## h264_qpel8_h_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
248242 {\
249243 const int h=8;\
250− INIT_CLIP\
251244 int i;\
252245 pixel *dst = (pixel*)_dst;\
253246 const pixel *restrict src = (const pixel*)_src;\
@@ -271,7 +264,6 @@ static void FUNC(OPNAME ## h264_qpel8_h_lowpass)(uint8_t *_dst, const uint8_t *r · 17 unmodified lines
271264 static void FUNC(OPNAME ## h264_qpel8_v_lowpass)(uint8_t *_dst, const uint8_t *restrict _src, int dstStride, int srcStride)\
272265 {\
273266 const int w=8;\
274− INIT_CLIP\
275267 int i;\
276268 pixel *dst = (pixel*)_dst;\
277269 const pixel *restrict src = (const pixel*)_src;\
@@ -310,7 +302,6 @@ static void FUNC(OPNAME ## h264_qpel8_hv_lowpass)(uint8_t *_dst, pixeltmp *tmp, · 32 unmodified lines
310302 const int h=8;\
311303 const int w=8;\
312304 const int pad = (BIT_DEPTH == 10) ? (-10 * ((1<<BIT_DEPTH)-1)) : 0;\
313− INIT_CLIP\
314305 int i;\
315306 pixel *dst = (pixel*)_dst;\
316307 const pixel *restrict src = (const pixel*)_src;\
libavcodec/mips/h264qpel_mmi.c+0−2
@@ -1258,7 +1258,6 @@ static void avg_h264_qpel16_v_lowpass_mmi(uint8_t *dst, const uint8_t *src, · 1257 unmodified lines
12581258 static void put_h264_qpel4_hv_lowpass_mmi(uint8_t *dst, const uint8_t *src,
12591259 int dstStride, int srcStride)
12601260 {
1261− INIT_CLIP
12621261 int i;
12631262 int16_t _tmp[36];
12641263 int16_t *tmp = _tmp;
@@ -1822,7 +1821,6 @@ static void put_pixels16_l2_shift5_mmi(uint8_t *dst, int16_t *src16, · 557 unmodified lines
18221821 static void avg_h264_qpel4_hv_lowpass_mmi(uint8_t *dst, const uint8_t *src,
18231822 int dstStride, int srcStride)
18241823 {
1825− INIT_CLIP
18261824 int i;
18271825 int16_t _tmp[36];
18281826 int16_t *tmp = _tmp;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t