21 #ifndef NDL_DIRECTMEDIA2_MEDIA_COMMON_H_
22 #define NDL_DIRECTMEDIA2_MEDIA_COMMON_H_
24 #include "media-types.h"
31 NDL_ESP_PTS_MICROSECS,
41 NDL_ESP_STREAM_T stream_type;
70 uint32_t video_encoding;
80 uint32_t bitspersample;
96 NDL_ESP_FIRST_FRAME_PRESENTED,
97 NDL_ESP_LOW_THRESHOLD_CROSSED_VIDEO,
98 NDL_ESP_HIGH_THRESHOLD_CROSSED_VIDEO,
99 NDL_ESP_STREAM_DRAINED_VIDEO,
100 NDL_ESP_LOW_THRESHOLD_CROSSED_AUDIO,
101 NDL_ESP_HIGH_THRESHOLD_CROSSED_AUDIO,
102 NDL_ESP_STREAM_DRAINED_AUDIO,
103 NDL_ESP_END_OF_STREAM,
105 NDL_ESP_RESOURCE_RELEASED_BY_POLICY,
106 NDL_ESP_VIDEOCONFIG_DECODED,
107 NDL_ESP_AUDIOCONFIG_DECODED,
108 NDL_ESP_VIDEO_PORT_CHANGED,
109 NDL_ESP_AUDIO_PORT_CHANGED,
112 #define NDL_ESP_FLAG_END_OF_STREAM 1
115 #define NDL_ESP_RESULT_SUCCESS 0
116 #define NDL_ESP_RESULT_FAIL (-1)
121 #define NDL_ESP_RESULT_FEED_FULL (-1)
122 #define NDL_ESP_RESULT_FEED_CODEC_ERROR (-1001)
123 #define NDL_ESP_RESULT_FEED_INVALID_INPUT (-1002)
124 #define NDL_ESP_RESULT_FEED_INVALID_STATE (-1003)
129 #define NDL_ESP_RESULT_VIDEO_UNSUPPORTED (-2000)
130 #define NDL_ESP_RESULT_VIDEO_CODEC_ERROR (-2001)
131 #define NDL_ESP_RESULT_VIDEO_RENDER_ERROR (-2002)
132 #define NDL_ESP_RESULT_VIDEO_TUNNEL_ERROR (-2003)
133 #define NDL_ESP_RESULT_VIDEO_BUFFER_ERROR (-2004)
134 #define NDL_ESP_RESULT_VIDEO_STATE_ERROR (-2005)
135 #define NDL_ESP_RESULT_AUDIO_UNSUPPORTED (-2100)
136 #define NDL_ESP_RESULT_AUDIO_CODEC_ERROR (-2101)
137 #define NDL_ESP_RESULT_AUDIO_RENDER_ERROR (-2102)
138 #define NDL_ESP_RESULT_AUDIO_TUNNEL_ERROR (-2103)
139 #define NDL_ESP_RESULT_AUDIO_BUFFER_ERROR (-2104)
140 #define NDL_ESP_RESULT_AUDIO_STATE_ERROR (-2105)
141 #define NDL_ESP_RESULT_CLOCK_ERROR (-2200)
142 #define NDL_ESP_RESULT_CLOCK_TUNNEL_ERROR (-2203)
143 #define NDL_ESP_RESULT_CLOCK_BUFFER_ERROR (-2204)
144 #define NDL_ESP_RESULT_CLOCK_STATE_ERROR (-2205)
145 #define NDL_ESP_RESULT_SET_STATE_ERROR (-2300)
148 #define CONNECTION_ID_BUFFER_SIZE 17
Definition: media-common.h:37