📄 mkv_read.h.svn-base
字号:
/* * Copyright (C) 2009 cooleyes * eyes.cooleyes@gmail.com * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This Program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU Make; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * http://www.gnu.org/copyleft/gpl.html * */#ifndef __MKV_READ_H__#define __MKV_READ_H__#include <string.h>#include <pspiofilemgr.h>#include "mkv_file.h"#include "common/mem64.h"#include "common/buffered_reader.h"#define MKV_VIDEO_QUEUE_MAX 64#define MKV_AUDIO_QUEUE_MAX 64struct mkv_read_output_struct { unsigned int size; void* data; int timestamp;};struct mkv_read_struct { struct mkv_file_struct file; buffered_reader_t* reader; int current_audio_track; uint64_t cluster_size; uint64_t cluster_timecode; uint64_t blockgroup_size; uint64_t block_size; void* block_buffer; struct mkv_read_output_struct video_queue[MKV_VIDEO_QUEUE_MAX]; struct mkv_read_output_struct audio_queue[MKV_AUDIO_QUEUE_MAX]; unsigned int video_queue_front, video_queue_rear, video_queue_size; unsigned int audio_queue_front, audio_queue_rear, audio_queue_size;};void mkv_read_safe_constructor(struct mkv_read_struct *p);void mkv_read_close(struct mkv_read_struct *p);char *mkv_read_open(struct mkv_read_struct *p, char *s);char *mkv_read_seek(struct mkv_read_struct *p, int timestamp);char *mkv_read_get_video(struct mkv_read_struct *p, struct mkv_read_output_struct *output);char *mkv_read_get_audio(struct mkv_read_struct *p, unsigned int audio_stream, struct mkv_read_output_struct *output);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -