Path: blob/master/dep/ffmpeg/include/libpostproc/postprocess.h
4216 views
/*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* Video postprocessing library.32*33* @{34*/3536#include "libpostproc/version_major.h"37#ifndef HAVE_AV_CONFIG_H38/* When included as part of the ffmpeg build, only include the major version39* to avoid unnecessary rebuilds. When included externally, keep including40* the full version information. */41#include "libpostproc/version.h"42#endif4344/**45* Return the LIBPOSTPROC_VERSION_INT constant.46*/47unsigned postproc_version(void);4849/**50* Return the libpostproc build-time configuration.51*/52const char *postproc_configuration(void);5354/**55* Return the libpostproc license.56*/57const char *postproc_license(void);5859#define PP_QUALITY_MAX 66061#include <inttypes.h>6263typedef void pp_context;64typedef void pp_mode;6566extern const char pp_help[]; ///< a simple help text6768void pp_postprocess(const uint8_t * src[3], const int srcStride[3],69uint8_t * dst[3], const int dstStride[3],70int horizontalSize, int verticalSize,71const int8_t *QP_store, int QP_stride,72pp_mode *mode, pp_context *ppContext, int pict_type);737475/**76* Return a pp_mode or NULL if an error occurred.77*78* @param name the string after "-pp" on the command line79* @param quality a number from 0 to PP_QUALITY_MAX80*/81pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality);82void pp_free_mode(pp_mode *mode);8384pp_context *pp_get_context(int width, int height, int flags);85void pp_free_context(pp_context *ppContext);8687#define PP_CPU_CAPS_MMX 0x8000000088#define PP_CPU_CAPS_MMX2 0x2000000089#define PP_CPU_CAPS_3DNOW 0x4000000090#define PP_CPU_CAPS_ALTIVEC 0x1000000091#define PP_CPU_CAPS_AUTO 0x000800009293#define PP_FORMAT 0x0000000894#define PP_FORMAT_420 (0x00000011|PP_FORMAT)95#define PP_FORMAT_422 (0x00000001|PP_FORMAT)96#define PP_FORMAT_411 (0x00000002|PP_FORMAT)97#define PP_FORMAT_444 (0x00000000|PP_FORMAT)98#define PP_FORMAT_440 (0x00000010|PP_FORMAT)99100#define PP_PICT_TYPE_QP2 0x00000010 ///< MPEG2 style QScale101102/**103* @}104*/105106#endif /* POSTPROC_POSTPROCESS_H */107108109