📄 svcd.h
字号:
#ifndef __SVCD_H
#define __SVCD_H
/*
** STRUCTURE
** t_sect_info
**
** DESCRIPTION
** INFO SECTION structure for VCD/SVCD/CVD
**
** NOTE: located at 00:04:00
*/
typedef struct
{
char file_id[8]; /* 1 to 8 */
UINT16 version; /* 9 to 10 */
char album_id[16]; /* 11 to 26 */
UINT16 album_no; /* 27 to 28 */
UINT16 album_seq; /* 29 to 30 */
BYTE size_map_vcd[13]; /* 31 to 43 */
BYTE status; /* 44 */
UINT32 psd_size; /* 45 to 48 */
BYTE first_segment_mm_bcd; /* 49 */
BYTE first_segment_ss_bcd; /* 50 */
BYTE first_segment_ff_bcd; /* 51 */
BYTE psd_offset_multiplier; /* 52 */
UINT16 maximum_list_id; /* 53 to 54 */
UINT16 maximum_segment_id; /* 55 to 56 */
BYTE segment_play_table[1980]; /* 57 to 2036 */
BYTE status_extension; /* 2037 (svcd) */
BYTE disc_type; /* 2038 (svcd) */
BYTE reserved[10]; /* 2039 to 2048 */
}
t_sect_info;
/*
** VCD status definition
*/
#define VCD_STATUS_USERDATA 0x10
#define VCD_STATUS_LISTID_2 0x20
#define VCD_STATUS_TRACK_3 0x40
/*
** SEGMENT audio definition
*/
#define VCD_SEG_AUDIO_NONE 0x00
#define VCD_SEG_AUDIO_SINGLE 0x01
#define VCD_SEG_AUDIO_STEREO 0x02
#define VCD_SEG_AUDIO_DUAL 0x03
/*
** SEGMENT video definition
*/
#define VCD_SEG_VIDEO_NONE 0x00
#define VCD_SEG_VIDEO_LO_STILL_NTSC 0x01 /* 352x240 */
#define VCD_SEG_VIDEO_HI_STILL_NTSC 0x02 /* 704x480 */
#define VCD_SEG_VIDEO_LO_MOTION_NTSC 0x03 /* 352x240 */
#define VCD_SEG_VIDEO_RESERVED 0x04
#define VCD_SEG_VIDEO_LO_STILL_PAL 0x05 /* 352x288 */
#define VCD_SEG_VIDEO_HI_STILL_PAL 0x06 /* 704x576 */
#define VCD_SEG_VIDEO_LO_MOTION_PAL 0x07 /* 352x288 */
/* SVCD/CVD - similiar to VCD but the LO_STILL is 2/3 D1 */
#define SVCD_SEG_VIDEO_NONE 0x00
#define SVCD_SEG_VIDEO_LO_STILL_NTSC 0x01 /* 2/3 D1 */
#define SVCD_SEG_VIDEO_HI_STILL_NTSC 0x02 /* D1 */
#define SVCD_SEG_VIDEO_LO_MOTION_NTSC 0x03
#define SVCD_SEG_VIDEO_RESERVED 0x04
#define SVCD_SEG_VIDEO_LO_STILL_PAL 0x05
#define SVCD_SEG_VIDEO_HI_STILL_PAL 0x06
#define SVCD_SEG_VIDEO_LO_MOTION_PAL 0x07
/*
** SVCD SEGMENT audio information extension.
*/
#define SVCD_SEG_AUDIO_EXT
/*
** STRUCTURE
** t_sect_entries
**
** DESCRIPTION
** ENTRY SECTION structure for VCD/SVCD/CVD
**
** NOTE: located at 00:04:01
**
** 0- 7 : FILE_ID ("ENTRYVCD")
** 8- 9 : VERSION
** 10-11 : USED ENTRIES
** 12-2011 : ENTRIES[]
*/
typedef struct
{
char file_id[8];
UINT16 version;
UINT16 entries_used;
UINT32 entry[500];
}
t_sect_entries;
#endif/*__SVCD_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -