player.h

来自「symbian下的FLV播放视频源码 可以快速便捷的播放FLV格式的视频」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef PLAYER_H_
#define PLAYER_H_

#include "avcodec.h"
#include "my_utils.h"
#include "NeoFile.h"
#include "FLVDecoder.h"
#include "NeoStreamBufferManager.h"
#include "NeoStreamPlayer.h"

void InitPlayer();
void OpenFlvAndInit(char* fname, MNeoStreamBufferManager* aNeoStreamBufferManager);
int InitVideoCodec(CNeoFILE* aNeoFile);
int InitAudioCodec(CNeoFILE* aNeoFile, MNeoStreamBufferManager* aNeoStreamBufferManager);
int FetchCodecAndDecode(int& pts, MNeoStreamBufferManager* aNeoStreamBufferManager);
int FetchCodecAndDecodeSoundOnly(int& aPts, MNeoStreamBufferManager* aNeoStreamBufferManager, long& aAudioCurrentFTell);
int DoWithDecoded(unsigned char* dst, unsigned char no_pic, int first_frame_num, int first_frame_timestamp, int& frame_num, int now_timestamp);
void Flv_GetNextFrame();
void CloseFlvAndDestroy();

int GetFirstKeyFramePositionBefore();
int GetFirstKeyFramePositionAfter();

void SeekFileTo(int position);

void PlayerSetRect(int width, int height);

long CurrentFTell();

#endif /*PLAYER_H_*/

⌨️ 快捷键说明

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