#include <nppi.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_cuda_internal.h"
#include "libavutil/cuda_check.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
|
static int | npptranspose_init (AVFilterContext *ctx) |
|
static void | npptranspose_uninit (AVFilterContext *ctx) |
|
static int | init_stage (NPPTransposeStageContext *stage, AVBufferRef *device_ctx) |
|
static int | format_is_supported (enum AVPixelFormat fmt) |
|
static int | init_processing_chain (AVFilterContext *ctx, int in_width, int in_height, int out_width, int out_height) |
|
static int | npptranspose_config_props (AVFilterLink *outlink) |
|
static int | npptranspose_rotate (AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in) |
|
static int | npptranspose_transpose (AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in) |
|
static int | npptranspose_filter (AVFilterContext *ctx, AVFrame *out, AVFrame *in) |
|
static int | npptranspose_filter_frame (AVFilterLink *link, AVFrame *in) |
|
◆ CHECK_CU
◆ OFFSET
◆ FLAGS
◆ TransposeStage
◆ Transpose
Enumerator |
---|
NPP_TRANSPOSE_CCLOCK_FLIP | |
NPP_TRANSPOSE_CLOCK | |
NPP_TRANSPOSE_CCLOCK | |
NPP_TRANSPOSE_CLOCK_FLIP | |
Definition at line 49 of file vf_transpose_npp.c.
◆ Passthrough
Enumerator |
---|
NPP_TRANSPOSE_PT_TYPE_NONE | |
NPP_TRANSPOSE_PT_TYPE_LANDSCAPE | |
NPP_TRANSPOSE_PT_TYPE_PORTRAIT | |
Definition at line 56 of file vf_transpose_npp.c.
◆ npptranspose_init()
◆ npptranspose_uninit()
◆ init_stage()
◆ format_is_supported()
◆ init_processing_chain()
◆ npptranspose_config_props()
◆ npptranspose_rotate()
◆ npptranspose_transpose()
◆ npptranspose_filter()
◆ npptranspose_filter_frame()
◆ supported_formats
◆ npptranspose_process
◆ options
◆ npptranspose_class
◆ npptranspose_inputs
◆ npptranspose_outputs
◆ ff_vf_transpose_npp
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
static int npptranspose_init(AVFilterContext *ctx)
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
static const AVClass npptranspose_class
static const AVOption options[]
static int npptranspose_config_props(AVFilterLink *outlink)
static int npptranspose_rotate(AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in)
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_INPUTS(array)
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
@ NPP_TRANSPOSE_PT_TYPE_PORTRAIT
@ NPP_TRANSPOSE_PT_TYPE_LANDSCAPE
static void npptranspose_uninit(AVFilterContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FILTER_SINGLE_PIXFMT(pix_fmt_)
@ NPP_TRANSPOSE_CLOCK_FLIP
static const AVFilterPad npptranspose_outputs[]
static int npptranspose_transpose(AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in)
static int npptranspose_filter_frame(AVFilterLink *link, AVFrame *in)
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ NPP_TRANSPOSE_PT_TYPE_NONE
#define FILTER_OUTPUTS(array)
@ NPP_TRANSPOSE_CCLOCK_FLIP
static const AVFilterPad npptranspose_inputs[]