Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 1512) sorted by relevance

12345678910>>...61

/third_party/ffmpeg/libavformat/
Dsol.c38 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, int type) in sol_channels() argument
79 if (magic == 0x0B8D || !(type & SOL_STEREO)) return 1; in sol_channels()
85 unsigned int magic,tag; in sol_read_header() local
[all …]
Did3v2.h101 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…
128 void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta,
135 const char *magic);
158 int ff_id3v2_write_simple(struct AVFormatContext *s, int id3v2_version, const char *magic);
/third_party/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c32 errcode_t magic; member
45 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
46 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
47 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
50 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
51 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
52 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
74 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic()
75 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic()
76 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic()
[all …]
Dext2_err.et.in15 "Wrong magic number for ext2_filsys structure"
18 "Wrong magic number for badblocks_list structure"
21 "Wrong magic number for badblocks_iterate structure"
24 "Wrong magic number for inode_scan structure"
27 "Wrong magic number for io_channel structure"
30 "Wrong magic number for unix io_channel structure"
33 "Wrong magic number for io_manager structure"
36 "Wrong magic number for block_bitmap structure"
39 "Wrong magic number for inode_bitmap structure"
42 "Wrong magic number for generic_bitmap structure"
[all …]
Dbmap64.h41 errcode_t magic; member
59 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
60 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
61 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
64 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
65 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
66 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
Dfreefs.c24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) in ext2fs_free()
66 fs->magic = 0; in ext2fs_free()
77 if (bb->magic != EXT2_ET_MAGIC_BADBLOCKS_LIST) in ext2fs_u32_list_free()
97 if (!dblist || (dblist->magic != EXT2_ET_MAGIC_DBLIST)) in ext2fs_free_dblist()
105 dblist->magic = 0; in ext2fs_free_dblist()
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dno-magic-numbers.md1 # Disallow magic numbers (`no-magic-numbers`)
5 This rule extends the base [`eslint/no-magic-numbers`](https://eslint.org/docs/rules/no-magic-numbe…
17 "no-magic-numbers": "off",
18 "@typescript-eslint/no-magic-numbers": [
29 See [`eslint/no-magic-numbers` options](https://eslint.org/docs/rules/no-magic-numbers#options).
54 /*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": false }]*/
64 /*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": true }]*/
78 /*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreNumericLiteralTypes": false }]*/
86 /*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreNumericLiteralTypes": true }]*/
96 /*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreReadonlyClassProperties": false }]…
[all …]
/third_party/mesa3d/src/util/
Du_debug_memory.c78 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 != DEBUG_MEMORY_MAGIC) { in debug_realloc()
[all …]
/third_party/python/Tools/scripts/
Dfixheader.py30 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/
Dxf86drmSL.c58 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 = SL_FREED_MAGIC; in drmSLDestroy()
144 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate()
163 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert()
[all …]
/third_party/boost/libs/python/test/
Dtest_class.hpp12 explicit test_class(int x) : x(x), magic(7654321 + n) { ++counter; } in test_class()
13 test_class(test_class const& rhs) : x(rhs.x), magic(7654321 + n) { ++counter; } in test_class()
14 … virtual ~test_class() { BOOST_TEST(magic == 7654321 + n); magic = 6666666; x = 9999; --counter; } in ~test_class()
16 void set(int _x) { BOOST_TEST(magic == 7654321 + n); this->x = _x; } in set()
17 int value() const { BOOST_TEST(magic == 7654321 + n); return x; } in value()
22 long magic; member
Dstaticmethod.cpp19 explicit X(int x) : x(x), magic(7654321) { ++counter; } in X()
20 X(X const& rhs) : x(rhs.x), magic(7654321) { ++counter; } in X()
21 virtual ~X() { BOOST_ASSERT(magic == 7654321); magic = 6666666; x = 9999; --counter; } in ~X()
23 void set(int _x) { BOOST_ASSERT(magic == 7654321); this->x = _x; } in set()
24 int value() const { BOOST_ASSERT(magic == 7654321); return x; } in value()
30 long magic; member
Dback_reference.cpp26 explicit X(int x) : x(x), magic(7654321) { ++counter; } in X()
27 X(X const& rhs) : x(rhs.x), magic(7654321) { ++counter; } in X()
28 virtual ~X() { BOOST_ASSERT(magic == 7654321); magic = 6666666; x = 9999; --counter; } in ~X()
30 void set(int _x) { BOOST_ASSERT(magic == 7654321); this->x = _x; } in set()
31 int value() const { BOOST_ASSERT(magic == 7654321); return x; } in value()
37 long magic; member
Dvirtual_functions.cpp21 explicit X(int x) : x(x), magic(7654321) { ++counter; } in X()
22 X(X const& rhs) : x(rhs.x), magic(7654321) { ++counter; } in X()
23 virtual ~X() { BOOST_ASSERT(magic == 7654321); magic = 6666666; x = 9999; --counter; } in ~X()
25 void set(int _x) { BOOST_ASSERT(magic == 7654321); this->x = _x; } in set()
26 int value() const { BOOST_ASSERT(magic == 7654321); return x; } in value()
32 long magic; member
Dcallbacks.cpp33 explicit X(int x) : x(x), magic(7654321) { ++counter; } in X()
34 X(X const& rhs) : x(rhs.x), magic(7654321) { ++counter; } in X()
35 ~X() { BOOST_ASSERT(magic == 7654321); magic = 6666666; x = 9999; --counter; } in ~X()
37 void set(int _x) { BOOST_ASSERT(magic == 7654321); this->x = _x; } in set()
38 int value() const { BOOST_ASSERT(magic == 7654321); return x; } in value()
44 long magic; member
/third_party/skia/third_party/externals/angle2/src/common/fuchsia_egl/
Dfuchsia_egl.c17 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/flutter/skia/third_party/externals/angle2/src/common/fuchsia_egl/
Dfuchsia_egl.c17 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/alsa-utils/axfer/
Dcontainer-au.c52 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()
187 .magic = AU_MAGIC,
/third_party/openssl/crypto/aes/asm/
Dvpaes-x86.pl69 my ($round, $base, $magic, $key, $const, $inp, $out)=
193 &mov ($magic,16);
220 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[]
223 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[]
231 &add ($magic,16); # next mc
234 &and ($magic,0x30); # ... mod 4
268 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[]
285 &mov ($magic,$round);
288 &shl ($magic,4);
292 &xor ($magic,0x30);
[all …]
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_msg.c87 port_num, magic, \ argument
97 "a"(magic), \
132 port_num, magic, bp, \ argument
145 "a"(magic), \
156 port_num, magic, bp, \ argument
169 "a"(magic), \
191 port_num, magic, bp, \ argument
206 "a"(magic), \
218 port_num, magic, bp, \ argument
233 "a"(magic), \
[all …]
/third_party/ffmpeg/libavcodec/
Dbrenderpix.c141 unsigned int magic[4]; in pix_decode_frame() local
150 magic[0] = bytestream2_get_be32(&gb); in pix_decode_frame()
151 magic[1] = bytestream2_get_be32(&gb); in pix_decode_frame()
152 magic[2] = bytestream2_get_be32(&gb); in pix_decode_frame()
153 magic[3] = bytestream2_get_be32(&gb); in pix_decode_frame()
155 if (magic[0] != 0x12 || in pix_decode_frame()
156 magic[1] != 0x08 || in pix_decode_frame()
157 magic[2] != 0x02 || in pix_decode_frame()
158 magic[3] != 0x02) { in pix_decode_frame()
/third_party/flutter/skia/src/core/
DSkHalf.cpp33 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/skia/src/core/
DSkHalf.cpp33 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/freedreno/common/
Dfreedreno_devices.py127 self.a6xx.magic = Struct()
130 setattr(self.a6xx.magic, name, val)
133 self.a6xx.magic.RB_UNKNOWN_8E04_blit = RB_UNKNOWN_8E04_blit
134 self.a6xx.magic.PC_POWER_CNTL = PC_POWER_CNTL
212 magic = dict(
225 magic = dict(
242 magic = dict(
262 magic = dict(
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dwpabuf.c19 unsigned int magic; member
34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
36 trace->magic); in wpabuf_overflow()
61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
63 trace->magic); in wpabuf_resize()
121 trace->magic = WPABUF_MAGIC; in wpabuf_alloc()
143 trace->magic = WPABUF_MAGIC; in wpabuf_alloc_ext_data()
189 if (trace->magic != WPABUF_MAGIC) { in wpabuf_free()
191 trace->magic); in wpabuf_free()

12345678910>>...61