- Added check boxes for enable/disable the layers and master preview to save reoources

This commit is contained in:
Santi Noreña 2013-03-01 18:49:03 +01:00
parent 84c85d5b36
commit d1c4295692
6 changed files with 104 additions and 21 deletions

View file

@ -1,4 +1,4 @@
#N canvas 574 186 611 318 10; #N canvas 572 196 611 318 10;
#N canvas 315 169 952 599 dmx 0; #N canvas 315 169 952 599 dmx 0;
#X obj -7 437 list split; #X obj -7 437 list split;
#X obj 99 444 list split; #X obj 99 444 list split;
@ -136,7 +136,7 @@
#X connect 5 0 7 0; #X connect 5 0 7 0;
#X connect 7 0 4 3; #X connect 7 0 4 3;
#X restore -309 -438 pd fondo; #X restore -309 -438 pd fondo;
#N canvas 73 329 1092 358 receive 0; #N canvas 69 349 1134 358 receive 0;
#X obj 22 -242 s winposx; #X obj 22 -242 s winposx;
#X obj 90 -242 s winposy; #X obj 90 -242 s winposy;
#X obj 158 -242 s winsizex; #X obj 158 -242 s winsizex;
@ -165,12 +165,14 @@
#X obj 847 -239 s ola; #X obj 847 -239 s ola;
#X obj 898 -263 float; #X obj 898 -263 float;
#X obj 898 -239 s universe; #X obj 898 -239 s universe;
#X obj 615 -432 s path; #X obj 950 -432 s path;
#X obj -39 -265 float; #X obj -39 -265 float;
#X obj 452 -449 unpack f f s; #X obj 787 -449 unpack f f s;
#X obj 452 -477 netreceive 9195; #X obj 787 -477 netreceive 9195;
#X obj -39 -242 s window; #X obj -39 -242 s window;
#X obj -39 -408 select 1 2 3 4 5 11 12 13 14 15 16 17 18 20 21; #X obj -39 -408 select 1 2 3 4 5 11 12 13 14 15 16 17 18 20 21 22;
#X obj 986 -264 float;
#X obj 986 -242 s previewswitch;
#X connect 4 0 0 0; #X connect 4 0 0 0;
#X connect 5 0 1 0; #X connect 5 0 1 0;
#X connect 6 0 2 0; #X connect 6 0 2 0;
@ -202,6 +204,7 @@
#X connect 30 1 24 1; #X connect 30 1 24 1;
#X connect 30 1 26 1; #X connect 30 1 26 1;
#X connect 30 1 29 1; #X connect 30 1 29 1;
#X connect 30 1 34 1;
#X connect 30 2 28 0; #X connect 30 2 28 0;
#X connect 31 0 30 0; #X connect 31 0 30 0;
#X connect 33 0 29 0; #X connect 33 0 29 0;
@ -219,6 +222,8 @@
#X connect 33 12 20 0; #X connect 33 12 20 0;
#X connect 33 13 24 0; #X connect 33 13 24 0;
#X connect 33 14 26 0; #X connect 33 14 26 0;
#X connect 33 15 34 0;
#X connect 34 0 35 0;
#X restore -249 -438 pd receive; #X restore -249 -438 pd receive;
#N canvas 687 175 450 564 window 0; #N canvas 687 175 450 564 window 0;
#X msg 987 -347 color 0 0 0; #X msg 987 -347 color 0 0 0;
@ -354,7 +359,7 @@
#X connect 16 1 3 0; #X connect 16 1 3 0;
#X restore -176 -379 pd layer_5; #X restore -176 -379 pd layer_5;
#X obj -298 -336 loadbang; #X obj -298 -336 loadbang;
#X obj -407 -259 print togui; #X obj -127 -266 print togui;
#N canvas 803 211 450 300 layer_6 0; #N canvas 803 211 450 300 layer_6 0;
#X msg -124 -32 1; #X msg -124 -32 1;
#X msg -177 -33 0; #X msg -177 -33 0;
@ -595,7 +600,7 @@
#X connect 16 0 13 0; #X connect 16 0 13 0;
#X connect 16 1 3 0; #X connect 16 1 3 0;
#X restore -396 -379 pd layer_2; #X restore -396 -379 pd layer_2;
#N canvas 384 140 450 300 layer_1 0; #N canvas 382 150 450 300 layer_1 0;
#X obj -253 -28 layer; #X obj -253 -28 layer;
#X msg -124 -32 1; #X msg -124 -32 1;
#X msg -177 -33 0; #X msg -177 -33 0;
@ -635,13 +640,14 @@
#X restore -469 -379 pd layer_1; #X restore -469 -379 pd layer_1;
#X obj -298 -271 metro 1000; #X obj -298 -271 metro 1000;
#X obj -298 -237 s metro; #X obj -298 -237 s metro;
#X msg -298 -299 1; #X msg -298 -305 1;
#X obj -364 -297 r textgui; #X obj -84 -304 r textgui;
#X obj -476 -294 r preview; #X obj -476 -294 r preview;
#X msg -407 -294 0; #X msg -127 -301 0;
#X obj -476 -236 pix2jpg; #X obj -476 -236 pix2jpg;
#X text -384 -470 (c) 2012-2013 Santi Noreña libremediaserver@gmail.com #X text -384 -470 (c) 2012-2013 Santi Noreña libremediaserver@gmail.com
GPL License; GPL License;
#X obj -418 -336 r previewswitch;
#X connect 5 0 16 0; #X connect 5 0 16 0;
#X connect 5 0 19 0; #X connect 5 0 19 0;
#X connect 14 0 15 0; #X connect 14 0 15 0;
@ -649,4 +655,5 @@ GPL License;
#X connect 17 0 6 0; #X connect 17 0 6 0;
#X connect 18 0 20 0; #X connect 18 0 20 0;
#X connect 19 0 6 0; #X connect 19 0 6 0;
#X connect 22 0 14 0;
#X coords 0 0 1 1 85 60 0; #X coords 0 0 1 1 85 60 0;

View file

@ -1588,6 +1588,39 @@ void libreMediaServer::sendFrame()
m_msex->n_timer->start(); m_msex->n_timer->start();
} }
// Enable/Disable the GUI Master preview
void libreMediaServer::on_previewMaster_stateChanged (int state)
{
if ((state == 0)) {
m_preview->stop();
}
if ((state == 2))
{
m_preview->start();
}
}
// Enable/Disable the GUI Layers preview
void libreMediaServer::on_previewLayer_stateChanged (int state)
{
if ((state == 0)) {
QString desc = tr("0022 0;");
if (!sendPacket(desc.toAscii().constData(),desc.size()))
{
errorsending();
}
}
if ((state == 2))
{
QString desc = tr("0022 1;");
if (!sendPacket(desc.toAscii().constData(),desc.size()))
{
errorsending();
}
}
}
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// //
// Terminal and Log // Terminal and Log
@ -1604,7 +1637,7 @@ void libreMediaServer::stdout_audio() {
} }
} }
// Sacamos la salida de Pure Data Video en la terminal // Sacamos la salida de Pure Data Video en la terminal. Filtra mensajes para el GUI.
void libreMediaServer::stdout() { void libreMediaServer::stdout() {
QByteArray out = m_pd_video->readAllStandardError(); QByteArray out = m_pd_video->readAllStandardError();
if (out.size() < 7) {return;} if (out.size() < 7) {return;}

View file

@ -123,6 +123,8 @@ private slots:
void pdrestart(); void pdrestart();
void stdout(); void stdout();
void on_video_stateChanged(int state); void on_video_stateChanged(int state);
void on_previewMaster_stateChanged(int state);
void on_previewLayer_stateChanged(int state);
//Audio //Audio
void newPeer_audio(); void newPeer_audio();
void newmessage_audio(); void newmessage_audio();

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by Qt Creator 2.5.0, 2013-03-01T16:14:51. --> <!-- Written by Qt Creator 2.5.0, 2013-03-01T18:09:52. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>ProjectExplorer.Project.ActiveTarget</variable> <variable>ProjectExplorer.Project.ActiveTarget</variable>

View file

@ -91,7 +91,7 @@
<widget class="QSpinBox" name="ipAddress2"> <widget class="QSpinBox" name="ipAddress2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>570</x> <x>520</x>
<y>170</y> <y>170</y>
<width>31</width> <width>31</width>
<height>27</height> <height>27</height>
@ -107,7 +107,7 @@
<widget class="QSpinBox" name="ipAddress4"> <widget class="QSpinBox" name="ipAddress4">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>650</x> <x>600</x>
<y>170</y> <y>170</y>
<width>31</width> <width>31</width>
<height>27</height> <height>27</height>
@ -384,7 +384,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>480</x> <x>480</x>
<y>150</y> <y>200</y>
<width>241</width> <width>241</width>
<height>21</height> <height>21</height>
</rect> </rect>
@ -396,7 +396,7 @@
<widget class="QSpinBox" name="ipAddress3"> <widget class="QSpinBox" name="ipAddress3">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>610</x> <x>560</x>
<y>170</y> <y>170</y>
<width>31</width> <width>31</width>
<height>27</height> <height>27</height>
@ -438,7 +438,7 @@
<widget class="QSpinBox" name="ipAddress1"> <widget class="QSpinBox" name="ipAddress1">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>530</x> <x>480</x>
<y>170</y> <y>170</y>
<width>31</width> <width>31</width>
<height>27</height> <height>27</height>
@ -651,6 +651,41 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="previewLayer">
<property name="geometry">
<rect>
<x>480</x>
<y>240</y>
<width>131</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Preview Layers</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QCheckBox" name="previewMaster">
<property name="geometry">
<rect>
<x>480</x>
<y>270</y>
<width>141</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Preview Master</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="autoRepeat">
<bool>false</bool>
</property>
</widget>
<zorder>layer7Check</zorder> <zorder>layer7Check</zorder>
<zorder>layer5Check</zorder> <zorder>layer5Check</zorder>
<zorder>layer3Check</zorder> <zorder>layer3Check</zorder>
@ -692,6 +727,8 @@
<zorder>layer7Preview</zorder> <zorder>layer7Preview</zorder>
<zorder>layer8Preview</zorder> <zorder>layer8Preview</zorder>
<zorder>masterPreview</zorder> <zorder>masterPreview</zorder>
<zorder>previewLayer</zorder>
<zorder>previewMaster</zorder>
</widget> </widget>
<widget class="QWidget" name="Audio"> <widget class="QWidget" name="Audio">
<attribute name="title"> <attribute name="title">
@ -1112,7 +1149,7 @@ This program comes with ABSOLUTELY NO WARRANTY</string>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>745</width> <width>745</width>
<height>25</height> <height>29</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">

View file

@ -18,6 +18,10 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
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. 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.
******************************************************************************* *******************************************************************************
v 0.03:
+ Pure Data: Carpetas para imágenes
+ Text: Diferentes ficheros de texto
Próximas versiones: Próximas versiones:
@ -32,8 +36,6 @@ Próximas versiones:
- GUI: Configuración para anular los previews y salvar tiempo de proceso - GUI: Configuración para anular los previews y salvar tiempo de proceso
- Conectividad: CITP/MSEx 1.1. Thumbs y previews de imágenes - Conectividad: CITP/MSEx 1.1. Thumbs y previews de imágenes
--> Esperar a 1.2 en MagicQ? --> Esperar a 1.2 en MagicQ?
+ Pure Data: Carpetas para imágenes
+ Text: Diferentes ficheros de texto
- Pure Data: sincronismo de audio con videos - Pure Data: sincronismo de audio con videos
--> Parece que hay que hacer un script para separar el audio del video, y luego ejecutarlos juntos. Un poco chapu, la verdad. La aternativa es volver a pdp mediante pdp2gem (inviable, demasiado proceso) --> Parece que hay que hacer un script para separar el audio del video, y luego ejecutarlos juntos. Un poco chapu, la verdad. La aternativa es volver a pdp mediante pdp2gem (inviable, demasiado proceso)
--> De momento separando el .ogg del video, ejecutando en auto, y mandando play a la vez debería de estar sincronizados. Ahora mismo se podría separando el audio en un fichero .ogg y presionando el play a la vez en modo auto --> De momento separando el .ogg del video, ejecutando en auto, y mandando play a la vez debería de estar sincronizados. Ahora mismo se podría separando el audio en un fichero .ogg y presionando el play a la vez en modo auto
@ -60,6 +62,8 @@ Próximas versiones:
--> Depurar a saco las condiciones del reinicio --> Depurar a saco las condiciones del reinicio
- Scripts: script para formatear archivos de texto - Scripts: script para formatear archivos de texto
- GUI: avisar cuando no se pueda leer un archivo de texto - GUI: avisar cuando no se pueda leer un archivo de texto
- Audio: Mute check box.
----------------- -----------------
Para considerar: Para considerar: