/third_party/ffmpeg/libavformat/ |
H A D | sol.c | 38 uint16_t magic = AV_RL32(p->buf); in sol_probe() local 39 if ((magic == 0x0B8D || magic == 0x0C0D || magic == 0x0C8D) && in sol_probe() 51 static enum AVCodecID sol_codec_id(int magic, int type) in sol_codec_id() argument 56 if (magic == 0x0B8D) in sol_codec_id() 65 static int sol_codec_type(int magic, int type) in sol_codec_type() argument 67 if (magic == 0x0B8D) return 1;//SOL_DPCM_OLD; in sol_codec_type() 71 else if (magic == 0x0C8D) return 1;//SOL_DPCM_OLD; in sol_codec_type() 77 static int sol_channels(int magic, in argument 85 unsigned int magic,tag; sol_read_header() local [all...] |
H A D | id3v2.h | 33 * Default magic bytes for ID3v2 header: "ID3" 98 * @param magic magic bytes to identify the header. 101 int ff_id3v2_match(const uint8_t *buf, const char *magic); 117 void ff_id3v2_read_dict(AVIOContext *pb, AVDictionary **metadata, const char *magic, ID3v2ExtraMeta **extra_meta); 126 * @param[opt] max_search_search restrict ID3 magic number search (bytes from start) 128 void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta, 135 const char *magic); 155 * @param magic magic byte [all...] |
H A D | ircamdec.c | 41 uint32_t magic; member 55 uint32_t magic, sample_rate, channels, tag; in ircam_read_header() local 60 magic = avio_rl32(s->pb); in ircam_read_header() 62 if (magic == table[i].magic) { in ircam_read_header()
|
/third_party/mesa3d/src/util/ |
H A D | u_debug_memory.c | 78 unsigned magic; member 84 unsigned magic; member 143 hdr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc() 154 ftr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc() 174 if (hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_free() 183 if (ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_free() 204 hdr->magic = 0; in debug_free() 205 ftr->magic = 0; in debug_free() 238 if (old_hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc() 247 if (old_ftr->magic ! in debug_realloc() [all...] |
/third_party/python/Tools/scripts/ |
H A D | fixheader.py | 3 # Add some standard cpp magic to a header file 30 magic = 'Py_' 33 magic = magic + c.upper() 34 else: magic = magic + '_' 35 print('#ifndef', magic, file=f) 36 print('#define', magic, file=f) 46 print('#endif /*', '!'+magic, '*/', file=f)
|
/third_party/libdrm/ |
H A D | xf86drmSL.c | 58 unsigned long magic; /* SL_ENTRY_MAGIC */ member 66 unsigned long magic; /* SL_LIST_MAGIC */ member 82 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry() 108 list->magic = SL_LIST_MAGIC; in drmSLCreate() 124 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy() 127 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy() 129 entry->magic = SL_FREED_MAGIC; in drmSLDestroy() 133 list->magic in drmSLDestroy() [all...] |
H A D | xf86drmHash.c | 111 table->magic = HASH_MAGIC; in drmHashCreate() 123 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDestroy() 172 if (!table || table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashLookup() 186 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashInsert() 205 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDelete() 237 if (table->magic ! in drmHashFirst() [all...] |
/third_party/alsa-utils/axfer/ |
H A D | container-au.c | 52 uint8_t magic[4]; member 83 memcpy(&header.magic, cntr->magic, sizeof(cntr->magic)); in au_parser_pre_process() 85 (char *)&header + sizeof(cntr->magic), in au_parser_pre_process() 86 sizeof(header) - sizeof(cntr->magic)); in au_parser_pre_process() 92 if (memcmp(header.magic, AU_MAGIC, sizeof(header.magic)) != 0) in au_parser_pre_process() 129 memcpy(header->magic, AU_MAGIC, sizeof(header->magic)); in build_container_header() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/fuchsia_egl/ |
H A D | fuchsia_egl.c | 17 uint32_t magic; member 31 egl_window->magic = FUCHSIA_EGL_WINDOW_MAGIC; in fuchsia_egl_window_create() 40 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_destroy() 46 egl_window->magic = -1U; in fuchsia_egl_window_destroy() 52 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_resize() 61 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_get_width() 67 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_get_height() 73 ZX_ASSERT(egl_window->magic == FUCHSIA_EGL_WINDOW_MAGIC); in fuchsia_egl_window_release_image_pipe()
|
/third_party/node/lib/internal/modules/esm/ |
H A D | formats.js | 63 const magic = new Uint8Array(4); 68 readSync(fd, magic, 0, 4); // Only read the first four bytes 69 if (magic[0] === 0x00 && magic[1] === 0x61 && magic[2] === 0x73 && magic[3] === 0x6d) {
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_msg.c | 78 * @magic: [IN] hypervisor magic value 87 port_num, magic, \ 97 "a"(magic), \ 118 * @magic: [IN] hypervisor magic value 132 port_num, magic, bp, \ 145 "a"(magic), \ 156 port_num, magic, bp, \ 169 "a"(magic), \ [all...] |
/third_party/backends/backend/escl/ |
H A D | escl_png.c | 59 png_byte magic[8]; in get_PNG_data() local 62 // read magic number in get_PNG_data() 63 fread (magic, 1, sizeof (magic), scanner->tmp); in get_PNG_data() 64 // check for valid magic number in get_PNG_data() 65 if (!png_check_sig (magic, sizeof (magic))) in get_PNG_data() 103 // tell libpng that we have already read the magic number in get_PNG_data() 104 png_set_sig_bytes (png_ptr, sizeof (magic)); in get_PNG_data()
|
/third_party/skia/src/core/ |
H A D | SkHalf.cpp | 33 static const FloatUIntUnion magic = { 15 << 23 }; in SkFloatToHalf() local 56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf() 73 static const FloatUIntUnion magic = { 126 << 23 }; in SkHalfToFloat() local 79 o.fUInt = magic.fUInt + halfMantissa(h); in SkHalfToFloat() 80 o.fFloat -= magic.fFloat; in SkHalfToFloat()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_format_float.c | 81 LLVMValueRef i32_floatexpmask, i32_smallexpmask, magic, normal; in lp_build_float_to_smallfloat() local 130 magic = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat() 132 magic = LLVMBuildBitCast(builder, magic, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 133 normal = lp_build_mul(&f32_bld, rescale_src, magic); in lp_build_float_to_smallfloat() 290 LLVMValueRef smallexpmask, i32_floatexpmask, magic; in lp_build_smallfloat_to_float() local 331 * magic number has exponent new exp bias + (new exp bias - old exp bias), in lp_build_smallfloat_to_float() 334 magic = lp_build_const_int_vec(gallivm, i32_type, in lp_build_smallfloat_to_float() 336 magic = LLVMBuildBitCast(builder, magic, f32_bl in lp_build_smallfloat_to_float() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | brenderpix.c | 140 unsigned int magic[4]; in pix_decode_frame() local 149 magic[0] = bytestream2_get_be32(&gb); in pix_decode_frame() 150 magic[1] = bytestream2_get_be32(&gb); in pix_decode_frame() 151 magic[2] = bytestream2_get_be32(&gb); in pix_decode_frame() 152 magic[3] = bytestream2_get_be32(&gb); in pix_decode_frame() 154 if (magic[0] != 0x12 || in pix_decode_frame() 155 magic[1] != 0x08 || in pix_decode_frame() 156 magic[2] != 0x02 || in pix_decode_frame() 157 magic[3] != 0x02) { in pix_decode_frame()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | wpabuf.c | 19 unsigned int magic; member 34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow() 35 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_overflow() 36 trace->magic); in wpabuf_overflow() 61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize() 62 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_resize() 63 trace->magic); in wpabuf_resize() 64 wpa_trace_show("wpabuf_resize invalid magic"); in wpabuf_resize() 121 trace->magic = WPABUF_MAGIC; in wpabuf_alloc() 143 trace->magic in wpabuf_alloc_ext_data() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | wpabuf.c | 19 unsigned int magic; member 34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow() 35 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_overflow() 36 trace->magic); in wpabuf_overflow() 61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize() 62 wpa_printf(MSG_ERROR, "wpabuf: invalid magic %x", in wpabuf_resize() 63 trace->magic); in wpabuf_resize() 64 wpa_trace_show("wpabuf_resize invalid magic"); in wpabuf_resize() 121 trace->magic = WPABUF_MAGIC; in wpabuf_alloc() 143 trace->magic in wpabuf_alloc_ext_data() [all...] |
/third_party/icu/icu4c/source/samples/ucnv/ |
H A D | flagcb.c | 149 if(q->magic != 0xC0FFEE) { in debugCB_print_log() 150 fprintf(stderr, "debugCBContext: %p:%d's magic is %x, supposed to be 0xC0FFEE\n", in debugCB_print_log() 151 q,q->serial, q->magic); in debugCB_print_log() 153 printf("debugCBContext %p:%d=%s - magic %x\n", in debugCB_print_log() 154 q, q->serial, name, q->magic); in debugCB_print_log() 164 newCtx->magic = 0xC0FFEE; in debugCB_clone() 191 if(ctx->magic != 0xC0FFEE) { in debugCB_fromU() 192 fprintf(stderr, "debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\n", ctx,ctx->serial, ctx->magic); in debugCB_fromU() 279 ctx->magic in debugCB_openContext() [all...] |
/third_party/skia/third_party/externals/icu/source/samples/ucnv/ |
H A D | flagcb.c | 149 if(q->magic != 0xC0FFEE) { in debugCB_print_log() 150 fprintf(stderr, "debugCBContext: %p:%d's magic is %x, supposed to be 0xC0FFEE\n", in debugCB_print_log() 151 q,q->serial, q->magic); in debugCB_print_log() 153 printf("debugCBContext %p:%d=%s - magic %x\n", in debugCB_print_log() 154 q, q->serial, name, q->magic); in debugCB_print_log() 164 newCtx->magic = 0xC0FFEE; in debugCB_clone() 191 if(ctx->magic != 0xC0FFEE) { in debugCB_fromU() 192 fprintf(stderr, "debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\n", ctx,ctx->serial, ctx->magic); in debugCB_fromU() 279 ctx->magic in debugCB_openContext() [all...] |
/third_party/toybox/toys/posix/ |
H A D | file.c | 212 int len, magic; in do_regular_file() local 257 // https://source.android.com/devices/tech/dalvik/dex-format#dex-file-magic in do_regular_file() 271 } else if (len>33 && (magic=peek(&s,2), magic==0143561 || magic==070707)) { in do_regular_file() 272 if (magic == 0143561) printf("byte-swapped "); in do_regular_file() 371 (magic=peek_le(s+0x3c,4))<len-4 && !memcmp(s+magic, "\x50\x45\0\0", 4)) { in do_regular_file() 372 xprintf("MS PE32%s executable %s", (peek_le(s+magic+24, 2)==0x20b)?"+":"", in do_regular_file() 373 (peek_le(s+magic in do_regular_file() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | low_level_alloc.cc | 83 uintptr_t magic; member 275 // magic numbers to identify allocated and unallocated blocks 320 // create an appropriate magic number for an object at "ptr" 321 // "magic" should be kMagicAllocated or kMagicUnallocated 322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() argument 323 return magic ^ reinterpret_cast<uintptr_t>(ptr); in Magic() 359 freelist.header.magic = in Arena() 397 region->header.magic == Magic(kMagicUnallocated, ®ion->header), in DeleteArena() 398 "bad magic number in DeleteArena()"); in DeleteArena() 458 next->header.magic in Next() [all...] |
/third_party/skia/third_party/externals/angle2/include/ |
H A D | angle_cl.h | 41 explicit Dispatch(std::uint32_t magic) : mDispatch(sDispatch), mMagic(magic) {} in Dispatch() 56 template <typename NativeObjectType, std::uint32_t magic> 59 NativeObject() : Dispatch<>(magic) in NativeObject() 89 return p != nullptr && p->mDispatch == sDispatch && p->mMagic == magic; in IsValid()
|
/third_party/mesa3d/src/freedreno/common/ |
H A D | freedreno_devices.py | 127 self.a6xx.magic = Struct() 129 for name, val in template["magic"].items(): 130 setattr(self.a6xx.magic, name, val) 132 # Various "magic" register values: 133 self.a6xx.magic.RB_UNKNOWN_8E04_blit = RB_UNKNOWN_8E04_blit 134 self.a6xx.magic.PC_POWER_CNTL = PC_POWER_CNTL 142 if name == "magic": # handled above 213 magic = dict( 228 magic = dict( 251 magic [all...] |
/third_party/ltp/pan/ |
H A D | symbol.c | 51 * A symbol table header consists of a magic number, a pointer to 94 h->magic = SYM_MAGIC; in newsym() 225 if (((SYM) (nsym->data))->magic != SYM_MAGIC) { in sym_put() 293 if (((SYM) (nsym->data))->magic != SYM_MAGIC) { in sym_get() 335 if (csym == NULL || csym->magic != SYM_MAGIC) { in sym_seq() 386 if (sym == NULL || sym->magic != SYM_MAGIC) in sym_dump() 412 if (sym->magic != SYM_MAGIC) { in sym_dump_s() 427 if (((SYM) se->data)->magic == SYM_MAGIC) { in sym_dump_s() 448 if (sym->magic != SYM_MAGIC) { in sym_rm()
|
/third_party/mesa3d/src/glx/ |
H A D | glxhash.c | 117 unsigned long magic; member 165 table->magic = HASH_MAGIC; in __glxHashCreate() 183 if (table->magic != HASH_MAGIC) in __glxHashDestroy() 184 return -1; /* Bad magic */ in __glxHashDestroy() 236 if (!table || table->magic != HASH_MAGIC) in __glxHashLookup() 237 return -1; /* Bad magic */ in __glxHashLookup() 253 if (table->magic != HASH_MAGIC) in __glxHashInsert() 254 return -1; /* Bad magic */ in __glxHashInsert() 279 if (table->magic != HASH_MAGIC) in __glxHashDelete() 280 return -1; /* Bad magic */ in __glxHashDelete() [all...] |