📄 decore.h
字号:
/**************************************************************************
* *
* This code has been developed by Adam Li. This software is an *
* implementation of a part of one or more MPEG-4 Video tools as *
* specified in ISO/IEC 14496-2 standard. Those intending to use this *
* software module in hardware or software products are advised that its *
* use may infringe existing patents or copyrights, and any such use *
* would be at such party's own risk. The original developer of this *
* software module and his/her company, and subsequent editors and their *
* companies (including Project Mayo), will have no liability for use of *
* this software or modifications or derivatives thereof. *
* *
/***************************************************************************************
*This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* The GPL can be found at: http://www.gnu.org/copyleft/gpl.html *
* *
* *
****************************************************************************************/
/**************************************************************************
* *
* Copyright (C) 2001 - Project Mayo *
* *
* Adam Li *
* Andrea Graziani *
* *
* DivX Advanced Research Center <darc@projectmayo.com> *
* *
**************************************************************************/
// decore.h //
// This is the header file describing
// the entrance function of the encoder core
// or the encore ...
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _DECORE_H_
#define _DECORE_H_
/**/
// decore options
#define DEC_OPT_INIT 0x00008000
#define DEC_OPT_RELEASE 0x00010000
#define DEC_OPT_SETPP 0x00020000 // set postprocessing mode
#define DEC_OPT_SETOUT 0x00040000 // set output mode
// decore return values
#define DEC_OK 0
#define DEC_MEMORY 1
#define DEC_BAD_FORMAT 2
// supported output formats
#define YUV12 1
#define RGB32 2
#define RGB24 3
#define RGB555 4
#define RGB565 5
#define YUV2 6
#define RGB565R 7
#define RGB565Z 8
#define RGB565RZ 9
#define RGB565ZPP 10
/**/
typedef struct _DEC_PARAM_
{
int x_dim; // x dimension of the frames to be decoded
int y_dim; // y dimension of the frames to be decoded
unsigned long color_depth; // leaved for compatibility (new value must be NULL)
int output_format;
int dither;
} DEC_PARAM;
typedef struct _DEC_FRAME_
{
void *bmp; // the 24-bit decoded bitmap
void *bitstream; // the decoder buffer
long length; // the lenght of the decoder stream
int render_flag;
} DEC_FRAME;
typedef struct AVPicture {
unsigned char *data[3];
int linesize[3];
unsigned char* rgbbuff;
unsigned char *last_picture[3];
int keyframe;
} AVPicture;
typedef struct _DEC_SET_
{
int postproc_level; // valid interval are [0..100]
} DEC_SET;
/**/
#endif // _DECORE_H_
#ifdef __cplusplus
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -