Skip to content

Commit

Permalink
lpp: revert unnecessary MythTV cpu autodetect
Browse files Browse the repository at this point in the history
This is from 2010-08-24:
detect available SIMD extensions when runtime-cpudetect is enabled
2069741

but if you look at the following lines, ffmpeg has effectively the same since 2012-11-18:
pp: add auto detection cpu flag.
FFmpeg/FFmpeg@59d686f
  • Loading branch information
ulmus-scott authored and bennettpeter committed Jul 1, 2022
1 parent 81db3df commit b544c75
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions mythtv/external/FFmpeg/libpostproc/postprocess.c
Expand Up @@ -880,26 +880,10 @@ av_cold pp_context *pp_get_context(int width, int height, int cpuCaps){
PPContext *c= av_mallocz(sizeof(PPContext));
int stride= FFALIGN(width, 16); //assumed / will realloc if needed
int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed
int cpuflags;

if (!c)
return NULL;

if (CONFIG_RUNTIME_CPUDETECT &&
!(cpuCaps & (PP_CPU_CAPS_MMX | PP_CPU_CAPS_MMX2 |
PP_CPU_CAPS_3DNOW | PP_CPU_CAPS_ALTIVEC ))) {
cpuflags = av_get_cpu_flags();

if (HAVE_MMX && cpuflags & AV_CPU_FLAG_MMX)
cpuCaps |= PP_CPU_CAPS_MMX;
if (HAVE_MMX2 && cpuflags & AV_CPU_FLAG_MMX2)
cpuCaps |= PP_CPU_CAPS_MMX2;
if (HAVE_AMD3DNOW && cpuflags & AV_CPU_FLAG_3DNOW)
cpuCaps |= PP_CPU_CAPS_3DNOW;
if (HAVE_ALTIVEC && cpuflags & AV_CPU_FLAG_ALTIVEC)
cpuCaps |= PP_CPU_CAPS_ALTIVEC;
}

c->av_class = &av_codec_context_class;
if(cpuCaps&PP_FORMAT){
c->hChromaSubSample= cpuCaps&0x3;
Expand Down

0 comments on commit b544c75

Please sign in to comment.