6 Star 5 Fork 14

leixiaohua1020 / H264_Analysis

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
h264_avcc.h 946 Bytes
Copy Edit Web IDE Raw Blame History
leixiaohua1020 authored 2016-01-06 01:21 . reupload
#ifndef _H264_AVCC_H
#define _H264_AVCC_H 1
#include <stdint.h>
#include <assert.h>
#include "bs.h"
#include "h264_stream.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
AVC decoder configuration record, ISO/IEC 14496-15:2004(E), Section 5.2.4.1
Seen in seen in mp4 files as 'avcC' atom
Seen in flv files as AVCVIDEOPACKET with AVCPacketType == 0
*/
typedef struct
{
int configurationVersion; // = 1
int AVCProfileIndication;
int profile_compatibility;
int AVCLevelIndication;
// bit(6) reserved = '111111'b;
int lengthSizeMinusOne;
// bit(3) reserved = '111'b;
int numOfSequenceParameterSets;
sps_t** sps_table;
int numOfPictureParameterSets;
pps_t** pps_table;
} avcc_t;
avcc_t* avcc_new();
void avcc_free(avcc_t* avcc);
int read_avcc(avcc_t* avcc, h264_stream_t* h, bs_t* b);
int write_avcc(avcc_t* avcc, h264_stream_t* h, bs_t* b);
void debug_avcc(avcc_t* avcc);
#ifdef __cplusplus
}
#endif
#endif

Comment ( 0 )

Sign in for post a comment

C++
1
https://git.oschina.net/leixiaohua1020/H264_Analysis.git
git@git.oschina.net:leixiaohua1020/H264_Analysis.git
leixiaohua1020
H264_Analysis
H264_Analysis
master

Search