History

x86: hpeldsp: Don't check for bitexact flag when initializing VP3-specific code

That code is only ever initialized with that flag set.

Diego Biurrun committed 10 years ago

Commit 0a39c9a1 parent 95c1df93 files · +7 −11Browse files

Unified · Split

3 files
  1. libavcodec/x86/hpeldsp.h +1 −1
  2. libavcodec/x86/hpeldsp_init.c +1 −1
  3. libavcodec/x86/hpeldsp_vp3_init.c +5 −9
libavcodec/x86/hpeldsp.h+1−1
@@ -37,6 +37,6 @@ void ff_put_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels, · 36 unmodified lines
37void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,37void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
38 ptrdiff_t line_size, int h);38 ptrdiff_t line_size, int h);
39 39
40void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags, int flags);40void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags);
41 41
42#endif /* AVCODEC_X86_HPELDSP_H */42#endif /* AVCODEC_X86_HPELDSP_H */
libavcodec/x86/hpeldsp_init.c+1−1
@@ -255,5 +255,5 @@ av_cold void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags) · 254 unmodified lines
255 hpeldsp_init_sse2_fast(c, flags);255 hpeldsp_init_sse2_fast(c, flags);
256 256
257 if (CONFIG_VP3_DECODER)257 if (CONFIG_VP3_DECODER)
258 ff_hpeldsp_vp3_init_x86(c, cpu_flags, flags);258 ff_hpeldsp_vp3_init_x86(c, cpu_flags);
259}259}
libavcodec/x86/hpeldsp_vp3_init.c+5−9
@@ -38,19 +38,15 @@ void ff_put_no_rnd_pixels8_y2_exact_3dnow(uint8_t *block, · 37 unmodified lines
38 const uint8_t *pixels,38 const uint8_t *pixels,
39 ptrdiff_t line_size, int h);39 ptrdiff_t line_size, int h);
40 40
41av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags, int flags)41av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags)
42{42{
43 if (EXTERNAL_AMD3DNOW(cpu_flags)) {43 if (EXTERNAL_AMD3DNOW(cpu_flags)) {
44 if (flags & AV_CODEC_FLAG_BITEXACT) {44 c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow;
45 c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow;45 c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
46 c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
47 }
48 }46 }
49 47
50 if (EXTERNAL_MMXEXT(cpu_flags)) {48 if (EXTERNAL_MMXEXT(cpu_flags)) {
51 if (flags & AV_CODEC_FLAG_BITEXACT) {49 c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext;
52 c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext;50 c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext;
53 c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext;
54 }
55 }51 }
56}52}

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