Merge pull request #4 from DonDiego/qsv

more style issues
merge and fix for while loop change
static for helper functions
755 fix
visibility change
newline
 uncrustify applied
fix for structures
removed declaration
Revert " uncrustify applied"

This reverts commit 71f3d527f4e7ae96ca959eb45958367c03531dea.
Reorder functions definitions to appear before call instances.
Reorder functions definitions to appear before call instances some more.
Drop some unnecessary ().
Eliminate some pointer dereferences through use of intermediate variables.
Avoid an unnecessary cast.
Replace AV_QSV_CHECK_RESULT with simple error checks.
Remove AV_QSV_PRINT_RET_MSG macro.