t25_osd2.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 119 行
H
119 行
/*****************************************************************
** **
** Copyright (C) 2004 Amlogic,Inc. **
** All rights reserved **
** Filename : t25_osd2.c /Project:AVOS **
** Revision : 1.0 **
** **
*****************************************************************/
#ifndef __T25_OSD2_H_
#define __T25_OSD2_H_
#include "osd_output.h"
extern INT32U Osd2OutputFlag ;
extern INT32S osd2_reg_even_addr, osd2_reg_odd_addr ;
void OSD2RefreshBuffer(POSD2ARG pOsd2Arg,unsigned char even_odd) ;
/****************************************************************************************/
/* close screen and free memory for display buffer.
PSCRDEV psd : screen device point; */
/****************************************************************************************/
void OSD2Destroy(POSD2ARG pOsd2Arg) ;
void OSD2Create(POSD2ARG pOsd2Arg) ;
/****************************************************************************************/
/* set screen's system palette, or window's palette.
PSCRDEV psd : screen device point;
INT8U handle: indicate set which palette, 0 is sys, other is the window id
INT32S count: set palette or alpha mask number
YUVENTRY *pal : palette or alpha mask value */
/****************************************************************************************/
void OSD2SetPaletteSPU(POSD2ARG pOsd2Arg) ;
void OSD2SetPaletteHL1(POSD2ARG pOsd2Arg) ;
void OSD2SetPaletteHL2(POSD2ARG pOsd2Arg) ;
void OSD2SetPositionHL1(POSD2ARG pOsd2Arg) ;
void OSD2SetPositionHL2(POSD2ARG pOsd2Arg) ;
void OSD2SetHsize(POSD2ARG pOsd2Arg) ;
/****************************************************************************************/
/* set screen's system alpha blending mask, or window's alpha blending mask.
PSCRDEV psd : screen device point;
INT8U handle: indicate set which palette, 0 is sys, other is the window id
INT32S count: set palette or alpha mask number
YUVENTRY *pal : palette or alpha mask value */
/****************************************************************************************/
void OSD2SetAlphaMaskSPU(POSD2ARG pOsd2Arg) ;
void OSD2SetAlphaMaskHL1(POSD2ARG pOsd2Arg);
void OSD2SetAlphaMaskHL2(POSD2ARG pOsd2Arg) ;
/****************************************************************************************/
/* Set device flag as off screen, means all following draw action should do on off
display buffer. If device don't support off screen function, this function should do
nothing. */
/****************************************************************************************/
void OSD2SetOffScreen(POSD2ARG pOsd2Arg) ;
/****************************************************************************************/
/* If support off screen, this function will active the off screen buffer as current display
buffer and change the before display buffer to off screen buffer. If don't support off screen
function, should be a empty function
POSDDEV psd : screen device point; */
/****************************************************************************************/
void OSD2ActiveOffScreen(POSD2ARG pOsd2Arg) ;
/********************************************************************************************/
/* Turn off screen, don't show anything. If device don't support this function, do nothing
PSCRDEV psd : screen device point; */
/********************************************************************************************/
void OSD2TurnOffScreen(POSD2ARG pOsd2Arg) ;
/********************************************************************************************/
/* Turn on screen. If device don't support this function, do nothing
PSCRDEV psd : screen device point; */
/********************************************************************************************/
void OSD2TurnOnScreen(POSD2ARG pOsd2Arg) ;
/********************************************************************************************/
/* Turn on highlight. If device don't support this function, do nothing
POSD2ARG pOsd2Arg : screen device point; */
/********************************************************************************************/
void OSD2EnableHL(POSD2ARG pOsd2Arg);
/********************************************************************************************/
/* Turn off highlight. If device don't support this function, do nothing
POSD2ARG pOsd2Arg : screen device point; */
/********************************************************************************************/
void OSD2DisableHL(POSD2ARG pOsd2Arg);
void OSD2SetBufferAddr(POSD2ARG pOsd2Arg) ;
void OSD2WriteData(POSD2ARG pOsd2Arg) ;
/****************************************************************************************
* FillOneLinePixel() *
* Function : Fill one line pixel data on OSD2. *
* Input : Type *
* 0: Normal, fill one line PXD. *
* 1: Repro1, fill one line PXD and back up the read/write point. *
* 2: Repro2, fill one line PXD and back up the read point. *
* 3: Back, fill one line PXD and back up the write point. *
* 4: Del&Back, del one line PXD and back up the write point. *
* 5: Check, check whether one line contains sub-picture data, if *
* contains return 1. *
****************************************************************************************/
unsigned char FillOneLinePixel(POSD2ARG pOsd2Arg) ;
#endif //end of _T25_OSD2_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?