intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

compile: Fix deprecated warnings for libva2.0 #785

Closed YuJiankang closed 6 years ago

YuJiankang commented 6 years ago

Fix deprecated warnings for libva2.0 Signed-off-by: jkyu jiankang.yu@intel.com

xuguangxin commented 6 years ago

could you add some comments, why we need change this lines.

uartie commented 6 years ago

Also, please fix deprecated errors in libyami/vaapi compilation. I still get these errors with this patch:

vaapicontext.cpp:48:111: error: ‘VAProfileH264Baseline’ is deprecated [-Werror=deprecated-declarations]
         if (profile == VAProfileH264ConstrainedBaseline && std::count(profileList.begin(), profileList.end(), VAProfileH264Baseline))
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~
In file included from ../vaapi/vaapicontext.h:23:0,
                 from vaapicontext.cpp:21:
/home/uartie/Work/workspace/media/install/include/va/va.h:327:5: note: declared here
     VAProfileH264Baseline va_deprecated_enum = 5,
     ^~~~~~~~~~~~~~~~~~~~~
vaapicontext.cpp:49:23: error: ‘VAProfileH264Baseline’ is deprecated [-Werror=deprecated-declarations]
             profile = VAProfileH264Baseline;
                       ^~~~~~~~~~~~~~~~~~~~~
In file included from ../vaapi/vaapicontext.h:23:0,
                 from vaapicontext.cpp:21:
/home/uartie/Work/workspace/media/install/include/va/va.h:327:5: note: declared here
     VAProfileH264Baseline va_deprecated_enum = 5,
     ^~~~~~~~~~~~~~~~~~~~~
wudping commented 6 years ago

hi @uartie , @YuJiankang, I have sent out a pull request 786 to fix this issue.

uartie commented 6 years ago

closing this as it is superseded by #786