id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
22,857
static int load_bitmap_data(BlockDriverState *bs, const uint64_t *bitmap_table, uint32_t bitmap_table_size, BdrvDirtyBitmap *bitmap) { int ret = 0; BDRVQcow2State *s = bs->opaque; uint64_t sector, sbc; uint64_t b...
false
qemu
86f6ae67e157362f3b141649874213ce01dcc622
static int load_bitmap_data(BlockDriverState *bs, const uint64_t *bitmap_table, uint32_t bitmap_table_size, BdrvDirtyBitmap *bitmap) { int ret = 0; BDRVQcow2State *s = bs->opaque; uint64_t sector, sbc; uint64_t b...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const uint64_t *VAR_1, uint32_t VAR_2, BdrvDirtyBitmap *VAR_3) { int VAR_4 = 0; BDRVQcow2State *s = VAR_0->opaque; uint64_t sector, sbc; uint64_t bm_size = bdrv_dirty_bi...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nconst uint64_t *VAR_1,\nuint32_t VAR_2,\nBdrvDirtyBitmap *VAR_3)\n{", "int VAR_4 = 0;", "BDRVQcow2State *s = VAR_0->opaque;", "uint64_t sector, sbc;", "uint64_t bm_size = bdrv_dirty_bitmap_size(VAR_3);", "uint64_t bm_sectors = DIV_ROUND_UP(bm_size, BDRV_SECTOR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,858
static coroutine_fn int nbd_negotiate(NBDClientNewData *data) { NBDClient *client = data->client; char buf[8 + 8 + 8 + 128]; int rc; const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); bool oldStyle; /* Old s...
false
qemu
7423f417827146f956df820f172d0bf80a489495
static coroutine_fn int nbd_negotiate(NBDClientNewData *data) { NBDClient *client = data->client; char buf[8 + 8 + 8 + 128]; int rc; const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); bool oldStyle; ...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(NBDClientNewData *data) { NBDClient *client = data->client; char VAR_0[8 + 8 + 8 + 128]; int VAR_1; const int VAR_2 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM | NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA); bool oldStyle; ...
[ "static coroutine_fn int FUNC_0(NBDClientNewData *data)\n{", "NBDClient *client = data->client;", "char VAR_0[8 + 8 + 8 + 128];", "int VAR_1;", "const int VAR_2 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |\nNBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);", "bool oldStyle;", "qio_channel_set_blocking(client->i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [ 69 ], [ 71 ], [ 73 ], [ 75, 77 ], [ 79 ], [ 81 ], [ 83 ], [ 85 ...
22,859
void bdrv_io_plug(BlockDriverState *bs) { BlockDriver *drv = bs->drv; if (drv && drv->bdrv_io_plug) { drv->bdrv_io_plug(bs); } else if (bs->file) { bdrv_io_plug(bs->file); } }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_io_plug(BlockDriverState *bs) { BlockDriver *drv = bs->drv; if (drv && drv->bdrv_io_plug) { drv->bdrv_io_plug(bs); } else if (bs->file) { bdrv_io_plug(bs->file); } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { BlockDriver *drv = VAR_0->drv; if (drv && drv->FUNC_0) { drv->FUNC_0(VAR_0); } else if (VAR_0->file) { FUNC_0(VAR_0->file); } }
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "BlockDriver *drv = VAR_0->drv;", "if (drv && drv->FUNC_0) {", "drv->FUNC_0(VAR_0);", "} else if (VAR_0->file) {", "FUNC_0(VAR_0->file);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
22,860
void cpu_watchpoint_remove_all(CPUState *env, int mask) { CPUWatchpoint *wp, *next; TAILQ_FOREACH_SAFE(wp, &env->watchpoints, entry, next) { if (wp->flags & mask) cpu_watchpoint_remove_by_ref(env, wp); } }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void cpu_watchpoint_remove_all(CPUState *env, int mask) { CPUWatchpoint *wp, *next; TAILQ_FOREACH_SAFE(wp, &env->watchpoints, entry, next) { if (wp->flags & mask) cpu_watchpoint_remove_by_ref(env, wp); } }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, int VAR_1) { CPUWatchpoint *wp, *next; TAILQ_FOREACH_SAFE(wp, &VAR_0->watchpoints, entry, next) { if (wp->flags & VAR_1) cpu_watchpoint_remove_by_ref(VAR_0, wp); } }
[ "void FUNC_0(CPUState *VAR_0, int VAR_1)\n{", "CPUWatchpoint *wp, *next;", "TAILQ_FOREACH_SAFE(wp, &VAR_0->watchpoints, entry, next) {", "if (wp->flags & VAR_1)\ncpu_watchpoint_remove_by_ref(VAR_0, wp);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
22,861
static void hybrid_synthesis(float out[2][38][64], float in[91][32][2], int is34, int len) { int i, n; if (is34) { for (n = 0; n < len; n++) { memset(out[0][n], 0, 5*sizeof(out[0][n][0])); memset(out[1][n], 0, 5*sizeof(out[1][n][0])); for (i = 0; i < 12; i++) {...
false
FFmpeg
bf1945af301aff54c33352e75f17aec6cb5269d7
static void hybrid_synthesis(float out[2][38][64], float in[91][32][2], int is34, int len) { int i, n; if (is34) { for (n = 0; n < len; n++) { memset(out[0][n], 0, 5*sizeof(out[0][n][0])); memset(out[1][n], 0, 5*sizeof(out[1][n][0])); for (i = 0; i < 12; i++) {...
{ "code": [], "line_no": [] }
static void FUNC_0(float VAR_0[2][38][64], float VAR_1[91][32][2], int VAR_2, int VAR_3) { int VAR_4, VAR_5; if (VAR_2) { for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) { memset(VAR_0[0][VAR_5], 0, 5*sizeof(VAR_0[0][VAR_5][0])); memset(VAR_0[1][VAR_5], 0, 5*sizeof(VAR_0[1][VAR_5][...
[ "static void FUNC_0(float VAR_0[2][38][64], float VAR_1[91][32][2], int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "if (VAR_2) {", "for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) {", "memset(VAR_0[0][VAR_5], 0, 5*sizeof(VAR_0[0][VAR_5][0]));", "memset(VAR_0[1][VAR_5], 0, 5*sizeof(VAR_0[1][VAR_5][0]));", "for ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
22,862
static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame) { AVCodecInternal *avci = avctx->internal; InternalBuffer *buf; int buf_size, ret; buf_size = av_samples_get_buffer_size(NULL, avctx->channels, frame->nb_samples, avctx->sample_fmt, ...
false
FFmpeg
e55c3857d20ba015e4914c2e80fcab037af0799d
static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame) { AVCodecInternal *avci = avctx->internal; InternalBuffer *buf; int buf_size, ret; buf_size = av_samples_get_buffer_size(NULL, avctx->channels, frame->nb_samples, avctx->sample_fmt, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { AVCodecInternal *avci = VAR_0->internal; InternalBuffer *buf; int VAR_2, VAR_3; VAR_2 = av_samples_get_buffer_size(NULL, VAR_0->channels, VAR_1->nb_samples, VAR_0->sample_fmt, ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "AVCodecInternal *avci = VAR_0->internal;", "InternalBuffer *buf;", "int VAR_2, VAR_3;", "VAR_2 = av_samples_get_buffer_size(NULL, VAR_0->channels,\nVAR_1->nb_samples, VAR_0->sample_fmt,\n0);", "if (VAR_2 < 0)\nreturn AVERROR(EINVAL);", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19, 21 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 45 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59 ], [...
22,863
static void tracked_request_begin(BdrvTrackedRequest *req, BlockDriverState *bs, int64_t offset, unsigned int bytes, bool is_write) { *req = (BdrvTrackedRequest){ .bs = bs, .offset = ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void tracked_request_begin(BdrvTrackedRequest *req, BlockDriverState *bs, int64_t offset, unsigned int bytes, bool is_write) { *req = (BdrvTrackedRequest){ .bs = bs, .offset = ...
{ "code": [], "line_no": [] }
static void FUNC_0(BdrvTrackedRequest *VAR_0, BlockDriverState *VAR_1, int64_t VAR_2, unsigned int VAR_3, bool VAR_4) { *VAR_0 = (BdrvTrackedRequest){ .VAR_1 = VAR_1, .VAR_2 = VAR_2, ...
[ "static void FUNC_0(BdrvTrackedRequest *VAR_0,\nBlockDriverState *VAR_1,\nint64_t VAR_2,\nunsigned int VAR_3, bool VAR_4)\n{", "*VAR_0 = (BdrvTrackedRequest){", ".VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_3 = VAR_3,\n.VAR_4 = VAR_4,\n.co = qemu_coroutine_self(),\n.serialising =...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13, 15, 17, 19, 21, 23, 25, 27, 29 ], [ 33 ], [ 37 ], [ 39 ] ]
22,864
static uint64_t omap_id_read(void *opaque, hwaddr addr, unsigned size) { struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0xfffe1800: /* DIE_ID_LSB */ ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static uint64_t omap_id_read(void *opaque, hwaddr addr, unsigned size) { struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0xfffe1800: return 0...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { struct omap_mpu_state_s *VAR_0 = (struct omap_mpu_state_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0xfffe1800: return 0xc...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "struct omap_mpu_state_s *VAR_0 = (struct omap_mpu_state_s *) opaque;", "if (size != 4) {", "return omap_badwidth_read32(opaque, addr);", "}", "switch (addr) {", "case 0xfffe1800:\nreturn 0xc9581f0e;", "case 0xfffe1804:\nreturn 0x...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 31, 33 ], [ 35, 37 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55 ], [ 57 ], ...
22,865
static void pc_compat_1_7(MachineState *machine) { pc_compat_2_0(machine); smbios_defaults = false; gigabyte_align = false; option_rom_has_mr = true; x86_cpu_change_kvm_default("x2apic", NULL); }
false
qemu
7102fa7073b2cefb33ab4012a11f15fbf297a74b
static void pc_compat_1_7(MachineState *machine) { pc_compat_2_0(machine); smbios_defaults = false; gigabyte_align = false; option_rom_has_mr = true; x86_cpu_change_kvm_default("x2apic", NULL); }
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { pc_compat_2_0(VAR_0); smbios_defaults = false; gigabyte_align = false; option_rom_has_mr = true; x86_cpu_change_kvm_default("x2apic", NULL); }
[ "static void FUNC_0(MachineState *VAR_0)\n{", "pc_compat_2_0(VAR_0);", "smbios_defaults = false;", "gigabyte_align = false;", "option_rom_has_mr = true;", "x86_cpu_change_kvm_default(\"x2apic\", NULL);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
22,866
static void v9fs_create_post_mksock(V9fsState *s, V9fsCreateState *vs, int err) { if (err) { err = -errno; goto out; } err = v9fs_do_chmod(s, &vs->fullname, vs->perm & 0777); v9fs_create_post_perms(s, vs, err); ...
false
qemu
63729c36924348e494d69adbbdec6fdda339b76b
static void v9fs_create_post_mksock(V9fsState *s, V9fsCreateState *vs, int err) { if (err) { err = -errno; goto out; } err = v9fs_do_chmod(s, &vs->fullname, vs->perm & 0777); v9fs_create_post_perms(s, vs, err); ...
{ "code": [], "line_no": [] }
static void FUNC_0(V9fsState *VAR_0, V9fsCreateState *VAR_1, int VAR_2) { if (VAR_2) { VAR_2 = -errno; goto out; } VAR_2 = v9fs_do_chmod(VAR_0, &VAR_1->fullname, VAR_1->perm & 0777); v9fs_create_post_perms(VAR_0, V...
[ "static void FUNC_0(V9fsState *VAR_0, V9fsCreateState *VAR_1,\nint VAR_2)\n{", "if (VAR_2) {", "VAR_2 = -errno;", "goto out;", "}", "VAR_2 = v9fs_do_chmod(VAR_0, &VAR_1->fullname, VAR_1->perm & 0777);", "v9fs_create_post_perms(VAR_0, VAR_1, VAR_2);", "return;", "out:\nv9fs_post_create(VAR_0, VAR_1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ] ]
22,868
void qemu_peer_set_vnet_hdr_len(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->set_vnet_hdr_len) { return; } nc->peer->info->set_vnet_hdr_len(nc->peer, len); }
false
qemu
d6085e3ace20bc9b0fa625d8d79b22668710e217
void qemu_peer_set_vnet_hdr_len(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->set_vnet_hdr_len) { return; } nc->peer->info->set_vnet_hdr_len(nc->peer, len); }
{ "code": [], "line_no": [] }
void FUNC_0(NetClientState *VAR_0, int VAR_1) { if (!VAR_0->peer || !VAR_0->peer->info->set_vnet_hdr_len) { return; } VAR_0->peer->info->set_vnet_hdr_len(VAR_0->peer, VAR_1); }
[ "void FUNC_0(NetClientState *VAR_0, int VAR_1)\n{", "if (!VAR_0->peer || !VAR_0->peer->info->set_vnet_hdr_len) {", "return;", "}", "VAR_0->peer->info->set_vnet_hdr_len(VAR_0->peer, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
22,869
BusState *qdev_get_child_bus(DeviceState *dev, const char *name) { BusState *bus; LIST_FOREACH(bus, &dev->child_bus, sibling) { if (strcmp(name, bus->name) == 0) { return bus; } } return NULL; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
BusState *qdev_get_child_bus(DeviceState *dev, const char *name) { BusState *bus; LIST_FOREACH(bus, &dev->child_bus, sibling) { if (strcmp(name, bus->name) == 0) { return bus; } } return NULL; }
{ "code": [], "line_no": [] }
BusState *FUNC_0(DeviceState *dev, const char *name) { BusState *bus; LIST_FOREACH(bus, &dev->child_bus, sibling) { if (strcmp(name, bus->name) == 0) { return bus; } } return NULL; }
[ "BusState *FUNC_0(DeviceState *dev, const char *name)\n{", "BusState *bus;", "LIST_FOREACH(bus, &dev->child_bus, sibling) {", "if (strcmp(name, bus->name) == 0) {", "return bus;", "}", "}", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
22,870
static bool e1000_mit_state_needed(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MIT; }
false
qemu
bc0f0674f037a01f2ce0870ad6270a356a7a8347
static bool e1000_mit_state_needed(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MIT; }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MIT; }
[ "static bool FUNC_0(void *opaque)\n{", "E1000State *s = opaque;", "return s->compat_flags & E1000_FLAG_MIT;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
22,871
void helper_ldq_l_raw(uint64_t t0, uint64_t t1) { env->lock = t1; ldl_raw(t1, t0); }
false
qemu
2374e73edafff0586cbfb67c333c5a7588f81fd5
void helper_ldq_l_raw(uint64_t t0, uint64_t t1) { env->lock = t1; ldl_raw(t1, t0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint64_t VAR_0, uint64_t VAR_1) { env->lock = VAR_1; ldl_raw(VAR_1, VAR_0); }
[ "void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)\n{", "env->lock = VAR_1;", "ldl_raw(VAR_1, VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,872
void xen_pt_config_delete(XenPCIPassthroughState *s) { struct XenPTRegGroup *reg_group, *next_grp; struct XenPTReg *reg, *next_reg; /* free MSI/MSI-X info table */ if (s->msix) { xen_pt_msix_delete(s); } if (s->msi) { g_free(s->msi); } /* free all register ...
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
void xen_pt_config_delete(XenPCIPassthroughState *s) { struct XenPTRegGroup *reg_group, *next_grp; struct XenPTReg *reg, *next_reg; if (s->msix) { xen_pt_msix_delete(s); } if (s->msi) { g_free(s->msi); } QLIST_FOREACH_SAFE(reg_group, &s->reg_grps, en...
{ "code": [], "line_no": [] }
void FUNC_0(XenPCIPassthroughState *VAR_0) { struct XenPTRegGroup *VAR_1, *VAR_2; struct XenPTReg *VAR_3, *VAR_4; if (VAR_0->msix) { xen_pt_msix_delete(VAR_0); } if (VAR_0->msi) { g_free(VAR_0->msi); } QLIST_FOREACH_SAFE(VAR_1, &VAR_0->reg_grps, entr...
[ "void FUNC_0(XenPCIPassthroughState *VAR_0)\n{", "struct XenPTRegGroup *VAR_1, *VAR_2;", "struct XenPTReg *VAR_3, *VAR_4;", "if (VAR_0->msix) {", "xen_pt_msix_delete(VAR_0);", "}", "if (VAR_0->msi) {", "g_free(VAR_0->msi);", "}", "QLIST_FOREACH_SAFE(VAR_1, &VAR_0->reg_grps, entries, VAR_2) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
22,873
static void luma_mc(HEVCContext *s, int16_t *dst, ptrdiff_t dststride, AVFrame *ref, const Mv *mv, int x_off, int y_off, int block_w, int block_h) { HEVCLocalContext *lc = &s->HEVClc; uint8_t *src = ref->data[0]; ptrdiff_t srcstride = ref->linesize[0]; ...
false
FFmpeg
a1926a29fb4325afa46842883f197c74d4535c36
static void luma_mc(HEVCContext *s, int16_t *dst, ptrdiff_t dststride, AVFrame *ref, const Mv *mv, int x_off, int y_off, int block_w, int block_h) { HEVCLocalContext *lc = &s->HEVClc; uint8_t *src = ref->data[0]; ptrdiff_t srcstride = ref->linesize[0]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2, AVFrame *VAR_3, const Mv *VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8) { HEVCLocalContext *lc = &VAR_0->HEVClc; uint8_t *src = VAR_3->data[0]; ptrdiff_t srcstride = VAR_3->lin...
[ "static void FUNC_0(HEVCContext *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2,\nAVFrame *VAR_3, const Mv *VAR_4, int VAR_5, int VAR_6,\nint VAR_7, int VAR_8)\n{", "HEVCLocalContext *lc = &VAR_0->HEVClc;", "uint8_t *src = VAR_3->data[0];", "ptrdiff_t srcstride = VAR_3->linesize[0];", "int VAR_9 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [...
22,874
static gboolean gd_scroll_event(GtkWidget *widget, GdkEventScroll *scroll, void *opaque) { VirtualConsole *vc = opaque; InputButton btn; if (scroll->direction == GDK_SCROLL_UP) { btn = INPUT_BUTTON_WHEEL_UP; } else if (scroll->direction == GDK_SCROLL_DOWN...
false
qemu
d20a580bc0eac9d489884f6d2ed28105880532b6
static gboolean gd_scroll_event(GtkWidget *widget, GdkEventScroll *scroll, void *opaque) { VirtualConsole *vc = opaque; InputButton btn; if (scroll->direction == GDK_SCROLL_UP) { btn = INPUT_BUTTON_WHEEL_UP; } else if (scroll->direction == GDK_SCROLL_DOWN...
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GtkWidget *widget, GdkEventScroll *scroll, void *opaque) { VirtualConsole *vc = opaque; InputButton btn; if (scroll->direction == GDK_SCROLL_UP) { btn = INPUT_BUTTON_WHEEL_UP; } else if (scroll->direction == GDK_SCROLL_DOWN) { ...
[ "static gboolean FUNC_0(GtkWidget *widget, GdkEventScroll *scroll,\nvoid *opaque)\n{", "VirtualConsole *vc = opaque;", "InputButton btn;", "if (scroll->direction == GDK_SCROLL_UP) {", "btn = INPUT_BUTTON_WHEEL_UP;", "} else if (scroll->direction == GDK_SCROLL_DOWN) {", "btn = INPUT_BUTTON_WHEEL_DOWN;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
22,877
static int nfs_parse_uri(const char *filename, QDict *options, Error **errp) { URI *uri = NULL; QueryParams *qp = NULL; int ret = -EINVAL, i; uri = uri_parse(filename); if (!uri) { error_setg(errp, "Invalid URI specified"); goto out; } if (strcmp(uri->scheme, "nfs...
true
qemu
8d20abe87afa735cd0ae6688bd105c7a27390343
static int nfs_parse_uri(const char *filename, QDict *options, Error **errp) { URI *uri = NULL; QueryParams *qp = NULL; int ret = -EINVAL, i; uri = uri_parse(filename); if (!uri) { error_setg(errp, "Invalid URI specified"); goto out; } if (strcmp(uri->scheme, "nfs...
{ "code": [ " if (parse_uint_full(qp->p[i].value, NULL, 0)) {" ], "line_no": [ 85 ] }
static int FUNC_0(const char *VAR_0, QDict *VAR_1, Error **VAR_2) { URI *uri = NULL; QueryParams *qp = NULL; int VAR_3 = -EINVAL, VAR_4; uri = uri_parse(VAR_0); if (!uri) { error_setg(VAR_2, "Invalid URI specified"); goto out; } if (strcmp(uri->scheme, "nfs") != 0...
[ "static int FUNC_0(const char *VAR_0, QDict *VAR_1, Error **VAR_2)\n{", "URI *uri = NULL;", "QueryParams *qp = NULL;", "int VAR_3 = -EINVAL, VAR_4;", "uri = uri_parse(VAR_0);", "if (!uri) {", "error_setg(VAR_2, \"Invalid URI specified\");", "goto out;", "}", "if (strcmp(uri->scheme, \"nfs\") != 0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
22,878
void helper_rfi(CPUPPCState *env) { do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1], ~((target_ulong)0x783F0000), 1); }
true
qemu
a1bb73849fbd7d992b6ac2cf30c034244fb2299d
void helper_rfi(CPUPPCState *env) { do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1], ~((target_ulong)0x783F0000), 1); }
{ "code": [ " do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1],", " ~((target_ulong)0x783F0000), 1);" ], "line_no": [ 5, 7 ] }
void FUNC_0(CPUPPCState *VAR_0) { do_rfi(VAR_0, VAR_0->spr[SPR_SRR0], VAR_0->spr[SPR_SRR1], ~((target_ulong)0x783F0000), 1); }
[ "void FUNC_0(CPUPPCState *VAR_0)\n{", "do_rfi(VAR_0, VAR_0->spr[SPR_SRR0], VAR_0->spr[SPR_SRR1],\n~((target_ulong)0x783F0000), 1);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
22,879
QEMUFile *qemu_popen_cmd(const char *command, const char *mode) { FILE *stdio_file; QEMUFileStdio *s; if (mode == NULL || (mode[0] != 'r' && mode[0] != 'w') || mode[1] != 0) { fprintf(stderr, "qemu_popen: Argument validity check failed\n"); return NULL; } stdio_file = pop...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
QEMUFile *qemu_popen_cmd(const char *command, const char *mode) { FILE *stdio_file; QEMUFileStdio *s; if (mode == NULL || (mode[0] != 'r' && mode[0] != 'w') || mode[1] != 0) { fprintf(stderr, "qemu_popen: Argument validity check failed\n"); return NULL; } stdio_file = pop...
{ "code": [], "line_no": [] }
QEMUFile *FUNC_0(const char *command, const char *mode) { FILE *stdio_file; QEMUFileStdio *s; if (mode == NULL || (mode[0] != 'r' && mode[0] != 'w') || mode[1] != 0) { fprintf(stderr, "qemu_popen: Argument validity check failed\n"); return NULL; } stdio_file = popen(comma...
[ "QEMUFile *FUNC_0(const char *command, const char *mode)\n{", "FILE *stdio_file;", "QEMUFileStdio *s;", "if (mode == NULL || (mode[0] != 'r' && mode[0] != 'w') || mode[1] != 0) {", "fprintf(stderr, \"qemu_popen: Argument validity check failed\\n\");", "return NULL;", "}", "stdio_file = popen(command, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
22,880
static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo, const siginfo_t *info) { int sig = host_to_target_signal(info->si_signo); tinfo->si_signo = sig; tinfo->si_errno = 0; tinfo->si_code = info->si_code; if (sig == TARGET_...
true
qemu
a70dadc7f1a3e96a7179c6c3a6ccd1a0ea65760a
static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo, const siginfo_t *info) { int sig = host_to_target_signal(info->si_signo); tinfo->si_signo = sig; tinfo->si_errno = 0; tinfo->si_code = info->si_code; if (sig == TARGET_...
{ "code": [ " if (sig == TARGET_SIGILL || sig == TARGET_SIGFPE || sig == TARGET_SIGSEGV", " || sig == TARGET_SIGBUS || sig == TARGET_SIGTRAP) {", " tinfo->_sifields._sigfault._addr = 0;", " } else if (sig == TARGET_SIGIO) {", " tinfo->_sifields._sigpoll._band = info-...
static inline void FUNC_0(target_siginfo_t *VAR_0, const siginfo_t *VAR_1) { int VAR_2 = host_to_target_signal(VAR_1->si_signo); VAR_0->si_signo = VAR_2; VAR_0->si_errno = 0; VAR_0->si_code = VAR_1->si_code; if (VAR_2 == TARGET_SIGILL || VAR_...
[ "static inline void FUNC_0(target_siginfo_t *VAR_0,\nconst siginfo_t *VAR_1)\n{", "int VAR_2 = host_to_target_signal(VAR_1->si_signo);", "VAR_0->si_signo = VAR_2;", "VAR_0->si_errno = 0;", "VAR_0->si_code = VAR_1->si_code;", "if (VAR_2 == TARGET_SIGILL || VAR_2 == TARGET_SIGFPE || VAR_2 == TARGET_SIGSEGV\...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,881
static int init_image(TiffContext *s, AVFrame *frame) { int ret; switch (s->planar * 1000 + s->bpp * 10 + s->bppcount) { case 11: s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; case 81: s->avctx->pix_fmt = s->palette_is_set ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8; break; ...
true
FFmpeg
ae5e1f3d663a8c9a532d89e588cbc61f171c9186
static int init_image(TiffContext *s, AVFrame *frame) { int ret; switch (s->planar * 1000 + s->bpp * 10 + s->bppcount) { case 11: s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; case 81: s->avctx->pix_fmt = s->palette_is_set ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8; break; ...
{ "code": [], "line_no": [] }
static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1) { int VAR_2; switch (VAR_0->planar * 1000 + VAR_0->bpp * 10 + VAR_0->bppcount) { case 11: VAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; case 81: VAR_0->avctx->pix_fmt = VAR_0->palette_is_set ? AV_PIX_FMT_PAL8 : AV_PIX_F...
[ "static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2;", "switch (VAR_0->planar * 1000 + VAR_0->bpp * 10 + VAR_0->bppcount) {", "case 11:\nVAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;", "break;", "case 81:\nVAR_0->avctx->pix_fmt = VAR_0->palette_is_set ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8, 9 ], [ 10 ], [ 11, 12 ], [ 13 ], [ 14, 15 ], [ 16 ], [ 17, 18 ], [ 19 ], [ 20, 21 ], [ 22 ], [ 23, 24 ], [ ...
22,882
static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int *tp_index, Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int ...
false
FFmpeg
4ec14ce121df4c33880251a96c2f3e7409eb14fe
static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int *tp_index, Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1, int *VAR_2, Jpeg2000CodingStyle *VAR_3, Jpeg2000ResLevel *VAR_4, int VAR_5, int VAR_6, uint8_t *VAR_7, int VAR_8) { int VAR_9, VAR_10, VAR_...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1, int *VAR_2,\nJpeg2000CodingStyle *VAR_3,\nJpeg2000ResLevel *VAR_4, int VAR_5,\nint VAR_6, uint8_t *VAR_7, int VAR_8)\n{", "int VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13;", "if (bytestream2_get_bytes_left(&VAR_0->g) == 0 && VAR_0->bit_in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55,...
22,883
rdt_parse_sdp_line (AVFormatContext *s, int st_index, PayloadContext *rdt, const char *line) { AVStream *stream = s->streams[st_index]; const char *p = line; if (av_strstart(p, "OpaqueData:buffer;", &p)) { rdt->mlti_data = rdt_parse_b64buf(&rdt->mlti_data_size, p); }...
false
FFmpeg
2dd18d4435c27a469b89e1d6b061eb9b4661687d
rdt_parse_sdp_line (AVFormatContext *s, int st_index, PayloadContext *rdt, const char *line) { AVStream *stream = s->streams[st_index]; const char *p = line; if (av_strstart(p, "OpaqueData:buffer;", &p)) { rdt->mlti_data = rdt_parse_b64buf(&rdt->mlti_data_size, p); }...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, int VAR_1, PayloadContext *VAR_2, const char *VAR_3) { AVStream *stream = VAR_0->streams[VAR_1]; const char *VAR_4 = VAR_3; if (av_strstart(VAR_4, "OpaqueData:buffer;", &VAR_4)) { VAR_2->mlti_data = rdt_parse_b64buf(&VAR_2->mlti_data_size, ...
[ "FUNC_0 (AVFormatContext *VAR_0, int VAR_1,\nPayloadContext *VAR_2, const char *VAR_3)\n{", "AVStream *stream = VAR_0->streams[VAR_1];", "const char *VAR_4 = VAR_3;", "if (av_strstart(VAR_4, \"OpaqueData:buffer;\", &VAR_4)) {", "VAR_2->mlti_data = rdt_parse_b64buf(&VAR_2->mlti_data_size, VAR_4);", "} else...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [...
22,884
static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel, const float *coefs, const FFPsyWindowInfo *wi) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int i, w, g; float desired_bits, desired...
false
FFmpeg
84f4be424d52b05fabe0fe8cfb569c77fc0c1f7b
static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel, const float *coefs, const FFPsyWindowInfo *wi) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int i, w, g; float desired_bits, desired...
{ "code": [], "line_no": [] }
static void FUNC_0(FFPsyContext *VAR_0, int VAR_1, const float *VAR_2, const FFPsyWindowInfo *VAR_3) { AacPsyContext *pctx = (AacPsyContext*) VAR_0->model_priv_data; AacPsyChannel *pch = &pctx->ch[VAR_1]; int VAR_4, VAR_5, VAR_6; float VAR_7, VAR_8, VAR_9, VAR...
[ "static void FUNC_0(FFPsyContext *VAR_0, int VAR_1,\nconst float *VAR_2, const FFPsyWindowInfo *VAR_3)\n{", "AacPsyContext *pctx = (AacPsyContext*) VAR_0->model_priv_data;", "AacPsyChannel *pch = &pctx->ch[VAR_1];", "int VAR_4, VAR_5, VAR_6;", "float VAR_7, VAR_8, VAR_9, VAR_10= NAN, VAR_11[128] = {0};", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
22,885
static int avi_write_ix(AVFormatContext *s) { AVIOContext *pb = s->pb; AVIContext *avi = s->priv_data; char tag[5]; char ix_tag[] = "ix00"; int i, j; assert(pb->seekable); if (avi->riff_id > AVI_MASTER_INDEX_SIZE) return -1; for (i = 0; i < s->nb_streams; i++) { ...
false
FFmpeg
83548fe894cdb455cc127f754d09905b6d23c173
static int avi_write_ix(AVFormatContext *s) { AVIOContext *pb = s->pb; AVIContext *avi = s->priv_data; char tag[5]; char ix_tag[] = "ix00"; int i, j; assert(pb->seekable); if (avi->riff_id > AVI_MASTER_INDEX_SIZE) return -1; for (i = 0; i < s->nb_streams; i++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; AVIContext *avi = VAR_0->priv_data; char VAR_1[5]; char VAR_2[] = "ix00"; int VAR_3, VAR_4; assert(pb->seekable); if (avi->riff_id > AVI_MASTER_INDEX_SIZE) return -1; for (VAR_3 = 0; VAR_3 < ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "AVIContext *avi = VAR_0->priv_data;", "char VAR_1[5];", "char VAR_2[] = \"ix00\";", "int VAR_3, VAR_4;", "assert(pb->seekable);", "if (avi->riff_id > AVI_MASTER_INDEX_SIZE)\nreturn -1;", "for (VAR_3 = 0; VAR_3 < VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
22,886
int ff_dxva2_decode_init(AVCodecContext *avctx) { FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx); AVHWFramesContext *frames_ctx = NULL; int ret = 0; // Old API. if (avctx->hwaccel_context) return 0; // (avctx->pix_fmt is not updated yet at this point) sctx->pix_f...
false
FFmpeg
e2afcc33e0bcba92ab6c767f09f17a67911a4928
int ff_dxva2_decode_init(AVCodecContext *avctx) { FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx); AVHWFramesContext *frames_ctx = NULL; int ret = 0; if (avctx->hwaccel_context) return 0; sctx->pix_fmt = avctx->hwaccel->pix_fmt; if (avctx->codec_id == AV_...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0) { FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(VAR_0); AVHWFramesContext *frames_ctx = NULL; int VAR_1 = 0; if (VAR_0->hwaccel_context) return 0; sctx->pix_fmt = VAR_0->hwaccel->pix_fmt; if (VAR_0->codec_id == AV_CODEC_ID_H26...
[ "int FUNC_0(AVCodecContext *VAR_0)\n{", "FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(VAR_0);", "AVHWFramesContext *frames_ctx = NULL;", "int VAR_1 = 0;", "if (VAR_0->hwaccel_context)\nreturn 0;", "sctx->pix_fmt = VAR_0->hwaccel->pix_fmt;", "if (VAR_0->codec_id == AV_CODEC_ID_H264 &&\n(VAR_0->profile...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15, 17 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
22,887
static av_cold int twolame_encode_init(AVCodecContext *avctx) { TWOLAMEContext *s = avctx->priv_data; int ret; avctx->frame_size = TWOLAME_SAMPLES_PER_FRAME; avctx->delay = 512 - 32 + 1; s->glopts = twolame_init(); if (!s->glopts) return AVERROR(ENOMEM); twolame_s...
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
static av_cold int twolame_encode_init(AVCodecContext *avctx) { TWOLAMEContext *s = avctx->priv_data; int ret; avctx->frame_size = TWOLAME_SAMPLES_PER_FRAME; avctx->delay = 512 - 32 + 1; s->glopts = twolame_init(); if (!s->glopts) return AVERROR(ENOMEM); twolame_s...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { TWOLAMEContext *s = avctx->priv_data; int VAR_0; avctx->frame_size = TWOLAME_SAMPLES_PER_FRAME; avctx->delay = 512 - 32 + 1; s->glopts = twolame_init(); if (!s->glopts) return AVERROR(ENOMEM); twolame_set_verbosit...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "TWOLAMEContext *s = avctx->priv_data;", "int VAR_0;", "avctx->frame_size = TWOLAME_SAMPLES_PER_FRAME;", "avctx->delay = 512 - 32 + 1;", "s->glopts = twolame_init();", "if (!s->glopts)\nreturn AVERROR(ENOMEM);", "twolame_set_verbosity(s->glop...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
22,888
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { SheerVideoContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *p = data; GetBitContext gb; unsigned format; int ret; if (avpkt->...
true
FFmpeg
d8030c14bd7ac983b81ebe898631979f6b5aea09
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { SheerVideoContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *p = data; GetBitContext gb; unsigned format; int ret; if (avpkt->...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { SheerVideoContext *s = VAR_0->priv_data; ThreadFrame frame = { .f = VAR_1 }; AVFrame *p = VAR_1; GetBitContext gb; unsigned VAR_4; int VAR_5; if (VAR_3->size <...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "SheerVideoContext *s = VAR_0->priv_data;", "ThreadFrame frame = { .f = VAR_1 };", "AVFrame *p = VAR_1;", "GetBitContext gb;", "unsigned VAR_4;", "int VAR_5;", "if (VAR_3->size <= 20)\nif (AV_RL32(VAR_3->VAR_1) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11, 12, 13, 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18, 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ],...
22,889
static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size, uint64_t *l2_table, uint64_t mask) { int i; uint64_t offset = be64_to_cpu(l2_table[0]) & ~mask; if (!offset) return 0; for (i = 0; i < nb_clusters; i++) if (offset + i * cluster_size != (be64...
true
qemu
ff4b91c2f7e51dab148aba4bf43c2f39f219e495
static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size, uint64_t *l2_table, uint64_t mask) { int i; uint64_t offset = be64_to_cpu(l2_table[0]) & ~mask; if (!offset) return 0; for (i = 0; i < nb_clusters; i++) if (offset + i * cluster_size != (be64...
{ "code": [ " uint64_t *l2_table, uint64_t mask)", " for (i = 0; i < nb_clusters; i++)", "\treturn i;" ], "line_no": [ 3, 19, 27 ] }
static int FUNC_0(uint64_t VAR_0, int VAR_1, uint64_t *VAR_2, uint64_t VAR_3) { int VAR_4; uint64_t offset = be64_to_cpu(VAR_2[0]) & ~VAR_3; if (!offset) return 0; for (VAR_4 = 0; VAR_4 < VAR_0; VAR_4++) if (offset + VAR_4 * VAR_1 != (be64_to_cpu(VAR_2[VAR_4]) & ~VAR_...
[ "static int FUNC_0(uint64_t VAR_0, int VAR_1,\nuint64_t *VAR_2, uint64_t VAR_3)\n{", "int VAR_4;", "uint64_t offset = be64_to_cpu(VAR_2[0]) & ~VAR_3;", "if (!offset)\nreturn 0;", "for (VAR_4 = 0; VAR_4 < VAR_0; VAR_4++)", "if (offset + VAR_4 * VAR_1 != (be64_to_cpu(VAR_2[VAR_4]) & ~VAR_3))\nbreak;", "re...
[ 1, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ] ]
22,891
static int add_metadata_from_side_data(AVCodecContext *avctx, AVFrame *frame) { int size, ret = 0; const uint8_t *side_metadata; const uint8_t *end; side_metadata = av_packet_get_side_data(avctx->pkt, AV_PKT_DATA_STRINGS_METADATA, &size); if (!sid...
true
FFmpeg
838f461b0716393a1b5c70efd03de1e8bc197380
static int add_metadata_from_side_data(AVCodecContext *avctx, AVFrame *frame) { int size, ret = 0; const uint8_t *side_metadata; const uint8_t *end; side_metadata = av_packet_get_side_data(avctx->pkt, AV_PKT_DATA_STRINGS_METADATA, &size); if (!sid...
{ "code": [ " int ret = av_dict_set(avpriv_frame_get_metadatap(frame), key, val, 0);" ], "line_no": [ 29 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_8 = 0; const uint8_t *VAR_4; const uint8_t *VAR_5; VAR_4 = av_packet_get_side_data(VAR_0->pkt, AV_PKT_DATA_STRINGS_METADATA, &VAR_2); if (!VAR_4) goto VAR_5; V...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_8 = 0;", "const uint8_t *VAR_4;", "const uint8_t *VAR_5;", "VAR_4 = av_packet_get_side_data(VAR_0->pkt,\nAV_PKT_DATA_STRINGS_METADATA, &VAR_2);", "if (!VAR_4)\ngoto VAR_5;", "VAR_5 = VAR_4 + VAR_2;", "while (VAR_4 < VAR_5) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ] ]
22,892
static void parse_type_str(Visitor *v, const char *name, char **obj, Error **errp) { StringInputVisitor *siv = to_siv(v); if (siv->string) { *obj = g_strdup(siv->string); } else { *obj = NULL; error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? nam...
true
qemu
f332e830e38b3ff3953ef02ac04e409ae53769c5
static void parse_type_str(Visitor *v, const char *name, char **obj, Error **errp) { StringInputVisitor *siv = to_siv(v); if (siv->string) { *obj = g_strdup(siv->string); } else { *obj = NULL; error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? nam...
{ "code": [ " error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : \"null\",", " if (siv->string) {", " } else {", " error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : \"null\",", " if (siv->string) {", " if (siv->string) {", " *obj = g_strd...
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2, Error **VAR_3) { StringInputVisitor *siv = to_siv(VAR_0); if (siv->string) { *VAR_2 = g_strdup(siv->string); } else { *VAR_2 = NULL; error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, V...
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,\nError **VAR_3)\n{", "StringInputVisitor *siv = to_siv(VAR_0);", "if (siv->string) {", "*VAR_2 = g_strdup(siv->string);", "} else {", "*VAR_2 = NULL;", "error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : \"null\",\n\"string...
[ 0, 0, 1, 1, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
22,893
static void register_subpage(MemoryRegionSection *section) { subpage_t *subpage; target_phys_addr_t base = section->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_...
true
qemu
adb2a9b5d4d5170f0b58b9f92f816048f6b8932b
static void register_subpage(MemoryRegionSection *section) { subpage_t *subpage; target_phys_addr_t base = section->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_...
{ "code": [ " end = start + section->size;" ], "line_no": [ 47 ] }
static void FUNC_0(MemoryRegionSection *VAR_0) { subpage_t *subpage; target_phys_addr_t base = VAR_0->offset_within_address_space & TARGET_PAGE_MASK; MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS); MemoryRegionSection subsection = { .offset_within_address...
[ "static void FUNC_0(MemoryRegionSection *VAR_0)\n{", "subpage_t *subpage;", "target_phys_addr_t base = VAR_0->offset_within_address_space\n& TARGET_PAGE_MASK;", "MemoryRegionSection *existing = phys_page_find(base >> TARGET_PAGE_BITS);", "MemoryRegionSection subsection = {", ".offset_within_address_space ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,894
static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_end = frame + width * height; uint8_t *line_ptr; int count, i, v, lines, segments; int y = 0; lines = bytestream2_get_le16(gb); if (lines > height) return AVERROR_INVALIDD...
true
FFmpeg
58ac7fb9c395ab91cb321fa4c8c9e127ce8147c3
static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_end = frame + width * height; uint8_t *line_ptr; int count, i, v, lines, segments; int y = 0; lines = bytestream2_get_le16(gb); if (lines > height) return AVERROR_INVALIDD...
{ "code": [ " unsigned delta = -((int16_t)segments * width);" ], "line_no": [ 35 ] }
static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { const uint8_t *VAR_4 = VAR_1 + VAR_2 * VAR_3; uint8_t *line_ptr; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10 = 0; VAR_8 = bytestream2_get_le16(VAR_0); if (VAR_8 > VAR_3) return AVERROR_INVA...
[ "static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "const uint8_t *VAR_4 = VAR_1 + VAR_2 * VAR_3;", "uint8_t *line_ptr;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10 = 0;", "VAR_8 = bytestream2_get_le16(VAR_0);", "if (VAR_8 > VAR_3)\nreturn AVERROR_INVALIDDA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
22,896
static void adb_mouse_event(void *opaque, int dx1, int dy1, int dz1, int buttons_state) { MouseState *s = opaque; s->dx += dx1; s->dy += dy1; s->dz += dz1; s->buttons_state = buttons_state; }
true
qemu
77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0
static void adb_mouse_event(void *opaque, int dx1, int dy1, int dz1, int buttons_state) { MouseState *s = opaque; s->dx += dx1; s->dy += dy1; s->dz += dz1; s->buttons_state = buttons_state; }
{ "code": [ "static void adb_mouse_event(void *opaque,", " int dx1, int dy1, int dz1, int buttons_state)", " MouseState *s = opaque;", " s->dx += dx1;", " s->dy += dy1;", " s->dz += dz1;", " s->buttons_state = buttons_state;" ], "line_no": [ ...
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { MouseState *s = VAR_0; s->dx += VAR_1; s->dy += VAR_2; s->dz += VAR_3; s->VAR_4 = VAR_4; }
[ "static void FUNC_0(void *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "MouseState *s = VAR_0;", "s->dx += VAR_1;", "s->dy += VAR_2;", "s->dz += VAR_3;", "s->VAR_4 = VAR_4;", "}" ]
[ 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
22,897
void cache_insert(PageCache *cache, uint64_t addr, uint8_t *pdata) { CacheItem *it = NULL; g_assert(cache); g_assert(cache->page_cache); /* actual update of entry */ it = cache_get_by_addr(cache, addr); if (!it->it_data) { cache->num_items++; } it->it_data = pdata; it->it_age...
true
qemu
32a1c08b60a8ac0e63b54a5793a26b5e32b36618
void cache_insert(PageCache *cache, uint64_t addr, uint8_t *pdata) { CacheItem *it = NULL; g_assert(cache); g_assert(cache->page_cache); it = cache_get_by_addr(cache, addr); if (!it->it_data) { cache->num_items++; } it->it_data = pdata; it->it_age = ++cache->max_item_age; ...
{ "code": [], "line_no": [] }
void FUNC_0(PageCache *VAR_0, uint64_t VAR_1, uint8_t *VAR_2) { CacheItem *it = NULL; g_assert(VAR_0); g_assert(VAR_0->page_cache); it = cache_get_by_addr(VAR_0, VAR_1); if (!it->it_data) { VAR_0->num_items++; } it->it_data = VAR_2; it->it_age = ++VAR_0->max_item_age; it...
[ "void FUNC_0(PageCache *VAR_0, uint64_t VAR_1, uint8_t *VAR_2)\n{", "CacheItem *it = NULL;", "g_assert(VAR_0);", "g_assert(VAR_0->page_cache);", "it = cache_get_by_addr(VAR_0, VAR_1);", "if (!it->it_data) {", "VAR_0->num_items++;", "}", "it->it_data = VAR_2;", "it->it_age = ++VAR_0->max_item_age;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ] ]
22,898
void replay_bh_schedule_event(QEMUBH *bh) { if (replay_mode != REPLAY_MODE_NONE) { uint64_t id = replay_get_current_step(); replay_add_event(REPLAY_ASYNC_EVENT_BH, bh, NULL, id); } else { qemu_bh_schedule(bh); } }
true
qemu
58a0067aa8bf1e3ccad4fc354b080502e63f9fb1
void replay_bh_schedule_event(QEMUBH *bh) { if (replay_mode != REPLAY_MODE_NONE) { uint64_t id = replay_get_current_step(); replay_add_event(REPLAY_ASYNC_EVENT_BH, bh, NULL, id); } else { qemu_bh_schedule(bh); } }
{ "code": [ " if (replay_mode != REPLAY_MODE_NONE) {" ], "line_no": [ 5 ] }
void FUNC_0(QEMUBH *VAR_0) { if (replay_mode != REPLAY_MODE_NONE) { uint64_t id = replay_get_current_step(); replay_add_event(REPLAY_ASYNC_EVENT_BH, VAR_0, NULL, id); } else { qemu_bh_schedule(VAR_0); } }
[ "void FUNC_0(QEMUBH *VAR_0)\n{", "if (replay_mode != REPLAY_MODE_NONE) {", "uint64_t id = replay_get_current_step();", "replay_add_event(REPLAY_ASYNC_EVENT_BH, VAR_0, NULL, id);", "} else {", "qemu_bh_schedule(VAR_0);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
22,899
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel...
false
FFmpeg
b7c96769c52a312c6f6abe43f5d8c83701118a0b
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel...
{ "code": [], "line_no": [] }
static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; i...
[ "static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx,\nconst int16_t *audio, const int16_t *la,\nint channel, int prev_type)\n{", "AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;", "AacPsyChannel *pch = &pctx->ch[channel];", "int VAR_0 = 0;", "int VAR_1 = 1;", "int VAR_2[AAC_NUM_BLOCKS_SHORT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ...
22,900
static void float_to_int16_stride_altivec(int16_t *dst, const float *src, long len, int stride) { int i, j; vector signed short d, s; for (i = 0; i < len - 7; i += 8) { d = float_to_int16_one_altivec(src + i); for (j = 0; j < 8; j++) { ...
false
FFmpeg
f79364b2c30aaaec9f0b1500a74da5a859c2ff37
static void float_to_int16_stride_altivec(int16_t *dst, const float *src, long len, int stride) { int i, j; vector signed short d, s; for (i = 0; i < len - 7; i += 8) { d = float_to_int16_one_altivec(src + i); for (j = 0; j < 8; j++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(int16_t *VAR_0, const float *VAR_1, long VAR_2, int VAR_3) { int VAR_4, VAR_5; vector signed short d, s; for (VAR_4 = 0; VAR_4 < VAR_2 - 7; VAR_4 += 8) { d = float_to_int16_one_altivec(VAR_1 + VAR_4); for (VAR_5 = 0; VAR_5...
[ "static void FUNC_0(int16_t *VAR_0, const float *VAR_1,\nlong VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "vector signed short d, s;", "for (VAR_4 = 0; VAR_4 < VAR_2 - 7; VAR_4 += 8) {", "d = float_to_int16_one_altivec(VAR_1 + VAR_4);", "for (VAR_5 = 0; VAR_5 < 8; VAR_5++) {", "s = vec_splat(d, VAR_5);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
22,901
static int blk_connect(struct XenDevice *xendev) { struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev); int pers, index, qflags; bool readonly = true; /* read-only ? */ if (blkdev->directiosafe) { qflags = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO; } else { ...
true
qemu
cedccf1381c2fd6592d6322f3cd9cc6bf6621967
static int blk_connect(struct XenDevice *xendev) { struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev); int pers, index, qflags; bool readonly = true; if (blkdev->directiosafe) { qflags = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO; } else { qflags = BDRV...
{ "code": [ " blkdev->bs = bdrv_new(blkdev->dev, &local_err);", " if (local_err) {", " blkdev->bs = NULL;", " if (blkdev->bs) {", " BlockDriver *drv = bdrv_find_whitelisted_format(blkdev->fileproto,", " ...
static int FUNC_0(struct XenDevice *VAR_0) { struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0); int VAR_2, VAR_3, VAR_4; bool readonly = true; if (VAR_1->directiosafe) { VAR_4 = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO; } else { VAR_4 = BDRV_O_CACHE_WB;...
[ "static int FUNC_0(struct XenDevice *VAR_0)\n{", "struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);", "int VAR_2, VAR_3, VAR_4;", "bool readonly = true;", "if (VAR_1->directiosafe) {", "VAR_4 = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO;", "} else {", "VAR_4 = BDRV_O_CACHE_WB;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,903
static void vp3_idct_dc_add_c(uint8_t *dest/*align 8*/, int line_size, const DCTELEM *block/*align 16*/){ int i, dc = (block[0] + 15) >> 5; for(i = 0; i < 8; i++){ dest[0] = av_clip_uint8(dest[0] + dc); dest[1] = av_clip_uint8(dest[1] + dc); dest[2] ...
false
FFmpeg
aeaf268e52fc11c1f64914a319e0edddf1346d6a
static void vp3_idct_dc_add_c(uint8_t *dest, int line_size, const DCTELEM *block){ int i, dc = (block[0] + 15) >> 5; for(i = 0; i < 8; i++){ dest[0] = av_clip_uint8(dest[0] + dc); dest[1] = av_clip_uint8(dest[1] + dc); dest[2] = av_clip_uint8(dest[2]...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2){ int VAR_3, VAR_4 = (VAR_2[0] + 15) >> 5; for(VAR_3 = 0; VAR_3 < 8; VAR_3++){ VAR_0[0] = av_clip_uint8(VAR_0[0] + VAR_4); VAR_0[1] = av_clip_uint8(VAR_0[1] + VAR_4); VAR_0[2] = av_cl...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1,\nconst DCTELEM *VAR_2){", "int VAR_3, VAR_4 = (VAR_2[0] + 15) >> 5;", "for(VAR_3 = 0; VAR_3 < 8; VAR_3++){", "VAR_0[0] = av_clip_uint8(VAR_0[0] + VAR_4);", "VAR_0[1] = av_clip_uint8(VAR_0[1] + VAR_4);", "VAR_0[2] = av_clip_uint8(VAR_0[2] + VAR_4);", "VAR_0[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
22,904
static void usb_net_handle_destroy(USBDevice *dev) { USBNetState *s = (USBNetState *) dev; /* TODO: remove the nd_table[] entry */ qemu_del_vlan_client(s->vc); rndis_clear_responsequeue(s); qemu_free(s); }
true
qemu
b946a1533209f61a93e34898aebb5b43154b99c3
static void usb_net_handle_destroy(USBDevice *dev) { USBNetState *s = (USBNetState *) dev; qemu_del_vlan_client(s->vc); rndis_clear_responsequeue(s); qemu_free(s); }
{ "code": [ " rndis_clear_responsequeue(s);", " qemu_free(s);" ], "line_no": [ 13, 15 ] }
static void FUNC_0(USBDevice *VAR_0) { USBNetState *s = (USBNetState *) VAR_0; qemu_del_vlan_client(s->vc); rndis_clear_responsequeue(s); qemu_free(s); }
[ "static void FUNC_0(USBDevice *VAR_0)\n{", "USBNetState *s = (USBNetState *) VAR_0;", "qemu_del_vlan_client(s->vc);", "rndis_clear_responsequeue(s);", "qemu_free(s);", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
22,905
static av_cold int libopenjpeg_encode_close(AVCodecContext *avctx) { LibOpenJPEGContext *ctx = avctx->priv_data; opj_cio_close(ctx->stream); ctx->stream = NULL; opj_destroy_compress(ctx->compress); ctx->compress = NULL; opj_image_destroy(ctx->image); ctx->image = NULL; av_free...
true
FFmpeg
ecc92ee717eac18540e236ee27e9052cd2917800
static av_cold int libopenjpeg_encode_close(AVCodecContext *avctx) { LibOpenJPEGContext *ctx = avctx->priv_data; opj_cio_close(ctx->stream); ctx->stream = NULL; opj_destroy_compress(ctx->compress); ctx->compress = NULL; opj_image_destroy(ctx->image); ctx->image = NULL; av_free...
{ "code": [ " opj_destroy_compress(ctx->compress);", " ctx->compress = NULL;", " opj_cio_close(ctx->stream);", " ctx->stream = NULL;", " opj_destroy_compress(ctx->compress);", " ctx->compress = NULL;" ], "line_no": [ 13, 15, 9, 11, 13, 15 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { LibOpenJPEGContext *ctx = avctx->priv_data; opj_cio_close(ctx->stream); ctx->stream = NULL; opj_destroy_compress(ctx->compress); ctx->compress = NULL; opj_image_destroy(ctx->image); ctx->image = NULL; av_freep(&avctx->coded_fr...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "LibOpenJPEGContext *ctx = avctx->priv_data;", "opj_cio_close(ctx->stream);", "ctx->stream = NULL;", "opj_destroy_compress(ctx->compress);", "ctx->compress = NULL;", "opj_image_destroy(ctx->image);", "ctx->image = NULL;", "av_freep(&avctx->coded...
[ 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
22,907
FFAMediaFormat *ff_AMediaFormat_new(void) { JNIEnv *env = NULL; FFAMediaFormat *format = NULL; format = av_mallocz(sizeof(FFAMediaFormat)); if (!format) { return NULL; } format->class = &amediaformat_class; env = ff_jni_get_env(format); if (!env) { av_freep...
true
FFmpeg
224bb46fb857dab589597bdab302ba8ba012008c
FFAMediaFormat *ff_AMediaFormat_new(void) { JNIEnv *env = NULL; FFAMediaFormat *format = NULL; format = av_mallocz(sizeof(FFAMediaFormat)); if (!format) { return NULL; } format->class = &amediaformat_class; env = ff_jni_get_env(format); if (!env) { av_freep...
{ "code": [ " format->object = (*env)->NewObject(env, format->jfields.mediaformat_class, format->jfields.init_id);", " if (!format->object) {", " format->object = (*env)->NewGlobalRef(env, format->object);", " return format;", " ff_jni_reset_jfields(env, &format->jfields, jni_amedia...
FFAMediaFormat *FUNC_0(void) { JNIEnv *env = NULL; FFAMediaFormat *format = NULL; format = av_mallocz(sizeof(FFAMediaFormat)); if (!format) { return NULL; } format->class = &amediaformat_class; env = ff_jni_get_env(format); if (!env) { av_freep(&format); ...
[ "FFAMediaFormat *FUNC_0(void)\n{", "JNIEnv *env = NULL;", "FFAMediaFormat *format = NULL;", "format = av_mallocz(sizeof(FFAMediaFormat));", "if (!format) {", "return NULL;", "}", "format->class = &amediaformat_class;", "env = ff_jni_get_env(format);", "if (!env) {", "av_freep(&format);", "retu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
22,908
static int deband_8_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { DebandContext *s = ctx->priv; ThreadData *td = arg; AVFrame *in = td->in; AVFrame *out = td->out; const int start = (s->planeheight[0] * jobnr ) / nb_jobs; const int end = (s->planeheight[0] * (...
true
FFmpeg
9b26bf7e2a3904d0e4b80f8d771223d3045013db
static int deband_8_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { DebandContext *s = ctx->priv; ThreadData *td = arg; AVFrame *in = td->in; AVFrame *out = td->out; const int start = (s->planeheight[0] * jobnr ) / nb_jobs; const int end = (s->planeheight[0] * (...
{ "code": [ " for (x = 0; x < s->planewidth[p]; x++) {", " for (x = 0; x < s->planewidth[p]; x++) {" ], "line_no": [ 27, 27 ] }
static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { DebandContext *s = VAR_0->priv; ThreadData *td = VAR_1; AVFrame *in = td->in; AVFrame *out = td->out; const int VAR_4 = (s->planeheight[0] * VAR_2 ) / VAR_3; const int VAR_5 = (s->planeheight[0] * (VAR_2+1...
[ "static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3)\n{", "DebandContext *s = VAR_0->priv;", "ThreadData *td = VAR_1;", "AVFrame *in = td->in;", "AVFrame *out = td->out;", "const int VAR_4 = (s->planeheight[0] * VAR_2 ) / VAR_3;", "const int VAR_5 = (s->planeheight[0] * (VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
22,909
int qemu_egl_rendernode_open(void) { DIR *dir; struct dirent *e; int r, fd; char *p; dir = opendir("/dev/dri"); if (!dir) { return -1; } fd = -1; while ((e = readdir(dir))) { if (e->d_type != DT_CHR) { continue; } if (s...
true
qemu
f454f49c42d4ec7bdbbb5a7d9c0c8bfb24b28ca4
int qemu_egl_rendernode_open(void) { DIR *dir; struct dirent *e; int r, fd; char *p; dir = opendir("/dev/dri"); if (!dir) { return -1; } fd = -1; while ((e = readdir(dir))) { if (e->d_type != DT_CHR) { continue; } if (s...
{ "code": [ " r = asprintf(&p, \"/dev/dri/%s\", e->d_name);", " if (r < 0) {", " return -1;", " free(p);", " free(p);" ], "line_no": [ 45, 47, 49, 59, 67 ] }
int FUNC_0(void) { DIR *dir; struct dirent *VAR_0; int VAR_1, VAR_2; char *VAR_3; dir = opendir("/dev/dri"); if (!dir) { return -1; } VAR_2 = -1; while ((VAR_0 = readdir(dir))) { if (VAR_0->d_type != DT_CHR) { continue; } ...
[ "int FUNC_0(void)\n{", "DIR *dir;", "struct dirent *VAR_0;", "int VAR_1, VAR_2;", "char *VAR_3;", "dir = opendir(\"/dev/dri\");", "if (!dir) {", "return -1;", "}", "VAR_2 = -1;", "while ((VAR_0 = readdir(dir))) {", "if (VAR_0->d_type != DT_CHR) {", "continue;", "}", "if (strncmp(VAR_0->d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
22,910
void qemu_check_nic_model(NICInfo *nd, const char *model) { const char *models[2]; models[0] = model; models[1] = NULL; qemu_check_nic_model_list(nd, models, model); }
true
qemu
07caea315a85ebfe90851f9c2e4ef3fdd24117b5
void qemu_check_nic_model(NICInfo *nd, const char *model) { const char *models[2]; models[0] = model; models[1] = NULL; qemu_check_nic_model_list(nd, models, model); }
{ "code": [ " qemu_check_nic_model_list(nd, models, model);" ], "line_no": [ 15 ] }
void FUNC_0(NICInfo *VAR_0, const char *VAR_1) { const char *VAR_2[2]; VAR_2[0] = VAR_1; VAR_2[1] = NULL; qemu_check_nic_model_list(VAR_0, VAR_2, VAR_1); }
[ "void FUNC_0(NICInfo *VAR_0, const char *VAR_1)\n{", "const char *VAR_2[2];", "VAR_2[0] = VAR_1;", "VAR_2[1] = NULL;", "qemu_check_nic_model_list(VAR_0, VAR_2, VAR_1);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
22,911
int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i, ret; Picture *pic; s->mb_skipped = 0; if (!ff_thread_can_start_frame(avctx)) { av_log(avctx, AV_LOG_ERROR, "Attempt to start a frame outside SETUP state\n"); return -1; } /* mark & release old ...
true
FFmpeg
941b2240f2ce59c41f4a9ffec88c512f64c75613
int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) { int i, ret; Picture *pic; s->mb_skipped = 0; if (!ff_thread_can_start_frame(avctx)) { av_log(avctx, AV_LOG_ERROR, "Attempt to start a frame outside SETUP state\n"); return -1; } if (s->pict_type...
{ "code": [ " if (!avctx->hwaccel) {" ], "line_no": [ 257 ] }
int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1) { int VAR_6, VAR_3; Picture *pic; VAR_0->mb_skipped = 0; if (!ff_thread_can_start_frame(VAR_1)) { av_log(VAR_1, AV_LOG_ERROR, "Attempt to start a frame outside SETUP state\n"); return -1; } if (VAR_0->pic...
[ "int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1)\n{", "int VAR_6, VAR_3;", "Picture *pic;", "VAR_0->mb_skipped = 0;", "if (!ff_thread_can_start_frame(VAR_1)) {", "av_log(VAR_1, AV_LOG_ERROR, \"Attempt to start a frame outside SETUP state\\n\");", "return -1;", "}", "if (VAR_0->pict_type != ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 41 ], [ 43, 45, 47 ], [ 49, 51, 53 ], [ 55 ], [ 57 ], [ 59 ...
22,912
static void test_identify(void) { uint8_t data; uint16_t buf[256]; int i; int ret; ide_test_start( "-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s", tmp_path, "testdisk", "version"); /* IDENTIFY command on devi...
true
qemu
b7fcff01790d25f48d81ef6c8c3399577096a555
static void test_identify(void) { uint8_t data; uint16_t buf[256]; int i; int ret; ide_test_start( "-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s", tmp_path, "testdisk", "version"); outb(IDE_BASE + reg_d...
{ "code": [ " \"-vnc none \"", " \"-vnc none \"", " \"-vnc none \"" ], "line_no": [ 17, 17, 17 ] }
static void FUNC_0(void) { uint8_t data; uint16_t buf[256]; int VAR_0; int VAR_1; ide_test_start( "-vnc none " "-drive file=%s,if=ide,serial=%s,cache=writeback " "-global ide-hd.ver=%s", tmp_path, "testdisk", "version"); outb(IDE_BASE + reg_de...
[ "static void FUNC_0(void)\n{", "uint8_t data;", "uint16_t buf[256];", "int VAR_0;", "int VAR_1;", "ide_test_start(\n\"-vnc none \"\n\"-drive file=%s,if=ide,serial=%s,cache=writeback \"\n\"-global ide-hd.ver=%s\",\ntmp_path, \"testdisk\", \"version\");", "outb(IDE_BASE + reg_device, 0);", "outb(IDE_BAS...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19, 21, 23 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ...
22,913
static void gen_window_check2(DisasContext *dc, unsigned r1, unsigned r2) { gen_window_check1(dc, r1 > r2 ? r1 : r2); }
true
qemu
97e89ee914411384dcda771d38bf89f13726d71e
static void gen_window_check2(DisasContext *dc, unsigned r1, unsigned r2) { gen_window_check1(dc, r1 > r2 ? r1 : r2); }
{ "code": [ "static void gen_window_check2(DisasContext *dc, unsigned r1, unsigned r2)", " gen_window_check1(dc, r1 > r2 ? r1 : r2);" ], "line_no": [ 1, 5 ] }
static void FUNC_0(DisasContext *VAR_0, unsigned VAR_1, unsigned VAR_2) { gen_window_check1(VAR_0, VAR_1 > VAR_2 ? VAR_1 : VAR_2); }
[ "static void FUNC_0(DisasContext *VAR_0, unsigned VAR_1, unsigned VAR_2)\n{", "gen_window_check1(VAR_0, VAR_1 > VAR_2 ? VAR_1 : VAR_2);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
22,914
static int decode_0(AVCodecContext *avctx, uint8_t code, uint8_t *pkt) { PAFVideoDecContext *c = avctx->priv_data; uint32_t opcode_size, offset; uint8_t *dst, *dend, mask = 0, color = 0, a, b, p; const uint8_t *src, *send, *opcodes; int i, j, x = 0; i = bytestream2_get_byte(&c->gb); ...
true
FFmpeg
bd70a527129a1c049a8ab38236bf87f7d459df10
static int decode_0(AVCodecContext *avctx, uint8_t code, uint8_t *pkt) { PAFVideoDecContext *c = avctx->priv_data; uint32_t opcode_size, offset; uint8_t *dst, *dend, mask = 0, color = 0, a, b, p; const uint8_t *src, *send, *opcodes; int i, j, x = 0; i = bytestream2_get_byte(&c->gb); ...
{ "code": [ " dst = c->frame[c->current_frame];", " if (src + 3 * avctx->width + 4 > send)" ], "line_no": [ 77, 91 ] }
static int FUNC_0(AVCodecContext *VAR_0, uint8_t VAR_1, uint8_t *VAR_2) { PAFVideoDecContext *c = VAR_0->priv_data; uint32_t opcode_size, offset; uint8_t *dst, *dend, mask = 0, color = 0, a, b, p; const uint8_t *VAR_3, *send, *opcodes; int VAR_4, VAR_5, VAR_6 = 0; VAR_4 = bytestream2_g...
[ "static int FUNC_0(AVCodecContext *VAR_0, uint8_t VAR_1, uint8_t *VAR_2)\n{", "PAFVideoDecContext *c = VAR_0->priv_data;", "uint32_t opcode_size, offset;", "uint8_t *dst, *dend, mask = 0, color = 0, a, b, p;", "const uint8_t *VAR_3, *send, *opcodes;", "int VAR_4, VAR_5, VAR_6 = 0;", "VAR_4 = bytestream...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
22,915
static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + stream_index; AVIOContext *bc = s->pb; int64_t pts = AV_NOPTS_VALUE; int i; ...
true
FFmpeg
4cc3467e7abfea7e8d03b6af511f7719038a5a98
static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + stream_index; AVIOContext *bc = s->pb; int64_t pts = AV_NOPTS_VALUE; int i; ...
{ "code": [ " struct ogg_stream *os = ogg->streams + stream_index;", " int i;" ], "line_no": [ 9, 15 ] }
static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) { struct VAR_0 *VAR_0 = s->priv_data; struct ogg_stream *VAR_1 = VAR_0->streams + stream_index; AVIOContext *bc = s->pb; int64_t pts = AV_NOPTS_VALUE; int VAR_2; ...
[ "static int64_t FUNC_0(AVFormatContext *s, int stream_index,\nint64_t *pos_arg, int64_t pos_limit)\n{", "struct VAR_0 *VAR_0 = s->priv_data;", "struct ogg_stream *VAR_1 = VAR_0->streams + stream_index;", "AVIOContext *bc = s->pb;", "int64_t pts = AV_NOPTS_VALUE;", "int VAR_2;", "avio_seek(bc, *pos_arg, ...
[ 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
22,916
static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingList *sl, HEVCSPS *sps) { uint8_t scaling_list_pred_mode_flag; int32_t scaling_list_dc_coef[2][6]; int size_id, matrix_id, pos; int i; for (size_id = 0; size_id < 4; size_id++) for (matrix_id = 0; matrix_i...
true
FFmpeg
6726328f7940a76c43b4d97ac37ababf363d042f
static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingList *sl, HEVCSPS *sps) { uint8_t scaling_list_pred_mode_flag; int32_t scaling_list_dc_coef[2][6]; int size_id, matrix_id, pos; int i; for (size_id = 0; size_id < 4; size_id++) for (matrix_id = 0; matrix_i...
{ "code": [ " next_coef = (next_coef + scaling_list_delta_coef + 256) % 256;" ], "line_no": [ 97 ] }
static int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, ScalingList *VAR_2, HEVCSPS *VAR_3) { uint8_t scaling_list_pred_mode_flag; int32_t scaling_list_dc_coef[2][6]; int VAR_4, VAR_5, VAR_6; int VAR_7; for (VAR_4 = 0; VAR_4 < 4; VAR_4++) for (VAR_5 = 0; VAR_5 < 6; VAR_5 += (...
[ "static int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, ScalingList *VAR_2, HEVCSPS *VAR_3)\n{", "uint8_t scaling_list_pred_mode_flag;", "int32_t scaling_list_dc_coef[2][6];", "int VAR_4, VAR_5, VAR_6;", "int VAR_7;", "for (VAR_4 = 0; VAR_4 < 4; VAR_4++)", "for (VAR_5 = 0; VAR_5 < 6; VAR_5 += ((...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45, 47, 49 ], [ 51, 53 ], [ 55 ...
22,917
static int recode_subtitle(AVCodecContext *avctx, AVPacket *outpkt, const AVPacket *inpkt) { #if CONFIG_ICONV iconv_t cd = (iconv_t)-1; int ret = 0; char *inb, *outb; size_t inl, outl; AVPacket tmp; #endif if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_...
true
FFmpeg
0884d04dc329087e287cab345330303f8972f270
static int recode_subtitle(AVCodecContext *avctx, AVPacket *outpkt, const AVPacket *inpkt) { #if CONFIG_ICONV iconv_t cd = (iconv_t)-1; int ret = 0; char *inb, *outb; size_t inl, outl; AVPacket tmp; #endif if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_...
{ "code": [ " outpkt->data[outpkt->size - 1] = '\\0';" ], "line_no": [ 93 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVPacket *VAR_2) { #if CONFIG_ICONV iconv_t cd = (iconv_t)-1; int ret = 0; char *inb, *outb; size_t inl, outl; AVPacket tmp; #endif if (VAR_0->sub_charenc_mode != FF_SUB_CHARENC_MODE_PRE_DECODE...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nAVPacket *VAR_1, const AVPacket *VAR_2)\n{", "#if CONFIG_ICONV\niconv_t cd = (iconv_t)-1;", "int ret = 0;", "char *inb, *outb;", "size_t inl, outl;", "AVPacket tmp;", "#endif\nif (VAR_0->sub_charenc_mode != FF_SUB_CHARENC_MODE_PRE_DECODER)\nreturn 0;", "#if C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 23, 25 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
22,918
void *qemu_anon_ram_alloc(size_t size, uint64_t *alignment) { size_t align = QEMU_VMALLOC_ALIGN; size_t total = size + align - getpagesize(); void *ptr = mmap(0, total, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); size_t offset = QEMU_ALIGN_UP((uintptr_t)ptr, align) - (uintptr_t)ptr; void *...
true
qemu
9fac18f03a9040b67ec38e14d3e1ed34db9c7e06
void *qemu_anon_ram_alloc(size_t size, uint64_t *alignment) { size_t align = QEMU_VMALLOC_ALIGN; size_t total = size + align - getpagesize(); void *ptr = mmap(0, total, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); size_t offset = QEMU_ALIGN_UP((uintptr_t)ptr, align) - (uintptr_t)ptr; void *...
{ "code": [ " size_t total = size + align - getpagesize();", " if (total > size) {", " munmap(ptr + size, total - size);" ], "line_no": [ 7, 59, 61 ] }
void *FUNC_0(size_t VAR_0, uint64_t *VAR_1) { size_t align = QEMU_VMALLOC_ALIGN; size_t total = VAR_0 + align - getpagesize(); void *VAR_2 = mmap(0, total, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); size_t offset = QEMU_ALIGN_UP((uintptr_t)VAR_2, align) - (uintptr_t)VAR_2; void *VAR_3; ...
[ "void *FUNC_0(size_t VAR_0, uint64_t *VAR_1)\n{", "size_t align = QEMU_VMALLOC_ALIGN;", "size_t total = VAR_0 + align - getpagesize();", "void *VAR_2 = mmap(0, total, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);", "size_t offset = QEMU_ALIGN_UP((uintptr_t)VAR_2, align) - (uintptr_t)VAR_2;", "void *VAR_...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
22,919
void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev) { int i, r; for (i = 0; i < hdev->nvqs; ++i) { vhost_virtqueue_cleanup(hdev, vdev, hdev->vqs + i, i); } vhost_client_sync_dir...
true
qemu
04097f7c5957273c578f72b9bd603ba6b1d69e33
void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev) { int i, r; for (i = 0; i < hdev->nvqs; ++i) { vhost_virtqueue_cleanup(hdev, vdev, hdev->vqs + i, i); } vhost_client_sync_dir...
{ "code": [ " (target_phys_addr_t)~0x0ull);", " vhost_client_sync_dirty_bitmap(&hdev->client, 0,", " (target_phys_addr_t)~0x0ull);" ], "line_no": [ 23, 21, 23 ] }
void FUNC_0(struct vhost_dev *VAR_0, VirtIODevice *VAR_1) { int VAR_2, VAR_3; for (VAR_2 = 0; VAR_2 < VAR_0->nvqs; ++VAR_2) { vhost_virtqueue_cleanup(VAR_0, VAR_1, VAR_0->vqs + VAR_2, VAR_2); } ...
[ "void FUNC_0(struct vhost_dev *VAR_0, VirtIODevice *VAR_1)\n{", "int VAR_2, VAR_3;", "for (VAR_2 = 0; VAR_2 < VAR_0->nvqs; ++VAR_2) {", "vhost_virtqueue_cleanup(VAR_0,\nVAR_1,\nVAR_0->vqs + VAR_2,\nVAR_2);", "}", "vhost_client_sync_dirty_bitmap(&VAR_0->client, 0,\n(target_phys_addr_t)~0x0ull);", "VAR_3 ...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
22,920
static int ffm_read_data(AVFormatContext *s, uint8_t *buf, int size, int first) { FFMContext *ffm = s->priv_data; ByteIOContext *pb = s->pb; int len, fill_size, size1, frame_offset; size1 = size; while (size > 0) { redo: len = ffm->packet_end - ffm->pa...
false
FFmpeg
eea2f032ad45777c008837fc6469f9f0a06e8d56
static int ffm_read_data(AVFormatContext *s, uint8_t *buf, int size, int first) { FFMContext *ffm = s->priv_data; ByteIOContext *pb = s->pb; int len, fill_size, size1, frame_offset; size1 = size; while (size > 0) { redo: len = ffm->packet_end - ffm->pa...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { FFMContext *ffm = VAR_0->priv_data; ByteIOContext *pb = VAR_0->pb; int VAR_4, VAR_5, VAR_6, VAR_7; VAR_6 = VAR_2; while (VAR_2 > 0) { redo: VAR_4 = ffm->packet_end - ffm-...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nuint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "FFMContext *ffm = VAR_0->priv_data;", "ByteIOContext *pb = VAR_0->pb;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "VAR_6 = VAR_2;", "while (VAR_2 > 0) {", "redo:\nVAR_4 = ffm->packet_end - ffm->packet_ptr;", "if (VAR_4 < ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,921
static int mpegts_write_section1(MpegTSSection *s, int tid, int id, int version, int sec_num, int last_sec_num, uint8_t *buf, int len) { uint8_t section[1024], *q; unsigned int tot_len; /* reserved_future_use field must be set to 1 for ...
false
FFmpeg
8dca0877e3e1457e9ec79ffa1ead1135aabb791c
static int mpegts_write_section1(MpegTSSection *s, int tid, int id, int version, int sec_num, int last_sec_num, uint8_t *buf, int len) { uint8_t section[1024], *q; unsigned int tot_len; unsigned int flags = tid == SDT_TID ? 0xf000...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegTSSection *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6, int VAR_7) { uint8_t section[1024], *q; unsigned int VAR_8; unsigned int VAR_9 = VAR_1 == SDT_TID ? 0xf000 : 0xb000; ...
[ "static int FUNC_0(MpegTSSection *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nuint8_t *VAR_6, int VAR_7)\n{", "uint8_t section[1024], *q;", "unsigned int VAR_8;", "unsigned int VAR_9 = VAR_1 == SDT_TID ? 0xf000 : 0xb000;", "VAR_8 = 3 + 5 + VAR_7 + 4;", "if (VAR_8 > 1024)\nreturn -1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ] ]
22,922
static int compare_doubles(const double *a, const double *b, int len, double max_diff) { int i; for (i = 0; i < len; i++) { if (fabs(a[i] - b[i]) > max_diff) { av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n", i, a[i], b[i],...
false
FFmpeg
e53c9065ca08a9153ecc73a6a8940bcc6d667e58
static int compare_doubles(const double *a, const double *b, int len, double max_diff) { int i; for (i = 0; i < len; i++) { if (fabs(a[i] - b[i]) > max_diff) { av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n", i, a[i], b[i],...
{ "code": [], "line_no": [] }
static int FUNC_0(const double *VAR_0, const double *VAR_1, int VAR_2, double VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) { if (fabs(VAR_0[VAR_4] - VAR_1[VAR_4]) > VAR_3) { av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n", ...
[ "static int FUNC_0(const double *VAR_0, const double *VAR_1, int VAR_2,\ndouble VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {", "if (fabs(VAR_0[VAR_4] - VAR_1[VAR_4]) > VAR_3) {", "av_log(NULL, AV_LOG_ERROR, \"%d: %- .12f - %- .12f = % .12g\\n\",\nVAR_4, VAR_0[VAR_4], VAR_1[VAR_4], VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
22,923
static int fourxm_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int header_size; FourxmDemuxContext *fourxm = s->priv_data; unsigned char *header; int i; int current...
false
FFmpeg
59afda9f61c8d3b23699e72939858ce25b4ed2a8
static int fourxm_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int header_size; FourxmDemuxContext *fourxm = s->priv_data; unsigned char *header; int i; int current...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { ByteIOContext *pb = VAR_0->pb; unsigned int VAR_2; unsigned int VAR_3; int VAR_4; FourxmDemuxContext *fourxm = VAR_0->priv_data; unsigned char *VAR_5; int VAR_6; int VAR_7 = -1;...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "ByteIOContext *pb = VAR_0->pb;", "unsigned int VAR_2;", "unsigned int VAR_3;", "int VAR_4;", "FourxmDemuxContext *fourxm = VAR_0->priv_data;", "unsigned char *VAR_5;", "int VAR_6;", "int VAR_7 = -1;", "AVStream *st;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 57 ...
22,924
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, i...
false
FFmpeg
24dc7776ff4452764d0365b12d0728153f879cf8
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, i...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5) { MpegMuxContext *s = VAR_0->priv_data; StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data; uint8_t *buf_ptr; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5)\n{", "MpegMuxContext *s = VAR_0->priv_data;", "StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data;", "uint8_t *buf_ptr;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37, 39 ], [ 41, 45 ], [ 49 ], [ 53 ], [ 55 ...
22,925
static int _decode_exponents(int expstr, int ngrps, uint8_t absexp, uint8_t *gexps, uint8_t *dexps) { int exps; int i = 0; while (ngrps--) { exps = gexps[i++]; absexp += exp_1[exps]; assert(absexp <= 24); switch (expstr) { case AC3_EXPSTR_D45: ...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int _decode_exponents(int expstr, int ngrps, uint8_t absexp, uint8_t *gexps, uint8_t *dexps) { int exps; int i = 0; while (ngrps--) { exps = gexps[i++]; absexp += exp_1[exps]; assert(absexp <= 24); switch (expstr) { case AC3_EXPSTR_D45: ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, int VAR_1, uint8_t VAR_2, uint8_t *VAR_3, uint8_t *VAR_4) { int VAR_5; int VAR_6 = 0; while (VAR_1--) { VAR_5 = VAR_3[VAR_6++]; VAR_2 += exp_1[VAR_5]; assert(VAR_2 <= 24); switch (VAR_0) { case AC3_EXPSTR_D45: ...
[ "static int FUNC_0(int VAR_0, int VAR_1, uint8_t VAR_2, uint8_t *VAR_3, uint8_t *VAR_4)\n{", "int VAR_5;", "int VAR_6 = 0;", "while (VAR_1--) {", "VAR_5 = VAR_3[VAR_6++];", "VAR_2 += exp_1[VAR_5];", "assert(VAR_2 <= 24);", "switch (VAR_0) {", "case AC3_EXPSTR_D45:\n*(VAR_4++) = VAR_2;", "*(VAR_4++...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49...
22,926
static void draw_axis_yuv(AVFrame *out, AVFrame *axis, const ColorFloat *c, int off) { int fmt = out->format, x, y, yh, w = axis->width, h = axis->height; int offh = (fmt == AV_PIX_FMT_YUV420P) ? off / 2 : off; float a, rcp_255 = 1.0f / 255.0f; uint8_t *vy = out->data[0], *vu = out->data[1], *vv = ...
false
FFmpeg
6df2c94130b026930d1f7148699925dcaa08759c
static void draw_axis_yuv(AVFrame *out, AVFrame *axis, const ColorFloat *c, int off) { int fmt = out->format, x, y, yh, w = axis->width, h = axis->height; int offh = (fmt == AV_PIX_FMT_YUV420P) ? off / 2 : off; float a, rcp_255 = 1.0f / 255.0f; uint8_t *vy = out->data[0], *vu = out->data[1], *vv = ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFrame *VAR_0, AVFrame *VAR_1, const ColorFloat *VAR_2, int VAR_3) { int VAR_4 = VAR_0->format, VAR_5, VAR_6, VAR_7, VAR_8 = VAR_1->width, VAR_9 = VAR_1->height; int VAR_10 = (VAR_4 == AV_PIX_FMT_YUV420P) ? VAR_3 / 2 : VAR_3; float VAR_11, VAR_12 = 1.0f / 255.0f; uint8_t *vy = V...
[ "static void FUNC_0(AVFrame *VAR_0, AVFrame *VAR_1, const ColorFloat *VAR_2, int VAR_3)\n{", "int VAR_4 = VAR_0->format, VAR_5, VAR_6, VAR_7, VAR_8 = VAR_1->width, VAR_9 = VAR_1->height;", "int VAR_10 = (VAR_4 == AV_PIX_FMT_YUV420P) ? VAR_3 / 2 : VAR_3;", "float VAR_11, VAR_12 = 1.0f / 255.0f;", "uint8_t *v...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
22,927
static int shift_data(AVFormatContext *s) { int ret = 0, moov_size; MOVMuxContext *mov = s->priv_data; int64_t pos, pos_end = avio_tell(s->pb); uint8_t *buf, *read_buf[2]; int read_buf_id = 0; int read_size[2]; AVIOContext *read_pb; if (mov->flags & FF_MOV_FLAG_FRAGMENT) ...
false
FFmpeg
9f61abc8111c7c43f49ca012e957a108b9cc7610
static int shift_data(AVFormatContext *s) { int ret = 0, moov_size; MOVMuxContext *mov = s->priv_data; int64_t pos, pos_end = avio_tell(s->pb); uint8_t *buf, *read_buf[2]; int read_buf_id = 0; int read_size[2]; AVIOContext *read_pb; if (mov->flags & FF_MOV_FLAG_FRAGMENT) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1 = 0, VAR_2; MOVMuxContext *mov = VAR_0->priv_data; int64_t pos, pos_end = avio_tell(VAR_0->pb); uint8_t *buf, *read_buf[2]; int VAR_3 = 0; int VAR_4[2]; AVIOContext *read_pb; if (mov->flags & FF_MOV_FLAG_FRAGMENT) ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1 = 0, VAR_2;", "MOVMuxContext *mov = VAR_0->priv_data;", "int64_t pos, pos_end = avio_tell(VAR_0->pb);", "uint8_t *buf, *read_buf[2];", "int VAR_3 = 0;", "int VAR_4[2];", "AVIOContext *read_pb;", "if (mov->flags & FF_MOV_FLAG_FRAGMENT)\nVAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 53 ], [ 55 ], [ 57 ...
22,928
void ff_do_elbg(int *points, int dim, int numpoints, int *codebook, int numCB, int max_steps, int *closest_cb, AVLFG *rand_state) { int dist; elbg_data elbg_d; elbg_data *elbg = &elbg_d; int i, j, k, last_error, steps=0; int *dist_cb = av_malloc(numpoints*size...
false
FFmpeg
ae2d41ec875965ce4ab9fdd88a5e8ba57cada67a
void ff_do_elbg(int *points, int dim, int numpoints, int *codebook, int numCB, int max_steps, int *closest_cb, AVLFG *rand_state) { int dist; elbg_data elbg_d; elbg_data *elbg = &elbg_d; int i, j, k, last_error, steps=0; int *dist_cb = av_malloc(numpoints*size...
{ "code": [], "line_no": [] }
void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int *VAR_3, int VAR_4, int VAR_5, int *VAR_6, AVLFG *VAR_7) { int VAR_8; elbg_data elbg_d; elbg_data *elbg = &elbg_d; int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13=0; int *VAR_14 = av_malloc(VAR_2*sizeof(int)); in...
[ "void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int *VAR_3,\nint VAR_4, int VAR_5, int *VAR_6,\nAVLFG *VAR_7)\n{", "int VAR_8;", "elbg_data elbg_d;", "elbg_data *elbg = &elbg_d;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13=0;", "int *VAR_14 = av_malloc(VAR_2*sizeof(int));", "int *VAR_15 = av_malloc(VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
22,929
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; #ifdef PRINT_FRAME_TIME uint64_t time= rdtsc(); #endif #i...
false
FFmpeg
676e61c7bbc5b48a7b9f6ca2ca227e345e3d4580
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; #ifdef PRINT_FRAME_TIME uint64_t time= rdtsc(); #endif #i...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { MpegEncContext *s = VAR_0->priv_data; int VAR_5; AVFrame *pict = VAR_1; #ifdef PRINT_FRAME_TIME uint64_t time= rdtsc(); #endif #ifdef DEBUG ...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_5;", "AVFrame *pict = VAR_1;", "#ifdef PRINT_FRAME_TIME\nuint64_t time= rdtsc();", "#endif\n#ifdef DEBUG\nprintf(\"*****frame %d size=%d\\n\", VAR_0->frame_number...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
22,930
static void vnc_dpy_copy(DisplayChangeListener *dcl, DisplayState *ds, int src_x, int src_y, int dst_x, int dst_y, int w, int h) { VncDisplay *vd = ds->opaque; VncState *vs, *vn; uint8_t *src_row; uint8_t *dst_row; i...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
static void vnc_dpy_copy(DisplayChangeListener *dcl, DisplayState *ds, int src_x, int src_y, int dst_x, int dst_y, int w, int h) { VncDisplay *vd = ds->opaque; VncState *vs, *vn; uint8_t *src_row; uint8_t *dst_row; i...
{ "code": [ " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;" ], "line_no": [ 11, 11, 11, 11 ] }
static void FUNC_0(DisplayChangeListener *VAR_0, DisplayState *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { VncDisplay *vd = VAR_1->opaque; VncState *vs, *vn; uint8_t *src_row; uint8_t *dst_r...
[ "static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplayState *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "VncDisplay *vd = VAR_1->opaque;", "VncState *vs, *vn;", "uint8_t *src_row;", "uint8_t *dst_row;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;", ...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
22,932
static void FUNCC(pred8x8_vertical)(uint8_t *_src, int _stride){ int i; pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const pixel4 a= ((pixel4*)(src-stride))[0]; const pixel4 b= ((pixel4*)(src-stride))[1]; for(i=0; i<8; i++){ ((pixel4*)(src+i*stride))[0]= a; ...
true
FFmpeg
2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac
static void FUNCC(pred8x8_vertical)(uint8_t *_src, int _stride){ int i; pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const pixel4 a= ((pixel4*)(src-stride))[0]; const pixel4 b= ((pixel4*)(src-stride))[1]; for(i=0; i<8; i++){ ((pixel4*)(src+i*stride))[0]= a; ...
{ "code": [ " const pixel4 a= ((pixel4*)(src-stride))[0];", " const pixel4 a= ((pixel4*)(src-stride))[0];", " const pixel4 b= ((pixel4*)(src-stride))[1];", " ((pixel4*)(src+i*stride))[0]= a;", " ((pixel4*)(src+i*stride))[1]= b;" ], "line_no": [ 9, 9, 11, ...
static void FUNC_0(pred8x8_vertical)(uint8_t *_src, int _stride){ int VAR_0; pixel *src = (pixel*)_src; int VAR_1 = _stride/sizeof(pixel); const pixel4 VAR_2= ((pixel4*)(src-VAR_1))[0]; const pixel4 VAR_3= ((pixel4*)(src-VAR_1))[1]; for(VAR_0=0; VAR_0<8; VAR_0++){ ((pixel4*)(src...
[ "static void FUNC_0(pred8x8_vertical)(uint8_t *_src, int _stride){", "int VAR_0;", "pixel *src = (pixel*)_src;", "int VAR_1 = _stride/sizeof(pixel);", "const pixel4 VAR_2= ((pixel4*)(src-VAR_1))[0];", "const pixel4 VAR_3= ((pixel4*)(src-VAR_1))[1];", "for(VAR_0=0; VAR_0<8; VAR_0++){", "((pixel4*)(src+...
[ 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,933
static int videotoolbox_buffer_create(AVCodecContext *avctx, AVFrame *frame) { VTContext *vtctx = avctx->internal->hwaccel_priv_data; CVPixelBufferRef pixbuf = (CVPixelBufferRef)vtctx->frame; OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); enum AVPixelFormat sw_format = av_map_videot...
true
FFmpeg
02d248d5828dbbfecfb37597c626900f41448bea
static int videotoolbox_buffer_create(AVCodecContext *avctx, AVFrame *frame) { VTContext *vtctx = avctx->internal->hwaccel_priv_data; CVPixelBufferRef pixbuf = (CVPixelBufferRef)vtctx->frame; OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); enum AVPixelFormat sw_format = av_map_videot...
{ "code": [ " av_assert0(!frame->hw_frames_ctx);" ], "line_no": [ 91 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { VTContext *vtctx = VAR_0->internal->hwaccel_priv_data; CVPixelBufferRef pixbuf = (CVPixelBufferRef)vtctx->VAR_1; OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); enum AVPixelFormat VAR_2 = av_map_videotoolbox_format_to_pixfmt(...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "VTContext *vtctx = VAR_0->internal->hwaccel_priv_data;", "CVPixelBufferRef pixbuf = (CVPixelBufferRef)vtctx->VAR_1;", "OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf);", "enum AVPixelFormat VAR_2 = av_map_videotoolbox_format_to_pi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 33, 35 ], [ 39 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [...
22,934
static void inner_add_yblock_bw_16_obmc_32_sse2(const uint8_t *obmc, const long obmc_stride, uint8_t * * block, int b_w, long b_h, int src_x, int src_y, long src_stride, slice_buffer * sb, int add, uint8_t * dst8){ snow_inner_add_yblock_sse2_header snow_inner_add_yblock_sse2_start_16("xmm1", "x...
true
FFmpeg
3e0f7126b53b395d9e79df57b2e626eb99ad846b
static void inner_add_yblock_bw_16_obmc_32_sse2(const uint8_t *obmc, const long obmc_stride, uint8_t * * block, int b_w, long b_h, int src_x, int src_y, long src_stride, slice_buffer * sb, int add, uint8_t * dst8){ snow_inner_add_yblock_sse2_header snow_inner_add_yblock_sse2_start_16("xmm1", "x...
{ "code": [ " \"movdqa %%xmm1, %%xmm0 \\n\\t\"", " \"movdqa %%xmm5, %%xmm4 \\n\\t\"", " \"punpcklwd %%xmm7, %%xmm0 \\n\\t\"", " \"paddd (%%\"REG_D\"), %%xmm0 \\n\\t\"", " \"punpckhwd %%xmm7, %%xmm1 \\n\\...
static void FUNC_0(const uint8_t *VAR_0, const long VAR_1, uint8_t * * VAR_2, int VAR_3, long VAR_4, int VAR_5, int VAR_6, long VAR_7, slice_buffer * VAR_8, int VAR_9, uint8_t * VAR_10){ snow_inner_add_yblock_sse2_header snow_inner_add_yblock_sse2_start_16("xmm1", "xmm5", "3", "0") snow_inner_...
[ "static void FUNC_0(const uint8_t *VAR_0, const long VAR_1, uint8_t * * VAR_2, int VAR_3, long VAR_4,\nint VAR_5, int VAR_6, long VAR_7, slice_buffer * VAR_8, int VAR_9, uint8_t * VAR_10){", "snow_inner_add_yblock_sse2_header\nsnow_inner_add_yblock_sse2_start_16(\"xmm1\", \"xmm5\", \"3\", \"0\")\nsnow_inner_add_y...
[ 0, 1 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 57, 59, 61, 65, 69, 71 ] ]
22,935
restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu) { int err; #if 0 #ifdef CONFIG_SMP if (current->flags & PF_USEDFPU) regs->psr &= ~PSR_EF; #else if (current == last_task_used_math) { last_task_used_math = 0; regs->psr &= ~PS...
true
qemu
8954bae3ce1ae5b64218b8731da9a8d7f46db9a7
restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu) { int err; #if 0 #ifdef CONFIG_SMP if (current->flags & PF_USEDFPU) regs->psr &= ~PSR_EF; #else if (current == last_task_used_math) { last_task_used_math = 0; regs->psr &= ~PS...
{ "code": [ "#if 0", " err = __copy_from_user(&env->fpr[0], &fpu->si_float_regs[0],", "\t (sizeof(unsigned long) * 32));", "#endif" ], "line_no": [ 7, 47, 49, 25 ] }
FUNC_0(CPUSPARCState *VAR_0, qemu_siginfo_fpu_t *VAR_1) { int VAR_2; #if 0 #ifdef CONFIG_SMP if (current->flags & PF_USEDFPU) regs->psr &= ~PSR_EF; #else if (current == last_task_used_math) { last_task_used_math = 0; regs->psr &= ~PSR_EF;...
[ "FUNC_0(CPUSPARCState *VAR_0, qemu_siginfo_fpu_t *VAR_1)\n{", "int VAR_2;", "#if 0\n#ifdef CONFIG_SMP\nif (current->flags & PF_USEDFPU)\nregs->psr &= ~PSR_EF;", "#else\nif (current == last_task_used_math) {", "last_task_used_math = 0;", "regs->psr &= ~PSR_EF;", "}", "#endif\ncurrent->used_math = 1;", ...
[ 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39, 43, 47, 49 ], [ 51, 53 ], [ 55, 57 ], [...
22,936
static void gen_vfp_msr(TCGv tmp) { tcg_gen_mov_i32(cpu_F0s, tmp); dead_tmp(tmp); }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_vfp_msr(TCGv tmp) { tcg_gen_mov_i32(cpu_F0s, tmp); dead_tmp(tmp); }
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tm...
static void FUNC_0(TCGv VAR_0) { tcg_gen_mov_i32(cpu_F0s, VAR_0); dead_tmp(VAR_0); }
[ "static void FUNC_0(TCGv VAR_0)\n{", "tcg_gen_mov_i32(cpu_F0s, VAR_0);", "dead_tmp(VAR_0);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,938
static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) { ASFContext *asf = s->priv_data; uint32_t packet_length, padsize; int rsize = 8; int c, d, e, off; // if we do not know packet size, allow skipping up to 32 kB off= 32768; if (s->packet_size > 0) off= (avio...
false
FFmpeg
0d4404ed65e6ebfdf5e3c09f9e3a2a41dde18e4a
static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) { ASFContext *asf = s->priv_data; uint32_t packet_length, padsize; int rsize = 8; int c, d, e, off; off= 32768; if (s->packet_size > 0) off= (avio_tell(pb) - s->data_offset) % s->packet_size + 3; c=d...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1) { ASFContext *asf = VAR_0->priv_data; uint32_t packet_length, padsize; int VAR_2 = 8; int VAR_3, VAR_4, VAR_5, VAR_6; VAR_6= 32768; if (VAR_0->packet_size > 0) VAR_6= (avio_tell(VAR_1) - VAR_0->data_offset) % V...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1)\n{", "ASFContext *asf = VAR_0->priv_data;", "uint32_t packet_length, padsize;", "int VAR_2 = 8;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "VAR_6= 32768;", "if (VAR_0->packet_size > 0)\nVAR_6= (avio_tell(VAR_1) - VAR_0->data_offset) % VAR_0->packe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 55, 57 ], [ 59, 61 ], [ 63 ], [ 65 ...
22,939
void checkasm_check_blockdsp(void) { LOCAL_ALIGNED_16(uint16_t, buf0, [6 * 8 * 8]); LOCAL_ALIGNED_16(uint16_t, buf1, [6 * 8 * 8]); AVCodecContext avctx = { 0 }; BlockDSPContext h; ff_blockdsp_init(&h, &avctx); check_clear(clear_block, 8 * 8); check_clear(clear_blocks, 8 * 8 * ...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
void checkasm_check_blockdsp(void) { LOCAL_ALIGNED_16(uint16_t, buf0, [6 * 8 * 8]); LOCAL_ALIGNED_16(uint16_t, buf1, [6 * 8 * 8]); AVCodecContext avctx = { 0 }; BlockDSPContext h; ff_blockdsp_init(&h, &avctx); check_clear(clear_block, 8 * 8); check_clear(clear_blocks, 8 * 8 * ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { LOCAL_ALIGNED_16(uint16_t, buf0, [6 * 8 * 8]); LOCAL_ALIGNED_16(uint16_t, buf1, [6 * 8 * 8]); AVCodecContext avctx = { 0 }; BlockDSPContext h; ff_blockdsp_init(&h, &avctx); check_clear(clear_block, 8 * 8); check_clear(clear_blocks, 8 * 8 * 6); report...
[ "void FUNC_0(void)\n{", "LOCAL_ALIGNED_16(uint16_t, buf0, [6 * 8 * 8]);", "LOCAL_ALIGNED_16(uint16_t, buf1, [6 * 8 * 8]);", "AVCodecContext avctx = { 0 };", "BlockDSPContext h;", "ff_blockdsp_init(&h, &avctx);", "check_clear(clear_block, 8 * 8);", "check_clear(clear_blocks, 8 * 8 * 6);", "report(\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
22,940
void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq) { stellaris_enet_state *s; int iomemtype; qemu_check_nic_model(nd, "stellaris"); s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state)); iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn, ...
true
qemu
b946a1533209f61a93e34898aebb5b43154b99c3
void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq) { stellaris_enet_state *s; int iomemtype; qemu_check_nic_model(nd, "stellaris"); s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state)); iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn, ...
{ "code": [ " int iomemtype;", " int iomemtype;", " int iomemtype;", " int iomemtype;", " iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn,", " stellaris_enet_writefn, s);", " cpu_register_physical_memory(base, 0x00001000, ...
void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, qemu_irq VAR_2) { stellaris_enet_state *s; int VAR_3; qemu_check_nic_model(VAR_0, "stellaris"); s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state)); VAR_3 = cpu_register_io_memory(0, stellaris_enet_readfn, ...
[ "void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, qemu_irq VAR_2)\n{", "stellaris_enet_state *s;", "int VAR_3;", "qemu_check_nic_model(VAR_0, \"stellaris\");", "s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state));", "VAR_3 = cpu_register_io_memory(0, stellaris_enet_readfn,\nstellaris_enet_wr...
[ 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ] ]
22,941
static int mkv_write_chapters(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; ebml_master chapters, editionentry; AVRational scale = {1, 1E9}; int i, ret; if (!s->nb_chapters || mkv->wrote_chapters) return 0; ret = mkv_add_seekhead_...
true
FFmpeg
a4cd057bc7ddd2dd094d2ae7b0d6843ade95a626
static int mkv_write_chapters(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; ebml_master chapters, editionentry; AVRational scale = {1, 1E9}; int i, ret; if (!s->nb_chapters || mkv->wrote_chapters) return 0; ret = mkv_add_seekhead_...
{ "code": [ " int chapterstart = av_rescale_q(c->start, c->time_base, scale);", " int chapterend = av_rescale_q(c->end, c->time_base, scale);" ], "line_no": [ 43, 45 ] }
static int FUNC_0(AVFormatContext *VAR_0) { MatroskaMuxContext *mkv = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; ebml_master chapters, editionentry; AVRational scale = {1, 1E9}; int VAR_1, VAR_2; if (!VAR_0->nb_chapters || mkv->wrote_chapters) return 0; VAR_2 = mkv_a...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "ebml_master chapters, editionentry;", "AVRational scale = {1, 1E9};", "int VAR_1, VAR_2;", "if (!VAR_0->nb_chapters || mkv->wrote_chapters)\nreturn 0;", "VAR_2 = mkv_add_seek...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
22,942
static inline void vring_set_avail_event(VirtQueue *vq, uint16_t val) { VRingMemoryRegionCaches *caches; hwaddr pa; if (!vq->notification) { return; } caches = atomic_rcu_read(&vq->vring.caches); pa = offsetof(VRingUsed, ring[vq->vring.num]); virtio_stw_phys_cached(vq->vde...
true
qemu
e0e2d644096c79a71099b176d08f465f6803a8b1
static inline void vring_set_avail_event(VirtQueue *vq, uint16_t val) { VRingMemoryRegionCaches *caches; hwaddr pa; if (!vq->notification) { return; } caches = atomic_rcu_read(&vq->vring.caches); pa = offsetof(VRingUsed, ring[vq->vring.num]); virtio_stw_phys_cached(vq->vde...
{ "code": [ " caches = atomic_rcu_read(&vq->vring.caches);", " caches = atomic_rcu_read(&vq->vring.caches);", " caches = atomic_rcu_read(&vq->vring.caches);" ], "line_no": [ 17, 17, 17 ] }
static inline void FUNC_0(VirtQueue *VAR_0, uint16_t VAR_1) { VRingMemoryRegionCaches *caches; hwaddr pa; if (!VAR_0->notification) { return; } caches = atomic_rcu_read(&VAR_0->vring.caches); pa = offsetof(VRingUsed, ring[VAR_0->vring.num]); virtio_stw_phys_cached(VAR_0->v...
[ "static inline void FUNC_0(VirtQueue *VAR_0, uint16_t VAR_1)\n{", "VRingMemoryRegionCaches *caches;", "hwaddr pa;", "if (!VAR_0->notification) {", "return;", "}", "caches = atomic_rcu_read(&VAR_0->vring.caches);", "pa = offsetof(VRingUsed, ring[VAR_0->vring.num]);", "virtio_stw_phys_cached(VAR_0->vd...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
22,943
void ff_er_frame_end(ERContext *s) { int *linesize = s->cur_pic->f.linesize; int i, mb_x, mb_y, error, error_type, dc_error, mv_error, ac_error; int distance; int threshold_part[4] = { 100, 100, 100 }; int threshold = 50; int is_intra_likely; int size = s->b8_stride * 2 * s->mb_heigh...
false
FFmpeg
afb18c55783362546b5e512ce01b7fe7bf5744d9
void ff_er_frame_end(ERContext *s) { int *linesize = s->cur_pic->f.linesize; int i, mb_x, mb_y, error, error_type, dc_error, mv_error, ac_error; int distance; int threshold_part[4] = { 100, 100, 100 }; int threshold = 50; int is_intra_likely; int size = s->b8_stride * 2 * s->mb_heigh...
{ "code": [], "line_no": [] }
void FUNC_0(ERContext *VAR_0) { int *VAR_1 = VAR_0->cur_pic->f.VAR_1; int VAR_2, VAR_3, VAR_4, VAR_17, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10; int VAR_11[4] = { 100, 100, 100 }; int VAR_12 = 50; int VAR_13; int VAR_14 = VAR_0->b8_stride * 2 * VAR_0->mb_height; if (!VAR...
[ "void FUNC_0(ERContext *VAR_0)\n{", "int *VAR_1 = VAR_0->cur_pic->f.VAR_1;", "int VAR_2, VAR_3, VAR_4, VAR_17, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10;", "int VAR_11[4] = { 100, 100, 100 };", "int VAR_12 = 50;", "int VAR_13;", "int VAR_14 = VAR_0->b8_stride * 2 * VAR_0->mb_height;", "if (!VAR_0->a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 25, 27, 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55, 57,...
22,945
static void init_excp_601 (CPUPPCState *env) { #if !defined(CONFIG_USER_ONLY) env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100; env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200; env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300; env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400; ...
true
qemu
faadf50e2962dd54175647a80bd6fc4319c91973
static void init_excp_601 (CPUPPCState *env) { #if !defined(CONFIG_USER_ONLY) env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100; env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200; env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300; env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400; ...
{ "code": [ "#endif", " env->excp_prefix = 0xFFF00000;", " env->excp_prefix = 0xFFF00000;", "#if !defined(CONFIG_USER_ONLY)", " env->excp_prefix = 0xFFF00000;", "#endif", "#if !defined(CONFIG_USER_ONLY)", " env->excp_prefix = 0xFFF00000;", "#endif", "#if !defined(CO...
static void FUNC_0 (CPUPPCState *VAR_0) { #if !defined(CONFIG_USER_ONLY) VAR_0->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100; VAR_0->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200; VAR_0->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300; VAR_0->excp_vectors[POWERPC_EXCP_ISI] = 0x0000040...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "#if !defined(CONFIG_USER_ONLY)\nVAR_0->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;", "VAR_0->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;", "VAR_0->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;", "VAR_0->excp_vectors[POWERPC_EXCP_ISI] = 0x00...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ] ]
22,946
void ff_acelp_weighted_filter( int16_t *out, const int16_t* in, const int16_t *weight_pow, int filter_length) { int n; for(n=0; n<filter_length; n++) out[n] = (in[n] * weight_pow[n] + 0x4000) >> 15; /* (3.12) = (0.15) * (3.12) with rounding */ }
false
FFmpeg
cd523888f304d297bb7dec5d358d0ee92576cc44
void ff_acelp_weighted_filter( int16_t *out, const int16_t* in, const int16_t *weight_pow, int filter_length) { int n; for(n=0; n<filter_length; n++) out[n] = (in[n] * weight_pow[n] + 0x4000) >> 15; }
{ "code": [], "line_no": [] }
void FUNC_0( int16_t *VAR_0, const int16_t* VAR_1, const int16_t *VAR_2, int VAR_3) { int VAR_4; for(VAR_4=0; VAR_4<VAR_3; VAR_4++) VAR_0[VAR_4] = (VAR_1[VAR_4] * VAR_2[VAR_4] + 0x4000) >> 15; }
[ "void FUNC_0(\nint16_t *VAR_0,\nconst int16_t* VAR_1,\nconst int16_t *VAR_2,\nint VAR_3)\n{", "int VAR_4;", "for(VAR_4=0; VAR_4<VAR_3; VAR_4++)", "VAR_0[VAR_4] = (VAR_1[VAR_4] * VAR_2[VAR_4] + 0x4000) >> 15;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
22,947
void ff_vp3_idct_c(DCTELEM *block/* align 16*/){ idct(NULL, 0, block, 0); }
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
void ff_vp3_idct_c(DCTELEM *block){ idct(NULL, 0, block, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(DCTELEM *VAR_0){ idct(NULL, 0, VAR_0, 0); }
[ "void FUNC_0(DCTELEM *VAR_0){", "idct(NULL, 0, VAR_0, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ] ]
22,948
static int seq_fill_buffer(SeqDemuxContext *seq, ByteIOContext *pb, int buffer_num, unsigned int data_offs, int data_size) { TiertexSeqFrameBuffer *seq_buffer; if (buffer_num >= SEQ_NUM_FRAME_BUFFERS) return AVERROR_INVALIDDATA; seq_buffer = &seq->frame_buffers[buffer_num]; if (seq_buf...
false
FFmpeg
591944cd0c4f10ddf0eaee9298553633e12a26d0
static int seq_fill_buffer(SeqDemuxContext *seq, ByteIOContext *pb, int buffer_num, unsigned int data_offs, int data_size) { TiertexSeqFrameBuffer *seq_buffer; if (buffer_num >= SEQ_NUM_FRAME_BUFFERS) return AVERROR_INVALIDDATA; seq_buffer = &seq->frame_buffers[buffer_num]; if (seq_buf...
{ "code": [], "line_no": [] }
static int FUNC_0(SeqDemuxContext *VAR_0, ByteIOContext *VAR_1, int VAR_2, unsigned int VAR_3, int VAR_4) { TiertexSeqFrameBuffer *seq_buffer; if (VAR_2 >= SEQ_NUM_FRAME_BUFFERS) return AVERROR_INVALIDDATA; seq_buffer = &VAR_0->frame_buffers[VAR_2]; if (seq_buffer->fill_size + VAR_4 > ...
[ "static int FUNC_0(SeqDemuxContext *VAR_0, ByteIOContext *VAR_1, int VAR_2, unsigned int VAR_3, int VAR_4)\n{", "TiertexSeqFrameBuffer *seq_buffer;", "if (VAR_2 >= SEQ_NUM_FRAME_BUFFERS)\nreturn AVERROR_INVALIDDATA;", "seq_buffer = &VAR_0->frame_buffers[VAR_2];", "if (seq_buffer->fill_size + VAR_4 > seq_buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ] ]
22,950
static av_always_inline av_flatten void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0) { int i, d; for( i = 0; i < 4; i++ ) { if( tc0[i] < 0 ) { pix += 4*ystride; continue; } for( d = 0; d < 4; d++ ) { ...
false
FFmpeg
dd561441b1e849df7d8681c6f32af82d4088dafd
static av_always_inline av_flatten void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0) { int i, d; for( i = 0; i < 4; i++ ) { if( tc0[i] < 0 ) { pix += 4*ystride; continue; } for( d = 0; d < 4; d++ ) { ...
{ "code": [], "line_no": [] }
static av_always_inline VAR_0 void FUNC_0(uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int8_t *VAR_6) { int VAR_7, VAR_8; for( VAR_7 = 0; VAR_7 < 4; VAR_7++ ) { if( VAR_6[VAR_7] < 0 ) { VAR_1 += 4*VAR_3; continue; } for( VAR_8 = 0; VAR_8 < 4...
[ "static av_always_inline VAR_0 void FUNC_0(uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int8_t *VAR_6)\n{", "int VAR_7, VAR_8;", "for( VAR_7 = 0; VAR_7 < 4; VAR_7++ ) {", "if( VAR_6[VAR_7] < 0 ) {", "VAR_1 += 4*VAR_3;", "continue;", "}", "for( VAR_8 = 0; VAR_8 < 4; VAR_8++ ) {", "cons...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49,...
22,951
static int io_open_default(AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options) { return avio_open2(pb, url, flags, &s->interrupt_callback, options); }
true
FFmpeg
ec4c48397641dbaf4ae8df36c32aaa5a311a11bf
static int io_open_default(AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options) { return avio_open2(pb, url, flags, &s->interrupt_callback, options); }
{ "code": [ " return avio_open2(pb, url, flags, &s->interrupt_callback, options);" ], "line_no": [ 7 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2, int VAR_3, AVDictionary **VAR_4) { return avio_open2(VAR_1, VAR_2, VAR_3, &VAR_0->interrupt_callback, VAR_4); }
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext **VAR_1,\nconst char *VAR_2, int VAR_3, AVDictionary **VAR_4)\n{", "return avio_open2(VAR_1, VAR_2, VAR_3, &VAR_0->interrupt_callback, VAR_4);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
22,952
static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length) { GetBitContext gb; int i; init_get_bits(&gb, src, length * 8); for (i = 0; i < 3; i++) { if (read_len_table(s->len[i], &gb) < 0) return -1; if (ff_huffyuv_generate_bits_table(s->bits[i...
true
FFmpeg
d0393d79bc3d61c9f2ff832c0e273b7774ff0269
static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length) { GetBitContext gb; int i; init_get_bits(&gb, src, length * 8); for (i = 0; i < 3; i++) { if (read_len_table(s->len[i], &gb) < 0) return -1; if (ff_huffyuv_generate_bits_table(s->bits[i...
{ "code": [ " int i;", " init_get_bits(&gb, src, length * 8);", " if (read_len_table(s->len[i], &gb) < 0)", " return -1;", " if (ff_huffyuv_generate_bits_table(s->bits[i], s->len[i]) < 0)", " return -1;", " init_vlc(&s->vlc[i], VLC_BITS, 256...
static int FUNC_0(HYuvContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { GetBitContext gb; int VAR_3; init_get_bits(&gb, VAR_1, VAR_2 * 8); for (VAR_3 = 0; VAR_3 < 3; VAR_3++) { if (read_len_table(VAR_0->len[VAR_3], &gb) < 0) return -1; if (ff_huffyuv_generate_bit...
[ "static int FUNC_0(HYuvContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "GetBitContext gb;", "int VAR_3;", "init_get_bits(&gb, VAR_1, VAR_2 * 8);", "for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {", "if (read_len_table(VAR_0->len[VAR_3], &gb) < 0)\nreturn -1;", "if (ff_huffyuv_generate_bits_table(VAR_0->bits...
[ 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ] ]
22,953
int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) { char buf1[32], tuple_type[32]; int h, w, depth, maxval; pnm_get(s, buf1, sizeof(buf1)); s->type= buf1[1]-'0'; if(buf1[0] != 'P') return -1; if (s->type==1 || s->type==4) { avctx->pix_fmt = PIX_FM...
true
FFmpeg
190a0998c353879c8f79f47678752dbb8fa62bb2
int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) { char buf1[32], tuple_type[32]; int h, w, depth, maxval; pnm_get(s, buf1, sizeof(buf1)); s->type= buf1[1]-'0'; if(buf1[0] != 'P') return -1; if (s->type==1 || s->type==4) { avctx->pix_fmt = PIX_FM...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, PNMContext * const VAR_1) { char VAR_2[32], VAR_3[32]; int VAR_4, VAR_5, VAR_6, VAR_7; pnm_get(VAR_1, VAR_2, sizeof(VAR_2)); VAR_1->type= VAR_2[1]-'0'; if(VAR_2[0] != 'P') return -1; if (VAR_1->type==1 || VAR_1->type==4) { VAR_0->pix...
[ "int FUNC_0(AVCodecContext *VAR_0, PNMContext * const VAR_1)\n{", "char VAR_2[32], VAR_3[32];", "int VAR_4, VAR_5, VAR_6, VAR_7;", "pnm_get(VAR_1, VAR_2, sizeof(VAR_2));", "VAR_1->type= VAR_2[1]-'0';", "if(VAR_2[0] != 'P')\nreturn -1;", "if (VAR_1->type==1 || VAR_1->type==4) {", "VAR_0->pix_fmt = PIX_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
22,960
static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) { size_t mmu_idx = get_mmuidx(oi); size_t index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &env->tlb_table[mmu_idx][index]; target_ulon...
true
qemu
34d49937e480edfa173d71e8c17972ad866b56c6
static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) { size_t mmu_idx = get_mmuidx(oi); size_t index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &env->tlb_table[mmu_idx][index]; target_ulon...
{ "code": [ " TCGMemOpIdx oi, uintptr_t retaddr)", " if (unlikely(tlb_addr & TLB_NOTDIRTY)) {", " tlb_set_dirty(ENV_GET_CPU(env), addr);", " tlb_addr = tlb_addr & ~TLB_NOTDIRTY;", " if (unlikely(tlb_addr & ~TARGET_PAGE_MASK)) {", " if (unlik...
static void *FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1, TCGMemOpIdx VAR_2, uintptr_t VAR_3) { size_t mmu_idx = get_mmuidx(VAR_2); size_t index = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &VAR_0->tlb_table[mmu_idx][index]; target_ulong...
[ "static void *FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1,\nTCGMemOpIdx VAR_2, uintptr_t VAR_3)\n{", "size_t mmu_idx = get_mmuidx(VAR_2);", "size_t index = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);", "CPUTLBEntry *tlbe = &VAR_0->tlb_table[mmu_idx][index];", "target_ulong tlb_addr = tlbe->addr_wri...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 45 ], [ 55 ], [ 57 ], [ 63, 65 ], [ 67 ], [ 69 ], [...
22,961
static int decode_ref_pic_list_reordering(H264Context *h){ MpegEncContext * const s = &h->s; int list, index, pic_structure; print_short_term(h); print_long_term(h); if(h->slice_type==FF_I_TYPE || h->slice_type==FF_SI_TYPE) return 0; //FIXME move before func for(list=0; list<h->list_co...
false
FFmpeg
e3e6f18f1693a99c1e26e7e2ff109b2a4de9c51e
static int decode_ref_pic_list_reordering(H264Context *h){ MpegEncContext * const s = &h->s; int list, index, pic_structure; print_short_term(h); print_long_term(h); if(h->slice_type==FF_I_TYPE || h->slice_type==FF_SI_TYPE) return 0; for(list=0; list<h->list_count; list++){ m...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1, VAR_2, VAR_3; print_short_term(VAR_0); print_long_term(VAR_0); if(VAR_0->slice_type==FF_I_TYPE || VAR_0->slice_type==FF_SI_TYPE) return 0; for(VAR_1=0; VAR_1<VAR_0->list_count; VAR_1++){ m...
[ "static int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1, VAR_2, VAR_3;", "print_short_term(VAR_0);", "print_long_term(VAR_0);", "if(VAR_0->slice_type==FF_I_TYPE || VAR_0->slice_type==FF_SI_TYPE) return 0;", "for(VAR_1=0; VAR_1<VAR_0->list_count; VAR_1++){", "memcp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
22,962
static av_cold int X264_close(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; av_freep(&avctx->extradata); av_freep(&x4->sei); if (x4->enc) { x264_encoder_close(x4->enc); x4->enc = NULL; } av_frame_free(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int X264_close(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; av_freep(&avctx->extradata); av_freep(&x4->sei); if (x4->enc) { x264_encoder_close(x4->enc); x4->enc = NULL; } av_frame_free(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; av_freep(&avctx->extradata); av_freep(&x4->sei); if (x4->enc) { x264_encoder_close(x4->enc); x4->enc = NULL; } av_frame_free(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "X264Context *x4 = avctx->priv_data;", "av_freep(&avctx->extradata);", "av_freep(&x4->sei);", "if (x4->enc) {", "x264_encoder_close(x4->enc);", "x4->enc = NULL;", "}", "av_frame_free(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ] ]
22,963
static int v9fs_receive_status(V9fsProxy *proxy, struct iovec *reply, int *status) { int retval; ProxyHeader header; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PROXY_HDR_SZ); if (retval < 0) { return ret...
true
qemu
262169abe74b4c2d8b299b7499904cfc3c1902ea
static int v9fs_receive_status(V9fsProxy *proxy, struct iovec *reply, int *status) { int retval; ProxyHeader header; *status = 0; reply->iov_len = 0; retval = socket_read(proxy->sockfd, reply->iov_base, PROXY_HDR_SZ); if (retval < 0) { return ret...
{ "code": [ " proxy_unmarshal(reply, 0, \"dd\", &header.type, &header.size);", " proxy_unmarshal(reply, 0, \"dd\", &header.type, &header.size);", " if (header.size != sizeof(int)) {", " *status = -ENOBUFS;", " return 0;", " proxy_unmarshal(reply, PROXY_HDR_SZ, \"d\", ...
static int FUNC_0(V9fsProxy *VAR_0, struct iovec *VAR_1, int *VAR_2) { int VAR_3; ProxyHeader header; *VAR_2 = 0; VAR_1->iov_len = 0; VAR_3 = socket_read(VAR_0->sockfd, VAR_1->iov_base, PROXY_HDR_SZ); if (VAR_3 < 0) { return VAR_3; } VA...
[ "static int FUNC_0(V9fsProxy *VAR_0,\nstruct iovec *VAR_1, int *VAR_2)\n{", "int VAR_3;", "ProxyHeader header;", "*VAR_2 = 0;", "VAR_1->iov_len = 0;", "VAR_3 = socket_read(VAR_0->sockfd, VAR_1->iov_base, PROXY_HDR_SZ);", "if (VAR_3 < 0) {", "return VAR_3;", "}", "VAR_1->iov_len = PROXY_HDR_SZ;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ...
22,964
static target_long monitor_get_xer (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->xer; }
true
qemu
09b9418c6d085a0728372aa760ebd10128a020b1
static target_long monitor_get_xer (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->xer; }
{ "code": [ " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " retu...
static target_long FUNC_0 (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->xer; }
[ "static target_long FUNC_0 (const struct MonitorDef *md, int val)\n{", "CPUState *env = mon_get_cpu();", "if (!env)\nreturn 0;", "return env->xer;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
22,965
static ssize_t qemu_fill_buffer(QEMUFile *f) { int len; int pending; assert(!qemu_file_is_writable(f)); pending = f->buf_size - f->buf_index; if (pending > 0) { memmove(f->buf, f->buf + f->buf_index, pending); } f->buf_index = 0; f->buf_size = pending; len = ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static ssize_t qemu_fill_buffer(QEMUFile *f) { int len; int pending; assert(!qemu_file_is_writable(f)); pending = f->buf_size - f->buf_index; if (pending > 0) { memmove(f->buf, f->buf + f->buf_index, pending); } f->buf_index = 0; f->buf_size = pending; len = ...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QEMUFile *f) { int VAR_0; int VAR_1; assert(!qemu_file_is_writable(f)); VAR_1 = f->buf_size - f->buf_index; if (VAR_1 > 0) { memmove(f->buf, f->buf + f->buf_index, VAR_1); } f->buf_index = 0; f->buf_size = VAR_1; VAR_0 = f->ops->get_buff...
[ "static ssize_t FUNC_0(QEMUFile *f)\n{", "int VAR_0;", "int VAR_1;", "assert(!qemu_file_is_writable(f));", "VAR_1 = f->buf_size - f->buf_index;", "if (VAR_1 > 0) {", "memmove(f->buf, f->buf + f->buf_index, VAR_1);", "}", "f->buf_index = 0;", "f->buf_size = VAR_1;", "VAR_0 = f->ops->get_buffer(f-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
22,967
static void unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) { int i, j, k; int coding_mode; int motion_x[6]; int motion_y[6]; int last_motion_x = 0; int last_motion_y = 0; int prior_last_motion_x = 0; int prior_last_motion_y = 0; int current_macroblock; int curr...
true
FFmpeg
44ae98ddef565e03080012bb22467bc7ed1ca1d2
static void unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) { int i, j, k; int coding_mode; int motion_x[6]; int motion_y[6]; int last_motion_x = 0; int last_motion_y = 0; int prior_last_motion_x = 0; int prior_last_motion_y = 0; int current_macroblock; int curr...
{ "code": [ " s->all_fragments[current_fragment].motion_x = motion_y[k];", " debug_vectors(\" vector %d: fragment %d = (%d, %d)\\n\",", " k, current_fragment, motion_x[k], motion_y[k]);" ], "line_no": [ 285, 287, 289 ] }
static void FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1) { int VAR_2, VAR_3, VAR_4; int VAR_5; int VAR_6[6]; int VAR_7[6]; int VAR_8 = 0; int VAR_9 = 0; int VAR_10 = 0; int VAR_11 = 0; int VAR_12; int VAR_13; debug_vp3(" vp3: unpacking motion vectors\n...
[ "static void FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "int VAR_5;", "int VAR_6[6];", "int VAR_7[6];", "int VAR_8 = 0;", "int VAR_9 = 0;", "int VAR_10 = 0;", "int VAR_11 = 0;", "int VAR_12;", "int VAR_13;", "debug_vp3(\" vp3: unpacking motion vecto...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 51 ], [ 53, 55 ], [...
22,968
static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch) { int stream_format_code; int imc_hdr, i, j, ret; int flag; int bits, summer; int counter, bitscount; IMCChannel *chctx = q->chctx + ch; /* Check the frame header */ imc_hdr = get_bits(&q->gb, 9); if (imc_hdr &...
true
FFmpeg
2f74f8d7dce2baff3a4401130a8e479c2899fd16
static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch) { int stream_format_code; int imc_hdr, i, j, ret; int flag; int bits, summer; int counter, bitscount; IMCChannel *chctx = q->chctx + ch; imc_hdr = get_bits(&q->gb, 9); if (imc_hdr & 0x18) { av_log(avct...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, IMCContext *VAR_1, int VAR_2) { int VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; int VAR_9, VAR_10; int VAR_11, VAR_12; IMCChannel *chctx = VAR_1->chctx + VAR_2; VAR_4 = get_bits(&VAR_1->gb, 9); if (VAR_4 & 0x18) { av_log(VAR_0, ...
[ "static int FUNC_0(AVCodecContext *VAR_0, IMCContext *VAR_1, int VAR_2)\n{", "int VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "int VAR_9, VAR_10;", "int VAR_11, VAR_12;", "IMCChannel *chctx = VAR_1->chctx + VAR_2;", "VAR_4 = get_bits(&VAR_1->gb, 9);", "if (VAR_4 & 0x18) {", "av_log(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 19, 20 ], [ 21 ], [ 22 ], [ 23 ]...
22,971
static int get_audio_frame_size(AVCodecContext *enc, int size) { int frame_size; if(enc->codec_id == CODEC_ID_VORBIS) return -1; if (enc->frame_size <= 1) { int bits_per_sample = av_get_bits_per_sample(enc->codec_id); if (bits_per_sample) { if (enc->channels...
true
FFmpeg
db5dc02bd7d31243d2c4f84294907d657ab3d070
static int get_audio_frame_size(AVCodecContext *enc, int size) { int frame_size; if(enc->codec_id == CODEC_ID_VORBIS) return -1; if (enc->frame_size <= 1) { int bits_per_sample = av_get_bits_per_sample(enc->codec_id); if (bits_per_sample) { if (enc->channels...
{ "code": [ " frame_size = (size * 8 * enc->sample_rate) / enc->bit_rate;" ], "line_no": [ 37 ] }
static int FUNC_0(AVCodecContext *VAR_0, int VAR_1) { int VAR_2; if(VAR_0->codec_id == CODEC_ID_VORBIS) return -1; if (VAR_0->VAR_2 <= 1) { int VAR_3 = av_get_bits_per_sample(VAR_0->codec_id); if (VAR_3) { if (VAR_0->channels == 0) return -1...
[ "static int FUNC_0(AVCodecContext *VAR_0, int VAR_1)\n{", "int VAR_2;", "if(VAR_0->codec_id == CODEC_ID_VORBIS)\nreturn -1;", "if (VAR_0->VAR_2 <= 1) {", "int VAR_3 = av_get_bits_per_sample(VAR_0->codec_id);", "if (VAR_3) {", "if (VAR_0->channels == 0)\nreturn -1;", "VAR_2 = (VAR_1 << 3) / (VAR_3 * VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
22,972
static void apply_dependent_coupling_fixed(AACContext *ac, SingleChannelElement *target, ChannelElement *cce, int index) { IndividualChannelStream *ics = &cce->ch[0].ics; const uint16_t *offsets = ics->swb_offset; int *dest = ta...
true
FFmpeg
6d499ecef9c2467772b6066176ffda0b7ab27cc2
static void apply_dependent_coupling_fixed(AACContext *ac, SingleChannelElement *target, ChannelElement *cce, int index) { IndividualChannelStream *ics = &cce->ch[0].ics; const uint16_t *offsets = ics->swb_offset; int *dest = ta...
{ "code": [ " dest[group * 128 + k] += tmp << shift;" ], "line_no": [ 97 ] }
static void FUNC_0(AACContext *VAR_0, SingleChannelElement *VAR_1, ChannelElement *VAR_2, int VAR_3) { IndividualChannelStream *ics = &VAR_2->ch[0].ics; const uint16_t *VAR_4 = ics->swb_offset; int *VAR_5 = VAR_1->coeffs; c...
[ "static void FUNC_0(AACContext *VAR_0,\nSingleChannelElement *VAR_1,\nChannelElement *VAR_2, int VAR_3)\n{", "IndividualChannelStream *ics = &VAR_2->ch[0].ics;", "const uint16_t *VAR_4 = ics->swb_offset;", "int *VAR_5 = VAR_1->coeffs;", "const int *VAR_6 = VAR_2->ch[0].coeffs;", "int VAR_7, VAR_8, VAR_9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [...
22,973
build_dsdt(GArray *table_data, GArray *linker, AcpiPmInfo *pm, AcpiMiscInfo *misc, PcPciInfo *pci, MachineState *machine) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free); ...
true
qemu
2b1c2e8e5f1990f0a201a8cbf9d366fca60f4aa8
build_dsdt(GArray *table_data, GArray *linker, AcpiPmInfo *pm, AcpiMiscInfo *misc, PcPciInfo *pci, MachineState *machine) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free); ...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3, PcPciInfo *VAR_4, MachineState *VAR_5) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free); GPtrA...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1,\nAcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3,\nPcPciInfo *VAR_4, MachineState *VAR_5)\n{", "CrsRangeEntry *entry;", "Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;", "GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free);", "GPtrArray *io_r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ],...
22,974
static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) { AVDictionary **meta_in = NULL; AVDictionary **meta_out; int i, ret = 0; char type_in, type_out; const char *istream_spec = NULL, *ostream_spec = NULL; int idx_in = 0, idx_o...
true
FFmpeg
c29c1a1b6bade2b9118c7fa01239c622c2238656
static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) { AVDictionary **meta_in = NULL; AVDictionary **meta_out; int i, ret = 0; char type_in, type_out; const char *istream_spec = NULL, *ostream_spec = NULL; int idx_in = 0, idx_o...
{ "code": [], "line_no": [] }
static int FUNC_0(char *VAR_0, char *VAR_1, AVFormatContext *VAR_2, AVFormatContext *VAR_3, OptionsContext *VAR_4) { AVDictionary **meta_in = NULL; AVDictionary **meta_out; int VAR_5, VAR_6 = 0; char VAR_7, VAR_8; const char *VAR_9 = NULL, *VAR_10 = NULL; int VAR_11 = 0, VAR_12 = 0; ...
[ "static int FUNC_0(char *VAR_0, char *VAR_1, AVFormatContext *VAR_2, AVFormatContext *VAR_3, OptionsContext *VAR_4)\n{", "AVDictionary **meta_in = NULL;", "AVDictionary **meta_out;", "int VAR_5, VAR_6 = 0;", "char VAR_7, VAR_8;", "const char *VAR_9 = NULL, *VAR_10 = NULL;", "int VAR_11 = 0, VAR_12 = 0;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53, 55 ...
22,975
static uint32_t rtl8139_io_readw(void *opaque, uint8_t addr) { RTL8139State *s = opaque; uint32_t ret; switch (addr) { case TxAddr0 ... TxAddr0+4*4-1: ret = rtl8139_TxStatus_read(s, addr, 2); break; case IntrMask: ret = rtl8139_IntrMask_rea...
true
qemu
3e48dd4a2d48aabafe22ce3611d65544d0234a69
static uint32_t rtl8139_io_readw(void *opaque, uint8_t addr) { RTL8139State *s = opaque; uint32_t ret; switch (addr) { case TxAddr0 ... TxAddr0+4*4-1: ret = rtl8139_TxStatus_read(s, addr, 2); break; case IntrMask: ret = rtl8139_IntrMask_rea...
{ "code": [ " ret = rtl8139_TxStatus_read(s, addr, 2);" ], "line_no": [ 17 ] }
static uint32_t FUNC_0(void *opaque, uint8_t addr) { RTL8139State *s = opaque; uint32_t ret; switch (addr) { case TxAddr0 ... TxAddr0+4*4-1: ret = rtl8139_TxStatus_read(s, addr, 2); break; case IntrMask: ret = rtl8139_IntrMask_read(s); ...
[ "static uint32_t FUNC_0(void *opaque, uint8_t addr)\n{", "RTL8139State *s = opaque;", "uint32_t ret;", "switch (addr)\n{", "case TxAddr0 ... TxAddr0+4*4-1:\nret = rtl8139_TxStatus_read(s, addr, 2);", "break;", "case IntrMask:\nret = rtl8139_IntrMask_read(s);", "break;", "case IntrStatus:\nret = rtl8...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 53, 55 ], [ 57 ], ...
22,977
static av_always_inline void paint_raw(uint8_t *dst, int w, int h, const uint8_t *src, int bpp, int be, int stride) { int i, j, p; for (j = 0; j < h; j++) { for (i = 0; i < w; i++) { p = vmnc_get_pixel(src, ...
true
FFmpeg
61cd19b8bc32185c8caf64d89d1b0909877a0707
static av_always_inline void paint_raw(uint8_t *dst, int w, int h, const uint8_t *src, int bpp, int be, int stride) { int i, j, p; for (j = 0; j < h; j++) { for (i = 0; i < w; i++) { p = vmnc_get_pixel(src, ...
{ "code": [ " src += bpp;", " src += bpp;", " const uint8_t *src, int bpp,", " p = vmnc_get_pixel(src, bpp, be);", " src += bpp;" ], "line_no": [ 17, 17, 3, 15, 17 ] }
static av_always_inline void FUNC_0(uint8_t *dst, int w, int h, const uint8_t *src, int bpp, int be, int stride) { int VAR_0, VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < h; VAR_1++) { for (VAR_0 = 0; VAR_0 < w; VAR_0++) { ...
[ "static av_always_inline void FUNC_0(uint8_t *dst, int w, int h,\nconst uint8_t *src, int bpp,\nint be, int stride)\n{", "int VAR_0, VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < h; VAR_1++) {", "for (VAR_0 = 0; VAR_0 < w; VAR_0++) {", "VAR_2 = vmnc_get_pixel(src, bpp, be);", "src += bpp;", "switch (bpp) {",...
[ 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...