| 
    Tizen Native API
    4.0
    
   
   | 
  
  
  
 
The Capability API provides capability information of the StreamRecorder.
#include <streamrecorder.h>
The StreamRecorder Capability API provides functions to obtain capability information of the StreamRecorder.
Functions | |
| int | streamrecorder_foreach_supported_file_format (streamrecorder_h recorder, streamrecorder_supported_file_format_cb callback, void *user_data) | 
| Retrieves all supported file formats by invoking a specific callback for each supported file format.   | |
| int | streamrecorder_foreach_supported_audio_encoder (streamrecorder_h recorder, streamrecorder_supported_audio_encoder_cb callback, void *user_data) | 
| Retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder.   | |
| int | streamrecorder_foreach_supported_video_encoder (streamrecorder_h recorder, streamrecorder_supported_video_encoder_cb callback, void *user_data) | 
| Retrieves all supported video encoders by invoking a specific callback for each supported video encoder.   | |
| int | streamrecorder_foreach_supported_video_resolution (streamrecorder_h recorder, streamrecorder_supported_video_resolution_cb foreach_cb, void *user_data) | 
| Retrieves all supported video resolutions by invoking callback function once for each supported video resolution.   | |
Typedefs | |
| typedef bool(* | streamrecorder_supported_video_resolution_cb )(int width, int height, void *user_data) | 
| Called once for each supported video resolution.   | |
| typedef bool(* | streamrecorder_supported_file_format_cb )(streamrecorder_file_format_e format, void *user_data) | 
| Called iteratively to notify about the supported file formats.   | |
| typedef bool(* | streamrecorder_supported_audio_encoder_cb )(streamrecorder_audio_codec_e codec, void *user_data) | 
| Called iteratively to notify about the supported audio encoders.   | |
| typedef bool(* | streamrecorder_supported_video_encoder_cb )(streamrecorder_video_codec_e codec, void *user_data) | 
| Called iteratively to notify about the supported video encoders.   | |
| typedef bool(* streamrecorder_supported_audio_encoder_cb)(streamrecorder_audio_codec_e codec, void *user_data) | 
Called iteratively to notify about the supported audio encoders.
| [in] | codec | The codec of audio encoder | 
| [in] | user_data | The user data passed from the foreach function | 
true to continue with the next iteration of the loop, false to break out of the loop | typedef bool(* streamrecorder_supported_file_format_cb)(streamrecorder_file_format_e format, void *user_data) | 
Called iteratively to notify about the supported file formats.
| [in] | format | The format of recording files | 
| [in] | user_data | The user data passed from the foreach function | 
true to continue with the next iteration of the loop, false to break out of the loop | typedef bool(* streamrecorder_supported_video_encoder_cb)(streamrecorder_video_codec_e codec, void *user_data) | 
Called iteratively to notify about the supported video encoders.
| [in] | codec | The codec of video encoder | 
| [in] | user_data | The user data passed from the foreach function | 
true to continue with the next iteration of the loop, false to break out of the loop | typedef bool(* streamrecorder_supported_video_resolution_cb)(int width, int height, void *user_data) | 
Called once for each supported video resolution.
| [in] | width | The video image width | 
| [in] | height | The video image height | 
| [in] | user_data | The user data passed from the foreach function | 
true to continue with the next iteration of the loop, false to break out of the loop | int streamrecorder_foreach_supported_audio_encoder | ( | streamrecorder_h | recorder, | 
| streamrecorder_supported_audio_encoder_cb | callback, | ||
| void * | user_data | ||
| ) | 
Retrieves all supported audio encoders by invoking a specific callback for each supported audio encoder.
| [in] | recorder | The handle to the streamrecorder | 
| [in] | callback | The iteration callback | 
| [in] | user_data | The user data to be passed to the callback function | 
0 on success, otherwise a negative error value | STREAMRECORDER_ERROR_NONE | Successful | 
| STREAMRECORDER_ERROR_INVALID_PARAMETER | Invalid parameter | 
| int streamrecorder_foreach_supported_file_format | ( | streamrecorder_h | recorder, | 
| streamrecorder_supported_file_format_cb | callback, | ||
| void * | user_data | ||
| ) | 
Retrieves all supported file formats by invoking a specific callback for each supported file format.
| [in] | recorder | The handle to the streamrecorder | 
| [in] | callback | The iteration callback | 
| [in] | user_data | The user data to be passed to the callback function | 
0 on success, otherwise a negative error value | STREAMRECORDER_ERROR_NONE | Successful | 
| STREAMRECORDER_ERROR_INVALID_PARAMETER | Invalid parameter | 
| int streamrecorder_foreach_supported_video_encoder | ( | streamrecorder_h | recorder, | 
| streamrecorder_supported_video_encoder_cb | callback, | ||
| void * | user_data | ||
| ) | 
Retrieves all supported video encoders by invoking a specific callback for each supported video encoder.
| [in] | recorder | The handle to the streamrecorder | 
| [in] | callback | The iteration callback | 
| [in] | user_data | The user data to be passed to the callback function | 
0 on success, otherwise a negative error value | STREAMRECORDER_ERROR_NONE | Successful | 
| STREAMRECORDER_ERROR_INVALID_PARAMETER | Invalid parameter | 
| int streamrecorder_foreach_supported_video_resolution | ( | streamrecorder_h | recorder, | 
| streamrecorder_supported_video_resolution_cb | foreach_cb, | ||
| void * | user_data | ||
| ) | 
Retrieves all supported video resolutions by invoking callback function once for each supported video resolution.
| [in] | recorder | The handle to the streamrecorder | 
| [in] | foreach_cb | The callback function to be invoked | 
| [in] | user_data | The user data to be passed to the callback function | 
0 on success, otherwise a negative error value | STREAMRECORDER_ERROR_NONE | Successful | 
| STREAMRECORDER_ERROR_INVALID_PARAMETER | Invalid parameter |