X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fmedia_codec_port.h;h=f2a732c25da3be3e63a7b643e738035e88855349;hb=673705926faaf5a3abd1aefc7f47d890220a50ff;hp=f704059b2c469dca82909dcce054040e92e14355;hpb=989a02973e6a78aafea7553642935baafedffa81;p=platform%2Fcore%2Fapi%2Fmediacodec.git diff --git a/include/media_codec_port.h b/include/media_codec_port.h index f704059..f2a732c 100644 --- a/include/media_codec_port.h +++ b/include/media_codec_port.h @@ -163,41 +163,21 @@ typedef enum _mc_codec_port_type_e { CODEC_PORT_TYPE_MAX, } mc_codec_port_type_e; -typedef enum _mc_vendor_e { - MC_VENDOR_DEFAULT, - MC_VENDOR_SLSI_SEC, - MC_VENDOR_SLSI_EXYNOS, - MC_VENDOR_QCT, - MC_VENDOR_SPRD -} mc_vendor_e; - -struct _mc_decoder_info_t { - int width; - int height; - int actwidth; - int actheight; - - int samplerate; - int channel; - int bit; -}; - -struct _mc_encoder_info_t { - int width; - int height; - int bitrate; - int format; - int fps; - int qp_min; - int qp_max; - int vbvbuffer_size; - int level; - int profile; - - int samplerate; - int channel; - int bit; -}; +typedef struct mc_audio_port_definition_t { + gint samplerate; + gint channel; + gint bit_depth; + gint bitrate; +} mc_audio_port_definition_t; + +typedef struct mc_video_port_definition_t { + gchar *format; + gint width; + gint height; + gint stride; + gint bitrate; + gint framerate; +} mc_video_port_definition_t; /* Codec Private data */ struct _mc_handle_t { @@ -209,14 +189,13 @@ struct _mc_handle_t { mediacodec_port_type_e port_type; mediacodec_codec_type_e codec_id; - mc_vendor_e vendor; void *ports[2]; void *core; union { - mc_decoder_info_t decoder; - mc_encoder_info_t encoder; + mc_audio_port_definition_t audio; + mc_video_port_definition_t video; } info; /* for process done cb */ @@ -288,8 +267,8 @@ void _mc_create_codec_map_from_ini_static(mc_ini_t *ini, mc_codec_spec_t *spec_e void _mc_create_decoder_map_from_ini(mc_handle_t *mc_handle); void _mc_create_encoder_map_from_ini(mc_handle_t *mc_handle); -const int simple_to_codec_type_enumeration(codec_type_e codec_id); -const int codec_type_to_simple_enumeration(mediacodec_codec_type_e media_codec_id); +const codec_type_e simple_to_codec_type_enumeration(codec_type_e codec_id); +const codec_type_e codec_type_to_simple_enumeration(mediacodec_codec_type_e media_codec_id); #ifdef __cplusplus }