Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for vaQueryImageFormats and vaCreateImage test #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion videoprocess/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bin_PROGRAMS = vavpp vppscaling_csc vppdenoise vppsharpness vppchromasitting vppblending
bin_PROGRAMS = vavpp vppscaling_csc vppdenoise vppsharpness vppchromasitting vppblending vppcsc_vaCreateImage

AM_CPPFLAGS = \
-Wall \
Expand Down Expand Up @@ -55,6 +55,9 @@ vppchromasitting_LDADD = $(TEST_LIBS)
vppblending_SOURCES = vppblending.cpp
vppblending_LDADD = $(TEST_LIBS)

vppcsc_vaCreateImage_SOURCES = vppcsc_vaCreateImage.cpp
vppcsc_vaCreateImage_LDADD = $(TEST_LIBS)

valgrind:(bin_PROGRAMS)
for a in(bin_PROGRAMS); do \
valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
Expand Down
25 changes: 25 additions & 0 deletions videoprocess/process_csc_vaCreateImage.cfg.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Configuration information for video process test case.
# This application will firstly load yuv frames to one type of surface(NV12/YV12/I420)
# you require. After video processing, the processed content (NV12/YV12/I420 surface)
# will be stored to frames(yv12 format in file).
# Supported features include scaling and implicit format conversion(NV12<->YV12<->I420).
# you can modify this configuration file to set the corresponding parameters.

#1.vaQueryImageFormats List, for differenct platform, please use the recommend list, if failed, mean the list has changed by driver,
# and we need update the sample and this list.
#gen9 list
SUPPORT_FORMAT_LIST:BGRA;ARGB;RGBA;ABGR;BGRX;XRGB;RGBX;XBGR;RGBP;BGRP;RG16;AYUV;Y800;NV12;NV21;YUY2;UYVY;YV12;I420;411P;422H;422V;444P;IMC3;P010;AR30;AB30;
#gen11 list
#SUPPORT_FORMAT_LIST:BGRA;ARGB;RGBA;ABGR;BGRX;XRGB;RGBX;XBGR;RGBP;BGRP;RG16;AYUV;Y800;NV12;NV21;YUY2;UYVY;YV12;I420;411P;422H;422V;444P;IMC3;P010;AR30;AB30;Y210;Y410;

#2.Source YUV(RGB) file information
SRC_FILE_NAME: ./foreman_10f_640x480.nv12
SRC_FRAME_WIDTH: 640
SRC_FRAME_HEIGHT: 480
SRC_FRAME_FORMAT: NV12

DST_FILE_NAME: ./result_content/foreman_10f_640x480.ayuv
DST_FRAME_FORMAT: AYUV

#if the value set to 1, will do csc for all format, if to 0, only do csc with DST_FRAME_FORMAT
FULL_FORMAT_TEST: 1
Loading