wut/include/h264/enum.h

57 lines
1.7 KiB
C
Raw Normal View History

2020-05-10 01:18:07 +02:00
#pragma once
#include <wut.h>
/**
* \defgroup h264_enum Enums
2020-05-21 14:35:02 +02:00
* \ingroup h264
2020-05-10 01:18:07 +02:00
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
2020-05-21 14:53:06 +02:00
//! h264 library errors.
2020-05-10 01:18:07 +02:00
typedef enum H264Error
{
2020-05-21 14:53:06 +02:00
//! No errors.
2020-05-10 01:18:07 +02:00
H264_ERROR_OK = 0,
2020-05-21 14:53:06 +02:00
//! Invalid picture parameter set.
2020-05-10 01:18:07 +02:00
H264_ERROR_INVALID_PPS = 24,
2020-05-21 14:53:06 +02:00
//! Invalid sequence parameter set.
2020-05-10 01:18:07 +02:00
H264_ERROR_INVALID_SPS = 26,
2020-05-21 14:53:06 +02:00
//! Invalid slice header.
2020-05-10 01:18:07 +02:00
H264_ERROR_INVALID_SLICEHEADER = 61,
2020-05-21 14:53:06 +02:00
//! Generic h264 error.
2020-05-10 01:18:07 +02:00
H264_ERROR_GENERIC = 0x1000000,
2020-05-21 14:53:06 +02:00
//! Invalid parameters passed.
2020-05-10 01:18:07 +02:00
H264_ERROR_INVALID_PARAMETER = 0x1010000,
2020-05-21 14:53:06 +02:00
//! The amount of memory provided to the h264 library
//! is insufficient.
2020-05-10 01:18:07 +02:00
H264_ERROR_OUT_OF_MEMORY = 0x1020000,
2020-05-21 14:53:06 +02:00
//! Invalid h264 stream profile. Only the baseline (66),
//! main (77) and high (100) profiles are allowed.
2020-05-10 01:18:07 +02:00
H264_ERROR_INVALID_PROFILE = 0x1080000,
} H264Error;
2020-05-21 14:53:06 +02:00
//! h264 decoder parameters for H264DECSetParam.
2020-05-10 01:18:07 +02:00
typedef enum H264Parameter
{
2020-05-21 14:53:06 +02:00
//! Set the callback which is called when a frame is output from the decoder.
2020-05-10 01:18:07 +02:00
H264_PARAMETER_FRAME_POINTER_OUTPUT = 1,
2020-05-21 14:53:06 +02:00
//! Set whether the decoder should internally buffer frames or call the callback
//! immediately as soon as a frame is emitted.
2020-05-10 01:18:07 +02:00
H264_PARAMETER_OUTPUT_PER_FRAME = 0x20000002,
H264_PARAMETER_UNKNOWN_20000010 = 0x20000010,
H264_PARAMETER_UNKNOWN_20000030 = 0x20000030,
H264_PARAMETER_UNKNOWN_20000040 = 0x20000040,
2020-05-21 14:53:06 +02:00
//! Set a user memory pointer which is passed to the frame output callback.
2020-05-10 01:18:07 +02:00
H264_PARAMETER_USER_MEMORY = 0x70000001,
} H264Parameter;
#ifdef __cplusplus
}
#endif
/** @} */