2 Star 0 Fork 0

lidedongsn/H264Decoder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
h264_decoder.h 515 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef H264_DECODER_H
#define H264_DECODER_H
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern "C" {
#include <libavcodec/avcodec.h>
}
class H264Decoder{
public:
H264Decoder();
virtual ~H264Decoder();
bool Init();
AVFrame* Decode(uint8_t* data, uint32_t len, uint32_t* decode_len);
void Flush();
void Dump(FILE *f);
private:
AVCodecParserContext *m_parser;
AVCodecContext *m_context;
AVCodec *m_codec;
AVPacket *m_pkt;
AVFrame *m_frame;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lidecoolblue/H264Decoder.git
git@gitee.com:lidecoolblue/H264Decoder.git
lidecoolblue
H264Decoder
H264Decoder
master

搜索帮助