Libav
|
00001 /* 00002 * Copyright (C) 2001-2003 Michael Niedermayer (michaelni@gmx.at) 00003 * 00004 * This file is part of FFmpeg. 00005 * 00006 * FFmpeg is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * FFmpeg is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with FFmpeg; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef POSTPROC_POSTPROCESS_H 00022 #define POSTPROC_POSTPROCESS_H 00023 00030 #include "libavutil/avutil.h" 00031 00032 #define LIBPOSTPROC_VERSION_MAJOR 51 00033 #define LIBPOSTPROC_VERSION_MINOR 2 00034 #define LIBPOSTPROC_VERSION_MICRO 0 00035 00036 #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \ 00037 LIBPOSTPROC_VERSION_MINOR, \ 00038 LIBPOSTPROC_VERSION_MICRO) 00039 #define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \ 00040 LIBPOSTPROC_VERSION_MINOR, \ 00041 LIBPOSTPROC_VERSION_MICRO) 00042 #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT 00043 00044 #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION) 00045 00049 unsigned postproc_version(void); 00050 00054 const char *postproc_configuration(void); 00055 00059 const char *postproc_license(void); 00060 00061 #define PP_QUALITY_MAX 6 00062 00063 #define QP_STORE_T int8_t 00064 00065 #include <inttypes.h> 00066 00067 typedef void pp_context; 00068 typedef void pp_mode; 00069 00070 #if LIBPOSTPROC_VERSION_INT < (52<<16) 00071 typedef pp_context pp_context_t; 00072 typedef pp_mode pp_mode_t; 00073 extern const char *const pp_help; 00074 #else 00075 extern const char pp_help[]; 00076 #endif 00077 00078 void pp_postprocess(const uint8_t * src[3], const int srcStride[3], 00079 uint8_t * dst[3], const int dstStride[3], 00080 int horizontalSize, int verticalSize, 00081 const QP_STORE_T *QP_store, int QP_stride, 00082 pp_mode *mode, pp_context *ppContext, int pict_type); 00083 00084 00090 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality); 00091 void pp_free_mode(pp_mode *mode); 00092 00093 pp_context *pp_get_context(int width, int height, int flags); 00094 void pp_free_context(pp_context *ppContext); 00095 00096 #define PP_CPU_CAPS_MMX 0x80000000 00097 #define PP_CPU_CAPS_MMX2 0x20000000 00098 #define PP_CPU_CAPS_3DNOW 0x40000000 00099 #define PP_CPU_CAPS_ALTIVEC 0x10000000 00100 00101 #define PP_FORMAT 0x00000008 00102 #define PP_FORMAT_420 (0x00000011|PP_FORMAT) 00103 #define PP_FORMAT_422 (0x00000001|PP_FORMAT) 00104 #define PP_FORMAT_411 (0x00000002|PP_FORMAT) 00105 #define PP_FORMAT_444 (0x00000000|PP_FORMAT) 00106 00107 #define PP_PICT_TYPE_QP2 0x00000010 ///< MPEG2 style QScale 00108 00109 #endif /* POSTPROC_POSTPROCESS_H */