Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 479392
Collapse All | Expand All

(-)src/avoptions/codecselecter.cpp.ORIG (-2 / +2 lines)
Lines 44-57 Link Here
44
44
45
  /**
45
  /**
46
  * Ein Menü Eintrag wurde ausgewählt.
46
  * Ein Menü Eintrag wurde ausgewählt.
47
  * \li Suche nach der FFmpeg \ref CodecID
47
  * \li Suche nach der FFmpeg \ref AVCodecID
48
  * \li Sende bei erfolg das Signal \ref codecChanged
48
  * \li Sende bei erfolg das Signal \ref codecChanged
49
  */
49
  */
50
  void CodecSelecter::itemSelected ( int index )
50
  void CodecSelecter::itemSelected ( int index )
51
  {
51
  {
52
    QString name = itemData ( index, Qt::DisplayRole ).toString();
52
    QString name = itemData ( index, Qt::DisplayRole ).toString();
53
    bool ok;
53
    bool ok;
54
    CodecID id = static_cast<CodecID> ( itemData ( index, Qt::UserRole ).toUInt ( &ok ) );
54
    AVCodecID id = static_cast<AVCodecID> ( itemData ( index, Qt::UserRole ).toUInt ( &ok ) );
55
    if ( ok )
55
    if ( ok )
56
      emit codecChanged ( name, id );
56
      emit codecChanged ( name, id );
57
  }
57
  }
(-)src/avoptions/formatmenu.h.ORIG (-2 / +2 lines)
Lines 66-74 Link Here
66
    public Q_SLOTS:
66
    public Q_SLOTS:
67
      /** clear and create a new menutree for this codec
67
      /** clear and create a new menutree for this codec
68
      * \param name selected codec name
68
      * \param name selected codec name
69
      * \param id   AVCodec CodecID
69
      * \param id   AVCodec AVCodecID
70
      */
70
      */
71
      void updateMenu ( const QString &name, CodecID id );
71
      void updateMenu ( const QString &name, AVCodecID id );
72
72
73
    public:
73
    public:
74
      /**
74
      /**
(-)src/avoptions/avoptions.cpp.ORIG (-1 / +1 lines)
Lines 257-263 Link Here
257
  * inklusive ihrer Formate. Wird auch von \ref videoCodecs verwendet
257
  * inklusive ihrer Formate. Wird auch von \ref videoCodecs verwendet
258
  * um fest zu stellen ob ein Ausgabe Format zu verfügung steht!
258
  * um fest zu stellen ob ein Ausgabe Format zu verfügung steht!
259
  */
259
  */
260
  const QList<QX11Grab::FFFormat> AVOptions::supportedFormats ( CodecID id )
260
  const QList<QX11Grab::FFFormat> AVOptions::supportedFormats ( AVCodecID id )
261
  {
261
  {
262
    QList<QX11Grab::FFFormat> list;
262
    QList<QX11Grab::FFFormat> list;
263
    // alle codecs und demuxer initialisieren
263
    // alle codecs und demuxer initialisieren
(-)src/avoptions/codecselecter.h.ORIG (-1 / +1 lines)
Lines 48-54 Link Here
48
48
49
    Q_SIGNALS:
49
    Q_SIGNALS:
50
      /** codec entry has changed */
50
      /** codec entry has changed */
51
      void codecChanged ( const QString &name, CodecID );
51
      void codecChanged ( const QString &name, AVCodecID );
52
52
53
    public Q_SLOTS:
53
    public Q_SLOTS:
54
      /** marking codec as selected */
54
      /** marking codec as selected */
(-)src/avoptions/avoptions.h.ORIG (-2 / +2 lines)
Lines 45-51 Link Here
45
  */
45
  */
46
  typedef struct Q_DECL_EXPORT
46
  typedef struct Q_DECL_EXPORT
47
  {
47
  {
48
    CodecID id;         /**< Codec ID from avcodec.h */
48
    AVCodecID id;         /**< Codec ID from avcodec.h */
49
    QString name;       /**< Codec Name */
49
    QString name;       /**< Codec Name */
50
    QString fullname;   /**< Full Codec Description */
50
    QString fullname;   /**< Full Codec Description */
51
    QString info;       /**< Extra Codec Information for Tool Tips */
51
    QString info;       /**< Extra Codec Information for Tool Tips */
Lines 124-130 Link Here
124
      static const QList<FFCodec> audioCodecs();
124
      static const QList<FFCodec> audioCodecs();
125
125
126
      /** find valid Format for given codecID */
126
      /** find valid Format for given codecID */
127
      static const QList<FFFormat> supportedFormats ( CodecID id );
127
      static const QList<FFFormat> supportedFormats ( AVCodecID id );
128
128
129
      /** complete list of all ~/.ffmpeg/?.ffpreset */
129
      /** complete list of all ~/.ffmpeg/?.ffpreset */
130
      static const QStringList userPresets ( const QString &suffix );
130
      static const QStringList userPresets ( const QString &suffix );
(-)src/avoptions/formatmenu.cpp.ORIG (-2 / +2 lines)
Lines 114-126 Link Here
114
114
115
  /**
115
  /**
116
  * Lese das Menü neu ein und setze den Button Text zurück.
116
  * Lese das Menü neu ein und setze den Button Text zurück.
117
  * Lese mit \ref CodecID alle Unterstützen Formate für diesen
117
  * Lese mit \ref AVCodecID alle Unterstützen Formate für diesen
118
  * Codec (\ref name) Neu ein. Und erstelle ein Menü mit den
118
  * Codec (\ref name) Neu ein. Und erstelle ein Menü mit den
119
  * einzelnen Formaten an. Im Moment fehlt noch seitens FFmpeg
119
  * einzelnen Formaten an. Im Moment fehlt noch seitens FFmpeg
120
  * die Unterstützung für die Standard Auswahl. Aus diesem Grund
120
  * die Unterstützung für die Standard Auswahl. Aus diesem Grund
121
  * wird hier zusätzlich auf \ref findDefaultExtension zugegriffen.
121
  * wird hier zusätzlich auf \ref findDefaultExtension zugegriffen.
122
  */
122
  */
123
  void FormatMenu::updateMenu ( const QString &name, CodecID id )
123
  void FormatMenu::updateMenu ( const QString &name, AVCodecID id )
124
  {
124
  {
125
    m_menu->clear();
125
    m_menu->clear();
126
    p_ActionsList.clear();
126
    p_ActionsList.clear();
(-)src/settings/extensionselecter/extensionscombobox.cpp.ORIG (-2 / +2 lines)
Lines 44-54 Link Here
44
}
44
}
45
45
46
/**
46
/**
47
* Lese alle Erweterungen an Hand der CodecID ein und
47
* Lese alle Erweterungen an Hand der AVCodecID ein und
48
* erstelle das Auswahl Menü!
48
* erstelle das Auswahl Menü!
49
* TODO Alternativen aus Settings lesen!
49
* TODO Alternativen aus Settings lesen!
50
*/
50
*/
51
void ExtensionsComboBox::insertExtensions ( CodecID id )
51
void ExtensionsComboBox::insertExtensions ( AVCodecID id )
52
{
52
{
53
  if ( id == CODEC_ID_NONE )
53
  if ( id == CODEC_ID_NONE )
54
    return;
54
    return;
(-)src/settings/extensionselecter/extensionlineedit.h.ORIG (-1 / +1 lines)
Lines 40-46 Link Here
40
    Q_CLASSINFO ( "URL", "http://qx11grab.hjcms.de" )
40
    Q_CLASSINFO ( "URL", "http://qx11grab.hjcms.de" )
41
41
42
  private:
42
  private:
43
    void insertCompleter ( CodecID );
43
    void insertCompleter ( AVCodecID );
44
44
45
  public Q_SLOTS:
45
  public Q_SLOTS:
46
    void setCompleterCodec ( const QString & );
46
    void setCompleterCodec ( const QString & );
(-)src/settings/extensionselecter/extensionscombobox.h.ORIG (-1 / +1 lines)
Lines 41-47 Link Here
41
    Q_CLASSINFO ( "URL", "http://qx11grab.hjcms.de" )
41
    Q_CLASSINFO ( "URL", "http://qx11grab.hjcms.de" )
42
42
43
  private:
43
  private:
44
    void insertExtensions ( CodecID );
44
    void insertExtensions ( AVCodecID );
45
45
46
  private Q_SLOTS:
46
  private Q_SLOTS:
47
    void updateItemList ( const QString & );
47
    void updateItemList ( const QString & );
(-)src/settings/extensionselecter/extensionlineedit.cpp.ORIG (-1 / +1 lines)
Lines 39-45 Link Here
39
  setValidator ( mask );
39
  setValidator ( mask );
40
}
40
}
41
41
42
void ExtensionLineEdit::insertCompleter ( CodecID id )
42
void ExtensionLineEdit::insertCompleter ( AVCodecID id )
43
{
43
{
44
  if ( id == CODEC_ID_NONE )
44
  if ( id == CODEC_ID_NONE )
45
    return;
45
    return;

Return to bug 479392