#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/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 | npptranspose_query_formats (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) |
|
Enumerator |
---|
NPP_TRANSPOSE_CCLOCK_FLIP |
|
NPP_TRANSPOSE_CLOCK |
|
NPP_TRANSPOSE_CCLOCK |
|
NPP_TRANSPOSE_CLOCK_FLIP |
|
Definition at line 46 of file vf_transpose_npp.c.
Enumerator |
---|
NPP_TRANSPOSE_PT_TYPE_NONE |
|
NPP_TRANSPOSE_PT_TYPE_LANDSCAPE |
|
NPP_TRANSPOSE_PT_TYPE_PORTRAIT |
|
Definition at line 53 of file vf_transpose_npp.c.
Initial value:= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition at line 35 of file vf_transpose_npp.c.
Referenced by format_is_supported().
Initial value:= {
}
static int npptranspose_transpose(AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in)
static int npptranspose_rotate(AVFilterContext *ctx, NPPTransposeStageContext *stage, AVFrame *out, AVFrame *in)
Definition at line 351 of file vf_transpose_npp.c.
Referenced by npptranspose_filter().
Initial value:= {
.class_name = "npptranspose",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 451 of file vf_transpose_npp.c.
Initial value:= {
{
.name = "default",
},
}
static int npptranspose_filter_frame(AVFilterLink *link, AVFrame *in)
Definition at line 458 of file vf_transpose_npp.c.
Initial value:= {
{
.name = "default",
},
}
static int npptranspose_config_props(AVFilterLink *outlink)
Definition at line 467 of file vf_transpose_npp.c.
Initial value:= {
.name = "transpose_npp",
}
#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 AVFilterPad npptranspose_inputs[]
static int npptranspose_init(AVFilterContext *ctx)
static void npptranspose_uninit(AVFilterContext *ctx)
static const AVClass npptranspose_class
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int npptranspose_query_formats(AVFilterContext *ctx)
static const AVFilterPad npptranspose_outputs[]
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
Definition at line 476 of file vf_transpose_npp.c.