⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fs9660.c

📁 C语言编写的监控中心终端程序。基于GPRS上传收发数据功能
💻 C
字号:
#include "global.h"
#include "func.h"
#include "util.h"
#include "cd.h"
#include "hwsetup.h"
#include "fs9660.h"
#include "cdfs.h"
#include "graph.h"
#include "framebuf.h"
#include "macro.h"
#include "stc.h"
#include "osd.h"
#include "memmap.h"
#include "regmap.h"
#include "auctrl.h"
#include "stdlib.h"
#include "iop.h"
#include "vpp.h"

void osd_flush_cache()
{
    volatile int	i;
    volatile BYTE	*a = (BYTE *) (SDRAM_BASE + MEM_OSDYA_DEF * 1024);

    for (i = 0; i < 1024 * (int)(OBV_H); i++) {
	*a = 0x0;
	a++;
    }
}

void check_name(char *s, BYTE mode)
{
    if (*s)
	mode = 0;
}

void read_iso9660_init()
{
}

void read_iso9660(void)
{
}

int read_iso9660_dir(void)
{
    return 0;
}

void ShowMP3Reading(BYTE offset)
{
    offset = 0;
}

int read_iso9660_files()
{
    return 0;
}

void iso9660_MSFSort(void)
{
}

void iso9660_sort(void)
{
}

void iso9660_assign_name(char *psrc, char *pdst, int cnt, int namelen, BYTE mode)
{
    if (*psrc && *pdst)	cnt = namelen = mode = 0;
}

int rec_dir_file(UINT32 msf, int dir_index)
{
    msf = dir_index = 0;
    return 0;
}

int strtoint()
{
    return 0;
}

int iso_search_str(char *s, char *o, int buflen)
{
    if (*s && *o)
	buflen = 0;
    return 0;
}

int str_cmp(char *s, char *d)
{
    if (*s == *d || (*s - 32) == *d || *s == (*d - 32))
	return 1;
    return 0;
}

void FillRedColor(int startx, int endx)
{
    startx = endx = 0;
}

void DrawRmTime(void)
{
}

void DrawTime(BYTE mm, BYTE ss)
{
    mm = ss = 0;
}

void mp3_select(void)
{
}

void clr_window(int x_start, int y_start, int height, int width)
{
    x_start = y_start = height = width = 0;
}

void mp3_dir_list(void)
{
}

void calc_file_page(UINT16 DirSelect)
{
    DirSelect = 0;
}

UINT32 mp3_file_msf(UINT16 SelectItem)
{
    SelectItem = 0;
    return 0;
}

UINT32 mp3_file_length(UINT16 SelectItem)
{
    SelectItem = 0;
    return 0;
}

void mp3_file_list(UINT16 select_file)
{
    select_file = 0;
}

void mp3_select_file(UINT16 select)
{
    select = 0;
}

void FSGUI_Menu()
{
}

void mp3_control_icon(int iShow)
{
    iShow = 0;
}

void mp3_show_path(void)
{
}

int NormalNext()
{
    return 0;
}

int NormalPrev()
{
    return 0;
}

void mp3_dir_icon(void)
{
}

void Return2Menu(void)
{
}

int FileNext(void)
{
    return 0;
}

void MoveScroll(UINT16 locate)
{
    locate = 0;
}

#if 0
void AVAPI_control(BYTE rw, UINT32 func, UINT16 arg)
{
    if (((func) & 0xffff0000) == 0) {
	if (rw) {
#if 0
	    if ((func) == AVAPI_LEAVE_ID)
		vid_set_leave_id(arg);
	    else
#endif
	    {
		avapi_status = (((AVD_state_flags & AVD_REALTIME) ? AVAPI_REALTIME : 0)	|
				((AVD_state_flags & AVD_PLAY_I)	  ? AVAPI_PLAY_I   : 0) |
				((AVD_state_flags&AVD_SLIDE)	  ? AVAPI_SLIDE	   : 0) |
				((AVD_state_flags&AVD_PREVIEW)	  ? AVAPI_PREVIEW  : 0) |
				((AVD_state_flags&AVD_PAUSE)	  ? AVAPI_PAUSE	   : 0));
	    }
	}
	else {
	    if ((func) == AVAPI_STATUS_CONTROL) {
		avapi_status = (((AVD_state_flags & AVD_REALTIME) ? AVAPI_REALTIME : 0) | 
				((AVD_state_flags&AVD_PLAY_I)     ? AVAPI_PLAY_I   : 0) |
				((AVD_state_flags&AVD_SLIDE)      ? AVAPI_SLIDE    : 0) |
				((AVD_state_flags&AVD_PREVIEW)    ? AVAPI_PREVIEW  : 0) |
				((AVD_state_flags&AVD_PAUSE )     ? AVAPI_PAUSE    : 0));
	    }
	    else if ((func) == AVAPI_STATUS_SYSTEM) {
		avapi_status = (((IsAVDMediaTimeout())	? STATUS_TIMEOUT	: 0)  |
				((IsAVDMediaInterrupt())? STATUS_INTERRUPT	: 0)  |
				((IsAVDMediaError())	? STATUS_ERROR		: 0)  |
				((IsAVDFrameRate())	? STATUS_FRAMERATE	: 0)  |
				((IsAVDDecodeNTSC())	? STATUS_DECODE_NTSC	: 0)  |
				((IsAVDDecodePAL())	? STATUS_DECODE_PAL	: 0)  |
				((IsAVDDisplayNTSC())	? STATUS_DISPLAY_NTSC	: 0)  |
				((IsAVDDisplayPAL())	? STATUS_DISPLAY_PAL	: 0)) |
			       (((do_cd == do_cd_layer)		   ? STATUS_CD_LAYER :
				 (do_cd == do_cd_payload)	   ? STATUS_CD_PAYLOAD : 0) |
				((do_system == do_system_layer)	   ? STATUS_SYSTEM_LAYER :
				 (do_system == do_system_payload)  ? STATUS_SYSTEM_PAYLOAD : 0) |
				((do_video == do_video_parsing)	   ? STATUS_VIDEO_PARSE :
				((do_video == do_video_dumping)	   ? STATUS_VIDEO_DUMP : 0)) |
				((do_dec_video == do_decode_ready) ? STATUS_DECODE_READY :
				 (do_dec_video == do_decoding)	   ? STATUS_DECODING : 0));
	    }
	}
    }
    else {
	if (rw) {
	    if ((func) == AVAPI_MUTE)			au_mute(arg);
	    else if ((func) == AVAPI_KEYSHIFT)		au_keyshift(arg);
	    else if ((func) == AVAPI_VOLUME)		au_volume(arg);
	    else if ((func) == AVAPI_CHANNEL)		au_select_channel(arg);
	    else if ((func) == AVAPI_SOUND_EFFECT)	au_sound_effect(arg);
	    else if ((func) == AVAPI_EQ)		au_eq(arg);
	    else if ((func) == AVAPI_MIC_VOLUME)	au_mic_volume(arg);
//	    band index is in lower half-word and dB is in higher half-word
	    else if ((func) == AVAPI_EQ_SET_BAND_GAIN)
		au_eq_user_gain((arg) & 0xffff, (((int)(arg)) >> 16));
	    else if ((func) == AVAPI_SPECTRUM)		au_spectrum(arg);
	    else if ((func) == AVAPI_MIC_MODE)		au_mic_mode(arg);
//	    delay in higher half-word and decay in lower half word
	    else if ((func) == AVAPI_SET_ECHO)
		au_set_echo((arg) >> 16, (arg) & 0xffff);
//	    else if ((func) == AVAPI_FDFC_RESET)	au_reset_fudu(arg);
//	    else if ((func) == AVAPI_FDFC_CODEC)	au_set_fudu_codec(arg);
//	    else if ((func) == AVAPI_FDFC_STOP)		au_stop_fudu();
//	    else if ((func) == AVAPI_FDFC_PLAY_MODE)	au_set_fudu_play_mode(arg);
	    else if ((func) == AVAPI_SCORE_RESET)	reset_scoring(arg);
	    else if ((func) == AVAPI_SCORE_STOP)	stop_scoring();
//	    else if ((func) == AVAPI_CDDA_ESP)		cdda_esp_enable(arg);
	}
	else {
//	    if ((func) == AVAPI_STATUS_DECODER)		avapi_status = au_get_decoder_status();
	    if ((func) == AVAPI_STATUS_BITSTREAM)	avapi_status = au_get_bitstream_count();
	    else if ((func) == AVAPI_STATUS_PCM_FIFO)	avapi_status = au_get_pcm_fifo_count();
//	    else if ((func) == AVAPI_SOUND_EFFECT)	avapi_status = au_get_sound_effect();
	    else if ((func) == AVAPI_KEYSHIFT)		avapi_status = au_get_key();
	    else if ((func) == AVAPI_CHANNEL)		avapi_status = au_get_channel_select();
	    else if ((func) == AVAPI_MUTE)		avapi_status = au_get_mute_flag();
	    else if ((func) == AVAPI_VOLUME)		avapi_status = au_get_volume();
	    else if ((func) == AVAPI_MIC_MODE)		avapi_status = au_get_mic_mode();
	    else if ((func) == AVAPI_MIC_VOLUME)	avapi_status = au_get_mic_volume();
//	    else if ((func) == AVAPI_FDFC_STOP)		avapi_status = au_is_fudu_stopped();
	    else if ((func) == AVAPI_STATUS_PCM_HIGH)	avapi_status = polling_pcm_energy();
	    else if ((func) == AVAPI_STATUS_SCORING)	avapi_status = is_scoring();
	    else if ((func) == AVAPI_SCORE_LOCAL)	avapi_status = get_local_score();
	    else if ((func) == AVAPI_SCORE_GLOBAL)	avapi_status = get_score();
//	    else if ((func) == AVAPI_MP3_BITRATE)	avapi_status = mp3_get_bitrate();
//	    else if ((func) == AVAPI_ESP_SAMPLE_COUNT)	avapi_status = adpcm_buffer_count();
//	    else if ((func) == AVAPI_ESP_FREE_SAMPLE_COUNT)
//		avapi_status = adpcm_buffer_free_count();
	}
    }
}
#endif

⌨️ 快捷键说明

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