mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
examples/camerabin: Fix set-but-unused warnings
This commit is contained in:
parent
98f19a3674
commit
d22d5468a8
3 changed files with 2014 additions and 71 deletions
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,6 @@ GObject
|
||||||
GstAiffParse
|
GstAiffParse
|
||||||
GstAsfMux
|
GstAsfMux
|
||||||
GstAsfParse
|
GstAsfParse
|
||||||
GstAssRender
|
|
||||||
GstBaseAudioVisualizer
|
GstBaseAudioVisualizer
|
||||||
GstSpaceScope
|
GstSpaceScope
|
||||||
GstSpectraScope
|
GstSpectraScope
|
||||||
|
@ -35,42 +34,48 @@ GObject
|
||||||
GstBaseAudioSink
|
GstBaseAudioSink
|
||||||
GstAudioSink
|
GstAudioSink
|
||||||
GstApExSink
|
GstApExSink
|
||||||
GstNasSink
|
|
||||||
GstSDLAudioSink
|
GstSDLAudioSink
|
||||||
GstChecksumSink
|
GstChecksumSink
|
||||||
|
GstCurlSink
|
||||||
GstDCCPClientSink
|
GstDCCPClientSink
|
||||||
GstDCCPServerSink
|
GstDCCPServerSink
|
||||||
GstFBDEVSink
|
GstFBDEVSink
|
||||||
GstInterAudioSink
|
GstInterAudioSink
|
||||||
GstInterVideoSink
|
GstInterVideoSink
|
||||||
GstLinsysSdiSink
|
GstLinsysSdiSink
|
||||||
GstSFSink
|
|
||||||
GstShmSink
|
GstShmSink
|
||||||
GstVideoSink
|
GstVideoSink
|
||||||
GstDfbVideoSink
|
|
||||||
GstSDLVideoSink
|
GstSDLVideoSink
|
||||||
GstBaseSrc
|
GstBaseSrc
|
||||||
GstDTMFSrc
|
GstDTMFSrc
|
||||||
GstDataURISrc
|
GstDataURISrc
|
||||||
GstFliteTestSrc
|
|
||||||
GstInterAudioSrc
|
GstInterAudioSrc
|
||||||
GstInterVideoSrc
|
GstInterVideoSrc
|
||||||
GstLinsysSdiSrc
|
GstLinsysSdiSrc
|
||||||
GstPushSrc
|
GstPushSrc
|
||||||
GstDCCPClientSrc
|
GstDCCPClientSrc
|
||||||
GstDCCPServerSrc
|
GstDCCPServerSrc
|
||||||
GstDc1394
|
|
||||||
GstDvbSrc
|
GstDvbSrc
|
||||||
GstMMS
|
GstMMS
|
||||||
|
GstNeonhttpSrc
|
||||||
GstRfbSrc
|
GstRfbSrc
|
||||||
GstShmSrc
|
GstShmSrc
|
||||||
GstVCDSrc
|
GstVCDSrc
|
||||||
|
frei0r-src-ising0r
|
||||||
|
frei0r-src-lissajous0r
|
||||||
|
frei0r-src-nois0r
|
||||||
|
frei0r-src-onecol0r
|
||||||
|
frei0r-src-partik0l
|
||||||
|
frei0r-src-plasma
|
||||||
|
frei0r-src-test-pat-b
|
||||||
|
frei0r-src-test-pat-c
|
||||||
|
frei0r-src-test-pat-g
|
||||||
|
frei0r-src-test-pat-i
|
||||||
|
frei0r-src-test-pat-l
|
||||||
|
frei0r-src-test-pat-r
|
||||||
GstRTPDTMFSrc
|
GstRTPDTMFSrc
|
||||||
GstSFSrc
|
|
||||||
GstBaseTransform
|
GstBaseTransform
|
||||||
GstAudioFilter
|
GstAudioFilter
|
||||||
GstBPMDetect
|
|
||||||
GstOFA
|
|
||||||
GstStereo
|
GstStereo
|
||||||
GstBayer2RGB
|
GstBayer2RGB
|
||||||
GstCogScale
|
GstCogScale
|
||||||
|
@ -113,34 +118,99 @@ GObject
|
||||||
GstMirror
|
GstMirror
|
||||||
GstRotate
|
GstRotate
|
||||||
GstSquare
|
GstSquare
|
||||||
GstRsvgOverlay
|
|
||||||
GstSolarize
|
GstSolarize
|
||||||
GstVideoAnalyse
|
GstVideoAnalyse
|
||||||
GstVideoDetect
|
GstVideoDetect
|
||||||
GstVideoMark
|
GstVideoMark
|
||||||
|
frei0r-filter-3-point-color-balance
|
||||||
|
frei0r-filter-3dflippo
|
||||||
|
frei0r-filter-alpha0ps
|
||||||
|
frei0r-filter-alphagrad
|
||||||
|
frei0r-filter-alphaspot
|
||||||
|
frei0r-filter-b
|
||||||
|
frei0r-filter-baltan
|
||||||
|
frei0r-filter-bluescreen0r
|
||||||
|
frei0r-filter-brightness
|
||||||
|
frei0r-filter-bw0r
|
||||||
|
frei0r-filter-c0rners
|
||||||
|
frei0r-filter-cartoon
|
||||||
|
frei0r-filter-color-distance
|
||||||
|
frei0r-filter-coloradj-rgb
|
||||||
|
frei0r-filter-contrast0r
|
||||||
|
frei0r-filter-curves
|
||||||
|
frei0r-filter-defish0r
|
||||||
|
frei0r-filter-delay0r
|
||||||
|
frei0r-filter-delaygrab
|
||||||
|
frei0r-filter-distort0r
|
||||||
|
frei0r-filter-edgeglow
|
||||||
|
frei0r-filter-equaliz0r
|
||||||
|
frei0r-filter-facebl0r
|
||||||
|
frei0r-filter-flippo
|
||||||
|
frei0r-filter-g
|
||||||
|
frei0r-filter-gamma
|
||||||
|
frei0r-filter-glow
|
||||||
|
frei0r-filter-hqdn3d
|
||||||
|
frei0r-filter-hueshift0r
|
||||||
|
frei0r-filter-invert0r
|
||||||
|
frei0r-filter-k-means-clustering
|
||||||
|
frei0r-filter-lens-correction
|
||||||
|
frei0r-filter-letterb0xed
|
||||||
|
frei0r-filter-levels
|
||||||
|
frei0r-filter-light-graffiti
|
||||||
|
frei0r-filter-luminance
|
||||||
|
frei0r-filter-mask0mate
|
||||||
|
frei0r-filter-nervous
|
||||||
|
frei0r-filter-nikon-d90-stairstepping-fix
|
||||||
|
frei0r-filter-nosync0r
|
||||||
|
frei0r-filter-opencvfacedetect
|
||||||
|
frei0r-filter-perspective
|
||||||
|
frei0r-filter-pixeliz0r
|
||||||
|
frei0r-filter-pr0be
|
||||||
|
frei0r-filter-pr0file
|
||||||
|
frei0r-filter-primaries
|
||||||
|
frei0r-filter-r
|
||||||
|
frei0r-filter-rgb-parade
|
||||||
|
frei0r-filter-saturat0r
|
||||||
|
frei0r-filter-scale0tilt
|
||||||
|
frei0r-filter-scanline0r
|
||||||
|
frei0r-filter-select0r
|
||||||
|
frei0r-filter-sharpness
|
||||||
|
frei0r-filter-sobel
|
||||||
|
frei0r-filter-sop-sat
|
||||||
|
frei0r-filter-squareblur
|
||||||
|
frei0r-filter-tehroxx0r
|
||||||
|
frei0r-filter-threelay0r
|
||||||
|
frei0r-filter-threshold0r
|
||||||
|
frei0r-filter-tint0r
|
||||||
|
frei0r-filter-transparency
|
||||||
|
frei0r-filter-twolay0r
|
||||||
|
frei0r-filter-vectorscope
|
||||||
|
frei0r-filter-vertigo
|
||||||
|
frei0r-filter-white-balance
|
||||||
GstVideoFilter2
|
GstVideoFilter2
|
||||||
GstSceneChange
|
GstSceneChange
|
||||||
GstZebraStripe
|
GstZebraStripe
|
||||||
GstVideoMaxRate
|
GstVideoMaxRate
|
||||||
GstBaseVideoCodec
|
GstBaseVideoCodec
|
||||||
GstBaseVideoDecoder
|
GstBaseVideoDecoder
|
||||||
GstSchroDec
|
GstVP8Dec
|
||||||
GstBaseVideoEncoder
|
GstBaseVideoEncoder
|
||||||
GstDiracEnc
|
GstVP8Enc
|
||||||
GstSchroEnc
|
|
||||||
GstBin
|
GstBin
|
||||||
DvbBaseBin
|
DvbBaseBin
|
||||||
GstAutoConvert
|
GstAutoConvert
|
||||||
GstAutoVideoConvert
|
GstAutoVideoConvert
|
||||||
GstBaseCameraSrc
|
|
||||||
GstWrapperCameraBinSrc
|
|
||||||
GstFPSDisplaySink
|
GstFPSDisplaySink
|
||||||
GstFaceOverlay
|
GstFaceOverlay
|
||||||
|
GstGSettingsSwitchSink
|
||||||
|
GstGSettingsAudioSink
|
||||||
|
GstGSettingsVideoSink
|
||||||
|
GstGSettingsSwitchSrc
|
||||||
|
GstGSettingsAudioSrc
|
||||||
|
GstGSettingsVideoSrc
|
||||||
GstPipeline
|
GstPipeline
|
||||||
GstCameraBin
|
GstCameraBin
|
||||||
GstCameraBin2
|
|
||||||
GstSDPDemux
|
GstSDPDemux
|
||||||
GstViewfinderBin
|
|
||||||
RsnDvdBin
|
RsnDvdBin
|
||||||
GstBz2dec
|
GstBz2dec
|
||||||
GstBz2enc
|
GstBz2enc
|
||||||
|
@ -154,26 +224,20 @@ GObject
|
||||||
GstDVDSpu
|
GstDVDSpu
|
||||||
GstDecklinkSink
|
GstDecklinkSink
|
||||||
GstDecklinkSrc
|
GstDecklinkSrc
|
||||||
GstDtsDec
|
GstFaac
|
||||||
GstFaad
|
GstFaad
|
||||||
GstFestival
|
GstFestival
|
||||||
GstFieldAnalysis
|
GstFieldAnalysis
|
||||||
GstFreeze
|
GstFreeze
|
||||||
GstGSMDec
|
|
||||||
GstGSMEnc
|
|
||||||
GstGmeDec
|
|
||||||
GstHLSDemux
|
GstHLSDemux
|
||||||
GstId3BaseMux
|
GstId3BaseMux
|
||||||
GstId3Mux
|
GstId3Mux
|
||||||
GstInterlace
|
GstInterlace
|
||||||
|
GstInvtelecine
|
||||||
GstIvfParse
|
GstIvfParse
|
||||||
GstJP2kDecimator
|
GstJP2kDecimator
|
||||||
GstJifMux
|
GstJifMux
|
||||||
GstJpegParse
|
GstJpegParse
|
||||||
GstKateDec
|
|
||||||
GstKateEnc
|
|
||||||
GstKateParse
|
|
||||||
GstKateTag
|
|
||||||
GstLegacyH264Parse
|
GstLegacyH264Parse
|
||||||
GstLiveAdder
|
GstLiveAdder
|
||||||
GstMSE
|
GstMSE
|
||||||
|
@ -181,16 +245,13 @@ GObject
|
||||||
GstMXFMux
|
GstMXFMux
|
||||||
GstMimDec
|
GstMimDec
|
||||||
GstMimEnc
|
GstMimEnc
|
||||||
GstModPlug
|
|
||||||
GstMpegPSDemux
|
GstMpegPSDemux
|
||||||
GstMpegTSDemux
|
GstMpegTSDemux
|
||||||
GstMusepackDec
|
|
||||||
GstMveDemux
|
GstMveDemux
|
||||||
GstMveMux
|
GstMveMux
|
||||||
GstNsfDec
|
GstNsfDec
|
||||||
GstNuvDemux
|
GstNuvDemux
|
||||||
GstPcapParse
|
GstPcapParse
|
||||||
GstPitch
|
|
||||||
GstPnmdec
|
GstPnmdec
|
||||||
GstPnmenc
|
GstPnmenc
|
||||||
GstRTPMux
|
GstRTPMux
|
||||||
|
@ -200,34 +261,20 @@ GObject
|
||||||
GstVideoParse
|
GstVideoParse
|
||||||
GstRealAudioDec
|
GstRealAudioDec
|
||||||
GstRealVideoDec
|
GstRealVideoDec
|
||||||
GstRsvgDec
|
|
||||||
GstSSim
|
GstSSim
|
||||||
GstSdiDemux
|
GstSdiDemux
|
||||||
GstSdiMux
|
GstSdiMux
|
||||||
GstSegmentClip
|
GstSegmentClip
|
||||||
GstAudioSegmentClip
|
GstAudioSegmentClip
|
||||||
GstVideoSegmentClip
|
GstVideoSegmentClip
|
||||||
GstSignalProcessor
|
|
||||||
ladspa-amp-mono
|
|
||||||
ladspa-amp-stereo
|
|
||||||
ladspa-delay-5s
|
|
||||||
ladspa-hpf
|
|
||||||
ladspa-lpf
|
|
||||||
ladspa-noise-white
|
|
||||||
ladspa-sine-faaa
|
|
||||||
ladspa-sine-faac
|
|
||||||
ladspa-sine-fcaa
|
|
||||||
ladspa-sine-fcac
|
|
||||||
GstSirenDec
|
GstSirenDec
|
||||||
GstSirenEnc
|
GstSirenEnc
|
||||||
GstSpeed
|
GstSpeed
|
||||||
GstSrtEnc
|
GstSrtEnc
|
||||||
GstTRM
|
|
||||||
GstTtaDec
|
GstTtaDec
|
||||||
GstTtaParse
|
GstTtaParse
|
||||||
GstVMncDec
|
GstVMncDec
|
||||||
GstVcdParse
|
GstVcdParse
|
||||||
GstWildmidi
|
|
||||||
GstY4mDec
|
GstY4mDec
|
||||||
MpegPsMux
|
MpegPsMux
|
||||||
MpegTSBase
|
MpegTSBase
|
||||||
|
@ -236,9 +283,39 @@ GObject
|
||||||
MpegTSParse
|
MpegTSParse
|
||||||
MpegTsMux
|
MpegTsMux
|
||||||
MpegVideoParse
|
MpegVideoParse
|
||||||
|
frei0r-mixer-addition
|
||||||
|
frei0r-mixer-addition-alpha
|
||||||
|
frei0r-mixer-alpha-injection
|
||||||
|
frei0r-mixer-alphaatop
|
||||||
|
frei0r-mixer-alphain
|
||||||
|
frei0r-mixer-alphaout
|
||||||
|
frei0r-mixer-alphaover
|
||||||
|
frei0r-mixer-alphaxor
|
||||||
|
frei0r-mixer-blend
|
||||||
|
frei0r-mixer-burn
|
||||||
|
frei0r-mixer-color-only
|
||||||
|
frei0r-mixer-composition
|
||||||
|
frei0r-mixer-darken
|
||||||
|
frei0r-mixer-difference
|
||||||
|
frei0r-mixer-divide
|
||||||
|
frei0r-mixer-dodge
|
||||||
|
frei0r-mixer-grain-extract
|
||||||
|
frei0r-mixer-grain-merge
|
||||||
|
frei0r-mixer-hardlight
|
||||||
|
frei0r-mixer-hue
|
||||||
|
frei0r-mixer-lighten
|
||||||
|
frei0r-mixer-multiply
|
||||||
|
frei0r-mixer-overlay
|
||||||
|
frei0r-mixer-rgb
|
||||||
|
frei0r-mixer-saturation
|
||||||
|
frei0r-mixer-screen
|
||||||
|
frei0r-mixer-softlight
|
||||||
|
frei0r-mixer-subtract
|
||||||
|
frei0r-mixer-uv-map
|
||||||
|
frei0r-mixer-value
|
||||||
|
frei0r-mixer-xfade0r
|
||||||
GstPad
|
GstPad
|
||||||
GstPadTemplate
|
GstPadTemplate
|
||||||
GstSignalProcessorPadTemplate
|
|
||||||
GstPlugin
|
GstPlugin
|
||||||
GstPluginFeature
|
GstPluginFeature
|
||||||
GstElementFactory
|
GstElementFactory
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
* Includes
|
* Includes
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* save the snapshot images
|
/* save the snapshot images
|
||||||
|
@ -300,8 +300,6 @@ img_capture_done (GstElement * camera, GString * fname, gpointer user_data)
|
||||||
GstClockTime max = 0;
|
GstClockTime max = 0;
|
||||||
GstClockTime min = -1;
|
GstClockTime min = -1;
|
||||||
GstClockTime total = 0;
|
GstClockTime total = 0;
|
||||||
GstClockTime first_shot = 0;
|
|
||||||
GstClockTime snd_shot = 0;
|
|
||||||
|
|
||||||
num_pics_cont = 0;
|
num_pics_cont = 0;
|
||||||
signal_cont = FALSE;
|
signal_cont = FALSE;
|
||||||
|
@ -309,13 +307,11 @@ img_capture_done (GstElement * camera, GString * fname, gpointer user_data)
|
||||||
DIFF_TIME (t_final[0], t_initial, diff);
|
DIFF_TIME (t_final[0], t_initial, diff);
|
||||||
max < diff ? max = diff : max;
|
max < diff ? max = diff : max;
|
||||||
min > diff ? min = diff : min;
|
min > diff ? min = diff : min;
|
||||||
first_shot = diff;
|
|
||||||
total += diff;
|
total += diff;
|
||||||
|
|
||||||
DIFF_TIME (t_final[1], t_final[0], diff);
|
DIFF_TIME (t_final[1], t_final[0], diff);
|
||||||
max < diff ? max = diff : max;
|
max < diff ? max = diff : max;
|
||||||
min > diff ? min = diff : min;
|
min > diff ? min = diff : min;
|
||||||
snd_shot = diff;
|
|
||||||
total += diff;
|
total += diff;
|
||||||
|
|
||||||
for (i = 2; i < CONT_SHOTS; ++i) {
|
for (i = 2; i < CONT_SHOTS; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue