Home
last modified time | relevance | path

Searched refs:mime_type (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/ffmpeg/libavformat/
Dpcmdec.c41 uint8_t *mime_type = NULL; in pcm_read_header() local
53 av_opt_get(s->pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type); in pcm_read_header()
54 if (mime_type && s->iformat->mime_type) { in pcm_read_header()
57 if (av_stristart(mime_type, s->iformat->mime_type, &options)) { /* audio/L16 */ in pcm_read_header()
74 mime_type); in pcm_read_header()
75 av_freep(&mime_type); in pcm_read_header()
85 av_freep(&mime_type); in pcm_read_header()
143 AV_NE("sw", NULL), S16BE, .mime_type = "audio/L16")
Dformat.c52 const char *mime_type) in av_guess_format() argument
73 if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type)) in av_guess_format()
88 const char *filename, const char *mime_type, in av_guess_codec() argument
186 if (av_match_name(lpd.mime_type, fmt1->mime_type)) { in av_probe_input_format3()
247 pd.mime_type = (const char *)mime_type_opt; in av_probe_input_buffer2()
248 semi = pd.mime_type ? strchr(pd.mime_type, ';') : NULL; in av_probe_input_buffer2()
308 av_freep(&pd.mime_type); in av_probe_input_buffer2()
Drawenc.c63 .mime_type = "audio/x-ac3",
211 .mime_type = "audio/x-dca",
225 .mime_type = "audio/x-eac3",
239 .mime_type = "audio/G722",
253 .mime_type = "audio/g723",
291 .mime_type = "audio/x-gsm",
305 .mime_type = "video/x-h261",
319 .mime_type = "video/x-h263",
392 .mime_type = "video/x-mjpeg",
406 .mime_type = "image/jpeg",
[all …]
Dmpjpegdec.c251 uint8_t *mime_type = NULL; in mpjpeg_get_boundary() local
258 av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type); in mpjpeg_get_boundary()
259 start = mime_type; in mpjpeg_get_boundary()
288 av_freep(&mime_type); in mpjpeg_get_boundary()
386 .mime_type = "multipart/x-mixed-replace",
/third_party/cef/libcef/browser/net/
Dinternal_scheme_handler.cc37 std::string mime_type; in GetMimeType() local
39 if (net::GetMimeTypeFromFile(file_path, &mime_type)) in GetMimeType()
40 return mime_type; in GetMimeType()
94 InternalHandler(const std::string& mime_type, in InternalHandler() argument
97 : mime_type_(mime_type), reader_(reader), size_(size) {} in InternalHandler()
167 if (action.mime_type.empty()) in Create()
168 action.mime_type = GetMimeType(url.path()); in Create()
190 return new InternalHandler(action.mime_type, action.stream, in Create()
Dchrome_scheme_handler.cc293 bool OnExtensionsSupportUI(std::string* mime_type, std::string* output) { in OnExtensionsSupportUI() argument
294 *mime_type = "text/html"; in OnExtensionsSupportUI()
356 bool OnLicenseUI(std::string* mime_type, std::string* output) { in OnLicenseUI() argument
365 *mime_type = "text/html"; in OnLicenseUI()
373 std::string* mime_type, in OnVersionUI() argument
402 *mime_type = "text/html"; in OnVersionUI()
408 bool OnWebUIHostsUI(std::string* mime_type, std::string* output) { in OnWebUIHostsUI() argument
441 *mime_type = "text/html"; in OnWebUIHostsUI()
/third_party/cef/libcef/common/
Dresponse_impl.cc161 std::string mime_type = mime_type_; in GetResponseHeaders() local
162 if (mime_type.empty()) in GetResponseHeaders()
163 mime_type = "text/html"; in GetResponseHeaders()
170 status_code_, status_text_, mime_type, charset_, -1, extra_headers, in GetResponseHeaders()
194 std::string mime_type, charset; in SetResponseHeaders() local
195 headers.GetMimeTypeAndCharset(&mime_type, &charset); in SetResponseHeaders()
196 mime_type_ = mime_type; in SetResponseHeaders()
Dparser_impl.cc91 std::string mime_type; in CefGetMimeType() local
92 net::GetMimeTypeFromExtension(extension, &mime_type); in CefGetMimeType()
93 return mime_type; in CefGetMimeType()
96 void CefGetExtensionsForMimeType(const CefString& mime_type, in CefGetExtensionsForMimeType() argument
100 net::GetExtensionsForMimeType(mime_type, &ext); in CefGetExtensionsForMimeType()
/third_party/cef/libcef_dll/wrapper/
Dcef_stream_resource_handler.cc14 const CefString& mime_type, in CefStreamResourceHandler() argument
18 mime_type_(mime_type), in CefStreamResourceHandler()
26 const CefString& mime_type, in CefStreamResourceHandler() argument
31 mime_type_(mime_type), in CefStreamResourceHandler()
Dcef_resource_manager.cc36 std::string mime_type; in GetMimeType() local
40 mime_type = CefGetMimeType(url_without_query.substr(sep + 1)); in GetMimeType()
41 if (!mime_type.empty()) in GetMimeType()
42 return mime_type; in GetMimeType()
57 const std::string& mime_type) in ContentProvider() argument
58 : url_(url), content_(content), mime_type_(mime_type) { in ContentProvider()
445 const std::string& mime_type, in AddContentProvider() argument
448 AddProvider(new ContentProvider(url, content, mime_type), order, identifier); in AddContentProvider()
/third_party/cef/tests/cefclient/browser/
Dserver_test.cc102 std::string mime_type; in OnHttpRequest() local
106 mime_type = CefGetMimeType(path.substr(sep + 1)); in OnHttpRequest()
111 if (mime_type.empty()) in OnHttpRequest()
112 mime_type = "text/html"; in OnHttpRequest()
128 SendHttpResponseStream(server, connection_id, mime_type, stream, in OnHttpRequest()
175 const std::string& mime_type, in SendHttpResponseStream() argument
184 server->SendHttpResponse(connection_id, 200, mime_type, content_length, in SendHttpResponseStream()
/third_party/gstreamer/gstplugins_good/gst/multipart/
Dmultipartdemux.c193 multipart->mime_type = NULL; in gst_multipart_demux_init()
227 g_free (demux->mime_type); in gst_multipart_demux_dispose()
228 demux->mime_type = NULL; in gst_multipart_demux_dispose()
349 GST_ELEMENT_CAST (demux), demux->mime_type); in gst_multipart_find_pad_by_mime()
479 multipart->boundary, multipart->mime_type, multipart->content_length); in multipart_parse_header()
491 g_free (multipart->mime_type); in multipart_parse_header()
492 multipart->mime_type = g_ascii_strdown ((gchar *) pos + 14, mime_len); in multipart_parse_header()
656 } else if (G_UNLIKELY (!multipart->mime_type)) { in gst_multipart_demux_chain()
664 multipart->mime_type, &created); in gst_multipart_demux_chain()
738 g_free (multipart->mime_type); in gst_multipart_demux_change_state()
[all …]
/third_party/cef/libcef/common/net_service/
Dnet_service_util.cc98 std::string MakeContentTypeValue(const std::string& mime_type, in MakeContentTypeValue() argument
100 DCHECK(!mime_type.empty()); in MakeContentTypeValue()
101 std::string value = mime_type; in MakeContentTypeValue()
112 const std::string& mime_type, in MakeResponseHeaders() argument
129 if (!mime_type.empty()) { in MakeResponseHeaders()
131 MakeContentTypeValue(mime_type, charset)); in MakeResponseHeaders()
Dnet_service_util.h46 std::string MakeContentTypeValue(const std::string& mime_type,
53 const std::string& mime_type,
/third_party/cef/tests/ceftests/
Dtest_handler.h30 const std::string& mime_type, in ResourceContent() argument
32 : content_(content), mime_type_(mime_type), header_map_(header_map) {} in ResourceContent()
238 const std::string& mime_type);
242 const std::string& mime_type,
Dparser_unittest.cc288 CefString mime_type; in TEST() local
290 mime_type = CefGetMimeType("html"); in TEST()
291 EXPECT_STREQ("text/html", mime_type.ToString().c_str()); in TEST()
293 mime_type = CefGetMimeType("txt"); in TEST()
294 EXPECT_STREQ("text/plain", mime_type.ToString().c_str()); in TEST()
296 mime_type = CefGetMimeType("gif"); in TEST()
297 EXPECT_STREQ("image/gif", mime_type.ToString().c_str()); in TEST()
Dtest_handler.cc390 const std::string& mime_type) { in AddResource() argument
392 ResourceContent rc = ResourceContent(content, mime_type, headerMap); in AddResource()
398 const std::string& mime_type, in AddResource() argument
400 ResourceContent rc = ResourceContent(content, mime_type, header_map); in AddResource()
/third_party/gstreamer/gstplugins_bad/gst/pnm/
Dgstpnmenc.c142 const gchar *mime_type = NULL; in gst_pnmenc_set_format() local
151 mime_type = MIME_PM; in gst_pnmenc_set_format()
156 mime_type = MIME_GM; in gst_pnmenc_set_format()
162 mime_type = MIME_GM; in gst_pnmenc_set_format()
178 gst_caps_new_empty_simple (mime_type), state); in gst_pnmenc_set_format()
/third_party/cef/include/wrapper/
Dcef_stream_resource_handler.h52 CefStreamResourceHandler(const CefString& mime_type,
59 const CefString& mime_type,
/third_party/cef/libcef/browser/extensions/
Dextension_system.cc668 for (std::set<std::string>::const_iterator mime_type = in NotifyExtensionLoaded() local
670 mime_type != handler->mime_type_set().end(); ++mime_type) { in NotifyExtensionLoaded()
672 mime_type_info.mime_type = *mime_type; in NotifyExtensionLoaded()
674 if (net::GetPreferredExtensionForMimeType(*mime_type, &file_extension)) { in NotifyExtensionLoaded()
/third_party/gstreamer/gstplugins_bad/ext/curl/
Dgstcurlhttpsink.c472 const gchar *mime_type; in gst_curl_http_sink_set_mime_type() local
475 mime_type = gst_structure_get_name (structure); in gst_curl_http_sink_set_mime_type()
478 if (!g_strcmp0 (mime_type, "multipart/form-data") && in gst_curl_http_sink_set_mime_type()
483 sink->content_type = g_strconcat (mime_type, "; boundary=", boundary, NULL); in gst_curl_http_sink_set_mime_type()
485 sink->content_type = g_strdup (mime_type); in gst_curl_http_sink_set_mime_type()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/tag/
Dgstvorbistag.c559 const gchar *mime_type; in gst_tag_to_metadata_block_picture() local
581 mime_type = gst_structure_get_name (mime_struct); in gst_tag_to_metadata_block_picture()
582 if (strcmp (mime_type, "text/uri-list") == 0) in gst_tag_to_metadata_block_picture()
583 mime_type = "-->"; in gst_tag_to_metadata_block_picture()
584 mime_type_len = strlen (mime_type); in gst_tag_to_metadata_block_picture()
619 gst_byte_writer_put_data_unchecked (&writer, (guint8 *) mime_type, in gst_tag_to_metadata_block_picture()
/third_party/cef/tests/cefsimple/
Dsimple_handler.cc23 std::string GetDataURI(const std::string& data, const std::string& mime_type) { in GetDataURI() argument
24 return "data:" + mime_type + ";base64," + in GetDataURI()
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Dprogressreport.c289 const gchar *mime_type = gst_structure_get_name (s); in gst_progress_report_do_query() local
291 if (g_str_has_prefix (mime_type, "video/") || in gst_progress_report_do_query()
292 g_str_has_prefix (mime_type, "image/")) { in gst_progress_report_do_query()
294 } else if (g_str_has_prefix (mime_type, "audio/")) { in gst_progress_report_do_query()
/third_party/gstreamer/gstplugins_good/ext/taglib/
Dgstid3v2mux.cc436 const gchar *mime_type; in add_image_tag() local
440 mime_type = gst_structure_get_name (s); in add_image_tag()
441 if (mime_type != NULL) { in add_image_tag()
452 if (strcmp (mime_type, "text/uri-list") == 0) in add_image_tag()
453 mime_type = "-->"; in add_image_tag()
460 map.size, mime_type); in add_image_tag()
465 frame->setMimeType (mime_type); in add_image_tag()

12345