xref: /aosp_15_r20/external/intel-media-driver/media_driver/linux/Xe_M/ddi/media_libva_caps_xehp_sdv.h (revision ba62d9d3abf0e404f2022b4cd7a85e107f48596f)
1 /*
2 * Copyright (c) 2021, 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 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 
23 //!
24 //! \file     media_libva_caps_xehp_sdv.h
25 //! \brief    This file implements the C++ class/interface for Xe_XPM capbilities.
26 //!
27 
28 #ifndef __MEDIA_LIBVA_CAPS_XEHP_SDV_H__
29 #define __MEDIA_LIBVA_CAPS_XEHP_SDV_H__
30 
31 #include "media_libva.h"
32 #include "media_libva_caps_factory.h"
33 
34 #include "media_libva_caps_g12.h"
35 #include "linux_system_info.h"
36 
37 //!
38 //! \class  MediaLibvaCapsXeHP
39 //! \brief  Media libva caps XeHP
40 //!
41 class MediaLibvaCapsXeHP : public MediaLibvaCapsG12
42 {
43 public:
44     //!
45     //! \brief    Constructor
46     //!
MediaLibvaCapsXeHP(DDI_MEDIA_CONTEXT * mediaCtx)47     MediaLibvaCapsXeHP(DDI_MEDIA_CONTEXT *mediaCtx) : MediaLibvaCapsG12(mediaCtx)
48     {
49         return;
50     }
51 
52     //!
53     //! \brief    Destructor
54     //!
~MediaLibvaCapsXeHP()55     virtual ~MediaLibvaCapsXeHP() {};
56 
57  protected:
58     static const uint32_t m_hevcDPEncMaxHeight = 4320;
59     virtual VAStatus GetPlatformSpecificAttrib(VAProfile profile,
60                                                VAEntrypoint entrypoint,
61                                                VAConfigAttribType type,
62                                                unsigned int *value) override;
63 
64     virtual VAStatus CheckEncodeResolution(VAProfile profile, uint32_t width, uint32_t height) override;
65 };
66 #endif
67