Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 25 of 134) sorted by relevance

123456

/third_party/glib/gio/
Dgio-tool-mime.c65 const gchar *mimetype; in handle_mime() local
111 mimetype = argv[1]; in handle_mime()
113 info = g_app_info_get_default_for_type (mimetype, FALSE); in handle_mime()
116 g_print (_("No default applications for “%s”\n"), mimetype); in handle_mime()
122 g_print (_("Default application for “%s”: %s\n"), mimetype, g_app_info_get_id (info)); in handle_mime()
125 list = g_app_info_get_all_for_type (mimetype); in handle_mime()
138 list = g_app_info_get_recommended_for_type (mimetype); in handle_mime()
156 mimetype = argv[1]; in handle_mime()
166 if (g_app_info_set_as_default_for_type (info, mimetype, &error) == FALSE) in handle_mime()
169 handler, mimetype, error->message); in handle_mime()
[all …]
Dgcontenttype.c433 load_comment_for_mime (const char *mimetype) in load_comment_for_mime() argument
440 basename = g_strdup_printf ("%s.xml", mimetype); in load_comment_for_mime()
454 return g_strdup_printf (_("%s type"), mimetype); in load_comment_for_mime()
737 char *mimetype; in g_content_type_guess() local
807 mimetype = g_strdup (sniffed_mimetype); in g_content_type_guess()
811 mimetype = NULL; in g_content_type_guess()
815 mimetype = g_strdup (sniffed_mimetype); in g_content_type_guess()
828 mimetype = g_strdup (name_mimetypes[i]); in g_content_type_guess()
835 if (mimetype == NULL) in g_content_type_guess()
840 mimetype = g_strdup (name_mimetypes[0]); in g_content_type_guess()
[all …]
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavcodecmap.c248 enum AVCodecID codec_id, gboolean encode, const char *mimetype, in gst_ff_vid_caps_new() argument
255 GST_LOG ("context:%p, codec_id:%d, mimetype:%s", context, codec_id, mimetype); in gst_ff_vid_caps_new()
261 caps = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
285 caps = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
289 gst_caps_append (caps, gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
307 temp = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
347 if (strcmp (mimetype, "video/x-raw") == 0) { in gst_ff_vid_caps_new()
350 temp = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
363 temp = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
377 caps = gst_caps_new_simple (mimetype, in gst_ff_vid_caps_new()
[all …]
/third_party/ffmpeg/libavformat/
Dflac_picture.c37 uint8_t mimetype[64], *desc = NULL; in ff_flac_parse_picture() local
65 if (len <= 0 || len >= sizeof(mimetype)) { in ff_flac_parse_picture()
78 bytestream2_get_bufferu(&g, mimetype, len); in ff_flac_parse_picture()
79 mimetype[len] = 0; in ff_flac_parse_picture()
82 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) { in ff_flac_parse_picture()
90 mimetype); in ff_flac_parse_picture()
Dflacenc.c86 const char *mimetype = NULL, *desc = ""; in flac_write_picture() local
95 mimetype = mime->str; in flac_write_picture()
100 if (!mimetype) { in flac_write_picture()
105 mimelen = strlen(mimetype); in flac_write_picture()
147 avio_write(pb, mimetype, mimelen); in flac_write_picture()
Drmenc.c75 const char *desc, *mimetype; in rv10_write_header() local
150 mimetype = "audio/x-pn-realaudio"; in rv10_write_header()
154 mimetype = "video/x-pn-realvideo"; in rv10_write_header()
159 size = 10 + 9 * 4 + strlen(desc) + strlen(mimetype) + codec_data_size; in rv10_write_header()
181 put_str8(s, mimetype); in rv10_write_header()
Did3v2.c587 char mimetype[64] = {0}; in read_apic() local
608 int ret = avio_get_str(pb, taglen, mimetype, sizeof(mimetype)); in read_apic()
613 if (avio_read(pb, mimetype, 3) < 0) in read_apic()
616 mimetype[3] = 0; in read_apic()
621 if (!av_strncasecmp(mime->str, mimetype, sizeof(mimetype))) { in read_apic()
629 "Unknown attached picture mimetype: %s, skipping.\n", mimetype); in read_apic()
Did3v2enc.c359 const char *mimetype = NULL, *desc = ""; in ff_id3v2_write_apic() local
367 mimetype = mime->str; in ff_id3v2_write_apic()
372 if (!mimetype) { in ff_id3v2_write_apic()
400 avio_put_str(dyn_buf, mimetype); in ff_id3v2_write_apic()
/third_party/flutter/skia/third_party/externals/sdl/test/nacl/
Dcommon.js34 var mimetype = 'application/x-nacl';
39 mimetype = 'application/x-ppapi-release';
41 mimetype = 'application/x-ppapi-debug';
43 mimetype = 'application/x-pnacl';
45 return mimetype;
62 var mimetype = mimeTypeForTool(tool);
63 return navigator.mimeTypes[mimetype] !== undefined;
139 var mimetype = mimeTypeForTool(tool);
140 moduleEl.setAttribute('type', mimetype);
/third_party/python/Doc/library/
Demail.mime.rst43 *_maintype* is the :mailheader:`Content-Type` major type (e.g. :mimetype:`text`
44 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
45 type (e.g. :mimetype:`plain` or :mimetype:`gif`). *_params* is a parameter
68 class for MIME messages that are not :mimetype:`multipart`. The primary
71 :mimetype:`multipart` messages. If :meth:`~email.message.Message.attach`
83 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
84 defaults to :mimetype:`mixed`, but can be used to specify the subtype of the
85 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
117 major type :mimetype:`application`. *_data* is a string containing the raw
119 :mimetype:`octet-stream`.
[all …]
Demail.errors.rst51 :mimetype:`multipart` or missing. :exc:`MultipartConversionError` multiply
65 :mimetype:`multipart/alternative` had a malformed header, that nested message
71 but had no :mimetype:`boundary` parameter.
100 :mimetype:`multipart`, but no subparts were found. Note that when a message
102 return ``False`` even though its content type claims to be :mimetype:`multipart`.
Demail.compat32-message.rst31 having a MIME type such as :mimetype:`multipart/\*` or
32 :mimetype:`message/rfc822`.
50 :mimetype:`multipart/\*` and :mimetype:`message/rfc822`).
254 will be added with a value of :mimetype:`text/plain`. Whether the
432 lower case of the form :mimetype:`maintype/subtype`. If there was no
438 :rfc:`2045` defines a message's default type to be :mimetype:`text/plain`
439 unless it appears inside a :mimetype:`multipart/digest` container, in
440 which case it would be :mimetype:`message/rfc822`. If the
442 :rfc:`2045` mandates that the default type be :mimetype:`text/plain`.
447 Return the message's main content type. This is the :mimetype:`maintype`
[all …]
Demail.message.rst29 :mimetype:`multipart/\*` or :mimetype:`message/rfc822`.
49 documents such as :mimetype:`multipart/\*` and :mimetype:`message/rfc822`
312 :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type`
319 a message's default type to be :mimetype:`text/plain` unless it appears
320 inside a :mimetype:`multipart/digest` container, in which case it would
321 be :mimetype:`message/rfc822`. If the :mailheader:`Content-Type` header
323 type be :mimetype:`text/plain`.)
328 Return the message's main content type. This is the :mimetype:`maintype`
334 Return the message's sub-content type. This is the :mimetype:`subtype`
341 type of :mimetype:`text/plain`, except for messages that are subparts of
[all …]
Demail.generator.rst237 except that non-\ :mimetype:`text` parts are not serialized, but are instead
246 :mimetype:`text`, print the decoded payload of the subpart, and if the main
247 type is not :mimetype:`text`, instead of printing it fill in the string
254 * ``type`` -- Full MIME type of the non-\ :mimetype:`text` part
256 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
258 * ``subtype`` -- Sub-MIME type of the non-\ :mimetype:`text` part
260 * ``filename`` -- Filename of the non-\ :mimetype:`text` part
262 * ``description`` -- Description associated with the non-\ :mimetype:`text` part
264 * ``encoding`` -- Content transfer encoding of the non-\ :mimetype:`text` part
/third_party/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-mux.c1089 const gchar *mimetype; in gst_matroska_mux_video_pad_setcaps() local
1128 mimetype = gst_structure_get_name (structure); in gst_matroska_mux_video_pad_setcaps()
1140 if (!strcmp (mimetype, "video/x-theora")) { in gst_matroska_mux_video_pad_setcaps()
1228 if (!strcmp (mimetype, "video/x-raw")) { in gst_matroska_mux_video_pad_setcaps()
1243 } else if (!strcmp (mimetype, "video/x-huffyuv") /* MS/VfW compatibility cases */ in gst_matroska_mux_video_pad_setcaps()
1244 ||!strcmp (mimetype, "video/x-divx") in gst_matroska_mux_video_pad_setcaps()
1245 || !strcmp (mimetype, "video/x-dv") in gst_matroska_mux_video_pad_setcaps()
1246 || !strcmp (mimetype, "video/x-h263") in gst_matroska_mux_video_pad_setcaps()
1247 || !strcmp (mimetype, "video/x-msmpeg") in gst_matroska_mux_video_pad_setcaps()
1248 || !strcmp (mimetype, "video/x-wmv") in gst_matroska_mux_video_pad_setcaps()
[all …]
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstdataurisrc.c321 gchar *mimetype = NULL; in gst_data_uri_src_set_uri() local
354 mimetype = in gst_data_uri_src_set_uri()
358 mimetype = g_strdup ("text/plain"); in gst_data_uri_src_set_uri()
360 GST_DEBUG_OBJECT (src, "Mimetype: %s", mimetype); in gst_data_uri_src_set_uri()
397 if (strcmp ("text/plain", mimetype) == 0 && in gst_data_uri_src_set_uri()
416 caps = gst_caps_new_empty_simple (mimetype); in gst_data_uri_src_set_uri()
431 g_free (mimetype); in gst_data_uri_src_set_uri()
/third_party/curl/docs/examples/
Dcurlx.c280 char *mimetype = NULL; in main() local
346 mimetype = *(++args); in main()
375 if(!mimetype || !mimetypeaccept || !p.p12file) in main()
495 contenttype = malloc(15 + strlen(mimetype)); in main()
496 snprintf(contenttype, 15 + strlen(mimetype), "Content-type: %s", mimetype); in main()
/third_party/python/Lib/test/test_email/
Dtest_contentmanager.py801 def content_object_as_header_receiver(self, obj, mimetype): argument
803 m.set_content(obj, *mimetype, headers=(
809 def content_object_as_disposition_inline_receiver(self, obj, mimetype): argument
811 m.set_content(obj, *mimetype, disposition='inline')
814 def content_object_as_non_ascii_filename_receiver(self, obj, mimetype): argument
816 m.set_content(obj, *mimetype, disposition='inline', filename='bár.txt')
821 def content_object_as_cid_receiver(self, obj, mimetype): argument
823 m.set_content(obj, *mimetype, cid='some_random_stuff')
826 def content_object_as_params_receiver(self, obj, mimetype): argument
829 m.set_content(obj, *mimetype, params=params)
/third_party/gstreamer/gstplugins_good/gst/avi/
Dgstavimux.c401 const gchar *mimetype; in gst_avi_mux_vidsink_set_caps() local
423 mimetype = gst_structure_get_name (structure); in gst_avi_mux_vidsink_set_caps()
475 if (!strcmp (mimetype, "video/x-raw")) { in gst_avi_mux_vidsink_set_caps()
521 if (!strcmp (mimetype, "video/x-huffyuv")) { in gst_avi_mux_vidsink_set_caps()
523 } else if (!strcmp (mimetype, "image/jpeg")) { in gst_avi_mux_vidsink_set_caps()
525 } else if (!strcmp (mimetype, "video/x-divx")) { in gst_avi_mux_vidsink_set_caps()
562 } else if (!strcmp (mimetype, "video/x-dv")) { in gst_avi_mux_vidsink_set_caps()
564 } else if (!strcmp (mimetype, "video/x-h263")) { in gst_avi_mux_vidsink_set_caps()
566 } else if (!strcmp (mimetype, "video/x-h264")) { in gst_avi_mux_vidsink_set_caps()
568 } else if (!strcmp (mimetype, "video/mpeg")) { in gst_avi_mux_vidsink_set_caps()
[all …]
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/
Dgstgdkpixbufdec.c119 char **mimetype; in gst_gdk_pixbuf_dec_get_capslist() local
124 for (mimetype = mimetypes; *mimetype; mimetype++) { in gst_gdk_pixbuf_dec_get_capslist()
125 gst_caps_append_structure (capslist, gst_structure_new_empty (*mimetype)); in gst_gdk_pixbuf_dec_get_capslist()
/third_party/googletest/googletest/scripts/
Dupload.py730 mimetype = mimetypes.guess_type(filename)[0]
731 if not mimetype:
733 return mimetype.startswith("image/")
925 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],
928 is_binary = mimetype and not mimetype.startswith("text/")
942 mimetype, returncode = RunShellWithReturnCode(cmd)
946 mimetype = ""
948 is_binary = mimetype and not mimetype.startswith("text/")
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudioringbuffer.c205 const gchar *mimetype; in gst_audio_ring_buffer_parse_caps() local
214 mimetype = gst_structure_get_name (structure); in gst_audio_ring_buffer_parse_caps()
216 if (g_str_equal (mimetype, "audio/x-raw")) { in gst_audio_ring_buffer_parse_caps()
221 } else if (g_str_equal (mimetype, "audio/x-alaw")) { in gst_audio_ring_buffer_parse_caps()
233 } else if (g_str_equal (mimetype, "audio/x-mulaw")) { in gst_audio_ring_buffer_parse_caps()
245 } else if (g_str_equal (mimetype, "audio/x-iec958")) { in gst_audio_ring_buffer_parse_caps()
252 } else if (g_str_equal (mimetype, "audio/x-ac3")) { in gst_audio_ring_buffer_parse_caps()
260 } else if (g_str_equal (mimetype, "audio/x-eac3")) { in gst_audio_ring_buffer_parse_caps()
268 } else if (g_str_equal (mimetype, "audio/x-dts")) { in gst_audio_ring_buffer_parse_caps()
276 } else if (g_str_equal (mimetype, "audio/mpeg") && in gst_audio_ring_buffer_parse_caps()
[all …]
/third_party/curl/lib/
Dmime.c1204 Curl_safefree(part->mimetype); in Curl_mime_cleanpart()
1288 res = curl_mime_type(dst, src->mimetype); in Curl_mime_duppart()
1485 CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype) in curl_mime_type() argument
1490 Curl_safefree(part->mimetype); in curl_mime_type()
1491 part->mimetype = NULL; in curl_mime_type()
1493 if(mimetype) { in curl_mime_type()
1494 part->mimetype = strdup(mimetype); in curl_mime_type()
1495 if(!part->mimetype) in curl_mime_type()
1819 customct = part->mimetype; in Curl_mime_prepare_headers()
1991 CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype) in curl_mime_type() argument
[all …]
/third_party/gstreamer/gstplugins_good/ext/shout2/
Dgstshout2.c939 const gchar *mimetype; local
945 mimetype = gst_structure_get_name (gst_caps_get_structure (caps, 0));
947 GST_DEBUG_OBJECT (shout2send, "mimetype of caps given is: %s", mimetype);
949 if (!strcmp (mimetype, "audio/mpeg")) {
951 } else if (g_str_has_suffix (mimetype, "/ogg")) {
954 } else if (g_str_has_suffix (mimetype, "/webm")) {
/third_party/boost/libs/safe_numerics/doc/boostbook/
Dmakeepub.sh11 zip -r -X ../book.epub mimetype META-INF OEBPS

123456