diff --git a/en/device_api/hdi/codec/codec_component_type.h b/en/device_api/hdi/codec/codec_component_type.h index 85ac42be067a742ee61598c90f54dd7a5e76952e..188c9a2f507b27308cba866228bc439036b2e541 100644 --- a/en/device_api/hdi/codec/codec_component_type.h +++ b/en/device_api/hdi/codec/codec_component_type.h @@ -19,7 +19,8 @@ * * @brief Defines APIs related to the Codec module. * - * The Codec module provides APIs for initializing the custom data and audio and video codecs, setting codec parameters, and controlling and transferring data. + * The Codec module provides APIs for initializing the custom data and audio and video codecs, + * setting codec parameters, and controlling and transferring data. * * @since 3.1 */ @@ -27,10 +28,9 @@ /** * @file codec_component_type.h * - * @brief Declares custom data types used in the Codec module APIs, including the codec types, audio and video parameters, and buffers. - * - * - * + * @brief Declares custom data types used in the Codec module APIs, including the codec types, + * audio and video parameters, and buffers. + * * @since 3.1 */ @@ -131,9 +131,9 @@ typedef enum { * @brief Defines the alignment. */ typedef struct { - int32_t widthAlginment; /** Value to align with the width */ - int32_t heightAlginment; /** Value to align with the height */ -} Alginment; + int32_t widthAlignment; /** Value to align with the width */ + int32_t heightAlignment; /** Value to align with the height */ +} Alignment; /** * @brief Defines a rectangle. @@ -237,7 +237,8 @@ typedef struct { RangeValue blockCount; /** Number of blocks supported. */ RangeValue blocksPerSecond; /** Number of blocks processed per second. */ Rect blockSize; /** Block size supported. */ - int32_t supportPixFmts[PIX_FORMAT_NUM]; /** Supported pixel format. For details, see {@link OMX_COLOR_FORMATTYPE}. */ + int32_t supportPixFmts[PIX_FORMAT_NUM]; /** Supported pixel format. For details, + see {@link OMX_COLOR_FORMATTYPE}. */ } VideoPortCap; /** @@ -247,8 +248,10 @@ typedef struct { #define SAMPLE_RATE_NUM 16 /** Size of the audio sampling rate array supported. */ #define CHANNEL_NUM 16 /** Size of the audio channel array supported. */ typedef struct { - int32_t sampleFormats[SAMPLE_FMT_NUM]; /** Supported audio sampling formats. For details, see {@link AudioSampleFormat}. */ - int32_t sampleRate[SAMPLE_RATE_NUM]; /** Supported audio sampling rates. For details, see {@link AudioSampleRate}. */ + int32_t sampleFormats[SAMPLE_FMT_NUM]; /** Supported audio sampling formats. For details, + see {@link AudioSampleFormat}. */ + int32_t sampleRate[SAMPLE_RATE_NUM]; /** Supported audio sampling rates. For details, + see {@link AudioSampleRate}. */ int32_t channelLayouts[CHANNEL_NUM]; /** Supported audio channel layouts. */ int32_t channelCount[CHANNEL_NUM]; /** Supported audio channels. */ } AudioPortCap; @@ -291,8 +294,10 @@ typedef struct { int32_t supportProfiles[PROFILE_NUM]; /** Supported profiles. For details, see {@link Profile}. */ int32_t maxInst; /** Maximum instance. */ bool isSoftwareCodec; /** Whether it is software codec or hardware codec. */ - int32_t processModeMask; /** Codec processing mode mask. For details, see {@link CodecProcessMode}. */ - uint32_t capsMask; /** Codec playback capability mask. For details, see {@link CodecCapsMask}. */ + int32_t processModeMask; /** Codec processing mode mask. For details, + see {@link CodecProcessMode}. */ + uint32_t capsMask; /** Codec playback capability mask. For details, + see {@link CodecCapsMask}. */ RangeValue bitRate; /** Supported bit rate range. */ PortCap port; /** Supported audio and video encoding/decoding capabilities. */ } CodecCompCapability; @@ -336,7 +341,8 @@ struct OmxCodecBuffer { uint32_t allocLen; /** Size of the buffer allocated. */ uint32_t filledLen; /** Size of the buffer filled. */ uint32_t offset; /** Offset to the start position of the valid data in the buffer. */ - int32_t fenceFd; /** Fence file descriptor used to signal when the input or output buffer is ready to consume. */ + int32_t fenceFd; /** Fence file descriptor used to signal when the input or + output buffer is ready to consume. */ enum ShareMemTypes type; /** Shared memory type. */ int64_t pts; /** Timestamp. */ uint32_t flag; /** Flag. */ diff --git a/zh-cn/device_api/hdi/codec/codec_component_type.h b/zh-cn/device_api/hdi/codec/codec_component_type.h index b2c2a9b255c30f468d25b810feeef9710aa12346..d7b15dd236221558d36078dc11ea05e594a14986 100755 --- a/zh-cn/device_api/hdi/codec/codec_component_type.h +++ b/zh-cn/device_api/hdi/codec/codec_component_type.h @@ -28,9 +28,9 @@ * @file codec_component_type.h * * @brief Codec模块接口定义中使用的自定义数据类型 - * + * * Codec模块接口定义中使用的自定义数据类型, 包括编解码类型、音视频参数、buffer定义等。 - * + * * @since 3.1 */ @@ -131,9 +131,9 @@ typedef enum { * @brief 对齐结构定义, 包含宽高的对齐 */ typedef struct { - int32_t widthAlginment; /** 宽的对齐值 */ - int32_t heightAlginment; /** 高的对齐值 */ -} Alginment; + int32_t widthAlignment; /** 宽的对齐值 */ + int32_t heightAlignment; /** 高的对齐值 */ +} Alignment; /** * @brief 矩形的定义 @@ -233,11 +233,11 @@ typedef enum { typedef struct { Rect minSize; /** 支持的最小分辨率 */ Rect maxSize; /** 支持的最大分辨率 */ - Alginment whAlignment; /** 宽高对齐值 */ - RangeValue blockCount; /** 宽高对齐值 */ - RangeValue blocksPerSecond; /** 宽高对齐值 */ - Rect blockSize; /** 宽高对齐值 */ - int32_t supportPixFmts[PIX_FORMAT_NUM]; /** 支持的像素格式, 详见{@link OMX_COLOR_FORMATTYPE} */ + Alignment whAlignment; /** 宽高对齐值 */ + RangeValue blockCount; /** 支持的块数量范围 */ + RangeValue blocksPerSecond; /** 每秒可处理的块数量范围 */ + Rect blockSize; /** 支持的块大小 */ + int32_t supportPixFmts[PIX_FORMAT_NUM]; /** 支持的像素格式, 详见{@link OMX_COLOR_FORMATTYPE} */ } VideoPortCap; /** @@ -292,7 +292,7 @@ typedef struct { int32_t maxInst; /** 最大实例 */ bool isSoftwareCodec; /** 软件编解码还是硬件编解码 */ int32_t processModeMask; /** 编解码处理模式掩码, 详见{@link CodecProcessMode}. */ - uint32_t capsMask; /** 编解码播放能力, 详见{@link CodecCapsMask}. */ + uint32_t capsMask; /** 编解码播放能力掩码, 详见{@link CodecCapsMask}. */ RangeValue bitRate; /** 支持的码率范围 */ PortCap port; /** 支持的音视频编解码能力 */ } CodecCompCapability;