This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 4242#define IP_ADDRESS_LEN 16
4343#define MAX_SESSION_COUNT 32
4444#define MAX_REGION_COUNT 512
45+ #define ALIGN64 (X ) ((uint32_t)(((uint32_t)(X))+63) & (uint32_t)(~ (uint32_t)63))
4546
4647//!
4748//! \enum DispatchType
@@ -100,6 +101,13 @@ typedef enum
100101 PixelColor_YUV444
101102}PixelColorFormat ;
102103
104+ typedef enum
105+ {
106+ InputYUVFormat_NONE = 0 ,
107+ InputYUVFormat_P010 ,
108+ InputYUVFormat_V210 ,
109+ }InputYUVFormat ;
110+
103111//!
104112//! \enum: ParamType
105113//! \brief: parameter types from this library
@@ -210,6 +218,7 @@ typedef struct ENCODERPARAM{
210218 int32_t gpu_node ; //!< GPU node to encode frames
211219 bool in_parallel ; //!< multiple tiles encoding in parallel
212220 bool native_mode ; //!< flag of native mode for encoder
221+ InputYUVFormat input_yuv_format ; //!< Input YUV format,
213222 uint32_t gpucopy ; //!< GPU copy trigger for MSDK
214223}EncoderParam ;
215224
@@ -222,6 +231,8 @@ typedef struct INPUTFRAME{
222231 PixelColorFormat format ; //!< pixel color format
223232 PictureType picType ; //!< picture type,e.g. I/P/B/...
224233 bool useSharedMem ; //!< if the data is using shared memory or not
234+ uint8_t hScaleFactor ; //!< horizontal scaling factor of encode frame to input frame
235+ uint8_t vScaleFactor ; //!< vertical scaling factor of encode frame to input frame
225236}InputFrame ;
226237
227238// SEI related structures
You can’t perform that action at this time.
0 commit comments