#include "NvVideoDecoder.h"
#include "NvLogging.h"
#include <cstring>
#include <errno.h>
#include <libv4l2.h>
Go to the source code of this file.
Defines | |
#define | DECODER_DEV "/dev/nvhost-nvdec" |
#define | CAT_NAME "NVDEC" |
#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 "NVDEC" |
Definition at line 37 of file NvVideoDecoder.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 39 of file NvVideoDecoder.cpp.
#define DECODER_DEV "/dev/nvhost-nvdec" |
Definition at line 36 of file NvVideoDecoder.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 54 of file NvVideoDecoder.cpp.
#define RETURN_ERROR_IF_FORMATS_NOT_SET | ( | ) |
Value:
if (output_plane_pixfmt == 0) { \ COMP_ERROR_MSG("Should be called after setting plane formats") \ return -1; \ }
Definition at line 60 of file NvVideoDecoder.cpp.
#define RETURN_ERROR_IF_FORMATS_SET | ( | ) |
Value:
if (output_plane_pixfmt != 0) { \ COMP_ERROR_MSG("Should be called before setting plane formats") \ return -1; \ }
Definition at line 48 of file NvVideoDecoder.cpp.