FFmpeg
Macros
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. More...
 
#define AMF_GOTO_FAIL_IF_FALSE(avctx, exp, ret_value, ...)
 
#define AMF_TIME_BASE_Q   (AVRational){1, AMF_SECOND}
 

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; \
}

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; \
}

Definition at line 34 of file hwcontext_amf_internal.h.

◆ AMF_TIME_BASE_Q

#define AMF_TIME_BASE_Q   (AVRational){1, AMF_SECOND}

Definition at line 41 of file hwcontext_amf_internal.h.

fail
#define fail()
Definition: checkasm.h:193
AV_LOG_ERROR
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:209
exp
int8_t exp
Definition: eval.c:73