Path: blob/21.2-virgl/src/gallium/include/pipe/p_video_enums.h
4565 views
/**************************************************************************1*2* Copyright 2009 Younes Manton.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef PIPE_VIDEO_ENUMS_H28#define PIPE_VIDEO_ENUMS_H2930#ifdef __cplusplus31extern "C" {32#endif3334enum pipe_video_format35{36PIPE_VIDEO_FORMAT_UNKNOWN = 0,37PIPE_VIDEO_FORMAT_MPEG12, /**< MPEG1, MPEG2 */38PIPE_VIDEO_FORMAT_MPEG4, /**< DIVX, XVID */39PIPE_VIDEO_FORMAT_VC1, /**< WMV */40PIPE_VIDEO_FORMAT_MPEG4_AVC,/**< H.264 */41PIPE_VIDEO_FORMAT_HEVC, /**< H.265 */42PIPE_VIDEO_FORMAT_JPEG, /**< JPEG */43PIPE_VIDEO_FORMAT_VP9, /**< VP9 */44PIPE_VIDEO_FORMAT_AV1 /**< AV1 */45};4647enum pipe_video_profile48{49PIPE_VIDEO_PROFILE_UNKNOWN,50PIPE_VIDEO_PROFILE_MPEG1,51PIPE_VIDEO_PROFILE_MPEG2_SIMPLE,52PIPE_VIDEO_PROFILE_MPEG2_MAIN,53PIPE_VIDEO_PROFILE_MPEG4_SIMPLE,54PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE,55PIPE_VIDEO_PROFILE_VC1_SIMPLE,56PIPE_VIDEO_PROFILE_VC1_MAIN,57PIPE_VIDEO_PROFILE_VC1_ADVANCED,58PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE,59PIPE_VIDEO_PROFILE_MPEG4_AVC_CONSTRAINED_BASELINE,60PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN,61PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED,62PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH,63PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10,64PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422,65PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444,66PIPE_VIDEO_PROFILE_HEVC_MAIN,67PIPE_VIDEO_PROFILE_HEVC_MAIN_10,68PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL,69PIPE_VIDEO_PROFILE_HEVC_MAIN_12,70PIPE_VIDEO_PROFILE_HEVC_MAIN_444,71PIPE_VIDEO_PROFILE_JPEG_BASELINE,72PIPE_VIDEO_PROFILE_VP9_PROFILE0,73PIPE_VIDEO_PROFILE_VP9_PROFILE2,74PIPE_VIDEO_PROFILE_AV1_MAIN,75PIPE_VIDEO_PROFILE_MAX76};7778/* Video caps, can be different for each codec/profile */79enum pipe_video_cap80{81PIPE_VIDEO_CAP_SUPPORTED = 0,82PIPE_VIDEO_CAP_NPOT_TEXTURES = 1,83PIPE_VIDEO_CAP_MAX_WIDTH = 2,84PIPE_VIDEO_CAP_MAX_HEIGHT = 3,85PIPE_VIDEO_CAP_PREFERED_FORMAT = 4,86PIPE_VIDEO_CAP_PREFERS_INTERLACED = 5,87PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE = 6,88PIPE_VIDEO_CAP_SUPPORTS_INTERLACED = 7,89PIPE_VIDEO_CAP_MAX_LEVEL = 8,90PIPE_VIDEO_CAP_STACKED_FRAMES = 9,91PIPE_VIDEO_CAP_MAX_MACROBLOCKS = 10,92};9394enum pipe_video_entrypoint95{96PIPE_VIDEO_ENTRYPOINT_UNKNOWN,97PIPE_VIDEO_ENTRYPOINT_BITSTREAM,98PIPE_VIDEO_ENTRYPOINT_IDCT,99PIPE_VIDEO_ENTRYPOINT_MC,100PIPE_VIDEO_ENTRYPOINT_ENCODE101};102103#if defined(__cplusplus)104}105#endif106107#endif /* PIPE_VIDEO_ENUMS_H */108109110