#include "NvVideoConverter.h"
#include "NvLogging.h"
#include <cstring>
#include <errno.h>
Go to the source code of this file.
Defines | |
#define | CONVERTER_DEV "/dev/nvhost-vic" |
#define | CAT_NAME "NVVIDCONV" |
#define | CHECK_V4L2_RETURN(ret, str) |
#define | RETURN_ERROR_IF_FORMATS_SET() |
#define | RETURN_ERROR_IF_BUFFERS_REQUESTED() |
#define | RETURN_ERROR_IF_FORMATS_NOT_SET() |
#define CAT_NAME "NVVIDCONV" |
Definition at line 36 of file NvVideoConverter.cpp.
#define CHECK_V4L2_RETURN | ( | ret, | |||
str | ) |
Value:
if (ret < 0) { \ COMP_SYS_ERROR_MSG(str << ": failed"); \ return -1; \ } else { \ COMP_DEBUG_MSG(str << ": success"); \ return 0; \ }
Definition at line 38 of file NvVideoConverter.cpp.
#define CONVERTER_DEV "/dev/nvhost-vic" |
Definition at line 35 of file NvVideoConverter.cpp.
#define RETURN_ERROR_IF_BUFFERS_REQUESTED | ( | ) |
Value:
if (output_plane.getNumBuffers() != 0 && capture_plane.getNumBuffers() != 0) { \ COMP_ERROR_MSG("Should be called before requesting buffers on either plane") \ return -1; \ }
Definition at line 53 of file NvVideoConverter.cpp.
#define RETURN_ERROR_IF_FORMATS_NOT_SET | ( | ) |
Value:
if (output_plane_pixfmt == 0 || capture_plane_pixfmt == 0) { \ COMP_ERROR_MSG("Should be called after setting plane formats") \ return -1; \ }
Definition at line 59 of file NvVideoConverter.cpp.
#define RETURN_ERROR_IF_FORMATS_SET | ( | ) |
Value:
if (output_plane_pixfmt != 0 || capture_plane_pixfmt != 0) { \ COMP_ERROR_MSG("Should be called before setting plane formats") \ return -1; \ }
Definition at line 47 of file NvVideoConverter.cpp.