/*1* Copyright (C) 2001-2003 Michael Niedermayer ([email protected])2*3* This file is part of FFmpeg.4*5* FFmpeg is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* FFmpeg is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with FFmpeg; if not, write to the Free Software17* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18*/1920#ifndef POSTPROC_POSTPROCESS_H21#define POSTPROC_POSTPROCESS_H2223/**24* @file25* @ingroup lpp26* external API header27*/2829/**30* @defgroup lpp Libpostproc31* @{32*/3334#include "libpostproc/version.h"3536/**37* Return the LIBPOSTPROC_VERSION_INT constant.38*/39unsigned postproc_version(void);4041/**42* Return the libpostproc build-time configuration.43*/44const char *postproc_configuration(void);4546/**47* Return the libpostproc license.48*/49const char *postproc_license(void);5051#define PP_QUALITY_MAX 65253#if FF_API_QP_TYPE54#define QP_STORE_T int8_t //deprecated55#endif5657#include <inttypes.h>5859typedef void pp_context;60typedef void pp_mode;6162#if LIBPOSTPROC_VERSION_INT < (52<<16)63typedef pp_context pp_context_t;64typedef pp_mode pp_mode_t;65extern const char *const pp_help; ///< a simple help text66#else67extern const char pp_help[]; ///< a simple help text68#endif6970void pp_postprocess(const uint8_t * src[3], const int srcStride[3],71uint8_t * dst[3], const int dstStride[3],72int horizontalSize, int verticalSize,73const int8_t *QP_store, int QP_stride,74pp_mode *mode, pp_context *ppContext, int pict_type);757677/**78* Return a pp_mode or NULL if an error occurred.79*80* @param name the string after "-pp" on the command line81* @param quality a number from 0 to PP_QUALITY_MAX82*/83pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);84void pp_free_mode(pp_mode *mode);8586pp_context *pp_get_context(int width, int height, int flags);87void pp_free_context(pp_context *ppContext);8889#define PP_CPU_CAPS_MMX 0x8000000090#define PP_CPU_CAPS_MMX2 0x2000000091#define PP_CPU_CAPS_3DNOW 0x4000000092#define PP_CPU_CAPS_ALTIVEC 0x1000000093#define PP_CPU_CAPS_AUTO 0x000800009495#define PP_FORMAT 0x0000000896#define PP_FORMAT_420 (0x00000011|PP_FORMAT)97#define PP_FORMAT_422 (0x00000001|PP_FORMAT)98#define PP_FORMAT_411 (0x00000002|PP_FORMAT)99#define PP_FORMAT_444 (0x00000000|PP_FORMAT)100#define PP_FORMAT_440 (0x00000010|PP_FORMAT)101102#define PP_PICT_TYPE_QP2 0x00000010 ///< MPEG2 style QScale103104/**105* @}106*/107108#endif /* POSTPROC_POSTPROCESS_H */109110111