Home
last modified time | relevance | path

Searched refs:header_data (Results 1 – 21 of 21) sorted by relevance

/third_party/glib/gio/
Dgzlibdecompressor.c70 HeaderData *header_data; member
81 if (decompressor->header_data != NULL) in g_zlib_decompressor_set_gzheader()
83 if (decompressor->header_data->file_info) in g_zlib_decompressor_set_gzheader()
84 g_object_unref (decompressor->header_data->file_info); in g_zlib_decompressor_set_gzheader()
86 memset (decompressor->header_data, 0, sizeof (HeaderData)); in g_zlib_decompressor_set_gzheader()
90 decompressor->header_data = g_new0 (HeaderData, 1); in g_zlib_decompressor_set_gzheader()
93 decompressor->header_data->gzheader.name = (Bytef*) &decompressor->header_data->filename; in g_zlib_decompressor_set_gzheader()
95 decompressor->header_data->gzheader.name_max = 256; in g_zlib_decompressor_set_gzheader()
97 if (inflateGetHeader (&decompressor->zstream, &decompressor->header_data->gzheader) != Z_OK) in g_zlib_decompressor_set_gzheader()
115 if (decompressor->header_data != NULL) in G_DEFINE_TYPE_WITH_CODE()
[all …]
/third_party/mindspore/tests/ut/cpp/mindrecord/
Dut_shard_header_test.cc69 mindrecord::ShardHeader header_data; in TEST_F() local
70 int schema_id1 = header_data.AddSchema(schema1); in TEST_F()
71 int schema_id2 = header_data.AddSchema(schema2); in TEST_F()
73 ASSERT_EQ(header_data.GetSchemas().size(), 1); in TEST_F()
82 Status status = header_data.AddIndexFields(fields); in TEST_F()
85 ASSERT_EQ(header_data.GetFields().size(), 2); in TEST_F()
90 status = header_data.AddIndexFields(fields); in TEST_F()
92 ASSERT_EQ(header_data.GetFields().size(), 2); in TEST_F()
97 status = header_data.AddIndexFields(fields); in TEST_F()
99 ASSERT_EQ(header_data.GetFields().size(), 2); in TEST_F()
[all …]
Dut_shard.cc108 mindrecord::ShardHeader header_data; in TEST_F() local
110 int res = header_data.AddSchema(schema1); in TEST_F()
112 header_data.AddStatistic(statistics1); in TEST_F()
114 for (auto &schema_ptr : header_data.GetSchemas()) { in TEST_F()
120 for (auto &statistic : header_data.GetStatistics()) { in TEST_F()
126 auto status = header_data.GetStatisticByID(-1, &statistics_ptr); in TEST_F()
128 status = header_data.GetStatisticByID(10, &statistics_ptr); in TEST_F()
135 status = header_data.AddIndexFields(fields); in TEST_F()
137 std::vector<std::pair<uint64_t, std::string>> resFields = header_data.GetFields(); in TEST_F()
Dut_shard_writer_test.cc117 mindrecord::ShardHeader header_data; in TEST_F() local
133 int image_schema_id = header_data.AddSchema(image_schema); in TEST_F()
153 header_data.AddStatistic(static1); in TEST_F()
159 header_data.AddStatistic(static2); in TEST_F()
168 header_data.AddIndexFields(fields); in TEST_F()
201 fw.SetShardHeader(std::make_shared<mindrecord::ShardHeader>(header_data)); in TEST_F()
249 mindrecord::ShardHeader header_data; in TEST_F() local
266 int image_schema_id = header_data.AddSchema(image_schema); in TEST_F()
286 header_data.AddStatistic(static1); in TEST_F()
292 header_data.AddStatistic(static2); in TEST_F()
[all …]
Dut_common.cc164 ShardHeader header_data; in ShardWriterImageNet() local
176 int anno_schema_id = header_data.AddSchema(anno_schema); in ShardWriterImageNet()
187 header_data.AddIndexFields(fields); in ShardWriterImageNet()
212 fw_init.SetShardHeader(std::make_shared<mindrecord::ShardHeader>(header_data)); in ShardWriterImageNet()
243 mindrecord::ShardHeader header_data; in ShardWriterImageNetOneSample() local
255 int anno_schema_id = header_data.AddSchema(anno_schema); in ShardWriterImageNetOneSample()
266 header_data.AddIndexFields(fields); in ShardWriterImageNetOneSample()
291 fw_init.SetShardHeader(std::make_shared<mindrecord::ShardHeader>(header_data)); in ShardWriterImageNetOneSample()
331 mindrecord::ShardHeader header_data; in ShardWriterImageNetOpenForAppend() local
343 int anno_schema_id = header_data.AddSchema(anno_schema); in ShardWriterImageNetOpenForAppend()
[all …]
/third_party/mesa3d/src/gallium/frontends/nine/
Diunknown.c202 void *header_data; in NineUnknown_SetPrivateData() local
228 header_data = (void *)header + sizeof(*header); in NineUnknown_SetPrivateData()
229 memcpy(header_data, user_data, header->size); in NineUnknown_SetPrivateData()
234 if (header->unknown) { IUnknown_AddRef(*(IUnknown **)header_data); } in NineUnknown_SetPrivateData()
248 void *header_data; in NineUnknown_GetPrivateData() local
274 header_data = (void *)header + sizeof(*header); in NineUnknown_GetPrivateData()
275 if (header->unknown) { IUnknown_AddRef(*(IUnknown **)header_data); } in NineUnknown_GetPrivateData()
276 memcpy(pData, header_data, header->size); in NineUnknown_GetPrivateData()
Dnine_pdata.h38 void *header_data = (void *)header + sizeof(*header); in ht_guid_delete() local
40 if (header->unknown) { IUnknown_Release(*(IUnknown **)header_data); } in ht_guid_delete()
/third_party/ffmpeg/libavformat/
Dlxfdec.c234 uint8_t header_data[LXF_HEADER_DATA_SIZE]; in lxf_read_header() local
249 if ((ret = avio_read(pb, header_data, LXF_HEADER_DATA_SIZE)) != LXF_HEADER_DATA_SIZE) in lxf_read_header()
255 st->duration = AV_RL32(&header_data[32]); in lxf_read_header()
256 video_params = AV_RL32(&header_data[40]); in lxf_read_header()
257 record_date = AV_RL16(&header_data[56]); in lxf_read_header()
258 expiration_date = AV_RL16(&header_data[58]); in lxf_read_header()
259 disk_params = AV_RL32(&header_data[116]); in lxf_read_header()
/third_party/ffmpeg/libavcodec/
Dlibspeexenc.c149 uint8_t *header_data; in encode_init() local
245 header_data = speex_header_to_packet(&s->header, &header_size); in encode_init()
250 speex_header_free(header_data); in encode_init()
257 memcpy(avctx->extradata, header_data, header_size); in encode_init()
259 speex_header_free(header_data); in encode_init()
/third_party/gstreamer/gstplugins_good/ext/wavpack/
Dgstwavpackcommon.c48 gst_wavpack_read_metadata (GstWavpackMetadata * wpmd, guint8 * header_data, in gst_wavpack_read_metadata() argument
54 gst_wavpack_read_header (&hdr, header_data); in gst_wavpack_read_metadata()
55 end = header_data + hdr.ckSize + 8; in gst_wavpack_read_metadata()
Dgstwavpackcommon.h68 guint8 * header_data, guint8 ** p_data);
/third_party/libsoup/libsoup/
Dsoup-message-io.c89 gpointer header_data; member
411 io->header_data); in io_write()
622 io->header_data, error); in io_read()
1161 gpointer header_data, in new_iostate() argument
1171 io->header_data = header_data; in new_iostate()
1200 gpointer header_data, in soup_message_io_client() argument
1208 get_headers_cb, parse_headers_cb, header_data, in soup_message_io_client()
1233 gpointer header_data, in soup_message_io_server() argument
1241 get_headers_cb, parse_headers_cb, header_data, in soup_message_io_server()
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/
Dgen_restricted_traces.py320 header_data = HEADER_TEMPLATE.format(**format_args)
322 out_file.write(header_data)
/third_party/glslang/glslang/CInterface/
Dglslang_c_interface.cpp113 …return new CallbackIncludeResult(std::string(headerName), result->header_data, result->header_leng… in includeSystem()
127 …return new CallbackIncludeResult(std::string(headerName), result->header_data, result->header_leng… in includeLocal()
/third_party/glslang/glslang/Include/
Dglslang_c_interface.h179 const char* header_data; member
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/io/
Dshard_writer.cc181 Status ShardWriter::SetShardHeader(std::shared_ptr<ShardHeader> header_data) { in SetShardHeader() argument
182 RETURN_IF_NOT_OK(header_data->InitByFiles(file_paths_)); in SetShardHeader()
184 std::vector<std::pair<uint64_t, std::string>> fields = header_data->GetFields(); in SetShardHeader()
187 std::vector<std::shared_ptr<Schema>> schemas = header_data->GetSchemas(); in SetShardHeader()
202 RETURN_IF_NOT_OK(header_data->AddIndexFields(fields)); in SetShardHeader()
206 shard_header_ = header_data; in SetShardHeader()
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/common/
Dshard_pybind.cc128 [](ShardWriter &s, std::shared_ptr<ShardHeader> header_data) { in BindShardWriter() argument
129 THROW_IF_ERROR(s.SetShardHeader(header_data)); in BindShardWriter()
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/include/
Dshard_writer.h84 Status SetShardHeader(std::shared_ptr<ShardHeader> header_data);
/third_party/glib/glib/
Dgtimezone.c576 gconstpointer header_data = g_bytes_get_data (zoneinfo, &size); in init_zone_from_iana_info() local
577 const gchar *data = header_data; in init_zone_from_iana_info()
578 const struct tzhead *header = header_data; in init_zone_from_iana_info()
/third_party/cef/tools/
Dmake_distrib.py118 header_data = get_readme_component('header')
124 data = header_data + '\n\n' + mode_data
/third_party/mesa3d/src/amd/vulkan/
Dradv_acceleration_structure.c2115 uint8_t header_data[2 * VK_UUID_SIZE] = {0}; in radv_CmdCopyAccelerationStructureToMemoryKHR() local
2116 memcpy(header_data, cmd_buffer->device->physical_device->driver_uuid, VK_UUID_SIZE); in radv_CmdCopyAccelerationStructureToMemoryKHR()
2118 radv_update_buffer_cp(cmd_buffer, pInfo->dst.deviceAddress, header_data, sizeof(header_data)); in radv_CmdCopyAccelerationStructureToMemoryKHR()