equal
deleted
inserted
replaced
63 return !!av_codec_get_tag(ofmt->codec_tag, codec_id); |
63 return !!av_codec_get_tag(ofmt->codec_tag, codec_id); |
64 return codec_id == ofmt->video_codec || codec_id == ofmt->audio_codec; |
64 return codec_id == ofmt->video_codec || codec_id == ofmt->audio_codec; |
65 #endif |
65 #endif |
66 } |
66 } |
67 |
67 |
68 LibavIteraction::LibavIteraction() |
68 LibavIteraction::LibavIteraction() : QObject() |
69 { |
69 { |
70 // initialize libav and register all codecs and formats |
70 // initialize libav and register all codecs and formats |
71 av_register_all(); |
71 av_register_all(); |
72 |
72 |
73 // get list of all codecs |
73 // get list of all codecs |
263 QString LibavIteraction::getExtension(const QString & format) |
263 QString LibavIteraction::getExtension(const QString & format) |
264 { |
264 { |
265 return formats[format].extension; |
265 return formats[format].extension; |
266 } |
266 } |
267 |
267 |
268 QString tr(QString a) |
|
269 { |
|
270 return a; |
|
271 } |
|
272 |
|
273 // get information abaout file (duration, resolution etc) in multiline string |
268 // get information abaout file (duration, resolution etc) in multiline string |
274 QString LibavIteraction::getFileInfo(const QString & filepath) |
269 QString LibavIteraction::getFileInfo(const QString & filepath) |
275 { |
270 { |
276 AVFormatContext* pContext = NULL; |
271 AVFormatContext* pContext = NULL; |
277 QByteArray utf8path = filepath.toUtf8(); |
272 QByteArray utf8path = filepath.toUtf8(); |
322 #endif |
317 #endif |
323 return desc; |
318 return desc; |
324 } |
319 } |
325 |
320 |
326 #else |
321 #else |
327 LibavIteraction::LibavIteraction() |
322 LibavIteraction::LibavIteraction() : QObject() |
328 { |
323 { |
329 |
324 |
330 } |
325 } |
331 |
326 |
332 void LibavIteraction::fillFormats(QComboBox * pFormats) |
327 void LibavIteraction::fillFormats(QComboBox * pFormats) |