Skip to content

Commit 9e4d199

Browse files
huige0901intel-mediadev
authored andcommitted
[Encode] DDI Caps Open Source for VP9/JPEG
Caps open source
1 parent aa709dd commit 9e4d199

File tree

9 files changed

+515
-2
lines changed

9 files changed

+515
-2
lines changed

media_softlet/linux/xe3p_lpm_r0/ddi/capstable_data_xe3p_lpm_r0_specific.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
#if defined(_AV1_ENCODE_VDENC_SUPPORTED)
3939
#include "capstable_data_av1_encode_xe3p_lpm_r0_specific.h"
4040
#endif
41+
#endif
4142
#if defined(_VP9_ENCODE_VDENC_SUPPORTED)
4243
#include "capstable_data_vp9_encode_xe3p_lpm_r0_specific.h"
4344
#endif
4445
#if defined(_JPEG_ENCODE_SUPPORTED)
4546
#include "capstable_data_jpeg_encode_xe3p_lpm_r0_specific.h"
4647
#endif
47-
#endif
4848
#if defined(_HEVC_DECODE_SUPPORTED)
4949
#include "capstable_data_hevc_decode_xe3p_lpm_r0_specific.h"
5050
#endif
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* Copyright (c) 2025, Intel Corporation
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files (the "Software"),
6+
* to deal in the Software without restriction, including without limitation
7+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
* and/or sell copies of the Software, and to permit persons to whom the
9+
* Software is furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included
11+
* in all copies or substantial portions of the Software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19+
* OTHER DEALINGS IN THE SOFTWARE.
20+
*/
21+
//!
22+
//! \file capstable_data_jpeg_encode_xe3p_lpm_r0_specific.h
23+
//! \brief This file register all caps data
24+
//!
25+
26+
#ifndef __CAPSTABLE_DATA_JPEG_ENCODE_XE3P_LPM_R0_SPECIFIC_H__
27+
#define __CAPSTABLE_DATA_JPEG_ENCODE_XE3P_LPM_R0_SPECIFIC_H__
28+
29+
#include "capstable_data_xe3p_lpm_r0_specific.h"
30+
31+
//! \brief Definition for ConfigDataList
32+
static const ConfigDataList configDataList_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0 =
33+
{
34+
{VA_RC_NONE, 0},
35+
};
36+
37+
//!
38+
//! \brief Definition for AttribList
39+
//!
40+
static const AttribList AttribList_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0 =
41+
{
42+
{VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV422 | VA_RT_FORMAT_YUV444 | VA_RT_FORMAT_YUV400 | VA_RT_FORMAT_YUV411 | VA_RT_FORMAT_RGB16 | VA_RT_FORMAT_RGB32},
43+
{VAConfigAttribEncPackedHeaders, VA_ENC_PACKED_HEADER_RAW_DATA},
44+
{VAConfigAttribMaxPictureWidth, ENCODE_JPEG_MAX_PIC_WIDTH},
45+
{VAConfigAttribMaxPictureHeight, ENCODE_JPEG_MAX_PIC_HEIGHT},
46+
{VAConfigAttribEncJPEG, 53424},
47+
{VAConfigAttribEncQualityRange, 1},
48+
};
49+
50+
//!
51+
static const ProfileSurfaceAttribInfo surfaceAttribInfo_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0 =
52+
{
53+
{VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_NV12}}},
54+
{VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_YUY2}}},
55+
{VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_UYVY}}},
56+
{VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_Y800}}},
57+
{VASurfaceAttribPixelFormat, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {VA_FOURCC_ABGR}}},
58+
{VASurfaceAttribMaxWidth, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {ENCODE_JPEG_MAX_PIC_WIDTH}}},
59+
{VASurfaceAttribMaxHeight, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {ENCODE_JPEG_MAX_PIC_HEIGHT}}},
60+
{VASurfaceAttribMinWidth, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {16}}},
61+
{VASurfaceAttribMinHeight, VA_SURFACE_ATTRIB_GETTABLE, {VAGenericValueTypeInteger, {16}}},
62+
{VASurfaceAttribMemoryType, VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE, {VAGenericValueTypeInteger, {
63+
#if VA_CHECK_VERSION(1, 21, 0)
64+
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3 |
65+
#endif
66+
VA_SURFACE_ATTRIB_MEM_TYPE_VA |
67+
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2
68+
}}}
69+
};
70+
71+
//!
72+
//! \brief Definition for EmtrypointMap
73+
//!
74+
static const EntrypointData entrypointMap_VAProfileJPEGBaseline_Data_Xe3p_Lpm_r0
75+
{
76+
&AttribList_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0,
77+
&configDataList_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0,
78+
&surfaceAttribInfo_VAProfileJPEGBaseline_VAEntrypointEncPicture_Xe3p_Lpm_r0
79+
};
80+
81+
#endif
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (c) 2025, Intel Corporation
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a
4+
# copy of this software and associated documentation files (the "Software"),
5+
# to deal in the Software without restriction, including without limitation
6+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
# and/or sell copies of the Software, and to permit persons to whom the
8+
# Software is furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included
11+
# in all copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19+
# OTHER DEALINGS IN THE SOFTWARE.
20+
21+
set (TMP_HEADERS_
22+
${CMAKE_CURRENT_LIST_DIR}/capstable_data_jpeg_encode_xe3p_lpm_r0_specific.h
23+
)
24+
25+
set (SOFTLET_DDI_HEADERS_
26+
${SOFTLET_DDI_HEADERS_}
27+
${TMP_HEADERS_}
28+
)
29+
30+
set(SOFTLET_DDI_PUBLIC_INCLUDE_DIRS_
31+
${SOFTLET_DDI_PUBLIC_INCLUDE_DIRS_}
32+
${CMAKE_CURRENT_LIST_DIR}
33+
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2025, Intel Corporation
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a
4+
# copy of this software and associated documentation files (the "Software"),
5+
# to deal in the Software without restriction, including without limitation
6+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
# and/or sell copies of the Software, and to permit persons to whom the
8+
# Software is furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included
11+
# in all copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19+
# OTHER DEALINGS IN THE SOFTWARE.
20+
21+
media_include_subdirectory(ddi)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2025, Intel Corporation
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a
4+
# copy of this software and associated documentation files (the "Software"),
5+
# to deal in the Software without restriction, including without limitation
6+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
# and/or sell copies of the Software, and to permit persons to whom the
8+
# Software is furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included
11+
# in all copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17+
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19+
# OTHER DEALINGS IN THE SOFTWARE.
20+
21+
media_include_subdirectory(vp9)
22+
media_include_subdirectory(jpeg)

0 commit comments

Comments
 (0)