您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ CHECK_DISPLAY函数代码示例

51自学网 2021-06-01 20:00:36
  C++
这篇教程C++ CHECK_DISPLAY函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中CHECK_DISPLAY函数的典型用法代码示例。如果您正苦于以下问题:C++ CHECK_DISPLAY函数的具体用法?C++ CHECK_DISPLAY怎么用?C++ CHECK_DISPLAY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了CHECK_DISPLAY函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: vaTerminate

/* * After this call, all library internal resources will be cleaned up */VAStatus vaTerminate (    VADisplay dpy){  VAStatus vaStatus = VA_STATUS_SUCCESS;  VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;  VADriverContextP old_ctx;  CHECK_DISPLAY(dpy);  old_ctx = CTX(dpy);  if (old_ctx->handle) {      vaStatus = old_ctx->vtable->vaTerminate(old_ctx);//      dlclose(old_ctx->handle);      old_ctx->handle = NULL;  }  free(old_ctx->vtable);  old_ctx->vtable = NULL;  free(old_ctx->vtable_vpp);  old_ctx->vtable_vpp = NULL;  VA_TRACE_LOG(va_TraceTerminate, dpy);  va_TraceEnd(dpy);  va_FoolEnd(dpy);  if (VA_STATUS_SUCCESS == vaStatus)      pDisplayContext->vaDestroy(pDisplayContext);  return vaStatus;}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:35,


示例2: vaPutSurfaceBuf

VAStatus vaPutSurfaceBuf (    VADisplay dpy,    VASurfaceID surface,    unsigned char* data,    int* data_len,    short srcx,    short srcy,    unsigned short srcw,    unsigned short srch,    short destx,    short desty,    unsigned short destw,    unsigned short desth,    VARectangle *cliprects, /* client supplied clip list */    unsigned int number_cliprects, /* number of clip rects in the clip list */    unsigned int flags /* de-interlacing flags */){  VADriverContextP ctx;  struct VADriverVTableTPI *tpi;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);    tpi = ( struct VADriverVTableTPI *)ctx->vtable_tpi;  if (tpi && tpi->vaPutSurfaceBuf) {      return tpi->vaPutSurfaceBuf( ctx, surface, data, data_len, srcx, srcy, srcw, srch,                                  destx, desty, destw, desth, cliprects, number_cliprects, flags );  } else      return VA_STATUS_ERROR_UNIMPLEMENTED;}
开发者ID:K900-MM,项目名称:android_hardware_intel,代码行数:30,


示例3: vaCreateContext

VAStatus vaCreateContext (    VADisplay dpy,    VAConfigID config_id,    int picture_width,    int picture_height,    int flag,    VASurfaceID *render_targets,    int num_render_targets,    VAContextID *context		/* out */){  VADriverContextP ctx;  VAStatus vaStatus;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  vaStatus = ctx->vtable->vaCreateContext( ctx, config_id, picture_width, picture_height,                                      flag, render_targets, num_render_targets, context );  /* keep current encode/decode resoluton */  VA_TRACE_ALL(va_TraceCreateContext, dpy, config_id, picture_width, picture_height, flag, render_targets, num_render_targets, context);  return vaStatus;}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:25,


示例4: vaCreateBuffer

VAStatus vaCreateBuffer (    VADisplay dpy,    VAContextID context,	/* in */    VABufferType type,		/* in */    unsigned int size,		/* in */    unsigned int num_elements,	/* in */    void *data,			/* in */    VABufferID *buf_id		/* out */){  VADriverContextP ctx;  VAStatus vaStatus;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  VA_FOOL_FUNC(va_FoolCreateBuffer, dpy, context, type, size, num_elements, data, buf_id);  vaStatus = ctx->vtable->vaCreateBuffer( ctx, context, type, size, num_elements, data, buf_id);  VA_TRACE_LOG(va_TraceCreateBuffer,               dpy, context, type, size, num_elements, data, buf_id);  return vaStatus;}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:25,


示例5: vaCreateSurfaces

VAStatusvaCreateSurfaces(    VADisplay           dpy,    unsigned int        format,    unsigned int        width,    unsigned int        height,    VASurfaceID        *surfaces,    unsigned int        num_surfaces,    VASurfaceAttrib    *attrib_list,    unsigned int        num_attribs){    VADriverContextP ctx;    VAStatus vaStatus;    CHECK_DISPLAY(dpy);    ctx = CTX(dpy);    if (!ctx)        return VA_STATUS_ERROR_INVALID_DISPLAY;    if (ctx->vtable->vaCreateSurfaces2)        vaStatus = ctx->vtable->vaCreateSurfaces2(ctx, format, width, height,                                              surfaces, num_surfaces,                                              attrib_list, num_attribs);    else if (attrib_list && num_attribs > 0)        vaStatus = VA_STATUS_ERROR_ATTR_NOT_SUPPORTED;    else        vaStatus = ctx->vtable->vaCreateSurfaces(ctx, width, height, format,                                                 num_surfaces, surfaces);    VA_TRACE_LOG(va_TraceCreateSurfaces,                 dpy, width, height, format, num_surfaces, surfaces,                 attrib_list, num_attribs);    return vaStatus;}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:35,


示例6: rectangles

/*  vaAssociateSubpicture associates the subpicture with the target_surface.  It defines the region mapping between the subpicture and the target  surface through source and destination rectangles (with the same width and height).  Both will be displayed at the next call to vaPutSurface.  Additional  associations before the call to vaPutSurface simply overrides the association.*/VAStatus vaAssociateSubpicture (    VADisplay dpy,    VASubpictureID subpicture,    VASurfaceID *target_surfaces,    int num_surfaces,    short src_x, /* upper left offset in subpicture */    short src_y,    unsigned short src_width,    unsigned short src_height,    short dest_x, /* upper left offset in surface */    short dest_y,    unsigned short dest_width,    unsigned short dest_height,    /*     * whether to enable chroma-keying or global-alpha     * see VA_SUBPICTURE_XXX values     */    unsigned int flags){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaAssociateSubpicture ( ctx, subpicture, target_surfaces, num_surfaces, src_x, src_y, src_width, src_height, dest_x, dest_y, dest_width, dest_height, flags );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:33,


示例7: vaQuerySurfaceAttributes

VAStatusvaQuerySurfaceAttributes(    VADisplay           dpy,    VAConfigID          config,    VASurfaceAttrib    *attrib_list,    unsigned int       *num_attribs){    VADriverContextP ctx;    VAStatus vaStatus;    CHECK_DISPLAY(dpy);    ctx = CTX(dpy);    if (!ctx)        return VA_STATUS_ERROR_INVALID_DISPLAY;    if (!ctx->vtable->vaQuerySurfaceAttributes)        vaStatus = va_impl_query_surface_attributes(ctx, config,                                                    attrib_list, num_attribs);    else        vaStatus = ctx->vtable->vaQuerySurfaceAttributes(ctx, config,                                                         attrib_list, num_attribs);    VA_TRACE_LOG(va_TraceQuerySurfaceAttributes, dpy, config, attrib_list, num_attribs);    return vaStatus;}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:27,


示例8: vaUnlockSurface

VAStatus vaUnlockSurface(VADisplay dpy,    VASurfaceID surface){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaUnlockSurface( ctx, surface );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:10,


示例9: vaDestroyContext

VAStatus vaDestroyContext (    VADisplay dpy,    VAContextID context){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaDestroyContext( ctx, context );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:11,


示例10: vaDestroySubpicture

/* * Destroy the subpicture before destroying the image it is assocated to */VAStatus vaDestroySubpicture (    VADisplay dpy,    VASubpictureID subpicture){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaDestroySubpicture ( ctx, subpicture);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:14,


示例11: vaDestroyImage

/* * Should call DestroyImage before destroying the surface it is bound to */VAStatus vaDestroyImage (    VADisplay dpy,    VAImageID image){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaDestroyImage ( ctx, image);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:14,


示例12: vaReleaseBufferHandle

/* Unlocks buffer after usage from external API */VAStatusvaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id){    VADriverContextP ctx;    CHECK_DISPLAY(dpy);    ctx = CTX(dpy);    if (!ctx->vtable->vaReleaseBufferHandle)        return VA_STATUS_ERROR_UNIMPLEMENTED;    return ctx->vtable->vaReleaseBufferHandle(ctx, buf_id);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:13,


示例13: vaSetSubpictureImage

VAStatus vaSetSubpictureImage (    VADisplay dpy,    VASubpictureID subpicture,    VAImageID image){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaSetSubpictureImage ( ctx, subpicture, image);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:12,


示例14: vaCreateSubpicture

/* * Subpictures are created with an image associated. */VAStatus vaCreateSubpicture (    VADisplay dpy,    VAImageID image,    VASubpictureID *subpicture	/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaCreateSubpicture ( ctx, image, subpicture );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:15,


示例15: vaDeriveImage

/* * Derive an VAImage from an existing surface. * This interface will derive a VAImage and corresponding image buffer from * an existing VA Surface. The image buffer can then be mapped/unmapped for * direct CPU access. This operation is only possible on implementations with * direct rendering capabilities and internal surface formats that can be * represented with a VAImage. When the operation is not possible this interface * will return VA_STATUS_ERROR_OPERATION_FAILED. Clients should then fall back * to using vaCreateImage + vaPutImage to accomplish the same task in an * indirect manner. * * Implementations should only return success when the resulting image buffer * would be useable with vaMap/Unmap. * * When directly accessing a surface special care must be taken to insure * proper synchronization with the graphics hardware. Clients should call * vaQuerySurfaceStatus to insure that a surface is not the target of concurrent * rendering or currently being displayed by an overlay. * * Additionally nothing about the contents of a surface should be assumed * following a vaPutSurface. Implementations are free to modify the surface for * scaling or subpicture blending within a call to vaPutImage. * * Calls to vaPutImage or vaGetImage using the same surface from which the image * has been derived will return VA_STATUS_ERROR_SURFACE_BUSY. vaPutImage or * vaGetImage with other surfaces is supported. * * An image created with vaDeriveImage should be freed with vaDestroyImage. The * image and image buffer structures will be destroyed; however, the underlying * surface will remain unchanged until freed with vaDestroySurfaces. */VAStatus vaDeriveImage (    VADisplay dpy,    VASurfaceID surface,    VAImage *image	/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaDeriveImage ( ctx, surface, image );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:43,


示例16: vaSetImagePalette

VAStatus vaSetImagePalette (    VADisplay dpy,    VAImageID image,    unsigned char *palette){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaSetImagePalette ( ctx, image, palette);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:12,


示例17: vaQueryConfigProfiles

VAStatus vaQueryConfigProfiles (    VADisplay dpy,    VAProfile *profile_list,	/* out */    int *num_profiles		/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaQueryConfigProfiles ( ctx, profile_list, num_profiles );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:12,


示例18: vaSetSubpictureGlobalAlpha

/* * Global alpha value is between 0 and 1. A value of 1 means fully opaque and * a value of 0 means fully transparent. If per-pixel alpha is also specified then * the overall alpha is per-pixel alpha multiplied by the global alpha */VAStatus vaSetSubpictureGlobalAlpha (    VADisplay dpy,    VASubpictureID subpicture,    float global_alpha){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaSetSubpictureGlobalAlpha ( ctx, subpicture, global_alpha );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:17,


示例19: vaQueryImageFormats

VAStatus vaQueryImageFormats (    VADisplay dpy,    VAImageFormat *format_list,	/* out */    int *num_formats		/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaQueryImageFormats ( ctx, format_list, num_formats);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:12,


示例20: vaDeassociateSubpicture

/* * vaDeassociateSubpicture removes the association of the subpicture with target_surfaces. */VAStatus vaDeassociateSubpicture (    VADisplay dpy,    VASubpictureID subpicture,    VASurfaceID *target_surfaces,    int num_surfaces){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaDeassociateSubpicture ( ctx, subpicture, target_surfaces, num_surfaces );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:16,


示例21: vaQueryConfigEntrypoints

VAStatus vaQueryConfigEntrypoints (    VADisplay dpy,    VAProfile profile,    VAEntrypoint *entrypoints,	/* out */    int *num_entrypoints	/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaQueryConfigEntrypoints ( ctx, profile, entrypoints, num_entrypoints);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:13,


示例22: vaUnmapBuffer

VAStatus vaUnmapBuffer (    VADisplay dpy,    VABufferID buf_id	/* in */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  VA_FOOL_FUNC(va_FoolCheckContinuity, dpy);  return ctx->vtable->vaUnmapBuffer( ctx, buf_id );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:13,


示例23: vaInitialize

VAStatus vaInitialize (    VADisplay dpy,    int *major_version,	 /* out */    int *minor_version 	 /* out */){    const char *driver_name_env = NULL;    char *driver_name = NULL;    VAStatus vaStatus;    CHECK_DISPLAY(dpy);    va_TraceInit(dpy);    va_FoolInit(dpy);    va_infoMessage("VA-API version %s/n", VA_VERSION_S);    vaStatus = va_getDriverName(dpy, &driver_name);    va_infoMessage("va_getDriverName() returns %d/n", vaStatus);    driver_name_env = getenv("LIBVA_DRIVER_NAME");    if ((VA_STATUS_SUCCESS == vaStatus) &&        driver_name_env && (geteuid() == getuid())) {        /* Don't allow setuid apps to use LIBVA_DRIVER_NAME */        if (driver_name) /* memory is allocated in va_getDriverName */            free(driver_name);        driver_name = strdup(driver_name_env);        vaStatus = VA_STATUS_SUCCESS;        va_infoMessage("User requested driver '%s'/n", driver_name);    }    if ((VA_STATUS_SUCCESS == vaStatus) && (driver_name != NULL)) {        vaStatus = va_openDriver(dpy, driver_name);        va_infoMessage("va_openDriver() returns %d/n", vaStatus);        *major_version = VA_MAJOR_VERSION;        *minor_version = VA_MINOR_VERSION;    } else        va_errorMessage("va_getDriverName() failed with %s,driver_name=%s/n",                        vaErrorStr(vaStatus), driver_name);    if (driver_name)        free(driver_name);    VA_TRACE_LOG(va_TraceInitialize, dpy, major_version, minor_version);    return vaStatus;}
开发者ID:jetlive,项目名称:v4l_avc,代码行数:50,


示例24: vaSetSubpictureChromakey

/* * If chromakey is enabled, then the area where the source value falls within * the chromakey [min, max] range is transparent */VAStatus vaSetSubpictureChromakey (    VADisplay dpy,    VASubpictureID subpicture,    unsigned int chromakey_min,    unsigned int chromakey_max,    unsigned int chromakey_mask){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaSetSubpictureChromakey ( ctx, subpicture, chromakey_min, chromakey_max, chromakey_mask );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:18,


示例25: vaBufferSetNumElements

VAStatus vaBufferSetNumElements (    VADisplay dpy,    VABufferID buf_id,	/* in */    unsigned int num_elements /* in */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  VA_FOOL_FUNC(va_FoolCheckContinuity, dpy);  return ctx->vtable->vaBufferSetNumElements( ctx, buf_id, num_elements );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:14,


示例26: vaCreateImage

/* * The width and height fields returned in the VAImage structure may get * enlarged for some YUV formats. The size of the data buffer that needs * to be allocated will be given in the "data_size" field in VAImage. * Image data is not allocated by this function.  The client should * allocate the memory and fill in the VAImage structure's data field * after looking at "data_size" returned from the library. */VAStatus vaCreateImage (    VADisplay dpy,    VAImageFormat *format,    int width,    int height,    VAImage *image	/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaCreateImage ( ctx, format, width, height, image);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:22,


示例27: vaGetConfigAttributes

VAStatus vaGetConfigAttributes (    VADisplay dpy,    VAProfile profile,    VAEntrypoint entrypoint,    VAConfigAttrib *attrib_list, /* in/out */    int num_attribs){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaGetConfigAttributes ( ctx, profile, entrypoint, attrib_list, num_attribs );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:14,


示例28: vaQueryConfigAttributes

VAStatus vaQueryConfigAttributes (    VADisplay dpy,    VAConfigID config_id,    VAProfile *profile, 	/* out */    VAEntrypoint *entrypoint, 	/* out */    VAConfigAttrib *attrib_list,/* out */    int *num_attribs		/* out */){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  return ctx->vtable->vaQueryConfigAttributes( ctx, config_id, profile, entrypoint, attrib_list, num_attribs);}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:15,


示例29: vaDestroyBuffer

VAStatus vaDestroyBuffer (    VADisplay dpy,    VABufferID buffer_id){  VADriverContextP ctx;  CHECK_DISPLAY(dpy);  ctx = CTX(dpy);  VA_FOOL_FUNC(va_FoolCheckContinuity, dpy);  VA_TRACE_LOG(va_TraceDestroyBuffer,               dpy, buffer_id);  return ctx->vtable->vaDestroyBuffer( ctx, buffer_id );}
开发者ID:ashmew2,项目名称:kolibriosSVN,代码行数:16,



注:本文中的CHECK_DISPLAY函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ CHECK_ENTITY函数代码示例
C++ CHECK_DISPATCH函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。