History

swscale: Add proper ff_ prefix to init functions

They are internal symbols that should not be exported. based on a patch by Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>

Diego Biurrun committed 10 years ago

Commit facdfe41 parent c0fd2fb5 files · +7 −7Browse files

Unified · Split

5 files
  1. libswscale/rgb2rgb.c +2 −2
  2. libswscale/rgb2rgb.h +2 −2
  3. libswscale/tests/colorspace.c +1 −1
  4. libswscale/utils.c +1 −1
  5. libswscale/x86/rgb2rgb.c +1 −1
libswscale/rgb2rgb.c+2−2
@@ -129,11 +129,11 @@ void (*yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, · 128 unmodified lines
129129 * 32-bit C version, and and&add trick by Michael Niedermayer
130130 */
131131
132−av_cold void sws_rgb2rgb_init(void)
132+av_cold void ff_rgb2rgb_init(void)
133133 {
134134 rgb2rgb_init_c();
135135 if (ARCH_X86)
136− rgb2rgb_init_x86();
136+ ff_rgb2rgb_init_x86();
137137 }
138138
139139 void rgb32to24(const uint8_t *src, uint8_t *dst, int src_size)
libswscale/rgb2rgb.h+2−2
@@ -158,8 +158,8 @@ extern void (*yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const u · 157 unmodified lines
158158 int width, int height,
159159 int lumStride, int chromStride, int srcStride);
160160
161−void sws_rgb2rgb_init(void);
161+void ff_rgb2rgb_init(void);
162162
163−void rgb2rgb_init_x86(void);
163+void ff_rgb2rgb_init_x86(void);
164164
165165 #endif /* SWSCALE_RGB2RGB_H */
libswscale/tests/colorspace.c+1−1
@@ -46,7 +46,7 @@ int main(void) · 45 unmodified lines
4646 return -1;
4747
4848 av_log(NULL, AV_LOG_INFO, "memory corruption test ...\n");
49− sws_rgb2rgb_init();
49+ ff_rgb2rgb_init();
5050
5151 for (funcNum = 0; ; funcNum++) {
5252 struct func_info_s {
libswscale/utils.c+1−1
@@ -897,7 +897,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, · 896 unmodified lines
897897 flags = c->flags;
898898 emms_c();
899899 if (!rgb15to16)
900− sws_rgb2rgb_init();
900+ ff_rgb2rgb_init();
901901
902902 unscaled = (srcW == dstW && srcH == dstH);
903903
libswscale/x86/rgb2rgb.c+1−1
@@ -137,7 +137,7 @@ DECLARE_ASM_CONST(8, uint64_t, blue_15mask) = 0x0000001f0000001fULL; · 136 unmodified lines
137137
138138 #endif /* HAVE_INLINE_ASM */
139139
140−av_cold void rgb2rgb_init_x86(void)
140+av_cold void ff_rgb2rgb_init_x86(void)
141141 {
142142 #if HAVE_INLINE_ASM
143143 int cpu_flags = av_get_cpu_flags();

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