本文整理汇总了C++中UNUSED_ARG函数的典型用法代码示例。如果您正苦于以下问题:C++ UNUSED_ARG函数的具体用法?C++ UNUSED_ARG怎么用?C++ UNUSED_ARG使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UNUSED_ARG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UNUSED_ARG
// *************************************************
// *************************************************
// CBR
// *************************************************
// *************************************************
uint8_t xvidEncoderCBR::init (uint32_t br, uint32_t fps1000)
{
UNUSED_ARG (fps1000);
return initExtented (br, NULL);
}
示例2: mdlTerminate
static void mdlTerminate(SimStruct *S)
{
UNUSED_ARG(S); /* unused input argument */
}
示例3: UNUSED_ARG
uint8_t h263Header::setFlag(uint32_t frame,uint32_t flags) {
UNUSED_ARG(frame);
UNUSED_ARG(flags);
return 0;
}
示例4: title
int i;
QString title("");
for (i = 1; i < m_dataModel->columnCount(); i++) {
title += m_dataModel->headerData(i, Qt::Horizontal).toString();
if (i != m_dataModel->columnCount() - 1) {
title += ", ";
}
}
setWindowTitle(title);
}
void WatchGeoDataTree::updateView(bool force)
{
UNUSED_ARG(force)
/* TODO */
}
void WatchGeoDataTree::closeView()
{
hide();
deleteLater();
}
void WatchGeoDataTree::newSelection(const QModelIndex & index)
{
if (index.isValid()) {
int dataIdx = index.data(GeoShaderDataModel::IndexRole).toInt();
if (dataIdx >= 0
&& !index.data(GeoShaderDataModel::VertexRole).toBool()) {
示例5: selfn_super_verbose_mode
/**
* @brief Selects super verbose mode on
*
* @param arg not used
*/
static void
selfn_super_verbose_mode(const char *arg)
{
UNUSED_ARG(arg);
sel_verbose_mode = 2;
}
示例6: selfn_show_allocation
/**
* @brief Selects showing allocation settings
*
* @param arg not used
*/
static void selfn_show_allocation(const char *arg)
{
UNUSED_ARG(arg);
sel_show_allocation_config = 1;
}
示例7: UNUSED_ARG
void *netx_new_txbuf(int size)
{
UNUSED_ARG(size);
return malloc(sizeof(UDPPacket));
}
示例8: netx_release_txbuf
/* Called when we are done with our buffer. This is done for ports that
* require the buffer to be freed after a packet is sent. If the stack
* takes care of this itself, this can do nothing;
*/
void netx_release_txbuf(void * pkt)
{
UNUSED_ARG(pkt);
/* delete (UDPPacket*)pkt; */
}
示例9: provided
/** Handler of the progress notifications. Must be overriden in inherited
classes.
The default handler is provided (doing nothing).
@param alg :: Pointer to the algorithm sending the notification. Note that
this can
point to a different object than the argument of a observeZZZ(...) method,
e.g.
an observer can be connected to an AlgorithmProxy instance and receive
notifications from
the corresponding Algorithm type object.
@param p :: Progress reported by the algorithm, 0 <= p <= 1
@param msg :: Optional message string sent by the algorithm
*/
void AlgorithmObserver::progressHandle(const IAlgorithm *alg, double p,
const std::string &msg) {
UNUSED_ARG(alg)
UNUSED_ARG(p)
UNUSED_ARG(msg)
}
/** Handler of the start notifications. Must be overriden in inherited classes.
The default handler is provided (doing nothing).
@param alg :: Shared Pointer to the algorithm sending the notification.
*/
void AlgorithmObserver::startingHandle(IAlgorithm_sptr alg) { UNUSED_ARG(alg) }
/** Handler of the start notifications. Must be overriden in inherited classes.
The default handler is provided (doing nothing).
@param alg :: Pointer to the algorithm sending the notification. Note that
this can
point to a different object than the argument of a observeZZZ(...) method,
示例10: UI_on_key_press
void UI_on_key_press(GtkWidget *widget, GdkEventKey* event, gpointer user_data)
{
UNUSED_ARG(widget);
UNUSED_ARG(user_data);
gboolean shift = FALSE;
gboolean ctrl = FALSE;
gboolean alt = FALSE;
Action action;
//printf("key : %d (%c) \n",event->keyval,event->keyval);
if (event->state & GDK_CONTROL_MASK)
{
ctrl = TRUE;
}
if (event->state & GDK_SHIFT_MASK)
{
shift = TRUE;
}
if(event->state & GDK_MOD1_MASK)
{
alt = TRUE;
}
// ALT+x
//_____________
if(alt)
{
switch(event->keyval)
{
case GDK_l:
case GDK_L: action=ACT_OpenAvi;break;
case GDK_s:
case GDK_S: action=ACT_SaveWork;break;
// repeat Keyboard stuff
case GDK_B:
if(shift)
action=ACT_GotoMarkA;
else
action=ACT_MarkA;
break;
case GDK_E:
if(shift)
action=ACT_GotoMarkB;
else
action=ACT_MarkB;
break;
default:
return;
}
HandleAction(action);
return;
}
action=ACT_DUMMY;
// CTRL+x
//_____________
if(TRUE==ctrl)
{
switch (event->keyval)
{
case GDK_A:
case GDK_a:
action=ACT_AppendAvi;break;
case GDK_c:
case GDK_C: action=ACT_Copy;break;
case GDK_bracketleft:
action = ACT_GotoMarkA;break;
case GDK_bracketright:
action = ACT_GotoMarkB;break;
case GDK_F:
case GDK_f:
action=ACT_VideoParameter;break;
case GDK_G:
case GDK_g:
action=ACT_Goto;break;
case GDK_M:
case GDK_m:
action=ACT_SaveImg;break;
case GDK_O:
case GDK_o:
action=ACT_OpenAvi;break;
case GDK_P:
case GDK_p:
action=ACT_DecoderOption;break;
case GDK_S:
case GDK_s:
action=ACT_SaveAvi;break;
//.........这里部分代码省略.........
示例11: UNUSED_ARG
/// Background is the sum of correlation counts, sum of counts is discarded.
double PoldiResidualCorrelationCore::calculateCorrelationBackground(
double sumOfCorrelationCounts, double sumOfCounts) const {
UNUSED_ARG(sumOfCounts);
return sumOfCorrelationCounts;
}
示例12: UNUSED_ARG
uint8_t ADMVideoStabilize::getFrameNumberNoAlloc(uint32_t frame,
uint32_t *len,
ADMImage *data,
uint32_t *flags)
{
UNUSED_ARG(flags);
uint32_t uvlen;
uint32_t dlen,dflags;
ADMImage *_next;
ADMImage *_previous;
ADMImage *_current;
uvlen= _info.width*_info.height;
*len=uvlen+(uvlen>>1);
if(frame> _info.nb_frames-1) return 0;
_current=vidCache->getImage(frame);
if(!_current) return 0;
data->copyInfo(_current);
if(!frame || (frame==_info.nb_frames-1))
{
data->duplicate(_current);
vidCache->unlockAll();
return 1;
}
_previous=vidCache->getImage(frame-1);
if(!_previous)
{
vidCache->unlockAll();
return 0;
}
_next=vidCache->getImage(frame+1);
if(!_next)
{
vidCache->unlockAll();
return 0;
}
// for u & v , no action -> copy it as is
memcpy(UPLANE(data),UPLANE(_current),uvlen>>2);
memcpy(VPLANE(data),VPLANE(_current),uvlen>>2);
uint8_t *inprev,*innext,*incur,*zout;
inprev=YPLANE(_previous)+1+_info.width;
innext=YPLANE(_next)+1+_info.width;
incur =YPLANE(_current)+1+_info.width;
zout=YPLANE(data)+_info.width+1;
uint8_t *nl,*pl,*nc,*pc;
uint16_t c,coeff;
uint32_t x;
for(uint32_t y= _info.height-1;y>1;y--)
{
nl=incur+_info.width;
pl=incur-_info.width;
nc=incur+1;
pc=incur-1;
for(x= _info.width-1;x>1;x--)
{
c=*incur*4;;
coeff=4;
#define PONDERATE(x,p) if(distMatrix[*incur][x]<*_param) \
{ c+=x;coeff++;}
PONDERATE(*innext,1);
PONDERATE(*inprev,1);
PONDERATE(*(pc),1);
PONDERATE(*(nc),1);
PONDERATE(*(nl),1);
PONDERATE(*(pl),1);
//*zout=(uint8_t)floor(0.49+(c/coeff));
ADM_assert(coeff);
ADM_assert(coeff<16);
*zout=(c*fixMul[coeff])>>16;
zout++;
incur++;
innext++;
inprev++;
nl++;pl++;nc++;pc++;
}
zout+=2;
incur+=2;
innext+=2;
inprev+=2;
}
vidCache->unlockAll();
return 1;
}
示例13: UNUSED_ARG
/**
Load or append a file.
The file type is determined automatically and the ad-hoc video decoder is spawned
*/
uint8_t ADM_Composer::addFile (char *name, uint8_t mode)
{
uint8_t ret = 0;
aviInfo info;
WAVHeader * _wavinfo;
// aviHeader * tmp;
fileType type = Unknown_FileType;
UNUSED_ARG(mode);
_haveMarkers=0; // by default no markers are present
ADM_assert (_nb_segment < max_seg);
ADM_assert (_nb_video < MAX_VIDEO);
if (!identify (name, &type))
return 0;
#define OPEN_AS(x,y) case x:\
_videos[_nb_video]._aviheader=new y; \
ret = _videos[_nb_video]._aviheader->open(name); \
break;
switch (type)
{
case VCodec_FileType:
loadVideoCodecConf(name);
return ADM_IGN; // we do it but it wil fail, no problem with that
break;
OPEN_AS (Mp4_FileType, mp4Header);
OPEN_AS (H263_FileType, h263Header);
case ASF_FileType:
_videos[_nb_video]._aviheader=new asfHeader;
ret = _videos[_nb_video]._aviheader->open(name);
if(!ret)
{
delete _videos[_nb_video]._aviheader;;
printf("Trying mpeg\n");
goto thisIsMpeg;
}
break;
OPEN_AS (NewMpeg_FileType,dmxHeader);
// For AVI we first try top open it as openDML
case AVI_FileType:
_videos[_nb_video]._aviheader=new OpenDMLHeader;
ret = _videos[_nb_video]._aviheader->open(name);
break;
case Nuppel_FileType:
{ // look if the idx exists
char *tmpname = (char*)ADM_alloc(strlen(name)+strlen(".idx")+1);
ADM_assert(tmpname);
sprintf(tmpname,"%s.idx",name);
if(addFile(tmpname))
{
return 1; // Memleak ?
}
ADM_dealloc(tmpname);
// open .nuv file
_videos[_nb_video]._aviheader=new nuvHeader;
ret = _videos[_nb_video]._aviheader->open(name);
// we store the native .nuv file in the edl
// the next load of the edl will open .idx instead
break;
}
OPEN_AS (BMP_FileType, picHeader);
OPEN_AS (Matroska_FileType, mkvHeader);
OPEN_AS (AvsProxy_FileType, avsHeader);
OPEN_AS (_3GPP_FileType, _3GPHeader);
OPEN_AS (Ogg_FileType, oggHeader);
case Mpeg_FileType:
thisIsMpeg:
// look if the idx exists
char tmpname[256];
ADM_assert(strlen(name)+5<256);;
strcpy(tmpname,name);
strcat(tmpname,".idx");
if(ADM_fileExist(tmpname))
{
return addFile(tmpname);
}
/* check for "Read-only file system" */
{
int fd = open(tmpname,O_CREAT|O_EXCL|O_WRONLY,S_IRUSR|S_IWUSR);
if( fd >= 0 )
{
close(fd);
unlink(tmpname);
printf("Filesystem is writable\n");
}else if( errno == EROFS ){
char *tmpdir = getenv("TMPDIR");
#ifdef CYG_MANGLING
printf("Filesystem is not writable, looking for somewhere else\n");
if( !tmpdir )
//.........这里部分代码省略.........
示例14: UNUSED_ARG
/**
* Restore the window from a string saved by saveToSring method.
* TODO: not implemented.
*/
void TiledWindow::restore(const QStringList& data)
{
UNUSED_ARG(data);
}
示例15: selfn_reset_cat
/**
* @brief Sets CAT reset flag
*
* @param arg not used
*/
static void selfn_reset_cat(const char *arg)
{
UNUSED_ARG(arg);
sel_reset_CAT = 1;
}