Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] AMD Athlon64 und tvtime (x86_64-System)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Linuxpeter
Guru
Guru


Joined: 28 May 2004
Posts: 403
Location: Dresden, Germany

PostPosted: Sun Dec 19, 2004 5:54 pm    Post subject: [TIP] AMD Athlon64 und tvtime (x86_64-System) Reply with quote

Problem:
tvtime erkennt den AMD Athlon64 Prozessor nicht und aktiviert demzufolge die Erweiterungen
    MM_ACCEL_X86_MMX
    MM_ACCEL_X86_MMEXT
    MM_ACCEL_X86_3DNOW
nicht.
Damit es aber bei Verwendung der Motion Adcanced-Filter, speziell Motion Adaptive: Advanced Detection nicht zu einer ruckelnden Bilddarstellung kommt, sind diese notwendig.

Lösung:

HINWEIS: $PORTDIR_OVERLAY und $VERZEICHNIS bitte entsprechend anpassen!

Ich beziehe mich auf tvtime-0.9.13 (dieses unterstützt deutsch), welches sich noch nicht im portage befindet, deshalb machen wir folgendes (als root):
Code:
$ mkdir -p $PORTDIR_OVERLAY/media-tv/tvtime/files
$ cp /usr/portage/media-tv/tvtime/tvtime-0.9.12.ebuild $PORTDIR_OVERLAY[/b]/media-tv/tvtime/tvtime-0.9.13.ebuild


Nun emergen wir es mit
Code:
$ emerge --fetchonly tvtime

Die anschließende Fehlermeldung betreffs der Prüfsumme ignorieren wir hier.
Dann das Archiv in ein $VERZEICHNIS eurer Wahl auspacken.

Nun ersetzen wir den Inhalt der Datei $VERZEICHNIS/src/cpu_accel.c mit folgengem:
Code:
/*
 * cpu_accel.c
 * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org>
 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
 *
 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
 * See http://libmpeg2.sourceforge.net/ for updates.
 *
 * mpeg2dec is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * mpeg2dec is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdint.h>
#include "mm_accel.h"

static inline uint32_t arch_accel (void)
{
    uint32_t caps;

    caps = MM_ACCEL_X86_MMX | MM_ACCEL_X86_MMXEXT | MM_ACCEL_X86_3DNOW;

    return caps;
}

uint32_t mm_accel (void)
{
    static int got_accel = 0;
    static uint32_t accel;

    if (!got_accel) {
   got_accel = 1;
   accel = arch_accel ();
    }

    return accel;
}
 * cpu_accel.c
 * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org>
 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
 *
 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
 * See http://libmpeg2.sourceforge.net/ for updates.
 *
 * mpeg2dec is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * mpeg2dec is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdint.h>
#include "mm_accel.h"

static inline uint32_t arch_accel (void)
{
    uint32_t caps;

   caps = MM_ACCEL_X86_MMX | MM_ACCEL_X86_MMXEXT | MM_ACCEL_X86_3DNOW;

    return caps;
}

uint32_t mm_accel (void)
{
    static int got_accel = 0;
    static uint32_t accel;

    if (!got_accel) {
   got_accel = 1;
   accel = arch_accel ();
    }

    return accel;
}

Jetzt erstellen wir das Archiv:
Code:
$ tar -cjf tvtime-0.9.13.tar.gz $VERZEICHNIS

Den Rest machen wir als root:
Code:
$ mv tvtime-0.9.13.tar.gz /usr/portage/distfiles/
$ ebuild $PORTDIR_OVERLAY/media-tv/tvtime/tvtime-0.9.13.ebuild digest
$ emerge tvtime

Fertig.
_________________
Regards, Linuxpeter
Wenn "Windows" die Antwort ist, war es eine dumme Frage. ;-)
Is "Windows" the answer, then it was a stupid question. ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum