forked from jocover/jetson-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nvutils api support. nvbuf_utils compatible. jocover#125 jocove…
- Loading branch information
Showing
4 changed files
with
234 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#if defined(WITH_NVUTILS) | ||
#include "nvbufsurface.h" | ||
#include "nvbufsurftransform.h" | ||
#include "NvBufSurface.h" | ||
#define MAX_NUM_PLANES NVBUF_MAX_PLANES | ||
#define NvBufferDestroy NvBufSurf::NvDestroy | ||
#define NvBufferCreateParams NvBufSurf::NvCommonAllocateParams | ||
#define NvBufferColorFormat_NV12 NVBUF_COLOR_FORMAT_NV12 | ||
#define NvBufferColorFormat_NV12_ER NVBUF_COLOR_FORMAT_NV12_ER | ||
#define NvBufferColorFormat_NV12_709 NVBUF_COLOR_FORMAT_NV12_709 | ||
#define NvBufferColorFormat_NV12_709_ER NVBUF_COLOR_FORMAT_NV12_709_ER | ||
#define NvBufferColorFormat_NV12_2020 NVBUF_COLOR_FORMAT_NV12_2020 | ||
#define NvBufferColorFormat_YUV420 NVBUF_COLOR_FORMAT_YUV420 | ||
#define NvBufferLayout_Pitch NVBUF_LAYOUT_PITCH | ||
#define NvBufferLayout_BlockLinear NVBUF_LAYOUT_BLOCK_LINEAR | ||
#define NvBufferTransformParams NvBufSurfTransformParams | ||
#define NvBufferRect NvBufSurfTransformRect | ||
#define NVBUFFER_TRANSFORM_FILTER NVBUFSURF_TRANSFORM_FILTER | ||
#define NvBufferTransform_None NvBufSurfTransform_None | ||
#define NvBufferTransform_Filter_Smart NvBufSurfTransformInter_Algo3 | ||
#define NvBufferTransform_Filter_Nearest NvBufSurfTransformInter_Nearest | ||
#define NvBufferParams NvBufSurfTransform | ||
|
||
//#define NvBuffer2Raw(dmabuf, plane, out_width, out_height, ptr) | ||
#else | ||
#include "nvbuf_utils.h" | ||
#endif |
Oops, something went wrong.