?? avc.h
字號(hào):
/*
Decoding AVC using sceMpeg Library
Copyright (c) 2006 by Sorin P. C. <magik@hypermagik.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.
*/
/*
i've made only a little rearrangement over the magiK code posted here:
http://forums.ps2dev.org/viewtopic.php?t=5820
*/
#ifndef avc_h
#define avc_h
#include <string.h>
#include <pspsdk.h>
#include "pspmpeg.h"
#include "mem64.h"
#define DMABLOCK 4095
#define MEAVCBUF 0x4a000
struct SceMpegLLI
{
ScePVoid pSrc;
ScePVoid pDst;
ScePVoid Next;
SceInt32 iSize;
};
struct avc_struct
{
int mpeg_init;
ScePVoid mpeg_data;
int mpeg_ringbuffer_construct;
int mpeg_create;
SceMpegRingbuffer mpeg_ringbuffer;
SceMpeg mpeg;
ScePVoid mpeg_es;
struct SceMpegLLI *mpeg_lli;
SceMpegAu mpeg_au;
};
SceInt32 sceMpegbase_BEA18F91(struct SceMpegLLI *p);
char *avc_static_init();
void avc_safe_constructor(struct avc_struct *p);
void avc_close(struct avc_struct *p);
char *avc_open(struct avc_struct *p, unsigned int maximum_frame_size);
char *avc_get(struct avc_struct *p, void *source_buffer, int size, void *destination_buffer);
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -