summaryrefslogtreecommitdiff
path: root/include/recorder_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/recorder_private.h')
-rw-r--r--include/recorder_private.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/recorder_private.h b/include/recorder_private.h
index 50ec96c..efcf0ed 100644
--- a/include/recorder_private.h
+++ b/include/recorder_private.h
@@ -11,7 +11,7 @@
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
-* limitations under the License.
+* limitations under the License.
*/
@@ -33,33 +33,39 @@ typedef union _mediaSource{
typedef enum {
_RECORDER_EVENT_TYPE_STATE_CHANGE,
- _RECORDER_EVENT_TYPE_RECORDING_LIMITED,
+ _RECORDER_EVENT_TYPE_RECORDING_LIMITED,
_RECORDER_EVENT_TYPE_RECORDING_STATUS,
_RECORDER_EVENT_TYPE_INTERRUPTED,
- _RECORDER_EVENT_TYPE_INTERRUPT_COMPLETED,
_RECORDER_EVENT_TYPE_AUDIO_STREAM,
_RECORDER_EVENT_TYPE_ERROR,
_RECORDER_EVENT_TYPE_NUM
}_recorder_event_e;
typedef enum {
- _RECORDER_TYPE_AUDIO= 0,
+ _RECORDER_TYPE_AUDIO = 0,
_RECORDER_TYPE_VIDEO
}_recorder_type_e;
+typedef enum {
+ _RECORDER_SOURCE_TYPE_UNKNOWN,
+ _RECORDER_SOURCE_TYPE_CAMERA,
+}_recorder_source_type_e;
+
typedef struct _recorder_s{
MMHandleType mm_handle;
mediasource mm_source;
void* user_cb[_RECORDER_EVENT_TYPE_NUM];
void* user_data[_RECORDER_EVENT_TYPE_NUM];
unsigned int state;
- _recorder_type_e type;
+ int camera_device_count;
+ _recorder_type_e type;
+ _recorder_source_type_e src_type;
int origin_preview_format;
int changed_preview_format;
double last_max_input_level;
} recorder_s;
-static int __convert_recorder_error_code(const char *func, int code);
+int __convert_recorder_error_code(const char *func, int code);
#ifdef __cplusplus
}
#endif