gop_list.h

来自「由bmp生成mpeg2 的I_frame 数据」· C头文件 代码 · 共 40 行

H
40
字号
/*******************************************************************
                         GOP List interfaces
 *******************************************************************/

#ifndef GOP_LIST_H
#define GOP_LIST_H

#include <stdio.h>
#include <stdlib.h>
#include "video_stream.h"
#include "sequence_header.h"
#include "picture_header.h"
#include "gop.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	__int64          stream_length;
	__int64          num_of_frame;
	int              num_of_gop;
	int              num_of_sh;
	GOP             *gop;
	SEQUENCE_HEADER *sh;
} GOP_LIST;

#ifndef GOP_LIST_C
extern GOP_LIST *new_gop_list(VIDEO_STREAM *in, READ_PICTURE_HEADER_OPTION *opt, int field_order);
extern void delete_gop_list(void *gop_list);
extern GOP find_gop_with_gop_list(void *p, __int64 frame);
extern int store_gop_list(GOP_LIST *in, char *filepath);
extern GOP_LIST *load_gop_list(char *filepath);
#endif

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?