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
3737 void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels,
3838 ptrdiff_t line_size, int h);
3939
40−void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags, int flags);
40+void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags);
4141
4242 #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
255255 hpeldsp_init_sse2_fast(c, flags);
256256
257257 if (CONFIG_VP3_DECODER)
258− ff_hpeldsp_vp3_init_x86(c, cpu_flags, flags);
258+ ff_hpeldsp_vp3_init_x86(c, cpu_flags);
259259 }
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
3838 const uint8_t *pixels,
3939 ptrdiff_t line_size, int h);
4040
41−av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags, int flags)
41+av_cold void ff_hpeldsp_vp3_init_x86(HpelDSPContext *c, int cpu_flags)
4242 {
4343 if (EXTERNAL_AMD3DNOW(cpu_flags)) {
44− if (flags & AV_CODEC_FLAG_BITEXACT) {
45− c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow;
46− c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
47− }
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][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow;
4846 }
4947
5048 if (EXTERNAL_MMXEXT(cpu_flags)) {
51− if (flags & AV_CODEC_FLAG_BITEXACT) {
52− c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext;
53− c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext;
54− }
49+ 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;
5551 }
5652 }

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