# Ap4Results.h File Reference

Go to the source code of this file.

## Defines
#define | AP4_FAILED(result) ((result) != AP4_SUCCESS)
#define | AP4_SUCCEEDED(result) ((result) == AP4_SUCCESS)
#define | AP4_CHECK(_x)
## Variables
const int | AP4_SUCCESS = 0
const int | AP4_FAILURE = -1
const int | AP4_ERROR_OUT_OF_MEMORY = -2
const int | AP4_ERROR_INVALID_PARAMETERS = -3
const int | AP4_ERROR_NO_SUCH_FILE = -4
const int | AP4_ERROR_PERMISSION_DENIED = -5
const int | AP4_ERROR_CANNOT_OPEN_FILE = -6
const int | AP4_ERROR_EOS = -7
const int | AP4_ERROR_WRITE_FAILED = -8
const int | AP4_ERROR_READ_FAILED = -9
const int | AP4_ERROR_INVALID_FORMAT = -10
const int | AP4_ERROR_NO_SUCH_ITEM = -11
const int | AP4_ERROR_OUT_OF_RANGE = -12
const int | AP4_ERROR_INTERNAL = -13
const int | AP4_ERROR_INVALID_STATE = -14
const int | AP4_ERROR_LIST_EMPTY = -15
const int | AP4_ERROR_LIST_OPERATION_ABORTED = -16
const int | AP4_ERROR_INVALID_RTP_CONSTRUCTOR_TYPE = -17
const int | AP4_ERROR_NOT_SUPPORTED = -18
const int | AP4_ERROR_INVALID_TRACK_TYPE = -19
const int | AP4_ERROR_INVALID_RTP_PACKET_EXTRA_DATA = -20
const int | AP4_ERROR_BUFFER_TOO_SMALL = -21
const int | AP4_ERROR_NOT_ENOUGH_DATA = -22

## Define Documentation

#define AP4_CHECK | ( | _x |  | ) |

Value:

    do {                      \
        AP4_Result _result = (_x);                  \
        if (AP4_FAILED(_result)) return _result;    \
    } while(0)

Definition at line 65 of file Ap4Results.h.

#define AP4_FAILED | ( | result |  | ) | ((result) != AP4_SUCCESS)

Definition at line 62 of file Ap4Results.h.

#define AP4_SUCCEEDED | ( | result |  | ) | ((result) == AP4_SUCCESS)

Definition at line 63 of file Ap4Results.h.

## Variable Documentation

const int AP4_ERROR_BUFFER_TOO_SMALL = -21

Definition at line 56 of file Ap4Results.h.

const int AP4_ERROR_CANNOT_OPEN_FILE = -6

Definition at line 41 of file Ap4Results.h.

const int AP4_ERROR_EOS = -7

Definition at line 42 of file Ap4Results.h.

const int AP4_ERROR_INTERNAL = -13

Definition at line 48 of file Ap4Results.h.

const int AP4_ERROR_INVALID_FORMAT = -10

Definition at line 45 of file Ap4Results.h.

const int AP4_ERROR_INVALID_PARAMETERS = -3

Definition at line 38 of file Ap4Results.h.

const int AP4_ERROR_INVALID_RTP_CONSTRUCTOR_TYPE = -17

Definition at line 52 of file Ap4Results.h.

const int AP4_ERROR_INVALID_RTP_PACKET_EXTRA_DATA = -20

Definition at line 55 of file Ap4Results.h.

const int AP4_ERROR_INVALID_STATE = -14

Definition at line 49 of file Ap4Results.h.

const int AP4_ERROR_INVALID_TRACK_TYPE = -19

Definition at line 54 of file Ap4Results.h.

const int AP4_ERROR_LIST_EMPTY = -15

Definition at line 50 of file Ap4Results.h.

Referenced by AP4_List< T >::PopHead().

const int AP4_ERROR_LIST_OPERATION_ABORTED = -16

Definition at line 51 of file Ap4Results.h.

Referenced by AP4_List< T >::ReverseApply().

const int AP4_ERROR_NO_SUCH_FILE = -4

Definition at line 39 of file Ap4Results.h.

const int AP4_ERROR_NO_SUCH_ITEM = -11

Definition at line 46 of file Ap4Results.h.

Referenced by AP4_List< T >::Find(), AP4_List< T >::Get(), AP4_List< T >::Remove(), and AP4_List< T >::ReverseFind().

const int AP4_ERROR_NOT_ENOUGH_DATA = -22

Definition at line 57 of file Ap4Results.h.

const int AP4_ERROR_NOT_SUPPORTED = -18

Definition at line 53 of file Ap4Results.h.

const int AP4_ERROR_OUT_OF_MEMORY = -2

Definition at line 37 of file Ap4Results.h.

Referenced by AP4_Array< T >::EnsureCapacity().

const int AP4_ERROR_OUT_OF_RANGE = -12

Definition at line 47 of file Ap4Results.h.

Referenced by AP4_Array< T >::RemoveLast().

const int AP4_ERROR_PERMISSION_DENIED = -5

Definition at line 40 of file Ap4Results.h.

const int AP4_ERROR_READ_FAILED = -9

Definition at line 44 of file Ap4Results.h.

const int AP4_ERROR_WRITE_FAILED = -8

Definition at line 43 of file Ap4Results.h.

const int AP4_FAILURE = -1

Definition at line 36 of file Ap4Results.h.

Referenced by AP4_List< T >::ApplyUntilSuccess(), AP4_DescriptorFinder::Test(), and AP4_AtomFinder::Test().

const int AP4_SUCCESS = 0

Definition at line 35 of file Ap4Results.h.

Referenced by AP4_DescriptorListInspector::Action(), AP4_AtomListInspector::Action(), AP4_List< T >::Add(), AP4_Array< T >::Append(), AP4_List< T >::Apply(), AP4_List< T >::ApplyUntilFailure(), AP4_List< T >::ApplyUntilSuccess(), AP4_Array< T >::Clear(), AP4_List< T >::DeleteReferences(), AP4_Array< T >::EnsureCapacity(), AP4_List< T >::Find(), AP4_ByteStream::Flush(), AP4_List< T >::Get(), AP4_MemoryByteStream::GetSize(), AP4_SubStream::GetSize(), AP4_List< T >::Insert(), AP4_Atom::InspectFields(), AP4_List< T >::PopHead(), AP4_Processor::TrackHandler::ProcessTrack(), AP4_List< T >::Remove(), AP4_Array< T >::RemoveLast(), AP4_List< T >::ReverseApply(), AP4_List< T >::ReverseFind(), AP4_TkhdAtom::SetDuration(), AP4_Atom::SetParent(), AP4_MvhdAtom::SetTimeScale(), AP4_TkhdAtom::SetTrackId(), AP4_MemoryByteStream::Tell(), AP4_SubStream::Tell(), AP4_DescriptorFinder::Test(), and AP4_AtomFinder::Test().