FFmpeg
Loading...
Searching...
No Matches
hwcontext_amf_internal.h File Reference
#include <AMF/core/Factory.h>
#include <AMF/core/Context.h>

Go to the source code of this file.

Macros

#define AMF_RETURN_IF_FALSE(avctx, exp, ret_value, ...)
 Error handling helper.
 
#define AMF_GOTO_FAIL_IF_FALSE(avctx, exp, ret_value, ...)
 
#define AMF_TIME_BASE_Q   (AVRational){1, AMF_SECOND}
 
#define AMF_IFACE_CALL(this, function, ...)
 

Macro Definition Documentation

◆ AMF_RETURN_IF_FALSE

#define AMF_RETURN_IF_FALSE ( avctx,
exp,
ret_value,
... )
Value:
if (!(exp)) { \
av_log(avctx, AV_LOG_ERROR, __VA_ARGS__); \
return ret_value; \
}
int8_t exp
Definition eval.c:76
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition log.h:210

Error handling helper.

Definition at line 28 of file hwcontext_amf_internal.h.

◆ AMF_GOTO_FAIL_IF_FALSE

#define AMF_GOTO_FAIL_IF_FALSE ( avctx,
exp,
ret_value,
... )
Value:
if (!(exp)) { \
av_log(avctx, AV_LOG_ERROR, __VA_ARGS__); \
ret = ret_value; \
goto fail; \
}
#define fail
Definition test.h:479

Definition at line 34 of file hwcontext_amf_internal.h.

Referenced by amf_config_props(), amf_decode_init(), amf_filter_filter_frame(), amf_frc_filter_avframe(), amf_map_frame(), and amf_receive_frame().

◆ AMF_TIME_BASE_Q

#define AMF_TIME_BASE_Q   (AVRational){1, AMF_SECOND}

Definition at line 41 of file hwcontext_amf_internal.h.

Referenced by amf_capture_frame().

◆ AMF_IFACE_CALL

#define AMF_IFACE_CALL ( this,
function,
... )