Giter VIP home page Giter VIP logo

libva-intel-driver's People

Watchers

 avatar  avatar  avatar

Forkers

fritsch

libva-intel-driver's Issues

about rotation of libva-intel-driver

hi Gwenole,
This project supports video-rotation according to reading the code. We can set the rotation-degree with attributiton of VADisplayAttribRotation, such of 90-degree,180-degree or 270-degree.
So I set this attributiton in my project to control real-video image. It doesn't work. I don't know where I make a mistake. Can you give me a tip? My testing code is listed as bellow:

  ...

/****************************************************************/
int i, num_display_attrs, max_display_attrs;
VADisplayAttribute *display_attrs = NULL;
/**
**************************************************************/

pstCtx->va_dpy = vaGetDisplay((void *)(&gx11_display));

va_status = vaInitialize(pstCtx->va_dpy, &major_ver, &minor_ver);
CHECK_VASTATUS(va_status, "vaInitialize");

/*****************************************************************/
max_display_attrs = vaMaxNumDisplayAttributes(pstCtx->va_dpy);
display_attrs = malloc(max_display_attrs * sizeof(display_attrs[0]));
if (!display_attrs)
{
printf("#########################max_display_attrs malloc failed\n");
free(display_attrs);
assert(0);
}

num_display_attrs = 0; /* XXX: workaround old GMA500 bug */
va_status = vaQueryDisplayAttributes(pstCtx->va_dpy, display_attrs, &num_display_attrs);
if (!vaapi_check_status(va_status, "vaQueryDisplayAttributes()"))
{
    printf("#########################vaQueryDisplayAttributes\n");
    free(display_attrs);
    assert(0);
}

 for (i = 0; i < num_display_attrs; i++) {
    VADisplayAttribute * const display_attr = &display_attrs[i];
    printf("   (%s/%s) min %d max %d value 0x%x\n",
          (display_attr->flags & VA_DISPLAY_ATTRIB_GETTABLE) ? "get" : "---",
          (display_attr->flags & VA_DISPLAY_ATTRIB_SETTABLE) ? "set" : "---",
          display_attr->min_value,
          display_attr->max_value,
          display_attr->value);
}

VADisplayAttribute attr;
attr.type  = VADisplayAttribRotation;
attr.value = VA_ROTATION_180;
attr.flags = VA_DISPLAY_ATTRIB_SETTABLE;
va_status = vaSetDisplayAttributes(pstCtx->va_dpy, &attr, 1);
if (!vaapi_check_status(va_status, "vaSetDisplayAttributes()"))
{
    printf("###########################vaSetDisplayAttributes failed\n");
    assert(0);
}
 ...

vdpau-driver

hi Gwenole,
sorry for misuse of this repo but i have to ask a question regarding vaapi-vdpau-driver.
in the official repo i haven't seen any updates for 3 years. did you stopped working on this backend?

reg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.