mirror of
https://github.com/openharmony/drivers_peripheral.git
synced 2026-08-25 13:19:36 -04:00
1314b30c08
Signed-off-by: 0201she <sunhehe@huawei.com>
56 lines
1.8 KiB
C
56 lines
1.8 KiB
C
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef HDI_CODEC_CAPABILITY_PARSER_H
|
|
#define HDI_CODEC_CAPABILITY_PARSER_H
|
|
|
|
#include "codec_config_parser.h"
|
|
|
|
#define CODEC_CONFIG_KEY_INPUT_BUFFER_COUNT "inputBufferCount"
|
|
#define CODEC_CONFIG_KEY_INPUT_BUFFER_SIZE "inputBufferSize"
|
|
#define CODEC_CONFIG_KEY_OUTPUT_BUFFER_COUNT "outputBufferCount"
|
|
#define CODEC_CONFIG_KEY_OUTPUT_BUFFER_SIZE "outputBufferSize"
|
|
|
|
typedef struct {
|
|
CodecType type;
|
|
char compName[NAME_LENGTH];
|
|
int32_t inputBufferCount;
|
|
uint32_t inputBufferSize;
|
|
int32_t outputBufferCount;
|
|
uint32_t outputBufferSize;
|
|
} CodecExInfo;
|
|
|
|
typedef struct {
|
|
int32_t num;
|
|
CodecExInfo *exInfo;
|
|
} CodecExInfoGroup;
|
|
|
|
typedef struct {
|
|
CodecExInfoGroup videoHwEncoderGroup;
|
|
CodecExInfoGroup videoHwDecoderGroup;
|
|
CodecExInfoGroup videoSwEncoderGroup;
|
|
CodecExInfoGroup videoSwDecoderGroup;
|
|
CodecExInfoGroup audioHwEncoderGroup;
|
|
CodecExInfoGroup audioHwDecoderGroup;
|
|
CodecExInfoGroup audioSwEncoderGroup;
|
|
CodecExInfoGroup audioSwDecoderGroup;
|
|
bool inited;
|
|
} CodecExInfoGroups;
|
|
|
|
int32_t LoadCodecExInfoFromHcs(const struct DeviceResourceNode *node, CodecExInfoGroups *caps);
|
|
int32_t ClearExInfoGroup(CodecExInfoGroups *caps);
|
|
|
|
#endif // HDI_CODEC_CAPABILITY_PARSER_H
|