1 /************************************************************************** 2 * 3 * Copyright 2022 Younes Manton. 4 * All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the 8 * "Software"), to deal in the Software without restriction, including 9 * without limitation the rights to use, copy, modify, merge, publish, 10 * distribute, sub license, and/or sell copies of the Software, and to 11 * permit persons to whom the Software is furnished to do so, subject to 12 * the following conditions: 13 * 14 * The above copyright notice and this permission notice (including the 15 * next paragraph) shall be included in all copies or substantial portions 16 * of the Software. 17 * 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21 * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 * 26 **************************************************************************/ 27 28 #ifndef PIPE_VIDEO_STATE_H 29 #define PIPE_VIDEO_STATE_H 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 enum pipe_h264_slice_type 36 { 37 PIPE_H264_SLICE_TYPE_P = 0x0, 38 PIPE_H264_SLICE_TYPE_B = 0x1, 39 PIPE_H264_SLICE_TYPE_I = 0x2, 40 PIPE_H264_SLICE_TYPE_SP = 0x3, 41 PIPE_H264_SLICE_TYPE_SI = 0x4 42 }; 43 44 /* Same enum for h264/h265 */ 45 enum pipe_h2645_enc_picture_type 46 { 47 PIPE_H2645_ENC_PICTURE_TYPE_P = 0x00, 48 PIPE_H2645_ENC_PICTURE_TYPE_B = 0x01, 49 PIPE_H2645_ENC_PICTURE_TYPE_I = 0x02, 50 PIPE_H2645_ENC_PICTURE_TYPE_IDR = 0x03, 51 PIPE_H2645_ENC_PICTURE_TYPE_SKIP = 0x04 52 }; 53 54 enum pipe_h2645_enc_rate_control_method 55 { 56 PIPE_H2645_ENC_RATE_CONTROL_METHOD_DISABLE = 0x00, 57 PIPE_H2645_ENC_RATE_CONTROL_METHOD_CONSTANT_SKIP = 0x01, 58 PIPE_H2645_ENC_RATE_CONTROL_METHOD_VARIABLE_SKIP = 0x02, 59 PIPE_H2645_ENC_RATE_CONTROL_METHOD_CONSTANT = 0x03, 60 PIPE_H2645_ENC_RATE_CONTROL_METHOD_VARIABLE = 0x04 61 }; 62 63 #ifdef __cplusplus 64 } 65 #endif 66 67 #endif /* PIPE_VIDEO_STATE_H */ 68