You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
863 B

#pragma once
#include <errno.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <math.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/poll.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "mpp/hi_comm_vo.h"
#include "mpp/hi_tde_api.h"
#include "mpp/hi_tde_type.h"
#include "mpp/hifb.h"
#include "sample_comm.h"
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCALE_WIDTH 504
#define SCALE_HEIGHT 480
extern HI_S32 g_hFrameBuffer;
extern HIFB_BUFFER_S g_stCanvasBuf;
extern void* g_BackBuffer;
extern HI_U32 g_pSnesBackBufferPhys;
extern void* g_pSnesBackBufferVirt;
extern HI_U32 g_pScaleBufferPhys;
extern void* g_pScaleBufferVirt;
HI_BOOL HiInitDisplay();
void RefreshScreen();