Files
BPI-CM9-Linux/aml-comp/hardware/amlogic/libencoder/mediaprocess/include/AmlVencInstHelper.h
T
2026-08-24 10:03:24 +08:00

52 lines
791 B
C++

#ifndef __AML_VENC_INST_HELPER_H_
#define __AML_VENC_INST_HELPER_H_
#include <inttypes.h>
#include <string.h>
#include <algorithm>
#include <string>
#include <stdio.h>
#include "AmlVencParamIntf.h"
namespace android {
typedef enum _DumpFileType {
DUMP_RAW,
DUMP_ES
}eDumpFileType;
class AmlVencInstHelper {
public:
AmlVencInstHelper();
~AmlVencInstHelper();
public:
void SetCodecType(eCodecType Codec);
void SetCodecHandle(long Handle);
bool OpenFile(eDumpFileType type);
uint32_t dumpDataToFile(eDumpFileType type,uint8_t *data,uint32_t size);
void CloseFile(eDumpFileType type);
private:
eCodecType mCodec;
bool mDumpYuvEnable;
bool mDumpEsEnable;
int mFdDumpInput;
int mFdDumpOutput;
long mHandle;
};
}
#endif