Skip to content

Commit 73049a8

Browse files
committed
Merge branch 'master' of github.com:MythTV/mythtv
2 parents e11f9d4 + 4b2a1ea commit 73049a8

File tree

18 files changed

+105
-21
lines changed

18 files changed

+105
-21
lines changed

mythplugins/mythmusic/mythmusic/goom/filters.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ static int *firedec = 0;
140140
/** modif d'optim by Jeko : precalcul des 4 coefs résultant des 2 pos */
141141
int precalCoef[16][16];
142142

143+
/* Prototypes to keep gcc from spewing warnings */
144+
void generatePrecalCoef (void);
145+
void calculatePXandPY (int x, int y, int *px, int *py);
146+
void setPixelRGB (Uint * buffer, Uint x, Uint y, Color c);
147+
void setPixelRGB_ (Uint * buffer, Uint x, Color c);
148+
inline void getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c);
149+
void getPixelRGB_ (Uint * buffer, Uint x, Color * c);
150+
143151
void
144152
generatePrecalCoef ()
145153
{
@@ -467,6 +475,9 @@ void c_zoom (unsigned int *expix1, unsigned int *expix2, unsigned int prevX, uns
467475
}
468476

469477
#ifdef USE_ASM
478+
void setAsmUse (int useIt);
479+
int getAsmUse (void);
480+
470481
static int use_asm = 1;
471482
void
472483
setAsmUse (int useIt)
@@ -542,6 +553,9 @@ zoomFilterFastRGB (Uint * pix1, Uint * pix2, ZoomFilterData * zf, Uint resx, Uin
542553
noisify = zf->noisify;
543554
}
544555

556+
/* Silence a gcc warning */
557+
(void)pertedec;
558+
545559
/** generation d'un effet **/
546560
if (firstTime || zf) {
547561

mythplugins/mythmusic/mythmusic/goom/goom_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ void goom_set_resolution (guint32 resx, guint32 resy, int cinemascope);
1414
* forceMode == 1..NB_FX : force a switch to FX n°forceMode
1515
*/
1616
guint32 *goom_update (gint16 data[2][512], int forceMode);
17-
void goom_close ();
17+
void goom_close (void);
1818

1919
#endif

mythplugins/mythmusic/mythmusic/goom/surf3d.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ void surf3d_draw (surf3d *s, int color, int dist, int *buf, int *back, int W,int
5757
*p1 = color;
5858
}
5959
}
60+
61+
/* Squelch a gcc warning */
62+
(void)p2;
6063
}
6164

6265
void grid3d_draw (grid3d *g, int color, int colorlow,

mythplugins/mythmusic/mythmusic/goom/tentacle3d.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ static float cycle = 0.0f;
1515
static grid3d *grille[nbgrid];
1616
static float *vals;
1717

18+
/* Prototypes to keep gcc from spewing warnings */
19+
void tentacle_free (void);
20+
void tentacle_new (void);
21+
void tentacle_update(int *buf, int *back, int W, int H, short data[2][512], float rapport, int drawit);
22+
1823
void tentacle_free (void) {
1924
int tmp;
2025
free (vals);

mythplugins/mythmusic/mythmusic/goom/zoom_filter_mmx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* Prototypes to keep gcc from spewing warnings */
2+
void zoom_filter_mmx (int prevX, int prevY, unsigned int *expix1, unsigned int *expix2, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
3+
int zoom_filter_mmx_supported (void);
4+
15
#ifdef MMX
26
#define BUFFPOINTNB 16
37
#define BUFFPOINTMASK 0xffff

mythplugins/mythmusic/mythmusic/goom/zoom_filter_xmmx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#include <mythtv/mythconfig.h>
22

3+
/* Prototypes to keep gcc from spewing warnings */
4+
void zoom_filter_xmmx (int prevX, int prevY, unsigned int *expix1, unsigned int *expix2, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
5+
int zoom_filter_xmmx_supported (void);
6+
7+
38
#if defined(MMX) && !defined(ARCH_X86_64)
49
/* a definir pour avoir exactement le meme resultat que la fonction C
510
* (un chouillat plus lent)

mythtv/libs/libmythtv/audioplayer.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ void AudioPlayer::RemoveVisuals(void)
7070
m_audioOutput->removeVisual(m_visuals[i]);
7171
}
7272

73+
void AudioPlayer::ResetVisuals(void)
74+
{
75+
if (!m_audioOutput)
76+
return;
77+
78+
QMutexLocker lock(&m_lock);
79+
for (uint i = 0; i < m_visuals.size(); i++)
80+
m_visuals[i]->prepare();
81+
}
82+
7383
void AudioPlayer::Reset(void)
7484
{
7585
if (!m_audioOutput)
@@ -164,6 +174,8 @@ QString AudioPlayer::ReinitAudio(void)
164174
m_muted_on_creation = false;
165175
}
166176

177+
ResetVisuals();
178+
167179
return errMsg;
168180
}
169181

@@ -257,6 +269,8 @@ void AudioPlayer::SetAudioParams(AudioFormat format, int orig_channels,
257269
m_samplerate = samplerate;
258270
m_passthru = passthru;
259271
m_codec_profile = codec_profile;
272+
273+
ResetVisuals();
260274
}
261275

262276
void AudioPlayer::SetEffDsp(int dsprate)

mythtv/libs/libmythtv/audioplayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class MTV_PUBLIC AudioPlayer
7777
private:
7878
void AddVisuals(void);
7979
void RemoveVisuals(void);
80+
void ResetVisuals(void);
8081

8182
private:
8283
MythPlayer *m_parent;

mythtv/libs/libmythtv/mythplayer.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4850,10 +4850,17 @@ bool MythPlayer::CanVisualise(void)
48504850
return false;
48514851
}
48524852

4853-
bool MythPlayer::ToggleVisualisation(void)
4853+
bool MythPlayer::IsVisualising(void)
48544854
{
48554855
if (videoOutput)
4856-
return videoOutput->ToggleVisualisation(&audio);
4856+
return videoOutput->GetVisualisation();
4857+
return false;
4858+
}
4859+
4860+
bool MythPlayer::EnableVisualisation(bool enable)
4861+
{
4862+
if (videoOutput)
4863+
return videoOutput->EnableVisualisation(&audio, enable);
48574864
return false;
48584865
}
48594866

mythtv/libs/libmythtv/mythplayer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ class MTV_PUBLIC MythPlayer
304304

305305
// Visualisations
306306
bool CanVisualise(void);
307-
bool ToggleVisualisation(void);
307+
bool IsVisualising(void);
308+
bool EnableVisualisation(bool enable);
308309

309310
void SaveTotalDuration(void);
310311
void ResetTotalDuration(void);

0 commit comments

Comments
 (0)