![]() |
![]() |
![]() |
librygel-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
RygelTranscoderRygelTranscoder — The base Transcoder class. Each implementation derives from it and must implement get_distance. |
#define RYGEL_TYPE_TRANSCODER RygelDataSource * rygel_transcoder_create_source (RygelTranscoder *self
,RygelMediaItem *item
,RygelDataSource *src
,GError **error
); GUPnPDIDLLiteResource * rygel_transcoder_add_resource (RygelTranscoder *self
,GUPnPDIDLLiteItem *didl_item
,RygelMediaItem *item
,RygelTranscodeManager *manager
,GError **error
); gboolean rygel_transcoder_can_handle (RygelTranscoder *self
,const gchar *target
); guint rygel_transcoder_get_distance (RygelTranscoder *self
,RygelMediaItem *item
); gboolean rygel_transcoder_mime_type_is_a (RygelTranscoder *self
,const gchar *mime_type1
,const gchar *mime_type2
); const gchar * rygel_transcoder_get_mime_type (RygelTranscoder *self
); void rygel_transcoder_set_mime_type (RygelTranscoder *self
,const gchar *value
); const gchar * rygel_transcoder_get_dlna_profile (RygelTranscoder *self
); void rygel_transcoder_set_dlna_profile (RygelTranscoder *self
,const gchar *value
); const gchar * rygel_transcoder_get_extension (RygelTranscoder *self
); void rygel_transcoder_set_extension (RygelTranscoder *self
,const gchar *value
); struct RygelTranscoder;
"dlna-profile" gchar* : Read / Write "extension" gchar* : Read / Write "mime-type" gchar* : Read / Write
#define RYGEL_TYPE_TRANSCODER (rygel_transcoder_get_type ())
The type for RygelTranscoder.
RygelDataSource * rygel_transcoder_create_source (RygelTranscoder *self
,RygelMediaItem *item
,RygelDataSource *src
,GError **error
);
Creates a transcoding source.
|
the RygelTranscoder instance |
|
the media item to create the transcoding source for. [in] |
|
the original (non-transcoding) source. [in] |
|
location to store the error occuring, or NULL to ignore |
Returns : |
the new transcoding source |
GUPnPDIDLLiteResource * rygel_transcoder_add_resource (RygelTranscoder *self
,GUPnPDIDLLiteItem *didl_item
,RygelMediaItem *item
,RygelTranscodeManager *manager
,GError **error
);
|
the RygelTranscoder instance |
|
location to store the error occuring, or NULL to ignore |
gboolean rygel_transcoder_can_handle (RygelTranscoder *self
,const gchar *target
);
|
the RygelTranscoder instance |
guint rygel_transcoder_get_distance (RygelTranscoder *self
,RygelMediaItem *item
);
Gets the numeric value that gives an gives an estimate of how hard would it be to trancode item
to target profile of this transcoder.
|
the RygelTranscoder instance |
|
the media item to calculate the distance for. [in] |
Returns : |
the distance from the item , uint.MIN if providing such a value is impossible or uint.MAX if it doesn't make any sense to use this transcoder for item
|
gboolean rygel_transcoder_mime_type_is_a (RygelTranscoder *self
,const gchar *mime_type1
,const gchar *mime_type2
);
|
the RygelTranscoder instance |
const gchar * rygel_transcoder_get_mime_type (RygelTranscoder *self
);
|
the RygelTranscoder instance to query |
Returns : |
the value of the "mime-type" property |
void rygel_transcoder_set_mime_type (RygelTranscoder *self
,const gchar *value
);
|
the RygelTranscoder instance to modify |
|
the new value of the "mime-type" property |
const gchar * rygel_transcoder_get_dlna_profile (RygelTranscoder *self
);
|
the RygelTranscoder instance to query |
Returns : |
the value of the "dlna-profile" property |
void rygel_transcoder_set_dlna_profile (RygelTranscoder *self
,const gchar *value
);
|
the RygelTranscoder instance to modify |
|
the new value of the "dlna-profile" property |
const gchar * rygel_transcoder_get_extension (RygelTranscoder *self
);
|
the RygelTranscoder instance to query |
Returns : |
the value of the "extension" property |
void rygel_transcoder_set_extension (RygelTranscoder *self
,const gchar *value
);
|
the RygelTranscoder instance to modify |
|
the new value of the "extension" property |