test/createbuffer: fix bugs in createbuffer tests

vaCreateBuffer needs the sizeof the actual buffer
data structure associated with the buffer type, which
could be profile specific.

Previous test logic was passing the sizeof the
buffer "type" enum, which is wrong.

Fix the tests so that the correct buffer size is
calculated based on profile specific buffer types.

Several buffer types were removed from the previous test
parameters since their size may be application specific,
arbitrary, and/or require additional setup beyond the
capabilities of the current buffer test cases.  These
rules will need to be fleshed-out and tests for them
added later on.

Fixes #89

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
3 files changed
tree: fefb81cf320688183e43e1644fe76fca76ad9ffb
  1. common/
  2. decode/
  3. encode/
  4. putsurface/
  5. test/
  6. vainfo/
  7. videoprocess/
  8. .travis.yml
  9. Android.mk
  10. autogen.sh
  11. configure.ac
  12. CONTRIBUTING.md
  13. COPYING
  14. INSTALL
  15. Makefile.am
  16. NEWS
  17. README.md
README.md

Stories in Ready Build Status Coverity Scan Build Status

#Libva-utils Project

libva-utils is a collection of utilities and examples to exercise VA-API in accordance with the libva project. --enable-tests (default = no) provides a suite of unit-tests based on Google Test Framework. A driver implementation is necessary to properly operate.

VA-API is an open-source library and API specification, which provides access to graphics hardware acceleration capabilities for video processing. It consists of a main library and driver-specific acceleration backends for each supported hardware vendor.

If you would like to contribute to libva, check our Contributing guide.

We also recommend taking a look at the ‘janitorial’ bugs in our list of open issues as these bugs can be solved without an extensive knowledge of libva-utils.

We would love to help you start contributing!

The libva-utils development team can be reached via our mailing list and on IRC in channel ##intel-media on Freenode.

We also use #Slack and host VAAPI Media Slack Team. You can signup by submitting your email address to our Slack Team invite page.

Slack complements our other means of communication. Pick the one that works best for you!