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 00051 #define PP_QUALITY_MAX 6 00052 00053 #define QP_STORE_T int8_t 00054 00055 #include <inttypes.h> 00056 00057 typedef void pp_context; 00058 typedef void pp_mode; 00059 00060 #if LIBPOSTPROC_VERSION_INT < (52<<16) 00061 typedef pp_context pp_context_t; 00062 typedef pp_mode pp_mode_t; 00063 extern const char *const pp_help; 00064 #else 00065 extern const char pp_help[]; 00066 #endif 00067 00068 void pp_postprocess(const uint8_t * src[3], const int srcStride[3], 00069 uint8_t * dst[3], const int dstStride[3], 00070 int horizontalSize, int verticalSize, 00071 const QP_STORE_T *QP_store, int QP_stride, 00072 pp_mode *mode, pp_context *ppContext, int pict_type); 00073 00074 00080 pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality); 00081 void pp_free_mode(pp_mode *mode); 00082 00083 pp_context *pp_get_context(int width, int height, int flags); 00084 void pp_free_context(pp_context *ppContext); 00085 00086 #define PP_CPU_CAPS_MMX 0x80000000 00087 #define PP_CPU_CAPS_MMX2 0x20000000 00088 #define PP_CPU_CAPS_3DNOW 0x40000000 00089 #define PP_CPU_CAPS_ALTIVEC 0x10000000 00090 00091 #define PP_FORMAT 0x00000008 00092 #define PP_FORMAT_420 (0x00000011|PP_FORMAT) 00093 #define PP_FORMAT_422 (0x00000001|PP_FORMAT) 00094 #define PP_FORMAT_411 (0x00000002|PP_FORMAT) 00095 #define PP_FORMAT_444 (0x00000000|PP_FORMAT) 00096 00097 #define PP_PICT_TYPE_QP2 0x00000010 00098 00099 #endif /* POSTPROC_POSTPROCESS_H */