📄 pmp_decode.h.svn-base
字号:
/*
PMP Mod
Copyright (C) 2006 jonny
Homepage: http://jonny.leffe.dnsalias.com
E-mail: jonny@leffe.dnsalias.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 of the License, 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 this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
av decoding in a ring buffer
*/
#ifndef pmp_decode_h
#define pmp_decode_h
#include <pspkernel.h>
#include <pspdisplay.h>
#include "pmp_read.h"
//#include "avcodec.h"
#include "audiodecoder.h"
#include "common/mem64.h"
#include "common/m33sdk.h"
#include "aspect_ratio.h"
#include "gu_draw.h"
#include "movie_interface.h"
#include "avcdecoder.h"
#include "mp4vdecoder.h"
#include "cpu_clock.h"
#include "subtitle_parse.h"
#include "gu_font.h"
#define FF_INPUT_BUFFER_PADDING_SIZE 8
#define pmp_maximum_frame_buffers 64
#define pmp_number_of_free_video_frame_buffers 8
struct pmp_decode_buffer_struct
{
void *video_frame;
void *audio_frame;
unsigned int number_of_audio_frames;
int first_delay;
int last_delay;
};
struct pmp_decode_struct
{
struct pmp_read_struct reader;
struct avc_struct avc;
struct mp4v_struct mp4v;
int video_format;
int audio_decoder;
void *video_frame_buffers[pmp_maximum_frame_buffers];
void *audio_frame_buffers[pmp_maximum_frame_buffers];
unsigned int audio_frame_size;
unsigned int number_of_frame_buffers;
struct pmp_decode_buffer_struct output_frame_buffers[pmp_maximum_frame_buffers];
unsigned int current_buffer_number;
int output_texture_width;
};
void pmp_decode_safe_constructor(struct pmp_decode_struct *p);
char *pmp_decode_open(struct pmp_decode_struct *p, char *s, int pspType, int tvAspectRatio, int tvWidth, int tvHeight, int videoMode);
void pmp_decode_close(struct pmp_decode_struct *p, int pspType);
//modify by cooleyes 2007/02/01
char *pmp_decode_get(struct pmp_decode_struct *p, unsigned int frame_number, unsigned int audio_stream, int audio_channel, int decode_audio, unsigned int volume_boost, unsigned int aspect_ratio, unsigned int zoom, unsigned int luminosity_boost, unsigned int show_interface, unsigned int show_subtitle, unsigned int subtitle_format, unsigned int loop);
//char *pmp_decode_get(struct pmp_decode_struct *p, unsigned int frame_number, unsigned int audio_stream, int decode_audio, unsigned int volume_boost, unsigned int aspect_ratio, unsigned int zoom, unsigned int luminosity_boost, unsigned int show_interface, unsigned int show_subtitle, unsigned int subtitle_format, unsigned int loop);
//modify end
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -