?? s264_syntax.h
字號:
/*!
************************************************************************
*
*
* The library contain AVC H.264 baseline codec,which can process video
* less than 12 minutes.
*
* (C) Copyright 2007 by Tonald DL
* All rights reserved
*
* Date: 2007-08-11
* Version: 070811A
* Contact Personal: Tonald DL
* Email: dhcodec@hotmail.com
*
************************************************************************
*/
#ifndef _S264_SYTANX_H_
#define _S264_SYTANX_H_
typedef unsigned char byte;
typedef char sbyte;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef int uaddr;
#define S264_PCI_SYNTAX_ADDR_BASE 0x10810000
#define S264_PCI_SYNTAX_BYTE_LEN 0x00001000
#define S264_PCI_SYNTAX_WORD_LEN 0x00000400
#define S264_PCI_DATA_ADDR_BASE 0x10811000
#define S264_PCI_DATA_BYTE_LEN 0x00007000
#define S264_PCI_DATA_WORD_LEN 0x00001C00
enum{
S264_PCI_OWNER_PC=0x10000001,
S264_PCI_OWNER_DM6437=0x10000002
};
enum{
S264_PCI_OP_ENC_PARA=0x20000001,
S264_PCI_OP_ENC_YUV420_IN_START=0x20000002,
S264_PCI_OP_ENC_YUV420_IN_PROC=0x20000003,
S264_PCI_OP_ENC_YUV420_IN_END=0x20000004,
S264_PCI_OP_ENC_YUV420_OUT_START=0x20000005,
S264_PCI_OP_ENC_YUV420_OUT_PROC=0x20000006,
S264_PCI_OP_ENC_YUV420_OUT_END=0x20000007,
S264_PCI_OP_ENC_BITS_OUT_START=0x20000008,
S264_PCI_OP_ENC_BITS_OUT_PROC=0x20000009,
S264_PCI_OP_ENC_BITS_OUT_END=0x2000000a,
S264_PCI_OP_ENC_MIPS_OUT=0x2000000b,
S264_PCI_OP_ENC_ACK=0x2000000c,
S264_PCI_OP_ENC_CLEANUP=0x2000000d
};
enum{
NEW_SEQ=0,
INTRA_FRAM=1,
INTER_FRAME=2,
AUTO_FRAME=3
};
typedef struct _S264_PCI_SYNTAX
{
void* BufAddr;
int BufWordLen;
int OpCode;
int TokenOwner;
} S264_PCI_SYNTAX;
//the encoder control parameters
typedef struct _ENCFRAME_PROP
{
int CodeLength; //output parameter
// the value will indicate the length of encoded stream in output buffer, counted as bytes.
int ImageHeight; //input parameter
//image height, should be times of 16.
int ImageWidth; //input parameter
// image width, should be times of 16.
int IntraPeriod; //input parameter
// encoder will generate intra frame every IntraPeriod num frames.
int VideoQuality; //input parameter
// the video quality parameter,
//while value between [1 50], lower number will get better quality, higher number will get higher compress ratio.
//While value bigger than 100, this parameter will become rate-control target kbps.
int FrameType; //input parameter
// set to NEW_SEQ will make encoder flush and generate new stream.
// set to INTRA_FRAM will make encoder encoding current frame as intra frame.
// set to INTER_FRAME will make encoder encoding current frame as inter frame.
// set to AUTO_FRAME will make encoder generate inter and intra frame depend on IntraPeriod.
}ENCFRAME_PROP;
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -