1277 | | (void) QObject::tr("High Quality", "Sample: high quality"); |
1278 | | DeleteProfileGroup("High Quality", hostname); |
1279 | | uint groupid = CreateProfileGroup("High Quality", hostname); |
1280 | | CreateProfile(groupid, 1, ">=", 1920, 1080, "", 0, 0, |
1281 | | "ffmpeg", 2, true, "xv-blit", "softblend", true, |
1282 | | "linearblend", "linearblend", ""); |
1283 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1284 | | "ffmpeg", 1, true, "xv-blit", "softblend", true, |
1285 | | "yadifdoubleprocessdeint", "yadifdeint", ""); |
1286 | | |
1287 | | (void) QObject::tr("Normal", "Sample: average quality"); |
1288 | | DeleteProfileGroup("Normal", hostname); |
1289 | | groupid = CreateProfileGroup("Normal", hostname); |
1290 | | CreateProfile(groupid, 1, ">=", 1280, 720, "", 0, 0, |
1291 | | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
1292 | | "linearblend", "linearblend", ""); |
1293 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1294 | | "ffmpeg", 1, true, "xv-blit", "softblend", true, |
1295 | | "greedyhdoubleprocessdeint", "kerneldeint", ""); |
1296 | | |
1297 | | (void) QObject::tr("Slim", "Sample: low CPU usage"); |
1298 | | DeleteProfileGroup("Slim", hostname); |
1299 | | groupid = CreateProfileGroup("Slim", hostname); |
1300 | | CreateProfile(groupid, 1, ">=", 1280, 720, "", 0, 0, |
1301 | | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
1302 | | "onefield", "onefield", ""); |
1303 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1304 | | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
1305 | | "linearblend", "linearblend", ""); |
1306 | | } |
| 1277 | QStringList profiles = GetProfiles(hostname); |
| 1278 | uint groupid; |
| 1279 | |
| 1280 | #ifdef USING_XV |
| 1281 | if (!profiles.contains("High Quality")) { |
| 1282 | (void) QObject::tr("High Quality", "Sample: high quality"); |
| 1283 | groupid = CreateProfileGroup("High Quality", hostname); |
| 1284 | CreateProfile(groupid, 1, ">=", 1920, 1080, "", 0, 0, |
| 1285 | "ffmpeg", 2, true, "xv-blit", "softblend", true, |
| 1286 | "linearblend", "linearblend", ""); |
| 1287 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1288 | "ffmpeg", 1, true, "xv-blit", "softblend", true, |
| 1289 | "yadifdoubleprocessdeint", "yadifdeint", ""); |
| 1290 | } |
1308 | | void VideoDisplayProfile::CreateVDPAUProfiles(const QString &hostname) |
1309 | | { |
1310 | | (void) QObject::tr("VDPAU High Quality", "Sample: VDPAU high quality"); |
1311 | | DeleteProfileGroup("VDPAU High Quality", hostname); |
1312 | | uint groupid = CreateProfileGroup("VDPAU High Quality", hostname); |
1313 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1314 | | "vdpau", 1, true, "vdpau", "vdpau", true, |
1315 | | "vdpauadvanceddoublerate", "vdpauadvanced", |
1316 | | "vdpaucolorspace=auto"); |
1317 | | |
1318 | | (void) QObject::tr("VDPAU Normal", "Sample: VDPAU average quality"); |
1319 | | DeleteProfileGroup("VDPAU Normal", hostname); |
1320 | | groupid = CreateProfileGroup("VDPAU Normal", hostname); |
1321 | | CreateProfile(groupid, 1, ">=", 0, 720, "", 0, 0, |
1322 | | "vdpau", 1, true, "vdpau", "vdpau", true, |
1323 | | "vdpaubasicdoublerate", "vdpaubasic", |
1324 | | "vdpaucolorspace=auto"); |
1325 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1326 | | "vdpau", 1, true, "vdpau", "vdpau", true, |
1327 | | "vdpauadvanceddoublerate", "vdpauadvanced", |
1328 | | "vdpaucolorspace=auto"); |
1329 | | |
1330 | | (void) QObject::tr("VDPAU Slim", "Sample: VDPAU low power GPU"); |
1331 | | DeleteProfileGroup("VDPAU Slim", hostname); |
1332 | | groupid = CreateProfileGroup("VDPAU Slim", hostname); |
1333 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1334 | | "vdpau", 1, true, "vdpau", "vdpau", true, |
1335 | | "vdpaubobdeint", "vdpauonefield", |
1336 | | "vdpauskipchroma,vdpaucolorspace=auto"); |
1337 | | } |
| 1292 | if (!profiles.contains("Normal")) { |
| 1293 | (void) QObject::tr("Normal", "Sample: average quality"); |
| 1294 | groupid = CreateProfileGroup("Normal", hostname); |
| 1295 | CreateProfile(groupid, 1, ">=", 1280, 720, "", 0, 0, |
| 1296 | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
| 1297 | "linearblend", "linearblend", ""); |
| 1298 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1299 | "ffmpeg", 1, true, "xv-blit", "softblend", true, |
| 1300 | "greedyhdoubleprocessdeint", "kerneldeint", ""); |
| 1301 | } |
1339 | | void VideoDisplayProfile::CreateVDAProfiles(const QString &hostname) |
1340 | | { |
1341 | | (void) QObject::tr("VDA High Quality", "Sample: VDA high quality"); |
1342 | | DeleteProfileGroup("VDA High Quality", hostname); |
1343 | | uint groupid = CreateProfileGroup("VDA High Quality", hostname); |
1344 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1345 | | "vda", 2, true, "opengl", "opengl2", true, |
1346 | | "greedyhdoubleprocessdeint", "greedyhdeint", |
1347 | | ""); |
1348 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1349 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1350 | | "greedyhdoubleprocessdeint", "greedyhdeint", |
1351 | | ""); |
1352 | | |
1353 | | (void) QObject::tr("VDA Normal", "Sample: VDA average quality"); |
1354 | | DeleteProfileGroup("VDA Normal", hostname); |
1355 | | groupid = CreateProfileGroup("VDA Normal", hostname); |
1356 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1357 | | "vda", 2, true, "opengl", "opengl2", true, |
1358 | | "opengldoubleratekerneldeint", "openglkerneldeint", |
1359 | | ""); |
1360 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1361 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1362 | | "opengldoubleratekerneldeint", "openglkerneldeint", |
1363 | | ""); |
1364 | | |
1365 | | (void) QObject::tr("VDA Slim", "Sample: VDA low power GPU"); |
1366 | | DeleteProfileGroup("VDA Slim", hostname); |
1367 | | groupid = CreateProfileGroup("VDA Slim", hostname); |
1368 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1369 | | "vda", 2, true, "opengl", "opengl2", true, |
1370 | | "opengldoubleratelinearblend", "opengllinearblend", |
1371 | | ""); |
1372 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1373 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1374 | | "opengldoubleratelinearblend", "opengllinearblend", |
1375 | | ""); |
1376 | | } |
| 1303 | if (!profiles.contains("Slim")) { |
| 1304 | (void) QObject::tr("Slim", "Sample: low CPU usage"); |
| 1305 | groupid = CreateProfileGroup("Slim", hostname); |
| 1306 | CreateProfile(groupid, 1, ">=", 1280, 720, "", 0, 0, |
| 1307 | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
| 1308 | "onefield", "onefield", ""); |
| 1309 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1310 | "ffmpeg", 1, true, "xv-blit", "softblend", false, |
| 1311 | "linearblend", "linearblend", ""); |
| 1312 | } |
| 1313 | #endif |
1378 | | void VideoDisplayProfile::CreateOpenGLProfiles(const QString &hostname) |
1379 | | { |
1380 | | (void) QObject::tr("OpenGL High Quality", "Sample: OpenGL high quality"); |
1381 | | DeleteProfileGroup("OpenGL High Quality", hostname); |
1382 | | uint groupid = CreateProfileGroup("OpenGL High Quality", hostname); |
1383 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1384 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1385 | | "greedyhdoubleprocessdeint", "greedyhdeint", |
1386 | | ""); |
1387 | | |
1388 | | (void) QObject::tr("OpenGL Normal", "Sample: OpenGL average quality"); |
1389 | | DeleteProfileGroup("OpenGL Normal", hostname); |
1390 | | groupid = CreateProfileGroup("OpenGL Normal", hostname); |
1391 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1392 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1393 | | "opengldoubleratekerneldeint", "openglkerneldeint", |
1394 | | ""); |
1395 | | |
1396 | | (void) QObject::tr("OpenGL Slim", "Sample: OpenGL low power GPU"); |
1397 | | DeleteProfileGroup("OpenGL Slim", hostname); |
1398 | | groupid = CreateProfileGroup("OpenGL Slim", hostname); |
1399 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1400 | | "ffmpeg", 1, true, "opengl", "opengl2", true, |
1401 | | "opengldoubleratelinearblend", "opengllinearblend", |
1402 | | ""); |
1403 | | } |
| 1315 | #ifdef USING_VDPAU |
| 1316 | if (!profiles.contains("VDPAU High Quality")) { |
| 1317 | (void) QObject::tr("VDPAU High Quality", "Sample: VDPAU high quality"); |
| 1318 | groupid = CreateProfileGroup("VDPAU High Quality", hostname); |
| 1319 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1320 | "vdpau", 1, true, "vdpau", "vdpau", true, |
| 1321 | "vdpauadvanceddoublerate", "vdpauadvanced", |
| 1322 | "vdpaucolorspace=auto"); |
| 1323 | } |
1405 | | void VideoDisplayProfile::CreateVAAPIProfiles(const QString &hostname) |
1406 | | { |
1407 | | (void) QObject::tr("VAAPI Normal", "Sample: VAAPI average quality"); |
1408 | | DeleteProfileGroup("VAAPI Normal", hostname); |
1409 | | uint groupid = CreateProfileGroup("VAAPI Normal", hostname); |
1410 | | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
1411 | | "vaapi", 2, true, "openglvaapi", "opengl2", true, |
1412 | | "vaapibobdeint", "vaapionefield", |
1413 | | ""); |
1414 | | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
1415 | | "ffmpeg", 2, true, "opengl", "opengl2", true, |
1416 | | "opengldoubleratekerneldeint", "openglkerneldeint", |
1417 | | ""); |
1418 | | } |
| 1325 | if (!profiles.contains("VDPAU Normal")) { |
| 1326 | (void) QObject::tr("VDPAU Normal", "Sample: VDPAU average quality"); |
| 1327 | groupid = CreateProfileGroup("VDPAU Normal", hostname); |
| 1328 | CreateProfile(groupid, 1, ">=", 0, 720, "", 0, 0, |
| 1329 | "vdpau", 1, true, "vdpau", "vdpau", true, |
| 1330 | "vdpaubasicdoublerate", "vdpaubasic", |
| 1331 | "vdpaucolorspace=auto"); |
| 1332 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1333 | "vdpau", 1, true, "vdpau", "vdpau", true, |
| 1334 | "vdpauadvanceddoublerate", "vdpauadvanced", |
| 1335 | "vdpaucolorspace=auto"); |
| 1336 | } |
1420 | | // upgrade = 1 means adding high quality |
1421 | | void VideoDisplayProfile::CreateOpenMAXProfiles(const QString &hostname, int upgrade) |
1422 | | { |
| 1338 | if (!profiles.contains("VDPAU Slim")) { |
| 1339 | (void) QObject::tr("VDPAU Slim", "Sample: VDPAU low power GPU"); |
| 1340 | groupid = CreateProfileGroup("VDPAU Slim", hostname); |
| 1341 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1342 | "vdpau", 1, true, "vdpau", "vdpau", true, |
| 1343 | "vdpaubobdeint", "vdpauonefield", |
| 1344 | "vdpauskipchroma,vdpaucolorspace=auto"); |
| 1345 | } |
| 1346 | #endif |
| 1347 | |
| 1348 | #if defined(Q_OS_MACX) |
| 1349 | if (!profiles.contains("VDA High Quality")) { |
| 1350 | (void) QObject::tr("VDA High Quality", "Sample: VDA high quality"); |
| 1351 | groupid = CreateProfileGroup("VDA High Quality", hostname); |
| 1352 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1353 | "vda", 2, true, "opengl", "opengl2", true, |
| 1354 | "greedyhdoubleprocessdeint", "greedyhdeint", |
| 1355 | ""); |
| 1356 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1357 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1358 | "greedyhdoubleprocessdeint", "greedyhdeint", |
| 1359 | ""); |
| 1360 | } |
| 1361 | |
| 1362 | if (!profiles.contains("VDA Normal")) { |
| 1363 | (void) QObject::tr("VDA Normal", "Sample: VDA average quality"); |
| 1364 | groupid = CreateProfileGroup("VDA Normal", hostname); |
| 1365 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1366 | "vda", 2, true, "opengl", "opengl2", true, |
| 1367 | "opengldoubleratekerneldeint", "openglkerneldeint", |
| 1368 | ""); |
| 1369 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1370 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1371 | "opengldoubleratekerneldeint", "openglkerneldeint", |
| 1372 | ""); |
| 1373 | } |
| 1374 | |
| 1375 | if (!profiles.contains("VDA Slim")) { |
| 1376 | (void) QObject::tr("VDA Slim", "Sample: VDA low power GPU"); |
| 1377 | groupid = CreateProfileGroup("VDA Slim", hostname); |
| 1378 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1379 | "vda", 2, true, "opengl", "opengl2", true, |
| 1380 | "opengldoubleratelinearblend", "opengllinearblend", |
| 1381 | ""); |
| 1382 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1383 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1384 | "opengldoubleratelinearblend", "opengllinearblend", |
| 1385 | ""); |
| 1386 | } |
| 1387 | #endif |
| 1388 | |
| 1389 | #ifdef USING_OPENGL_VIDEO |
| 1390 | if (!profiles.contains("OpenGL High Quality")) { |
| 1391 | (void) QObject::tr("OpenGL High Quality", |
| 1392 | "Sample: OpenGL high quality"); |
| 1393 | groupid = CreateProfileGroup("OpenGL High Quality", hostname); |
| 1394 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1395 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1396 | "greedyhdoubleprocessdeint", "greedyhdeint", |
| 1397 | ""); |
| 1398 | } |
| 1399 | |
| 1400 | if (!profiles.contains("OpenGL Normal")) { |
| 1401 | (void) QObject::tr("OpenGL Normal", "Sample: OpenGL average quality"); |
| 1402 | groupid = CreateProfileGroup("OpenGL Normal", hostname); |
| 1403 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1404 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1405 | "opengldoubleratekerneldeint", "openglkerneldeint", |
| 1406 | ""); |
| 1407 | } |
| 1408 | |
| 1409 | if (!profiles.contains("OpenGL Slim")) { |
| 1410 | (void) QObject::tr("OpenGL Slim", "Sample: OpenGL low power GPU"); |
| 1411 | groupid = CreateProfileGroup("OpenGL Slim", hostname); |
| 1412 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1413 | "ffmpeg", 1, true, "opengl", "opengl2", true, |
| 1414 | "opengldoubleratelinearblend", "opengllinearblend", |
| 1415 | ""); |
| 1416 | } |
| 1417 | #endif |
| 1418 | |
| 1419 | #ifdef USING_GLVAAPI |
| 1420 | if (!profiles.contains("VAAPI Normal")) { |
| 1421 | (void) QObject::tr("VAAPI Normal", "Sample: VAAPI average quality"); |
| 1422 | groupid = CreateProfileGroup("VAAPI Normal", hostname); |
| 1423 | CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0, |
| 1424 | "vaapi", 2, true, "openglvaapi", "opengl2", true, |
| 1425 | "vaapibobdeint", "vaapionefield", |
| 1426 | ""); |
| 1427 | CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0, |
| 1428 | "ffmpeg", 2, true, "opengl", "opengl2", true, |
| 1429 | "opengldoubleratekerneldeint", "openglkerneldeint", |
| 1430 | ""); |
| 1431 | } |
| 1432 | #endif |
| 1433 | |
| 1434 | #ifdef USING_OPENMAX |