tools/hwmap2txt/hwmapconverter/main.cpp
author koda
Sun, 20 Mar 2016 03:08:51 -0400
changeset 11612 b7d5d75469ee
parent 11015 7a905f0070ce
permissions -rw-r--r--
Move pixel format conversion from uVideoRec to AVWrapper This has several benefits, being in C-land allows us to better use libav API and avoid mixing memory allocated from Pascal. Also the C code for the conversion loop generated by GCC or Clang is probably more optimized than by Freepascal. Finally it will simplify code in the future if we are going to enable any other pixel format than yuv420p. Change the coefficients to improve color accuracy during conversion.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11015
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     1
#include "mainwindow.h"
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     2
#include <QApplication>
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     3
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     4
int main(int argc, char *argv[])
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     5
{
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     6
    QApplication a(argc, argv);
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     7
    MainWindow w;
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     8
    w.show();
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
     9
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
    10
    return a.exec();
7a905f0070ce CRLF purge
nemo
parents: 10936
diff changeset
    11
}