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,613
static void pci_config(void) { QVirtioPCIDevice *dev; QOSState *qs; int n_size = TEST_IMAGE_SIZE / 2; uint64_t capacity; qs = pci_test_start(); dev = virtio_blk_pci_init(qs->pcibus, PCI_SLOT); capacity = qvirtio_config_readq(&dev->vdev, 0); g_assert_cmpint(capacity, ==, TE...
true
qemu
80e1eea37a25a7696137e680285e36d0bfdc9f34
static void pci_config(void) { QVirtioPCIDevice *dev; QOSState *qs; int n_size = TEST_IMAGE_SIZE / 2; uint64_t capacity; qs = pci_test_start(); dev = virtio_blk_pci_init(qs->pcibus, PCI_SLOT); capacity = qvirtio_config_readq(&dev->vdev, 0); g_assert_cmpint(capacity, ==, TE...
{ "code": [ " g_free(dev);", " g_free(dev);", " g_free(dev);", " g_free(dev);", " g_free(dev);", " g_free(dev);" ], "line_no": [ 51, 51, 51, 51, 51, 51 ] }
static void FUNC_0(void) { QVirtioPCIDevice *dev; QOSState *qs; int VAR_0 = TEST_IMAGE_SIZE / 2; uint64_t capacity; qs = pci_test_start(); dev = virtio_blk_pci_init(qs->pcibus, PCI_SLOT); capacity = qvirtio_config_readq(&dev->vdev, 0); g_assert_cmpint(capacity, ==, TEST_IM...
[ "static void FUNC_0(void)\n{", "QVirtioPCIDevice *dev;", "QOSState *qs;", "int VAR_0 = TEST_IMAGE_SIZE / 2;", "uint64_t capacity;", "qs = pci_test_start();", "dev = virtio_blk_pci_init(qs->pcibus, PCI_SLOT);", "capacity = qvirtio_config_readq(&dev->vdev, 0);", "g_assert_cmpint(capacity, ==, TEST_IMA...
[ 0, 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 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
22,614
static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir) { AlphaExtractContext *extract = inlink->dst->priv; AVFilterBufferRef *cur_buf = inlink->cur_buf; AVFilterBufferRef *out_buf = inlink->dst->outputs[0]->out_buf; if (extract->is_packed_rgb) { int x, y; uint...
true
FFmpeg
1f467220cfd1664782b1fe210bbc9342ad460fd2
static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir) { AlphaExtractContext *extract = inlink->dst->priv; AVFilterBufferRef *cur_buf = inlink->cur_buf; AVFilterBufferRef *out_buf = inlink->dst->outputs[0]->out_buf; if (extract->is_packed_rgb) { int x, y; uint...
{ "code": [ " } else if (cur_buf->linesize[A] == out_buf->linesize[Y]) {", " const int linesize = cur_buf->linesize[A];", " memcpy(out_buf->data[Y] + y0 * linesize,", " cur_buf->data[A] + y0 * linesize,", " linesize * h);" ], "line_no": [ 37, ...
static int FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2, int VAR_3) { AlphaExtractContext *extract = VAR_0->dst->priv; AVFilterBufferRef *cur_buf = VAR_0->cur_buf; AVFilterBufferRef *out_buf = VAR_0->dst->outputs[0]->out_buf; if (extract->is_packed_rgb) { int VAR_4, VAR_7; u...
[ "static int FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "AlphaExtractContext *extract = VAR_0->dst->priv;", "AVFilterBufferRef *cur_buf = VAR_0->cur_buf;", "AVFilterBufferRef *out_buf = VAR_0->dst->outputs[0]->out_buf;", "if (extract->is_packed_rgb) {", "int VAR_4, VAR_7;", "uint8_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 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, 45 ...
22,616
static int sad16_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) { int i; int s; const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0); vector unsigned char perm1, perm2, *pix1v, *pix2v; vector unsigned char t1, t2, t3,t4, t5; vector unsigned in...
true
FFmpeg
bc0a603c7888c1faf4db580829e103b21442b6e4
static int sad16_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) { int i; int s; const vector unsigned int zero = (const vector unsigned int)vec_splat_u32(0); vector unsigned char perm1, perm2, *pix1v, *pix2v; vector unsigned char t1, t2, t3,t4, t5; vector unsigned in...
{ "code": [ " vector unsigned char perm1, perm2, *pix1v, *pix2v;", " pix1v = (vector unsigned char *) pix1;", " pix2v = (vector unsigned char *) pix2;", " t1 = vec_perm(pix1v[0], pix1v[1], perm1);", " t2 = vec_perm(pix2v[0], pix2v[1], perm2);" ], "line_no": [ ...
static int FUNC_0(void *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4) { int VAR_5; int VAR_6; const vector unsigned int VAR_7 = (const vector unsigned int)vec_splat_u32(0); vector unsigned char perm1, perm2, *pix1v, *pix2v; vector unsigned char t1, t2, t3,t4, t5; vector uns...
[ "static int FUNC_0(void *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "int VAR_6;", "const vector unsigned int VAR_7 = (const vector unsigned int)vec_splat_u32(0);", "vector unsigned char perm1, perm2, *pix1v, *pix2v;", "vector unsigned char t1, t2, t3,t4, t5;", "vecto...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ...
22,617
void rgb8tobgr8(const uint8_t *src, uint8_t *dst, unsigned int src_size) { unsigned i; unsigned num_pixels = src_size; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint8_t rgb; rgb = src[i]; r = (rgb&0x07); g = (rgb&0x38)>>3; b = (rgb&0xC0)>>6; dst[i] = ((b<<...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
void rgb8tobgr8(const uint8_t *src, uint8_t *dst, unsigned int src_size) { unsigned i; unsigned num_pixels = src_size; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint8_t rgb; rgb = src[i]; r = (rgb&0x07); g = (rgb&0x38)>>3; b = (rgb&0xC0)>>6; dst[i] = ((b<<...
{ "code": [ "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "void rg...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2) { unsigned VAR_3; unsigned VAR_4 = VAR_2; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { unsigned VAR_5,VAR_6,VAR_7; register uint8_t VAR_8; VAR_8 = VAR_0[VAR_3]; VAR_7 = (VAR_8&0x07); VAR_6 = (VAR_8&0x38)>>3; VAR_5...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{", "unsigned VAR_3;", "unsigned VAR_4 = VAR_2;", "for(VAR_3=0; VAR_3<VAR_4; VAR_3++)", "{", "unsigned VAR_5,VAR_6,VAR_7;", "register uint8_t VAR_8;", "VAR_8 = VAR_0[VAR_3];", "VAR_7 = (VAR_8&0x07);", "VAR_6 = (VAR_8&0x38)>>3;...
[ 1, 1, 1, 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 ] ]
22,618
static int net_vde_init(VLANState *vlan, const char *model, const char *name, const char *sock, int port, const char *group, int mode) { VDEState *s; char *init_group = strlen(group) ? (char *)group : NULL; char *init_sock = strlen(sock) ? (char *)sock :...
true
qemu
b946a1533209f61a93e34898aebb5b43154b99c3
static int net_vde_init(VLANState *vlan, const char *model, const char *name, const char *sock, int port, const char *group, int mode) { VDEState *s; char *init_group = strlen(group) ? (char *)group : NULL; char *init_sock = strlen(sock) ? (char *)sock :...
{ "code": [ " s->vc = qemu_new_vlan_client(vlan, model, name, vde_from_qemu, NULL, s);" ], "line_no": [ 41 ] }
static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, const char *VAR_5, int VAR_6) { VDEState *s; char *VAR_7 = strlen(VAR_5) ? (char *)VAR_5 : NULL; char *VAR_8 = strlen(VAR_3) ? (char *)VAR_3 : NULL; ...
[ "static int FUNC_0(VLANState *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, const char *VAR_5, int VAR_6)\n{", "VDEState *s;", "char *VAR_7 = strlen(VAR_5) ? (char *)VAR_5 : NULL;", "char *VAR_8 = strlen(VAR_3) ? (char *)VAR_3 : NULL;", "struct vde_open_args VAR_9 = {", ".VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
22,620
static int vorbis_parse_setup_hdr_residues(vorbis_context *vc){ GetBitContext *gb=&vc->gb; uint_fast8_t i, j, k; vc->residue_count=get_bits(gb, 6)+1; vc->residues=av_mallocz(vc->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", vc->residue_count); for(i=0;i<vc->resi...
true
FFmpeg
36b7e983a664d20dc3809704b47cf8d59895b4de
static int vorbis_parse_setup_hdr_residues(vorbis_context *vc){ GetBitContext *gb=&vc->gb; uint_fast8_t i, j, k; vc->residue_count=get_bits(gb, 6)+1; vc->residues=av_mallocz(vc->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", vc->residue_count); for(i=0;i<vc->resi...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_context *VAR_0){ GetBitContext *gb=&VAR_0->gb; uint_fast8_t i, j, k; VAR_0->residue_count=get_bits(gb, 6)+1; VAR_0->residues=av_mallocz(VAR_0->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", VAR_0->residue_count); for(i=0;i<VAR_0->residue_...
[ "static int FUNC_0(vorbis_context *VAR_0){", "GetBitContext *gb=&VAR_0->gb;", "uint_fast8_t i, j, k;", "VAR_0->residue_count=get_bits(gb, 6)+1;", "VAR_0->residues=av_mallocz(VAR_0->residue_count * sizeof(vorbis_residue));", "AV_DEBUG(\" There are %d residues. \\n\", VAR_0->residue_count);", "for(i=0;i<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 ]
[ [ 1 ], [ 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ ...
22,621
static int flashsv_decode_block(AVCodecContext *avctx, AVPacket *avpkt, GetBitContext *gb, int block_size, int width, int height, int x_pos, int y_pos, int blk_idx) { struct FlashSVContext *s = avctx->priv_data; ...
true
FFmpeg
a33c7dd21362a694692d0dc30fdbffae5a5d837e
static int flashsv_decode_block(AVCodecContext *avctx, AVPacket *avpkt, GetBitContext *gb, int block_size, int width, int height, int x_pos, int y_pos, int blk_idx) { struct FlashSVContext *s = avctx->priv_data; ...
{ "code": [ " decode_hybrid(s->tmpblock, s->frame->data[0]," ], "line_no": [ 109 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, GetBitContext *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8) { struct FlashSVContext *VAR_9 = VAR_0->priv_data; uint8_t *line...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nGetBitContext *VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7,\nint VAR_8)\n{", "struct FlashSVContext *VAR_9 = VAR_0->priv_data;", "uint8_t *line = VAR_9->tmpblock;", "int VAR_10;", "int VAR_11 = inflateReset(&VAR_9->zstream);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
22,622
void breakpoint_handler(CPUX86State *env) { CPUBreakpoint *bp; if (env->watchpoint_hit) { if (env->watchpoint_hit->flags & BP_CPU) { env->watchpoint_hit = NULL; if (check_hw_breakpoints(env, 0)) raise_exception(env, EXCP01_DB); else ...
true
qemu
e175bce587936bf479889881488821ea8d61c89c
void breakpoint_handler(CPUX86State *env) { CPUBreakpoint *bp; if (env->watchpoint_hit) { if (env->watchpoint_hit->flags & BP_CPU) { env->watchpoint_hit = NULL; if (check_hw_breakpoints(env, 0)) raise_exception(env, EXCP01_DB); else ...
{ "code": [ " if (check_hw_breakpoints(env, 0))", " check_hw_breakpoints(env, 1);" ], "line_no": [ 15, 33 ] }
void FUNC_0(CPUX86State *VAR_0) { CPUBreakpoint *bp; if (VAR_0->watchpoint_hit) { if (VAR_0->watchpoint_hit->flags & BP_CPU) { VAR_0->watchpoint_hit = NULL; if (check_hw_breakpoints(VAR_0, 0)) raise_exception(VAR_0, EXCP01_DB); else ...
[ "void FUNC_0(CPUX86State *VAR_0)\n{", "CPUBreakpoint *bp;", "if (VAR_0->watchpoint_hit) {", "if (VAR_0->watchpoint_hit->flags & BP_CPU) {", "VAR_0->watchpoint_hit = NULL;", "if (check_hw_breakpoints(VAR_0, 0))\nraise_exception(VAR_0, EXCP01_DB);", "else\ncpu_resume_from_signal(VAR_0, NULL);", "}", "...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
22,623
static uint32_t m5206_mbar_readl(void *opaque, target_phys_addr_t offset) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int width; offset &= 0x3ff; if (offset > 0x200) { hw_error("Bad MBAR read offset 0x%x", (int)offset); } width = m5206_mbar_width[offset >> 2]; if (wi...
true
qemu
a32354e206895400d17c3de9a8df1de96d3df289
static uint32_t m5206_mbar_readl(void *opaque, target_phys_addr_t offset) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int width; offset &= 0x3ff; if (offset > 0x200) { hw_error("Bad MBAR read offset 0x%x", (int)offset); } width = m5206_mbar_width[offset >> 2]; if (wi...
{ "code": [ " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {" ], "line_no": [ 11, 11, 11, 11, 11, 11 ] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int VAR_0; offset &= 0x3ff; if (offset > 0x200) { hw_error("Bad MBAR read offset 0x%x", (int)offset); } VAR_0 = m5206_mbar_width[offset >> 2]; if (VAR_0 < 4) {...
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{", "m5206_mbar_state *s = (m5206_mbar_state *)opaque;", "int VAR_0;", "offset &= 0x3ff;", "if (offset > 0x200) {", "hw_error(\"Bad MBAR read offset 0x%x\", (int)offset);", "}", "VAR_0 = m5206_mbar_width[offset >> 2];", "if (VAR_0 < 4...
[ 0, 0, 0, 0, 1, 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 ] ]
22,624
static void test_qemu_strtoul_empty(void) { const char *str = ""; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); g_assert(endptr == str); }
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
static void test_qemu_strtoul_empty(void) { const char *str = ""; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); g_assert(endptr == str); }
{ "code": [ " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert(endptr == str);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert(endptr == str);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, ...
static void FUNC_0(void) { const char *VAR_0 = ""; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; unsigned long VAR_3 = 999; int VAR_4; VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3); g_assert_cmpint(VAR_4, ==, 0); g_assert_cmpint(VAR_3, ==, 0); g_assert(VAR_2 == VAR_0);...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"\";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "unsigned long VAR_3 = 999;", "int VAR_4;", "VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3);", "g_assert_cmpint(VAR_4, ==, 0);", "g_assert_cmpint(VAR_3, ==, 0);", "g_assert(VAR_2 == VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
22,625
static void lm32_cpu_class_init(ObjectClass *oc, void *data) { LM32CPUClass *lcc = LM32_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); lcc->parent_realize = dc->realize; dc->realize = lm32_cpu_realizefn; lcc->parent_reset = cc->reset; cc->reset = lm32_cpu_re...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void lm32_cpu_class_init(ObjectClass *oc, void *data) { LM32CPUClass *lcc = LM32_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); lcc->parent_realize = dc->realize; dc->realize = lm32_cpu_realizefn; lcc->parent_reset = cc->reset; cc->reset = lm32_cpu_re...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { LM32CPUClass *lcc = LM32_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); lcc->parent_realize = dc->realize; dc->realize = lm32_cpu_realizefn; lcc->parent_reset = cc->reset; cc->reset = lm32_cpu_re...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "LM32CPUClass *lcc = LM32_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "lcc->parent_realize = dc->realize;", "dc->realize = lm32_cpu_realizefn;", "lcc->parent_reset = cc->reset;", "cc->reset ...
[ 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 ],...
22,627
static void vnc_copy(VncState *vs, int src_x, int src_y, int dst_x, int dst_y, int w, int h) { /* send bitblit op to the vnc client */ vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); /* number of rects */ vnc_framebuffer...
true
qemu
50628d3479e4f9aa97e323506856e394fe7ad7a6
static void vnc_copy(VncState *vs, int src_x, int src_y, int dst_x, int dst_y, int w, int h) { vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); vnc_framebuffer_update(vs, dst_x, dst_y, w, h, VNC_ENCODING_COPYRECT); ...
{ "code": [ "static void vnc_copy(VncState *vs, int src_x, int src_y, int dst_x, int dst_y, int w, int h)", " vnc_lock_output(vs);", " vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);", " vnc_write_u8(vs, 0);", " vnc_framebuffer_update(vs, dst_x, dst_y, w, h, VNC_ENCODING_COPYRECT)...
static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { vnc_lock_output(VAR_0); vnc_write_u8(VAR_0, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(VAR_0, 0); vnc_write_u16(VAR_0, 1); vnc_framebuffer_update(VAR_0, VAR_3, VAR_4, VAR_5, VAR...
[ "static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "vnc_lock_output(VAR_0);", "vnc_write_u8(VAR_0, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);", "vnc_write_u8(VAR_0, 0);", "vnc_write_u16(VAR_0, 1);", "vnc_framebuffer_update(VAR_0, VAR_3, VAR_4, VAR_5, VAR_6...
[ 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
22,628
static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int chroma, int chroma444, int dir) { MpegEncContext * const s = &h->...
false
FFmpeg
a4f6be86d67ae30d494fbe8a470bc32b715d75a9
static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int chroma, int chroma444, int dir) { MpegEncContext * const s = &h->...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int chroma, int chroma444, int dir) { MpegEncContext * const s = &h->s; ...
[ "static av_always_inline void FUNC_0(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int chroma, int chroma444, int dir) {", "MpegEncContext * const s = &h->s;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 29 ], [ 33 ], [ 37, 39, 41 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [...
22,629
static int mov_read_close(AVFormatContext *s) { MOVContext *mov = s->priv_data; int i, j; for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; MOVStreamContext *sc = st->priv_data; av_freep(&sc->ctts_data); for (j = 0; j < sc->drefs_count; j++) { ...
false
FFmpeg
9f61abc8111c7c43f49ca012e957a108b9cc7610
static int mov_read_close(AVFormatContext *s) { MOVContext *mov = s->priv_data; int i, j; for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; MOVStreamContext *sc = st->priv_data; av_freep(&sc->ctts_data); for (j = 0; j < sc->drefs_count; j++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MOVContext *mov = VAR_0->priv_data; int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) { AVStream *st = VAR_0->streams[VAR_1]; MOVStreamContext *sc = st->priv_data; av_freep(&sc->ctts_data); for (VAR_2...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MOVContext *mov = VAR_0->priv_data;", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {", "AVStream *st = VAR_0->streams[VAR_1];", "MOVStreamContext *sc = st->priv_data;", "av_freep(&sc->ctts_data);", "for (VAR_2 = 0; VAR_2 < s...
[ 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
22,630
static int color_request_frame(AVFilterLink *link) { ColorContext *color = link->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h); int ret; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = color->pts++; p...
false
FFmpeg
1dc42050185d63c1de5d16146fbaee92640af187
static int color_request_frame(AVFilterLink *link) { ColorContext *color = link->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h); int ret; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = color->pts++; p...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { ColorContext *color = VAR_0->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(VAR_0, AV_PERM_WRITE, color->w, color->h); int VAR_1; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = color->pts++; picref->p...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "ColorContext *color = VAR_0->src->priv;", "AVFilterBufferRef *picref = ff_get_video_buffer(VAR_0, AV_PERM_WRITE, color->w, color->h);", "int VAR_1;", "picref->video->pixel_aspect = (AVRational) {1, 1};", "picref->pts = color->pts++;", "picref...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29, 31, 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ] ]
22,631
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int j, entries, pseudo_stream_id; get_byte(pb); /* version */ get_be24(pb); /* flags */ entries = get_be32(pb); ...
false
FFmpeg
26f5e1469f9469ab30e16d6311bdbcbc7e0790cf
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int j, entries, pseudo_stream_id; get_byte(pb); get_be24(pb); entries = get_be32(pb); for(pseudo_stream_id=0...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int VAR_3, VAR_4, VAR_5; get_byte(VAR_1); get_be24(VAR_1); VAR_4 = get_be32(VAR_1); for(VAR_5=0; VA...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = st->priv_data;", "int VAR_3, VAR_4, VAR_5;", "get_byte(VAR_1);", "get_be24(VAR_1);", "VAR_4 = get_be32(VAR_1);", "for(VAR_5=0; 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, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55, 57 ...
22,632
void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, int log2_trafo_size) { HEVCLocalContext *lc = &s->HEVClc; MvField *tab_mvf = s->ref->tab_mvf; int log2_min_pu_size = s->sps->log2_min_pu_size; int log2_min_tu_size = s->sps->lo...
false
FFmpeg
a7a17e3f1915ce69b787dc58c5d8dba0910fc0a4
void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, int log2_trafo_size) { HEVCLocalContext *lc = &s->HEVClc; MvField *tab_mvf = s->ref->tab_mvf; int log2_min_pu_size = s->sps->log2_min_pu_size; int log2_min_tu_size = s->sps->lo...
{ "code": [], "line_no": [] }
void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { HEVCLocalContext *lc = &VAR_0->HEVClc; MvField *tab_mvf = VAR_0->ref->tab_mvf; int VAR_4 = VAR_0->sps->VAR_4; int VAR_5 = VAR_0->sps->log2_min_tb_size; int VAR_6 = VAR_0->sps-...
[ "void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3)\n{", "HEVCLocalContext *lc = &VAR_0->HEVClc;", "MvField *tab_mvf = VAR_0->ref->tab_mvf;", "int VAR_4 = VAR_0->sps->VAR_4;", "int VAR_5 = VAR_0->sps->log2_min_tb_size;", "int VAR_6 = VAR_0->sps->VAR_6;", "int VAR_7 = VAR_0->sp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
22,633
int ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs) { int j; fs->plane_count = f->plane_count; fs->transparency = f->transparency; for (j = 0; j < f->plane_count; j++) { PlaneContext *const p = &fs->plane[j]; if (fs->ac) { if (!p->state) p...
false
FFmpeg
4bb1070c154e49d35805fbcdac9c9e92f702ef96
int ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs) { int j; fs->plane_count = f->plane_count; fs->transparency = f->transparency; for (j = 0; j < f->plane_count; j++) { PlaneContext *const p = &fs->plane[j]; if (fs->ac) { if (!p->state) p...
{ "code": [], "line_no": [] }
int FUNC_0(FFV1Context *VAR_0, FFV1Context *VAR_1) { int VAR_2; VAR_1->plane_count = VAR_0->plane_count; VAR_1->transparency = VAR_0->transparency; for (VAR_2 = 0; VAR_2 < VAR_0->plane_count; VAR_2++) { PlaneContext *const p = &VAR_1->plane[VAR_2]; if (VAR_1->ac) { ...
[ "int FUNC_0(FFV1Context *VAR_0, FFV1Context *VAR_1)\n{", "int VAR_2;", "VAR_1->plane_count = VAR_0->plane_count;", "VAR_1->transparency = VAR_0->transparency;", "for (VAR_2 = 0; VAR_2 < VAR_0->plane_count; VAR_2++) {", "PlaneContext *const p = &VAR_1->plane[VAR_2];", "if (VAR_1->ac) {", "if (!p->stat...
[ 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 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], ...
22,634
static int vdpau_vc1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) { VC1Context * const v = avctx->priv_data; MpegEncContext * const s = &v->s; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *pic_ctx = pic->...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int vdpau_vc1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) { VC1Context * const v = avctx->priv_data; MpegEncContext * const s = &v->s; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *pic_ctx = pic->...
{ "code": [ " ref = ff_vdpau_get_surface_id(&s->next_picture.f);", " ref = ff_vdpau_get_surface_id(&s->last_picture.f);", " ref = ff_vdpau_get_surface_id(&s->next_picture.f);", " ref = ff_vdpau_get_surface_id(&s->last_picture.f);", " ref = ff_vdpau_get_surface_id...
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, uint32_t VAR_2) { VC1Context * const v = VAR_0->priv_data; MpegEncContext * const s = &v->s; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *VAR_3 = pic->hwaccel_picture_p...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, uint32_t VAR_2)\n{", "VC1Context * const v = VAR_0->priv_data;", "MpegEncContext * const s = &v->s;", "Picture *pic = s->current_picture_ptr;", "struct vdpau_picture_context *VAR_3 = pic->hwaccel_picture_private;", "VdpPictureInfoV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
22,635
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CinVideoContext *cin = avctx->priv_data; int i, y, palette_type, p...
true
FFmpeg
8e5f093c2cf13eab3d68d893bf8f30c56ba4e733
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CinVideoContext *cin = avctx->priv_data; int i, y, palette_type, p...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; CinVideoContext *cin = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "CinVideoContext *cin = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "cin->frame.buffer_hints = FF_BUFFER_HINTS_VALID | F...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
22,636
static void RENAME(decode_rgb_frame)(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3]) { int x, y, p; TYPE *sample[4][2]; int lbd = s->avctx->bits_per_raw_sample <= 8; int bits = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8; int offset = 1 << bits; ...
true
FFmpeg
62702eebded6c6341d214405812a981f80e46ea2
static void RENAME(decode_rgb_frame)(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3]) { int x, y, p; TYPE *sample[4][2]; int lbd = s->avctx->bits_per_raw_sample <= 8; int bits = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8; int offset = 1 << bits; ...
{ "code": [ " *((uint32_t*)(src[0] + x*4 + stride[0]*y)) = b + (g<<8) + (r<<16) + (a<<24);" ], "line_no": [ 93 ] }
static void FUNC_0(decode_rgb_frame)(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3]) { int VAR_0, VAR_1, VAR_2; TYPE *sample[4][2]; int VAR_3 = s->avctx->bits_per_raw_sample <= 8; int VAR_4 = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8; int VAR_5 = ...
[ "static void FUNC_0(decode_rgb_frame)(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3])\n{", "int VAR_0, VAR_1, VAR_2;", "TYPE *sample[4][2];", "int VAR_3 = s->avctx->bits_per_raw_sample <= 8;", "int VAR_4 = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8;", "int 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53,...
22,638
QPEL_H264(put_, PUT_OP, mmxext) QPEL_H264(avg_, AVG_MMXEXT_OP, mmxext) QPEL_H264_V_XMM(put_, PUT_OP, sse2) QPEL_H264_V_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_HV_XMM(put_, PUT_OP, sse2) QPEL_H264_HV_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_H_XMM(put_, PUT_OP, ssse3) QPEL_H264_H_XMM(avg_,A...
false
FFmpeg
c5c2060cf597c8eb5989ca4ba68a1eaeb59f7cdb
QPEL_H264(put_, PUT_OP, mmxext) QPEL_H264(avg_, AVG_MMXEXT_OP, mmxext) QPEL_H264_V_XMM(put_, PUT_OP, sse2) QPEL_H264_V_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_HV_XMM(put_, PUT_OP, sse2) QPEL_H264_HV_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_H_XMM(put_, PUT_OP, ssse3) QPEL_H264_H_XMM(avg_,A...
{ "code": [], "line_no": [] }
QPEL_H264(put_, PUT_OP, mmxext) QPEL_H264(avg_, AVG_MMXEXT_OP, mmxext) QPEL_H264_V_XMM(put_, PUT_OP, sse2) QPEL_H264_V_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_HV_XMM(put_, PUT_OP, sse2) QPEL_H264_HV_XMM(avg_,AVG_MMXEXT_OP, sse2) QPEL_H264_H_XMM(put_, PUT_OP, ssse3) QPEL_H264_H_XMM(avg_,A...
[ "QPEL_H264(put_, PUT_OP, mmxext)\nQPEL_H264(avg_, AVG_MMXEXT_OP, mmxext)\nQPEL_H264_V_XMM(put_, PUT_OP, sse2)\nQPEL_H264_V_XMM(avg_,AVG_MMXEXT_OP, sse2)\nQPEL_H264_HV_XMM(put_, PUT_OP, sse2)\nQPEL_H264_HV_XMM(avg_,AVG_MMXEXT_OP, sse2)\nQPEL_H264_H_XMM(put_, PUT_OP, ssse3)\nQPEL_H264_H_XMM(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, 19, 21, 25, 27, 29, 31, 33, 41, 43, 45 ], [ 49, 51, 53, 55, 57, 59, 61, 65, 67, 69, 71, 73, 77, 79, 81, 83, 85, 87, 89, 91,...
22,639
static coroutine_fn int qcow2_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { int ret; BDRVQcow2State *s = bs->opaque; uint32_t head = offset % s->cluster_size; uint32_t tail = (offset + count) % s->cluster_size; trace_qcow2_pwrite_zeroes_st...
true
qemu
fbaa6bb3d3b4be71b7e234e908cb3c6bd280a222
static coroutine_fn int qcow2_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { int ret; BDRVQcow2State *s = bs->opaque; uint32_t head = offset % s->cluster_size; uint32_t tail = (offset + count) % s->cluster_size; trace_qcow2_pwrite_zeroes_st...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { int VAR_0; BDRVQcow2State *s = bs->opaque; uint32_t head = offset % s->cluster_size; uint32_t tail = (offset + count) % s->cluster_size; trace_qcow2_pwrite_zeroes_start_req(qemu_c...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs,\nint64_t offset, int count, BdrvRequestFlags flags)\n{", "int VAR_0;", "BDRVQcow2State *s = bs->opaque;", "uint32_t head = offset % s->cluster_size;", "uint32_t tail = (offset + count) % s->cluster_size;", "trace_qcow2_pwrite_zeroes_start_req(qemu_coro...
[ 0, 0, 0, 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 ], [ 19 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 36 ], [ 42, 44, 46, 48, 50 ], [ 52 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [...
22,641
static void virtio_blk_complete_request(VirtIOBlockReq *req, unsigned char status) { VirtIOBlock *s = req->dev; VirtIODevice *vdev = VIRTIO_DEVICE(s); trace_virtio_blk_req_complete(req, status); stb_p(&req->in->status, status); virtqueue_push(s->vq,...
true
qemu
f897bf751fbd95e4015b95d202c706548586813a
static void virtio_blk_complete_request(VirtIOBlockReq *req, unsigned char status) { VirtIOBlock *s = req->dev; VirtIODevice *vdev = VIRTIO_DEVICE(s); trace_virtio_blk_req_complete(req, status); stb_p(&req->in->status, status); virtqueue_push(s->vq,...
{ "code": [ " virtqueue_push(s->vq, req->elem, req->qiov.size + sizeof(*req->in));" ], "line_no": [ 19 ] }
static void FUNC_0(VirtIOBlockReq *VAR_0, unsigned char VAR_1) { VirtIOBlock *s = VAR_0->dev; VirtIODevice *vdev = VIRTIO_DEVICE(s); trace_virtio_blk_req_complete(VAR_0, VAR_1); stb_p(&VAR_0->in->VAR_1, VAR_1); virtqueue_push(s->vq, VAR_0->elem, VAR...
[ "static void FUNC_0(VirtIOBlockReq *VAR_0,\nunsigned char VAR_1)\n{", "VirtIOBlock *s = VAR_0->dev;", "VirtIODevice *vdev = VIRTIO_DEVICE(s);", "trace_virtio_blk_req_complete(VAR_0, VAR_1);", "stb_p(&VAR_0->in->VAR_1, VAR_1);", "virtqueue_push(s->vq, VAR_0->elem, VAR_0->qiov.size + sizeof(*VAR_0->in));", ...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,642
static void vfio_enable_msi(VFIODevice *vdev) { int ret, i; vfio_disable_interrupts(vdev); vdev->nr_vectors = msi_nr_vectors_allocated(&vdev->pdev); retry: vdev->msi_vectors = g_malloc0(vdev->nr_vectors * sizeof(VFIOMSIVector)); for (i = 0; i < vdev->nr_vectors; i++) { VFIOMSIV...
true
qemu
b3ebc10c373ed5922d4bdb5076fd0e9fd7ff8056
static void vfio_enable_msi(VFIODevice *vdev) { int ret, i; vfio_disable_interrupts(vdev); vdev->nr_vectors = msi_nr_vectors_allocated(&vdev->pdev); retry: vdev->msi_vectors = g_malloc0(vdev->nr_vectors * sizeof(VFIOMSIVector)); for (i = 0; i < vdev->nr_vectors; i++) { VFIOMSIV...
{ "code": [ " vector->virq = kvm_irqchip_add_msi_route(kvm_state, vector->msg);" ], "line_no": [ 53 ] }
static void FUNC_0(VFIODevice *VAR_0) { int VAR_1, VAR_2; vfio_disable_interrupts(VAR_0); VAR_0->nr_vectors = msi_nr_vectors_allocated(&VAR_0->pdev); retry: VAR_0->msi_vectors = g_malloc0(VAR_0->nr_vectors * sizeof(VFIOMSIVector)); for (VAR_2 = 0; VAR_2 < VAR_0->nr_vectors; VAR_2++) { ...
[ "static void FUNC_0(VFIODevice *VAR_0)\n{", "int VAR_1, VAR_2;", "vfio_disable_interrupts(VAR_0);", "VAR_0->nr_vectors = msi_nr_vectors_allocated(&VAR_0->pdev);", "retry:\nVAR_0->msi_vectors = g_malloc0(VAR_0->nr_vectors * sizeof(VFIOMSIVector));", "for (VAR_2 = 0; VAR_2 < VAR_0->nr_vectors; VAR_2++) {", ...
[ 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, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 53 ], [ 55, 57, 59 ], [ 61, 63 ], [ 65 ], [ 67...
22,643
static int decode_lowdelay(DiracContext *s) { AVCodecContext *avctx = s->avctx; int slice_x, slice_y, bufsize; int64_t coef_buf_size, bytes = 0; const uint8_t *buf; DiracSlice *slices; SliceCoeffs tmp[MAX_DWT_LEVELS]; int slice_num = 0; if (s->slice_params_num_buf != (s->num_x...
true
FFmpeg
24d20496d2e6e1df6456c5231d892269dd1fcf38
static int decode_lowdelay(DiracContext *s) { AVCodecContext *avctx = s->avctx; int slice_x, slice_y, bufsize; int64_t coef_buf_size, bytes = 0; const uint8_t *buf; DiracSlice *slices; SliceCoeffs tmp[MAX_DWT_LEVELS]; int slice_num = 0; if (s->slice_params_num_buf != (s->num_x...
{ "code": [], "line_no": [] }
static int FUNC_0(DiracContext *VAR_0) { AVCodecContext *avctx = VAR_0->avctx; int VAR_1, VAR_2, VAR_3; int64_t coef_buf_size, bytes = 0; const uint8_t *VAR_4; DiracSlice *slices; SliceCoeffs tmp[MAX_DWT_LEVELS]; int VAR_5 = 0; if (VAR_0->slice_params_num_buf != (VAR_0->num_x ...
[ "static int FUNC_0(DiracContext *VAR_0)\n{", "AVCodecContext *avctx = VAR_0->avctx;", "int VAR_1, VAR_2, VAR_3;", "int64_t coef_buf_size, bytes = 0;", "const uint8_t *VAR_4;", "DiracSlice *slices;", "SliceCoeffs tmp[MAX_DWT_LEVELS];", "int VAR_5 = 0;", "if (VAR_0->slice_params_num_buf != (VAR_0->num...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 46 ], [ 48 ], [ 52,...
22,644
static int xface_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { XFaceContext *xface = avctx->priv_data; ProbRangesQueue pq = {{ 0 }, 0}; uint8_t bitmap_copy[XFACE_PIXELS]; BigInt b = {0}; int i, j, k, ret = 0; con...
true
FFmpeg
6369a7b742bd64e7ded377fe79a5d723379ce08d
static int xface_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { XFaceContext *xface = avctx->priv_data; ProbRangesQueue pq = {{ 0 }, 0}; uint8_t bitmap_copy[XFACE_PIXELS]; BigInt b = {0}; int i, j, k, ret = 0; con...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { XFaceContext *xface = VAR_0->priv_data; ProbRangesQueue pq = {{ 0 }, 0}; uint8_t bitmap_copy[XFACE_PIXELS]; BigInt b = {0}; int VAR_4, VAR_5, VAR_6, VAR_7 = 0; cons...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "XFaceContext *xface = VAR_0->priv_data;", "ProbRangesQueue pq = {{ 0 }, 0};", "uint8_t bitmap_copy[XFACE_PIXELS];", "BigInt b = {0};", "int VAR_4, VAR_5, VAR_6, VAR_7 = 0;", "const uint8_t *VAR_8;", "ui...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,645
static int mov_text_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt) { AVSubtitle *sub = data; int ret, ts_start, ts_end; AVBPrint buf; char *ptr = avpkt->data; char *end; //char *ptr_temp; int text_length, tsmb_type, sty...
true
FFmpeg
b44a55ad2d182dc5dce09609badfb6dcb575e632
static int mov_text_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt) { AVSubtitle *sub = data; int ret, ts_start, ts_end; AVBPrint buf; char *ptr = avpkt->data; char *end; int text_length, tsmb_type, style_entries, tsmb_...
{ "code": [ " int text_length, tsmb_type, style_entries, tsmb_size;", " while (text_length + 2 + tsmb_size < avpkt->size) {", " tsmb = ptr + text_length + tsmb_size;" ], "line_no": [ 19, 103, 105 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVSubtitle *sub = VAR_1; int VAR_4, VAR_5, VAR_6; AVBPrint buf; char *VAR_7 = VAR_3->VAR_1; char *VAR_8; int VAR_9, VAR_10, VAR_11, VAR_12; int **VAR_13 = {0,}; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "AVSubtitle *sub = VAR_1;", "int VAR_4, VAR_5, VAR_6;", "AVBPrint buf;", "char *VAR_7 = VAR_3->VAR_1;", "char *VAR_8;", "int VAR_9, VAR_10, VAR_11, VAR_12;", "int **VAR_13 = {0,};", "int **VAR_14 = {0,};", "i...
[ 0, 0, 0, 0, 0, 0, 1, 0, 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, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 57, 59 ], [ 73 ], [ 75 ], [...
22,646
av_cold void ff_snow_common_end(SnowContext *s) { int plane_index, level, orientation, i; av_freep(&s->spatial_dwt_buffer); av_freep(&s->temp_dwt_buffer); av_freep(&s->spatial_idwt_buffer); av_freep(&s->temp_idwt_buffer); av_freep(&s->run_buffer); s->m.me.temp= NULL; av_free...
true
FFmpeg
9a162146ca6cc12ef7ad4a15164349482885962c
av_cold void ff_snow_common_end(SnowContext *s) { int plane_index, level, orientation, i; av_freep(&s->spatial_dwt_buffer); av_freep(&s->temp_dwt_buffer); av_freep(&s->spatial_idwt_buffer); av_freep(&s->temp_idwt_buffer); av_freep(&s->run_buffer); s->m.me.temp= NULL; av_free...
{ "code": [ " if(s->last_picture[i]->data[0]) {" ], "line_no": [ 47 ] }
av_cold void FUNC_0(SnowContext *s) { int VAR_0, VAR_1, VAR_2, VAR_3; av_freep(&s->spatial_dwt_buffer); av_freep(&s->temp_dwt_buffer); av_freep(&s->spatial_idwt_buffer); av_freep(&s->temp_idwt_buffer); av_freep(&s->run_buffer); s->m.me.temp= NULL; av_freep(&s->m.me.scratchpa...
[ "av_cold void FUNC_0(SnowContext *s)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3;", "av_freep(&s->spatial_dwt_buffer);", "av_freep(&s->temp_dwt_buffer);", "av_freep(&s->spatial_idwt_buffer);", "av_freep(&s->temp_idwt_buffer);", "av_freep(&s->run_buffer);", "s->m.me.temp= NULL;", "av_freep(&s->m.me.scratchp...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
22,647
HELPER_LD_ATOMIC(ll, lw) #ifdef TARGET_MIPS64 HELPER_LD_ATOMIC(lld, ld) #endif #undef HELPER_LD_ATOMIC #define HELPER_ST_ATOMIC(name, ld_insn, st_insn, almask) \ target_ulong helper_##name(CPUMIPSState *env, target_ulong arg1, \ target_ulong arg2, in...
true
qemu
fc40787abcf8452b8f50d92b7a13243a12972c7a
HELPER_LD_ATOMIC(ll, lw) #ifdef TARGET_MIPS64 HELPER_LD_ATOMIC(lld, ld) #endif #undef HELPER_LD_ATOMIC #define HELPER_ST_ATOMIC(name, ld_insn, st_insn, almask) \ target_ulong helper_##name(CPUMIPSState *env, target_ulong arg1, \ target_ulong arg2, in...
{ "code": [ "target_ulong helper_lwl(CPUMIPSState *env, target_ulong arg1,", " target_ulong arg2, int mem_idx)", " target_ulong tmp;", " tmp = do_lbu(env, arg2, mem_idx);", " arg1 = (arg1 & 0x00FFFFFF) | (tmp << 24);", " if (GET_LMASK(arg2) <= 2) {", " ...
HELPER_LD_ATOMIC(ll, lw) #ifdef TARGET_MIPS64 HELPER_LD_ATOMIC(lld, ld) #endif #undef HELPER_LD_ATOMIC #define HELPER_ST_ATOMIC(name, ld_insn, st_insn, almask) \ target_ulong helper_##name(CPUMIPSState *env, target_ulong arg1, \ target_ulong arg2, in...
[ "HELPER_LD_ATOMIC(ll, lw)\n#ifdef TARGET_MIPS64\nHELPER_LD_ATOMIC(lld, ld)\n#endif\n#undef HELPER_LD_ATOMIC\n#define HELPER_ST_ATOMIC(name, ld_insn, st_insn, almask) \\\ntarget_ulong helper_##name(CPUMIPSState *env, target_ulong arg1, \\\ntarget_ulong arg2, int mem_idx) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9, 13, 15, 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51,...
22,648
static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, UINT8 * buf, int buf_size) { MPADecodeContext *s = avctx->priv_data; UINT32 header; UINT8 *buf_ptr; int len, out_size; short *out_samples = data; *data_size = 0; buf_ptr = buf; while (buf_size ...
false
FFmpeg
fad9f495c07be2d990620f5000de075ba2cf1cbd
static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, UINT8 * buf, int buf_size) { MPADecodeContext *s = avctx->priv_data; UINT32 header; UINT8 *buf_ptr; int len, out_size; short *out_samples = data; *data_size = 0; buf_ptr = buf; while (buf_size ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, UINT8 * VAR_3, int VAR_4) { MPADecodeContext *s = VAR_0->priv_data; UINT32 header; UINT8 *buf_ptr; int VAR_5, VAR_6; short *VAR_7 = VAR_1; *VAR_2 = 0; buf_ptr = VAR_3; while (VAR_4 > 0) { VAR_5 = s->i...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 * VAR_3, int VAR_4)\n{", "MPADecodeContext *s = VAR_0->priv_data;", "UINT32 header;", "UINT8 *buf_ptr;", "int VAR_5, VAR_6;", "short *VAR_7 = VAR_1;", "*VAR_2 = 0;", "buf_ptr = VAR_3;", "while (VAR_4 > 0) {", "VAR_5 = s->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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,649
static void mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s) { AVStream *video_st = s->streams[0]; AVCodecParameters *video_par = s->streams[0]->codecpar; AVCodecParameters *audio_par = s->streams[1]->codecpar; int audio_rate = audio_par->sample_rate; int64_t frame_rate = (...
false
FFmpeg
ed2112fb36d7407d960b4f44475a700a7c44344c
static void mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s) { AVStream *video_st = s->streams[0]; AVCodecParameters *video_par = s->streams[0]->codecpar; AVCodecParameters *audio_par = s->streams[1]->codecpar; int audio_rate = audio_par->sample_rate; int64_t frame_rate = (...
{ "code": [], "line_no": [] }
static void FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1) { AVStream *video_st = VAR_1->streams[0]; AVCodecParameters *video_par = VAR_1->streams[0]->codecpar; AVCodecParameters *audio_par = VAR_1->streams[1]->codecpar; int VAR_2 = audio_par->sample_rate; int64_t frame_rate = (vi...
[ "static void FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)\n{", "AVStream *video_st = VAR_1->streams[0];", "AVCodecParameters *video_par = VAR_1->streams[0]->codecpar;", "AVCodecParameters *audio_par = VAR_1->streams[1]->codecpar;", "int VAR_2 = audio_par->sample_rate;", "int64_t frame_rate ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,650
void rgb32tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { unsigned i; unsigned num_pixels = src_size >> 2; for(i=0; i<num_pixels; i++) { dst[3*i + 0] = src[4*i + 2]; dst[3*i + 1] = src[4*i + 1]; dst[3*i + 2] = src[4*i + 0]; } }
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
void rgb32tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { unsigned i; unsigned num_pixels = src_size >> 2; for(i=0; i<num_pixels; i++) { dst[3*i + 0] = src[4*i + 2]; dst[3*i + 1] = src[4*i + 1]; dst[3*i + 2] = src[4*i + 0]; } }
{ "code": [ "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "void rgb32tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size)", "\tunsigned i;", "\tunsigned num_pixels = src_si...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2) { unsigned VAR_3; unsigned VAR_4 = VAR_2 >> 2; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { VAR_1[3*VAR_3 + 0] = VAR_0[4*VAR_3 + 2]; VAR_1[3*VAR_3 + 1] = VAR_0[4*VAR_3 + 1]; VAR_1[3*VAR_3 + 2] = VAR_0[4*VAR_3 + 0]; } }
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{", "unsigned VAR_3;", "unsigned VAR_4 = VAR_2 >> 2;", "for(VAR_3=0; VAR_3<VAR_4; VAR_3++)", "{", "VAR_1[3*VAR_3 + 0] = VAR_0[4*VAR_3 + 2];", "VAR_1[3*VAR_3 + 1] = VAR_0[4*VAR_3 + 1];", "VAR_1[3*VAR_3 + 2] = VAR_0[4*VAR_3 + 0];", ...
[ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
22,651
static long do_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct sigframe_v2 *frame; /* * Since we stacked the signal on a 64-bit boundary, * then 'sp' should be word aligned here. If it's * not, then the user is trying to mess with us. */ if (env->regs[13] & 7) goto badfra...
true
qemu
978fae9f1ac47e22890a1bd9ebf5fa46fe8b6ef7
static long do_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct sigframe_v2 *frame; if (env->regs[13] & 7) goto badframe; frame_addr = env->regs[13]; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) goto badframe; if (do_sigfra...
{ "code": [ "\tif (env->regs[13] & 7)", "\t\tgoto badframe;", "\tstruct sigframe_v2 *frame;", "\tif (env->regs[13] & 7)", "\t\tgoto badframe;", "\tif (env->regs[13] & 7)", "\t\tgoto badframe;", "\tif (env->regs[13] & 7)", "\t\tgoto badframe;" ], "line_no": [ 21, 23, ...
static long FUNC_0(CPUARMState *VAR_0) { abi_ulong frame_addr; struct sigframe_v2 *VAR_1; if (VAR_0->regs[13] & 7) goto badframe; frame_addr = VAR_0->regs[13]; if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) goto badframe; if (do_sigframe_...
[ "static long FUNC_0(CPUARMState *VAR_0)\n{", "abi_ulong frame_addr;", "struct sigframe_v2 *VAR_1;", "if (VAR_0->regs[13] & 7)\ngoto badframe;", "frame_addr = VAR_0->regs[13];", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))\ngoto badframe;", "if (do_sigframe_return_v2(VAR_0, frame_addr, &VAR...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ] ]
22,653
static PCIDevice *find_dev(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { int devfn = (config_addr >> 8) & 0xFF; sPAPRPHBState *phb; QLIST_FOREACH(phb, &spapr->phbs, list) { BusChild *kid; if (phb->buid != buid) { continue; ...
true
qemu
9894c5d4b467d24e281c22f2f5e24822c9b55fb3
static PCIDevice *find_dev(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { int devfn = (config_addr >> 8) & 0xFF; sPAPRPHBState *phb; QLIST_FOREACH(phb, &spapr->phbs, list) { BusChild *kid; if (phb->buid != buid) { continue; ...
{ "code": [ "static PCIDevice *find_dev(sPAPREnvironment *spapr,", " uint64_t buid, uint32_t config_addr)", " int devfn = (config_addr >> 8) & 0xFF;", " BusChild *kid;", " QTAILQ_FOREACH(kid, &phb->host_state.bus->qbus.children, sibling) {", " ...
static PCIDevice *FUNC_0(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { int VAR_0 = (config_addr >> 8) & 0xFF; sPAPRPHBState *phb; QLIST_FOREACH(phb, &spapr->phbs, list) { BusChild *kid; if (phb->buid != buid) { continue; ...
[ "static PCIDevice *FUNC_0(sPAPREnvironment *spapr,\nuint64_t buid, uint32_t config_addr)\n{", "int VAR_0 = (config_addr >> 8) & 0xFF;", "sPAPRPHBState *phb;", "QLIST_FOREACH(phb, &spapr->phbs, list) {", "BusChild *kid;", "if (phb->buid != buid) {", "continue;", "}", "QTAILQ_FOREACH(kid, &phb->host_s...
[ 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
22,654
int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi) { ICSState *ics = &icp->ics[src]; int irq; if (irq_hint) { assert(src == xics_find_source(icp, irq_hint)); if (!ICS_IRQ_FREE(ics, irq_hint - ics->offset)) { trace_xics_alloc_failed_hint(src, irq_hint); ...
true
qemu
a005b3ef50439b5bc6b2eb0b5bda8e8c7c2368bf
int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi) { ICSState *ics = &icp->ics[src]; int irq; if (irq_hint) { assert(src == xics_find_source(icp, irq_hint)); if (!ICS_IRQ_FREE(ics, irq_hint - ics->offset)) { trace_xics_alloc_failed_hint(src, irq_hint); ...
{ "code": [ "int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi)", " trace_xics_alloc_failed_hint(src, irq_hint);", " trace_xics_alloc_failed_no_left(src);" ], "line_no": [ 1, 17, 31 ] }
int FUNC_0(XICSState *VAR_0, int VAR_1, int VAR_2, bool VAR_3) { ICSState *ics = &VAR_0->ics[VAR_1]; int VAR_4; if (VAR_2) { assert(VAR_1 == xics_find_source(VAR_0, VAR_2)); if (!ICS_IRQ_FREE(ics, VAR_2 - ics->offset)) { trace_xics_alloc_failed_hint(VAR_1, VAR_2); ...
[ "int FUNC_0(XICSState *VAR_0, int VAR_1, int VAR_2, bool VAR_3)\n{", "ICSState *ics = &VAR_0->ics[VAR_1];", "int VAR_4;", "if (VAR_2) {", "assert(VAR_1 == xics_find_source(VAR_0, VAR_2));", "if (!ICS_IRQ_FREE(ics, VAR_2 - ics->offset)) {", "trace_xics_alloc_failed_hint(VAR_1, VAR_2);", "return -1;", ...
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45...
22,656
static int ftp_store(FTPContext *s) { char command[CONTROL_BUFFER_SIZE]; const int stor_codes[] = {150, 0}; snprintf(command, sizeof(command), "STOR %s\r\n", s->path); if (!ftp_send_command(s, command, stor_codes, NULL)) return AVERROR(EIO); s->state = UPLOADING; return 0; ...
false
FFmpeg
bc29acdc76fdbf70700cdc2f85fc2afb46e19e47
static int ftp_store(FTPContext *s) { char command[CONTROL_BUFFER_SIZE]; const int stor_codes[] = {150, 0}; snprintf(command, sizeof(command), "STOR %s\r\n", s->path); if (!ftp_send_command(s, command, stor_codes, NULL)) return AVERROR(EIO); s->state = UPLOADING; return 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(FTPContext *VAR_0) { char VAR_1[CONTROL_BUFFER_SIZE]; const int VAR_2[] = {150, 0}; snprintf(VAR_1, sizeof(VAR_1), "STOR %VAR_0\r\n", VAR_0->path); if (!ftp_send_command(VAR_0, VAR_1, VAR_2, NULL)) return AVERROR(EIO); VAR_0->state = UPLOADING; return 0; ...
[ "static int FUNC_0(FTPContext *VAR_0)\n{", "char VAR_1[CONTROL_BUFFER_SIZE];", "const int VAR_2[] = {150, 0};", "snprintf(VAR_1, sizeof(VAR_1), \"STOR %VAR_0\\r\\n\", VAR_0->path);", "if (!ftp_send_command(VAR_0, VAR_1, VAR_2, NULL))\nreturn AVERROR(EIO);", "VAR_0->state = UPLOADING;", "return 0;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 25 ] ]
22,657
enum AVPixelFormat avpriv_fmt_v4l2ff(uint32_t v4l2_fmt, enum AVCodecID codec_id) { int i; for (i = 0; avpriv_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { if (avpriv_fmt_conversion_table[i].v4l2_fmt == v4l2_fmt && avpriv_fmt_conversion_table[i].codec_id == codec_id) { ...
false
FFmpeg
931da6a5e9dd54563fe5d4d30b7bd4d0a0218c87
enum AVPixelFormat avpriv_fmt_v4l2ff(uint32_t v4l2_fmt, enum AVCodecID codec_id) { int i; for (i = 0; avpriv_fmt_conversion_table[i].codec_id != AV_CODEC_ID_NONE; i++) { if (avpriv_fmt_conversion_table[i].v4l2_fmt == v4l2_fmt && avpriv_fmt_conversion_table[i].codec_id == codec_id) { ...
{ "code": [], "line_no": [] }
enum AVPixelFormat FUNC_0(uint32_t VAR_0, enum AVCodecID VAR_1) { int VAR_2; for (VAR_2 = 0; avpriv_fmt_conversion_table[VAR_2].VAR_1 != AV_CODEC_ID_NONE; VAR_2++) { if (avpriv_fmt_conversion_table[VAR_2].VAR_0 == VAR_0 && avpriv_fmt_conversion_table[VAR_2].VAR_1 == VAR_1) { ...
[ "enum AVPixelFormat FUNC_0(uint32_t VAR_0, enum AVCodecID VAR_1)\n{", "int VAR_2;", "for (VAR_2 = 0; avpriv_fmt_conversion_table[VAR_2].VAR_1 != AV_CODEC_ID_NONE; VAR_2++) {", "if (avpriv_fmt_conversion_table[VAR_2].VAR_0 == VAR_0 &&\navpriv_fmt_conversion_table[VAR_2].VAR_1 == VAR_1) {", "return avpriv_fmt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
22,658
void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) { RTPDemuxContext *s = s1->priv_data; int len, h, max_packet_size; uint8_t *q; int begin_of_slice, end_of_slice, frame_type, temporal_reference; max_packet_size = s->max_payload_size; begin_of_slice = 1; ...
false
FFmpeg
e9174641556b3ca38c56b9621e855cf636cdf12f
void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) { RTPDemuxContext *s = s1->priv_data; int len, h, max_packet_size; uint8_t *q; int begin_of_slice, end_of_slice, frame_type, temporal_reference; max_packet_size = s->max_payload_size; begin_of_slice = 1; ...
{ "code": [], "line_no": [] }
void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { RTPDemuxContext *s = VAR_0->priv_data; int VAR_3, VAR_4, VAR_5; uint8_t *q; int VAR_6, VAR_7, VAR_8, VAR_9; VAR_5 = s->max_payload_size; VAR_6 = 1; VAR_7 = 0; VAR_8 = 0; VAR_9 = 0; while (VAR_2 ...
[ "void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "RTPDemuxContext *s = VAR_0->priv_data;", "int VAR_3, VAR_4, VAR_5;", "uint8_t *q;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "VAR_5 = s->max_payload_size;", "VAR_6 = 1;", "VAR_7 = 0;", "VAR_8 = 0;", "VAR_9 = 0;", "while (VAR_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, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,659
static int archipelago_submit_request(BDRVArchipelagoState *s, uint64_t bufidx, size_t count, off_t offset, ArchipelagoAIOCB *aio_cb, ...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int archipelago_submit_request(BDRVArchipelagoState *s, uint64_t bufidx, size_t count, off_t offset, ArchipelagoAIOCB *aio_cb, ...
{ "code": [ " AIORequestData *reqdata = g_malloc(sizeof(AIORequestData));", " AIORequestData *reqdata = g_malloc(sizeof(AIORequestData));" ], "line_no": [ 25, 25 ] }
static int FUNC_0(BDRVArchipelagoState *VAR_0, uint64_t VAR_1, size_t VAR_2, off_t VAR_3, ArchipelagoAIOCB *VAR_4, ...
[ "static int FUNC_0(BDRVArchipelagoState *VAR_0,\nuint64_t VAR_1,\nsize_t VAR_2,\noff_t VAR_3,\nArchipelagoAIOCB *VAR_4,\nArchipelagoSegmentedRequest *VAR_5,\nint VAR_6)\n{", "int VAR_7, VAR_8;", "char *VAR_9;", "void *VAR_10 = NULL;", "struct xseg_request *VAR_11;", "AIORequestData *reqdata = g_malloc(siz...
[ 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, 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 ], [ 47 ], [ 49 ...
22,660
int vhost_dev_enable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); VirtioBusState *vbus = VIRTIO_BUS(qbus); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); int i, r; if (!k->set_host_notifier) { fprintf(stderr, "bindin...
true
qemu
16617e36b02ebdc83f215d89db9ac00f7d6d6d83
int vhost_dev_enable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); VirtioBusState *vbus = VIRTIO_BUS(qbus); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); int i, r; if (!k->set_host_notifier) { fprintf(stderr, "bindin...
{ "code": [ " int i, r;", " r = k->set_host_notifier(qbus->parent, hdev->vq_index + i, false);", " if (r < 0) {", " assert (r >= 0);" ], "line_no": [ 11, 47, 29, 57 ] }
int FUNC_0(struct vhost_dev *VAR_0, VirtIODevice *VAR_1) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_1))); VirtioBusState *vbus = VIRTIO_BUS(qbus); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); int VAR_2, VAR_3; if (!k->set_host_notifier) { fprintf(stderr, "binding does no...
[ "int FUNC_0(struct vhost_dev *VAR_0, VirtIODevice *VAR_1)\n{", "BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_1)));", "VirtioBusState *vbus = VIRTIO_BUS(qbus);", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);", "int VAR_2, VAR_3;", "if (!k->set_host_notifier) {", "fprintf(stderr, \"binding does ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [...
22,661
static int multiwrite_f(BlockDriverState *bs, int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char **buf; int64_t offset, first_offset = 0; /* Some compilers get confused and warn if this is not initialized. */ int total = 0; int nr_iov; ...
true
qemu
02c4f26b1517d9e403ec10d6f6ca3c0276d19e43
static int multiwrite_f(BlockDriverState *bs, int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char **buf; int64_t offset, first_offset = 0; int total = 0; int nr_iov; int nr_reqs; int pattern = 0xcd; QEMUIOVector *qiovs; ...
{ "code": [ " reqs = g_malloc0(nr_reqs * sizeof(*reqs));", " buf = g_malloc0(nr_reqs * sizeof(*buf));", " qiovs = g_malloc(nr_reqs * sizeof(*qiovs));" ], "line_no": [ 93, 95, 97 ] }
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2) { struct timeval VAR_3, VAR_4; int VAR_5 = 0, VAR_6 = 0; int VAR_7, VAR_8; char **VAR_9; int64_t offset, first_offset = 0; int VAR_10 = 0; int VAR_11; int VAR_12; int VAR_13 = 0xcd; QEMUIOVector ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2)\n{", "struct timeval VAR_3, VAR_4;", "int VAR_5 = 0, VAR_6 = 0;", "int VAR_7, VAR_8;", "char **VAR_9;", "int64_t offset, first_offset = 0;", "int VAR_10 = 0;", "int VAR_11;", "int VAR_12;", "int VAR_13 = 0xcd;", "QEMUIOVector *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
22,663
static void check_consistency(FFFrameQueue *fq) { #if ASSERT_LEVEL >= 2 uint64_t nb_samples = 0; size_t i; av_assert0(fq->queued == fq->total_frames_head - fq->total_frames_tail); for (i = 0; i < fq->queued; i++) nb_samples += bucket(fq, i)->frame->nb_samples; av_assert0(nb_samples...
false
FFmpeg
e1b8271949d3b70e820b8e08c542ad1586c96f9d
static void check_consistency(FFFrameQueue *fq) { #if ASSERT_LEVEL >= 2 uint64_t nb_samples = 0; size_t i; av_assert0(fq->queued == fq->total_frames_head - fq->total_frames_tail); for (i = 0; i < fq->queued; i++) nb_samples += bucket(fq, i)->frame->nb_samples; av_assert0(nb_samples...
{ "code": [], "line_no": [] }
static void FUNC_0(FFFrameQueue *VAR_0) { #if ASSERT_LEVEL >= 2 uint64_t nb_samples = 0; size_t i; av_assert0(VAR_0->queued == VAR_0->total_frames_head - VAR_0->total_frames_tail); for (i = 0; i < VAR_0->queued; i++) nb_samples += bucket(VAR_0, i)->frame->nb_samples; av_assert0(nb_...
[ "static void FUNC_0(FFFrameQueue *VAR_0)\n{", "#if ASSERT_LEVEL >= 2\nuint64_t nb_samples = 0;", "size_t i;", "av_assert0(VAR_0->queued == VAR_0->total_frames_head - VAR_0->total_frames_tail);", "for (i = 0; i < VAR_0->queued; i++)", "nb_samples += bucket(VAR_0, i)->frame->nb_samples;", "av_assert0(nb_s...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ] ]
22,665
void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, int log2_trafo_size, int slice_or_tiles_up_boundary, int slice_or_tiles_left_boundary) { MvField *tab_mvf ...
false
FFmpeg
65b8b6c476454d201348737527a1d9471f689278
void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, int log2_trafo_size, int slice_or_tiles_up_boundary, int slice_or_tiles_left_boundary) { MvField *tab_mvf ...
{ "code": [], "line_no": [] }
void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { MvField *tab_mvf = VAR_0->ref->tab_mvf; int VAR_6 = VAR_0->sps->VAR_6; int VAR_...
[ "void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3,\nint VAR_4,\nint VAR_5)\n{", "MvField *tab_mvf = VAR_0->ref->tab_mvf;", "int VAR_6 = VAR_0->sps->VAR_6;", "int VAR_7 = VAR_0->sps->log2_min_tb_size;", "int VAR_8 = VAR_0->sps->VAR_8;", "int VAR_9 = VAR_0->sps->min_tb_width;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,667
static void mips_cps_realize(DeviceState *dev, Error **errp) { MIPSCPSState *s = MIPS_CPS(dev); CPUMIPSState *env; MIPSCPU *cpu; int i; Error *err = NULL; target_ulong gcr_base; bool itu_present = false; for (i = 0; i < s->num_vp; i++) { cpu = cpu_mips_init(s->cpu_mod...
true
qemu
4482e05cbbb7e50e476f6a9500cf0b38913bd939
static void mips_cps_realize(DeviceState *dev, Error **errp) { MIPSCPSState *s = MIPS_CPS(dev); CPUMIPSState *env; MIPSCPU *cpu; int i; Error *err = NULL; target_ulong gcr_base; bool itu_present = false; for (i = 0; i < s->num_vp; i++) { cpu = cpu_mips_init(s->cpu_mod...
{ "code": [ " if (cpu == NULL) {", " error_setg(errp, \"%s: CPU initialization failed\", __func__);", " if (cpu == NULL) {", " if (cpu == NULL) {", " if (cpu == NULL) {", " if (cpu == NULL) {", " if (cpu == NULL) {", " if (cp...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { MIPSCPSState *s = MIPS_CPS(VAR_0); CPUMIPSState *env; MIPSCPU *cpu; int VAR_2; Error *err = NULL; target_ulong gcr_base; bool itu_present = false; for (VAR_2 = 0; VAR_2 < s->num_vp; VAR_2++) { cpu = cpu_mips_init...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "MIPSCPSState *s = MIPS_CPS(VAR_0);", "CPUMIPSState *env;", "MIPSCPU *cpu;", "int VAR_2;", "Error *err = NULL;", "target_ulong gcr_base;", "bool itu_present = false;", "for (VAR_2 = 0; VAR_2 < s->num_vp; VAR_2++) {", "cpu = cpu_mips_init(...
[ 0, 0, 0, 0, 0, 1, 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, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
22,668
static void load_symbols(struct elfhdr *hdr, int fd, abi_ulong load_bias) { int i, shnum, nsyms, sym_idx = 0, str_idx = 0; struct elf_shdr *shdr; char *strings = NULL; struct syminfo *s = NULL; struct elf_sym *new_syms, *syms = NULL; shnum = hdr->e_shnum; i = shnum * sizeof(struct ...
true
qemu
1e06262da615fcc0ddd658f96c5673a73b856fb6
static void load_symbols(struct elfhdr *hdr, int fd, abi_ulong load_bias) { int i, shnum, nsyms, sym_idx = 0, str_idx = 0; struct elf_shdr *shdr; char *strings = NULL; struct syminfo *s = NULL; struct elf_sym *new_syms, *syms = NULL; shnum = hdr->e_shnum; i = shnum * sizeof(struct ...
{ "code": [ " i = shdr[str_idx].sh_size;", " s->disas_strtab = strings = g_try_malloc(i);", " if (!strings || pread(fd, strings, i, shdr[str_idx].sh_offset) != i) {", " i = shdr[sym_idx].sh_size;", " syms = g_try_malloc(i);", " if (!syms || pread(fd, syms, i, shdr[sym_idx].sh...
static void FUNC_0(struct elfhdr *VAR_0, int VAR_1, abi_ulong VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0; struct elf_shdr *VAR_8; char *VAR_9 = NULL; struct syminfo *VAR_10 = NULL; struct elf_sym *VAR_11, *VAR_12 = NULL; VAR_4 = VAR_0->e_shnum; VAR_3 = VAR_4 * sizeof(st...
[ "static void FUNC_0(struct elfhdr *VAR_0, int VAR_1, abi_ulong VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0;", "struct elf_shdr *VAR_8;", "char *VAR_9 = NULL;", "struct syminfo *VAR_10 = NULL;", "struct elf_sym *VAR_11, *VAR_12 = NULL;", "VAR_4 = VAR_0->e_shnum;", "VAR_3 = VAR_4 * sizeof...
[ 0, 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, 1, 1, 0, 0, 1, 1, 1, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
22,669
static void qvirtio_pci_set_queue_address(QVirtioDevice *d, uint32_t pfn) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; qpci_io_writel(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_PFN, pfn); }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void qvirtio_pci_set_queue_address(QVirtioDevice *d, uint32_t pfn) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; qpci_io_writel(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_PFN, pfn); }
{ "code": [ " qpci_io_writel(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_PFN, pfn);" ], "line_no": [ 7 ] }
static void FUNC_0(QVirtioDevice *VAR_0, uint32_t VAR_1) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0; qpci_io_writel(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_PFN, VAR_1); }
[ "static void FUNC_0(QVirtioDevice *VAR_0, uint32_t VAR_1)\n{", "QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0;", "qpci_io_writel(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_PFN, VAR_1);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,670
static int swf_write_audio(AVFormatContext *s, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG); put_buffer(pb, buf, size); put_swf_end_tag(s); put_flush_packet(&s->pb); return 0; }
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
static int swf_write_audio(AVFormatContext *s, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG); put_buffer(pb, buf, size); put_swf_end_tag(s); put_flush_packet(&s->pb); return 0; }
{ "code": [ " put_swf_end_tag(s);", " put_buffer(pb, buf, size);", " put_swf_end_tag(s);", " put_swf_end_tag(s);", "static int swf_write_audio(AVFormatContext *s, const uint8_t *buf, int size)", " ByteIOContext *pb = &s->pb;", " put_swf_tag(s, TAG_STREAMBLOCK | TAG_LONG);...
static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { ByteIOContext *pb = &VAR_0->pb; put_swf_tag(VAR_0, TAG_STREAMBLOCK | TAG_LONG); put_buffer(pb, VAR_1, VAR_2); put_swf_end_tag(VAR_0); put_flush_packet(&VAR_0->pb); return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "ByteIOContext *pb = &VAR_0->pb;", "put_swf_tag(VAR_0, TAG_STREAMBLOCK | TAG_LONG);", "put_buffer(pb, VAR_1, VAR_2);", "put_swf_end_tag(VAR_0);", "put_flush_packet(&VAR_0->pb);", "return 0;", "}" ]
[ 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,671
static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt, int discard) { AviSynthContext *avs = s->priv_data; AVRational fps, samplerate; int samples; const char* error; if (avs->curr_sample >= avs->vi->num_audio_samples) return AVERROR_EOF; fps.num = avs->vi->f...
true
FFmpeg
ca3cef719e382b0bf44bdee1482ea89bb2d7f245
static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt, int discard) { AviSynthContext *avs = s->priv_data; AVRational fps, samplerate; int samples; const char* error; if (avs->curr_sample >= avs->vi->num_audio_samples) return AVERROR_EOF; fps.num = avs->vi->f...
{ "code": [ " avs_library->avs_get_audio(avs->clip, pkt->data, avs->curr_sample, samples);" ], "line_no": [ 99 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) { AviSynthContext *avs = VAR_0->priv_data; AVRational fps, samplerate; int VAR_3; const char* VAR_4; if (avs->curr_sample >= avs->vi->num_audio_samples) return AVERROR_EOF; fps.num = avs->vi->fps_numerator; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, int VAR_2) {", "AviSynthContext *avs = VAR_0->priv_data;", "AVRational fps, samplerate;", "int VAR_3;", "const char* VAR_4;", "if (avs->curr_sample >= avs->vi->num_audio_samples)\nreturn AVERROR_EOF;", "fps.num = avs->vi->fps_numerator;", "fp...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ...
22,672
static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size, n_slices = 0, i, ret; VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = data; ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size, n_slices = 0, i, ret; VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = data; ...
{ "code": [ " s->current_picture.f.pict_type = s->pict_type;", " s->current_picture.f.key_frame = s->pict_type == AV_PICTURE_TYPE_I;", " if ((ret = av_frame_ref(pict, &s->next_picture_ptr->f)) < 0)", " s->current_picture.f.pict_type = s->pict_type;", " s->current_picture.f.k...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->VAR_16, VAR_6 = 0, VAR_7, VAR_8; VC1Context *v = VAR_0->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = VAR_1; ui...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_16, VAR_6 = 0, VAR_7, VAR_8;", "VC1Context *v = VAR_0->priv_data;", "MpegEncContext *s = &v->s;", "AVFrame *pict = VAR_1;", "uint8_t *buf2 = NULL;", ...
[ 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, 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 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ...
22,673
altivec_yuv2packedX (SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int i,j; short tmp __attribute__((aligned (16))); int16_t *p; short *f; vector signed s...
false
FFmpeg
be9d060d0c4f7e548bdb6ce96789b22bfd09a704
altivec_yuv2packedX (SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int i,j; short tmp __attribute__((aligned (16))); int16_t *p; short *f; vector signed s...
{ "code": [], "line_no": [] }
FUNC_0 (SwsContext *VAR_0, int16_t *VAR_1, int16_t **VAR_2, int VAR_3, int16_t *VAR_4, int16_t **VAR_5, int VAR_6, uint8_t *VAR_7, int VAR_8, int VAR_9) { int VAR_10,VAR_11; short VAR_12 __attribute__((aligned (16))); int16_t *p; short *VAR_13; vector signed short X,X0,X1,Y...
[ "FUNC_0 (SwsContext *VAR_0,\nint16_t *VAR_1, int16_t **VAR_2, int VAR_3,\nint16_t *VAR_4, int16_t **VAR_5, int VAR_6,\nuint8_t *VAR_7, int VAR_8, int VAR_9)\n{", "int VAR_10,VAR_11;", "short VAR_12 __attribute__((aligned (16)));", "int16_t *p;", "short *VAR_13;", "vector signed short X,X0,X1,Y0,U0,V0,Y1,U...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
22,674
static av_cold int vaapi_encode_h265_init_fixed_qp(AVCodecContext *avctx) { VAAPIEncodeContext *ctx = avctx->priv_data; VAAPIEncodeH265Context *priv = ctx->priv_data; VAAPIEncodeH265Options *opt = ctx->codec_options; priv->fixed_qp_p = opt->qp; if (avctx->i_quant_factor > 0.0) ...
false
FFmpeg
80a5d05108cb218e8cd2e25c6621a3bfef0a832e
static av_cold int vaapi_encode_h265_init_fixed_qp(AVCodecContext *avctx) { VAAPIEncodeContext *ctx = avctx->priv_data; VAAPIEncodeH265Context *priv = ctx->priv_data; VAAPIEncodeH265Options *opt = ctx->codec_options; priv->fixed_qp_p = opt->qp; if (avctx->i_quant_factor > 0.0) ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VAAPIEncodeContext *ctx = avctx->priv_data; VAAPIEncodeH265Context *priv = ctx->priv_data; VAAPIEncodeH265Options *opt = ctx->codec_options; priv->fixed_qp_p = opt->qp; if (avctx->i_quant_factor > 0.0) priv->fixed_qp_idr = (in...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VAAPIEncodeContext *ctx = avctx->priv_data;", "VAAPIEncodeH265Context *priv = ctx->priv_data;", "VAAPIEncodeH265Options *opt = ctx->codec_options;", "priv->fixed_qp_p = opt->qp;", "if (avctx->i_quant_factor > 0.0)\npriv->fixed_qp_idr = (int)((p...
[ 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 ], [ 31, 33 ], [ 37, 39, 41 ], [ 43 ], [ 45 ] ]
22,675
int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos) { int index, i; uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]...
true
FFmpeg
69ee915e1c628fdf8b270de8c19ff357333e354a
int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos) { int index, i; uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]...
{ "code": [ " ff_fetch_timestamp(s, 0, 0);" ], "line_no": [ 69 ] }
int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5, int64_t VAR_6, int64_t VAR_7, int64_t VAR_8) { int VAR_9, VAR_10; uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE]; ...
[ "int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1,\nuint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5,\nint64_t VAR_6, int64_t VAR_7, int64_t VAR_8)\n{", "int VAR_9, VAR_10;", "uint8_t dummy_buf[FF_INPUT_BUFFER_PADDING_SIZE];", "if (!(VAR_0->flags & PARSER_FLAG_FETCHED_OFFSET)) {", ...
[ 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
22,676
static void fill_prefetch_fifo(struct omap_gpmc_s *s) { /* Fill the prefetch FIFO by reading data from NAND. * We do this synchronously, unlike the hardware which * will do this asynchronously. We refill when the * FIFO has THRESHOLD bytes free, and we always refill * as much data as possible st...
true
qemu
89f26e6b7b5e5c9657f2abd6ef5a336bea11add2
static void fill_prefetch_fifo(struct omap_gpmc_s *s) { int fptr; int cs = prefetch_cs(s->prefetch.config1); int is16bit = (((s->cs_file[cs].config[0] >> 12) & 3) != 0); int bytes; bytes = 64 - s->prefetch.fifopointer; if (bytes > s->prefetch.count) { bytes = s-...
{ "code": [], "line_no": [] }
static void FUNC_0(struct omap_gpmc_s *VAR_0) { int VAR_1; int VAR_2 = prefetch_cs(VAR_0->prefetch.config1); int VAR_3 = (((VAR_0->cs_file[VAR_2].config[0] >> 12) & 3) != 0); int VAR_4; VAR_4 = 64 - VAR_0->prefetch.fifopointer; if (VAR_4 > VAR_0->prefetch.count) { ...
[ "static void FUNC_0(struct omap_gpmc_s *VAR_0)\n{", "int VAR_1;", "int VAR_2 = prefetch_cs(VAR_0->prefetch.config1);", "int VAR_3 = (((VAR_0->cs_file[VAR_2].config[0] >> 12) & 3) != 0);", "int VAR_4;", "VAR_4 = 64 - VAR_0->prefetch.fifopointer;", "if (VAR_4 > VAR_0->prefetch.count) {", "VAR_4 = 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 ]
[ [ 1, 2 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 25 ], [ 26 ], [ 27 ], [ 28 ], [ 29 ], [ 30 ], [ 34 ], [ 35 ], [ 36 ], [ 37 ], [ 38 ], [ 39 ], [ 40 ], [ 41 ], [ ...
22,677
av_cold int ff_ac3_encode_init(AVCodecContext *avctx) { AC3EncodeContext *s = avctx->priv_data; int ret, frame_size_58; s->avctx = avctx; s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3; ff_ac3_common_init(); ret = validate_options(s); if (ret) return ret; avctx...
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
av_cold int ff_ac3_encode_init(AVCodecContext *avctx) { AC3EncodeContext *s = avctx->priv_data; int ret, frame_size_58; s->avctx = avctx; s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3; ff_ac3_common_init(); ret = validate_options(s); if (ret) return ret; avctx...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { AC3EncodeContext *s = avctx->priv_data; int VAR_0, VAR_1; s->avctx = avctx; s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3; ff_ac3_common_init(); VAR_0 = validate_options(s); if (VAR_0) return VAR_0; avctx->frame_size...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AC3EncodeContext *s = avctx->priv_data;", "int VAR_0, VAR_1;", "s->avctx = avctx;", "s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3;", "ff_ac3_common_init();", "VAR_0 = validate_options(s);", "if (VAR_0)\nreturn VAR_0;", "avctx->frame_size = AC3_BLOCK_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61...
22,678
static int dirac_unpack_prediction_parameters(DiracContext *s) { static const uint8_t default_blen[] = { 4, 12, 16, 24 }; static const uint8_t default_bsep[] = { 4, 8, 12, 16 }; GetBitContext *gb = &s->gb; unsigned idx, ref; align_get_bits(gb); /* [DIRAC_STD] 11.2.2 Block parameters....
false
FFmpeg
fca712df09b92942ae95753062a43695b051a120
static int dirac_unpack_prediction_parameters(DiracContext *s) { static const uint8_t default_blen[] = { 4, 12, 16, 24 }; static const uint8_t default_bsep[] = { 4, 8, 12, 16 }; GetBitContext *gb = &s->gb; unsigned idx, ref; align_get_bits(gb); idx = svq3_get_ue_golomb(gb...
{ "code": [], "line_no": [] }
static int FUNC_0(DiracContext *VAR_0) { static const uint8_t VAR_1[] = { 4, 12, 16, 24 }; static const uint8_t VAR_2[] = { 4, 8, 12, 16 }; GetBitContext *gb = &VAR_0->gb; unsigned VAR_3, VAR_4; align_get_bits(gb); VAR_3 = svq3_get_ue_golomb(gb); if (VAR_3 > 4) ...
[ "static int FUNC_0(DiracContext *VAR_0)\n{", "static const uint8_t VAR_1[] = { 4, 12, 16, 24 };", "static const uint8_t VAR_2[] = { 4, 8, 12, 16 };", "GetBitContext *gb = &VAR_0->gb;", "unsigned VAR_3, VAR_4;", "align_get_bits(gb);", "VAR_3 = svq3_get_ue_golomb(gb);", "if (VAR_3 > 4)\n{", "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, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], ...
22,679
static inline void xchg_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int xchg){ MpegEncContext * const s = &h->s; int temp8, i; uint64_t temp64; src_y -= linesize + 1; src_cb -= uvlinesize + 1; src_cr -= uvlinesize + 1; #...
true
FFmpeg
d89dc06a96c32e5ccf9d56d7bc8549e84dfbc517
static inline void xchg_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int xchg){ MpegEncContext * const s = &h->s; int temp8, i; uint64_t temp64; src_y -= linesize + 1; src_cb -= uvlinesize + 1; src_cr -= uvlinesize + 1; #...
{ "code": [ " for(i=0; i<17; i++){", " XCHG(h->left_border[i ], src_y [i* linesize], temp8, xchg);", " XCHG(*(uint64_t*)(h->top_border[s->mb_x]+0), *(uint64_t*)(src_y +1), temp64, xchg);", " XCHG(*(uint64_t*)(h->top_border[s->mb_x]+8), *(uint64_t*)(src_y +9), temp64, 1);", " ...
static inline void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, int VAR_5, int VAR_6){ MpegEncContext * const s = &VAR_0->s; int VAR_7, VAR_8; uint64_t temp64; VAR_1 -= VAR_4 + 1; VAR_2 -= VAR_5 + 1; VAR_3 -= VAR_5 + 1; #define XCHG(a,b,t,VA...
[ "static inline void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, int VAR_5, int VAR_6){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_7, VAR_8;", "uint64_t temp64;", "VAR_1 -= VAR_4 + 1;", "VAR_2 -= VAR_5 + 1;", "VAR_3 -= VAR_5 + 1;", "#define XCHG(a,b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
22,680
void vnc_disconnect_finish(VncState *vs) { int i; vnc_jobs_join(vs); /* Wait encoding jobs */ vnc_lock_output(vs); vnc_qmp_event(vs, QAPI_EVENT_VNC_DISCONNECTED); buffer_free(&vs->input); buffer_free(&vs->output); buffer_free(&vs->ws_input); buffer_free(&vs->ws_output); ...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
void vnc_disconnect_finish(VncState *vs) { int i; vnc_jobs_join(vs); vnc_lock_output(vs); vnc_qmp_event(vs, QAPI_EVENT_VNC_DISCONNECTED); buffer_free(&vs->input); buffer_free(&vs->output); buffer_free(&vs->ws_input); buffer_free(&vs->ws_output); qapi_free_VncClient...
{ "code": [ "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", " vnc_tls_client_cleanup(vs);", "#...
void FUNC_0(VncState *VAR_0) { int VAR_1; vnc_jobs_join(VAR_0); vnc_lock_output(VAR_0); vnc_qmp_event(VAR_0, QAPI_EVENT_VNC_DISCONNECTED); buffer_free(&VAR_0->input); buffer_free(&VAR_0->output); buffer_free(&VAR_0->ws_input); buffer_free(&VAR_0->ws_output); qapi_f...
[ "void FUNC_0(VncState *VAR_0)\n{", "int VAR_1;", "vnc_jobs_join(VAR_0);", "vnc_lock_output(VAR_0);", "vnc_qmp_event(VAR_0, QAPI_EVENT_VNC_DISCONNECTED);", "buffer_free(&VAR_0->input);", "buffer_free(&VAR_0->output);", "buffer_free(&VAR_0->ws_input);", "buffer_free(&VAR_0->ws_output);", "qapi_free_...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45, 47, 49 ], [ 51, 53 ], [ 55 ], [ 59...
22,681
static int get_whole_cluster(BlockDriverState *bs, uint64_t cluster_offset, uint64_t offset, int allocate) { uint64_t parent_cluster_offset; BDRVVmdkState *s = bs->opaque; uint8_t whole_grain[s->cluster_sectors*512]; // 128 sectors * 512 bytes each = grain size 64KB...
true
qemu
630530a6529bc3da9ab8aead7053dc753cb9ac77
static int get_whole_cluster(BlockDriverState *bs, uint64_t cluster_offset, uint64_t offset, int allocate) { uint64_t parent_cluster_offset; BDRVVmdkState *s = bs->opaque; uint8_t whole_grain[s->cluster_sectors*512]; if (s->hd->backing_hd) { ...
{ "code": [ " parent_cluster_offset = get_cluster_offset(s->hd->backing_hd, offset, allocate);", " if (bdrv_pread(ps->hd, parent_cluster_offset, whole_grain, ps->cluster_sectors*512) != ", " ps->cluster_sectors*512)",...
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, int VAR_3) { uint64_t parent_cluster_offset; BDRVVmdkState *s = VAR_0->opaque; uint8_t whole_grain[s->cluster_sectors*512]; if (s->hd->backing_hd) { BDRVVmdkState...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t VAR_2, int VAR_3)\n{", "uint64_t parent_cluster_offset;", "BDRVVmdkState *s = VAR_0->opaque;", "uint8_t whole_grain[s->cluster_sectors*512];", "if (s->hd->backing_hd) {", "BDRVVmdkState *ps = s->hd->backing_hd->opaque;", "if (!vmdk_i...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ] ]
22,682
static int curl_open(BlockDriverState *bs, QDict *options, int flags) { BDRVCURLState *s = bs->opaque; CURLState *state = NULL; QemuOpts *opts; Error *local_err = NULL; const char *file; double d; static int inited = 0; if (flags & BDRV_O_RDWR) { qerror_report(ERROR...
true
qemu
3494d650273e619606c6cb2c38aa9b8b7bed98e2
static int curl_open(BlockDriverState *bs, QDict *options, int flags) { BDRVCURLState *s = bs->opaque; CURLState *state = NULL; QemuOpts *opts; Error *local_err = NULL; const char *file; double d; static int inited = 0; if (flags & BDRV_O_RDWR) { qerror_report(ERROR...
{ "code": [ " curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_size_cb);" ], "line_no": [ 107 ] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2) { BDRVCURLState *s = VAR_0->opaque; CURLState *state = NULL; QemuOpts *opts; Error *local_err = NULL; const char *VAR_3; double VAR_4; static int VAR_5 = 0; if (VAR_2 & BDRV_O_RDWR) { qerror_report(...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2)\n{", "BDRVCURLState *s = VAR_0->opaque;", "CURLState *state = NULL;", "QemuOpts *opts;", "Error *local_err = NULL;", "const char *VAR_3;", "double VAR_4;", "static int VAR_5 = 0;", "if (VAR_2 & BDRV_O_RDWR) {", "qerror_report(ERR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
22,684
static int do_subchannel_work(SubchDev *sch) { if (!sch->do_subchannel_work) { return -EINVAL; } g_assert(sch->curr_status.scsw.ctrl & SCSW_CTRL_MASK_FCTL); return sch->do_subchannel_work(sch); }
true
qemu
66dc50f7057b9a0191f54e55764412202306858d
static int do_subchannel_work(SubchDev *sch) { if (!sch->do_subchannel_work) { return -EINVAL; } g_assert(sch->curr_status.scsw.ctrl & SCSW_CTRL_MASK_FCTL); return sch->do_subchannel_work(sch); }
{ "code": [ " return -EINVAL;", "static int do_subchannel_work(SubchDev *sch)", " return -EINVAL;" ], "line_no": [ 7, 1, 7 ] }
static int FUNC_0(SubchDev *VAR_0) { if (!VAR_0->FUNC_0) { return -EINVAL; } g_assert(VAR_0->curr_status.scsw.ctrl & SCSW_CTRL_MASK_FCTL); return VAR_0->FUNC_0(VAR_0); }
[ "static int FUNC_0(SubchDev *VAR_0)\n{", "if (!VAR_0->FUNC_0) {", "return -EINVAL;", "}", "g_assert(VAR_0->curr_status.scsw.ctrl & SCSW_CTRL_MASK_FCTL);", "return VAR_0->FUNC_0(VAR_0);", "}" ]
[ 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
22,685
void ff_free_stream(AVFormatContext *s, AVStream *st){ av_assert0(s->nb_streams>0); av_assert0(s->streams[ s->nb_streams-1 ] == st); if (st->codec) { avcodec_close(st->codec); } if (st->parser) { av_parser_close(st->parser); } if (st->attached_pic.data) av...
true
FFmpeg
37ecd67b5e149e55d71b1d8950abc5476d56999a
void ff_free_stream(AVFormatContext *s, AVStream *st){ av_assert0(s->nb_streams>0); av_assert0(s->streams[ s->nb_streams-1 ] == st); if (st->codec) { avcodec_close(st->codec); } if (st->parser) { av_parser_close(st->parser); } if (st->attached_pic.data) av...
{ "code": [ " if (st->codec) {", " avcodec_close(st->codec);" ], "line_no": [ 9, 11 ] }
void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1){ av_assert0(VAR_0->nb_streams>0); av_assert0(VAR_0->streams[ VAR_0->nb_streams-1 ] == VAR_1); if (VAR_1->codec) { avcodec_close(VAR_1->codec); } if (VAR_1->parser) { av_parser_close(VAR_1->parser); } if (VAR_1->a...
[ "void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1){", "av_assert0(VAR_0->nb_streams>0);", "av_assert0(VAR_0->streams[ VAR_0->nb_streams-1 ] == VAR_1);", "if (VAR_1->codec) {", "avcodec_close(VAR_1->codec);", "}", "if (VAR_1->parser) {", "av_parser_close(VAR_1->parser);", "}", "if (VAR_1->attach...
[ 0, 0, 0, 1, 1, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], ...
22,686
void visit_type_uint8(Visitor *v, uint8_t *obj, const char *name, Error **errp) { int64_t value; if (!error_is_set(errp)) { if (v->type_uint8) { v->type_uint8(v, obj, name, errp); } else { value = *obj; v->type_int(v, &value, name, errp); ...
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
void visit_type_uint8(Visitor *v, uint8_t *obj, const char *name, Error **errp) { int64_t value; if (!error_is_set(errp)) { if (v->type_uint8) { v->type_uint8(v, obj, name, errp); } else { value = *obj; v->type_int(v, &value, name, errp); ...
{ "code": [ " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (v->type_uint8) {", " v->type_uint8(v, obj, nam...
void FUNC_0(Visitor *VAR_0, uint8_t *VAR_1, const char *VAR_2, Error **VAR_3) { int64_t value; if (!error_is_set(VAR_3)) { if (VAR_0->type_uint8) { VAR_0->type_uint8(VAR_0, VAR_1, VAR_2, VAR_3); } else { value = *VAR_1; VAR_0->type_int(VAR_0, &value, V...
[ "void FUNC_0(Visitor *VAR_0, uint8_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "int64_t value;", "if (!error_is_set(VAR_3)) {", "if (VAR_0->type_uint8) {", "VAR_0->type_uint8(VAR_0, VAR_1, VAR_2, VAR_3);", "} else {", "value = *VAR_1;", "VAR_0->type_int(VAR_0, &value, VAR_2, VAR_3);", "if (valu...
[ 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
22,687
static struct omap_uwire_s *omap_uwire_init(MemoryRegion *system_memory, hwaddr base, qemu_irq txirq, qemu_irq rxirq, qemu_irq dma, omap_clk...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
static struct omap_uwire_s *omap_uwire_init(MemoryRegion *system_memory, hwaddr base, qemu_irq txirq, qemu_irq rxirq, qemu_irq dma, omap_clk...
{ "code": [ " struct omap_uwire_s *s = (struct omap_uwire_s *)", " g_malloc0(sizeof(struct omap_uwire_s));" ], "line_no": [ 13, 15 ] }
static struct omap_uwire_s *FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, qemu_irq VAR_2, qemu_irq VAR_3, qemu_irq VAR_4, omap_clk VAR_5) { ...
[ "static struct omap_uwire_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3,\nqemu_irq VAR_4,\nomap_clk VAR_5)\n{", "struct omap_uwire_s *VAR_6 = (struct omap_uwire_s *)\ng_malloc0(sizeof(struct omap_uwire_s));", "VAR_6->VAR_2 = VAR_2;", "VAR_6->VAR_3 = VAR_3;", "VAR_6->txdrq = V...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
22,689
ImgReSampleContext *img_resample_full_init(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { ImgReSamp...
true
FFmpeg
d10dc61682b057d6f3a59aa23353e4f155f16d11
ImgReSampleContext *img_resample_full_init(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { ImgReSamp...
{ "code": [], "line_no": [] }
ImgReSampleContext *FUNC_0(int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright) { ImgReSampleContext *s; ...
[ "ImgReSampleContext *FUNC_0(int owidth, int oheight,\nint iwidth, int iheight,\nint topBand, int bottomBand,\nint leftBand, int rightBand,\nint padtop, int padbottom,\nint padleft, int padright)\n{", "ImgReSampleContext *s;", "s = av_mallocz(sizeof(ImgReSampleContext));", "if (!s)\nif((unsigned)owidth >= UINT...
[ 0, 0, 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 ], [ 25 ],...
22,690
static void FUNCC(pred8x16_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int i; for(i=0; i<4; i++) FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*sizeof(pixel), stride); for(i=4; i<8; i++...
false
FFmpeg
1acd7d594c15aa491729c837ad3519d3469e620a
static void FUNCC(pred8x16_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int i; for(i=0; i<4; i++) FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*sizeof(pixel), stride); for(i=4; i<8; i++...
{ "code": [], "line_no": [] }
static void FUNC_0(pred8x16_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int VAR_0; for(VAR_0=0; VAR_0<4; VAR_0++) FUNC_0(pred4x4_vertical_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), strid...
[ "static void FUNC_0(pred8x16_vertical_add)(uint8_t *pix, const int *block_offset,\nconst int16_t *block, ptrdiff_t stride)\n{", "int VAR_0;", "for(VAR_0=0; VAR_0<4; VAR_0++)", "FUNC_0(pred4x4_vertical_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride);", "for(VAR_0=4; VAR_0<8; VAR_0++)"...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
22,691
hwaddr mips_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { MIPSCPU *cpu = MIPS_CPU(cs); hwaddr phys_addr; int prot; if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, 0, ACCESS_INT) != 0) { return -1; } return phys_addr; }
true
qemu
9fbf4a58c90183b30bb2c8ad971ccce7e6716a16
hwaddr mips_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { MIPSCPU *cpu = MIPS_CPU(cs); hwaddr phys_addr; int prot; if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, 0, ACCESS_INT) != 0) { return -1; } return phys_addr; }
{ "code": [ " if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, 0,", " ACCESS_INT) != 0) {" ], "line_no": [ 13, 15 ] }
hwaddr FUNC_0(CPUState *cs, vaddr addr) { MIPSCPU *cpu = MIPS_CPU(cs); hwaddr phys_addr; int VAR_0; if (get_physical_address(&cpu->env, &phys_addr, &VAR_0, addr, 0, ACCESS_INT) != 0) { return -1; } return phys_addr; }
[ "hwaddr FUNC_0(CPUState *cs, vaddr addr)\n{", "MIPSCPU *cpu = MIPS_CPU(cs);", "hwaddr phys_addr;", "int VAR_0;", "if (get_physical_address(&cpu->env, &phys_addr, &VAR_0, addr, 0,\nACCESS_INT) != 0) {", "return -1;", "}", "return phys_addr;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,692
qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2) { qemu_irq *s = g_malloc0(2 * sizeof(qemu_irq)); s[0] = irq1; s[1] = irq2; return qemu_allocate_irqs(qemu_splitirq, s, 1)[0]; }
true
qemu
f3c7d0389fe8a2792fd4c1cf151b885de03c8f62
qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2) { qemu_irq *s = g_malloc0(2 * sizeof(qemu_irq)); s[0] = irq1; s[1] = irq2; return qemu_allocate_irqs(qemu_splitirq, s, 1)[0]; }
{ "code": [ " return qemu_allocate_irqs(qemu_splitirq, s, 1)[0];" ], "line_no": [ 11 ] }
qemu_irq FUNC_0(qemu_irq irq1, qemu_irq irq2) { qemu_irq *s = g_malloc0(2 * sizeof(qemu_irq)); s[0] = irq1; s[1] = irq2; return qemu_allocate_irqs(qemu_splitirq, s, 1)[0]; }
[ "qemu_irq FUNC_0(qemu_irq irq1, qemu_irq irq2)\n{", "qemu_irq *s = g_malloc0(2 * sizeof(qemu_irq));", "s[0] = irq1;", "s[1] = irq2;", "return qemu_allocate_irqs(qemu_splitirq, s, 1)[0];", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
22,694
static int cmv_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CmvContext *s = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; if (AV_RL...
true
FFmpeg
46cb2f6a2928a7fa4bee3f09b0475ccb8cdd2064
static int cmv_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CmvContext *s = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; if (AV_RL...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; CmvContext *s = VAR_0->priv_data; const uint8_t *VAR_6 = VAR_4 + VAR_5; if (AV_RL32(VAR_4)==MVIh_...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "CmvContext *s = VAR_0->priv_data;", "const uint8_t *VAR_6 = VAR_4 + VAR_5;", "if (AV_RL32(VAR_4)==MVIh_TAG||AV_RB32(VAR_4)==MVIh_TAG) {", "cmv_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 24 ],...
22,695
static void save_display_set(DVBSubContext *ctx) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int x_pos, y_pos, width, height; int x, y, y_off, x_off; uint32_t *pbuf; char filename[32]; static int fileno_index = 0; x_p...
false
FFmpeg
e1c48b7aaedc5deb6f22ced02dfe4f356bf3f421
static void save_display_set(DVBSubContext *ctx) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int x_pos, y_pos, width, height; int x, y, y_off, x_off; uint32_t *pbuf; char filename[32]; static int fileno_index = 0; x_p...
{ "code": [], "line_no": [] }
static void FUNC_0(DVBSubContext *VAR_0) { DVBSubRegion *region; DVBSubRegionDisplay *display; DVBSubCLUT *clut; uint32_t *clut_table; int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8; uint32_t *pbuf; char VAR_9[32]; static int VAR_10 = 0; VAR_1 = -1; ...
[ "static void FUNC_0(DVBSubContext *VAR_0)\n{", "DVBSubRegion *region;", "DVBSubRegionDisplay *display;", "DVBSubCLUT *clut;", "uint32_t *clut_table;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "uint32_t *pbuf;", "char VAR_9[32];", "static int VAR_10 = 0;", "VAR_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, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
22,696
static int fic_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { FICContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; int ret; int slice, nslices; int msize; int tsize; uint8_t *sdata; if ((ret = ff_reget...
false
FFmpeg
6f243b17c537646b894857d43dfdac65f85ab377
static int fic_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { FICContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; int ret; int slice, nslices; int msize; int tsize; uint8_t *sdata; if ((ret = ff_reget...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { FICContext *ctx = VAR_0->priv_data; uint8_t *src = VAR_3->VAR_1; int VAR_4; int VAR_5, VAR_6; int VAR_7; int VAR_8; uint8_t *sdata; if ((VAR_4 = ff_reget_buffer(VA...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "FICContext *ctx = VAR_0->priv_data;", "uint8_t *src = VAR_3->VAR_1;", "int VAR_4;", "int VAR_5, VAR_6;", "int VAR_7;", "int VAR_8;", "uint8_t *sdata;", "if ((VAR_4 = ff_reget_buffer(VAR_0, ctx->frame)) < 0) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 55, 57 ], [...
22,698
static int decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src){ H264Context *h= dst->priv_data, *h1= src->priv_data; MpegEncContext * const s = &h->s, * const s1 = &h1->s; int inited = s->context_initialized, err; int i; if(dst == src || !s1->context_initialized) retu...
false
FFmpeg
05ebe51e00e900bcef7d3e9bcd6b91d4aab34de7
static int decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src){ H264Context *h= dst->priv_data, *h1= src->priv_data; MpegEncContext * const s = &h->s, * const s1 = &h1->s; int inited = s->context_initialized, err; int i; if(dst == src || !s1->context_initialized) retu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1){ H264Context *h= VAR_0->priv_data, *h1= VAR_1->priv_data; MpegEncContext * const s = &h->s, * const s1 = &h1->s; int VAR_2 = s->context_initialized, VAR_3; int VAR_4; if(VAR_0 == VAR_1 || !s1->context_initialized) return 0;...
[ "static int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1){", "H264Context *h= VAR_0->priv_data, *h1= VAR_1->priv_data;", "MpegEncContext * const s = &h->s, * const s1 = &h1->s;", "int VAR_2 = s->context_initialized, VAR_3;", "int VAR_4;", "if(VAR_0 == VAR_1 || !s1->context_initialized) return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
22,700
static int disas_iwmmxt_insn(CPUState *env, DisasContext *s, uint32_t insn) { int rd, wrd; int rdhi, rdlo, rd0, rd1, i; TCGv addr; TCGv tmp, tmp2, tmp3; if ((insn & 0x0e000e00) == 0x0c000000) { if ((insn & 0x0fe00ff0) == 0x0c400000) { wrd = insn & 0xf; rdlo...
true
qemu
d9968827032039d99b38db7ad3598767e1a53bbb
static int disas_iwmmxt_insn(CPUState *env, DisasContext *s, uint32_t insn) { int rd, wrd; int rdhi, rdlo, rd0, rd1, i; TCGv addr; TCGv tmp, tmp2, tmp3; if ((insn & 0x0e000e00) == 0x0c000000) { if ((insn & 0x0fe00ff0) == 0x0c400000) { wrd = insn & 0xf; rdlo...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2) { int VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; TCGv addr; TCGv tmp, tmp2, tmp3; if ((VAR_2 & 0x0e000e00) == 0x0c000000) { if ((VAR_2 & 0x0fe00ff0) == 0x0c400000) { VAR_4 = VAR_2 & 0xf; ...
[ "static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2)\n{", "int VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "TCGv addr;", "TCGv tmp, tmp2, tmp3;", "if ((VAR_2 & 0x0e000e00) == 0x0c000000) {", "if ((VAR_2 & 0x0fe00ff0) == 0x0c400000) {", "VAR_4 = VAR_2 & 0xf;", "VAR_6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
22,701
static void unterminated_dict_comma(void) { QObject *obj = qobject_from_json("{'abc':32,", NULL); g_assert(obj == NULL); }
true
qemu
aec4b054ea36c53c8b887da99f20010133b84378
static void unterminated_dict_comma(void) { QObject *obj = qobject_from_json("{'abc':32,", NULL); g_assert(obj == NULL); }
{ "code": [ " QObject *obj = qobject_from_json(\"{'abc':32,\", NULL);" ], "line_no": [ 5 ] }
static void FUNC_0(void) { QObject *obj = qobject_from_json("{'abc':32,", NULL); g_assert(obj == NULL); }
[ "static void FUNC_0(void)\n{", "QObject *obj = qobject_from_json(\"{'abc':32,\", NULL);", "g_assert(obj == NULL);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,703
static void rtl8139_io_writel(void *opaque, uint8_t addr, uint32_t val) { RTL8139State *s = opaque; addr &= 0xfc; switch (addr) { case RxMissed: DPRINTF("RxMissed clearing on write\n"); s->RxMissed = 0; break; case TxConfig: ...
true
qemu
4abf12f4ea866779b493ecf4606bd0b6d35f8348
static void rtl8139_io_writel(void *opaque, uint8_t addr, uint32_t val) { RTL8139State *s = opaque; addr &= 0xfc; switch (addr) { case RxMissed: DPRINTF("RxMissed clearing on write\n"); s->RxMissed = 0; break; case TxConfig: ...
{ "code": [ " addr &= 0xfc;" ], "line_no": [ 9 ] }
static void FUNC_0(void *VAR_0, uint8_t VAR_1, uint32_t VAR_2) { RTL8139State *s = VAR_0; VAR_1 &= 0xfc; switch (VAR_1) { case RxMissed: DPRINTF("RxMissed clearing on write\n"); s->RxMissed = 0; break; case TxConfig: rtl813...
[ "static void FUNC_0(void *VAR_0, uint8_t VAR_1, uint32_t VAR_2)\n{", "RTL8139State *s = VAR_0;", "VAR_1 &= 0xfc;", "switch (VAR_1)\n{", "case RxMissed:\nDPRINTF(\"RxMissed clearing on write\\n\");", "s->RxMissed = 0;", "break;", "case TxConfig:\nrtl8139_TxConfig_write(s, VAR_2);", "break;", "case ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [ 59, 61 ], ...
22,704
static int dvvideo_close(AVCodecContext *c) { DVVideoContext *s = c->priv_data; av_free(s->dv_anchor); return 0; }
true
FFmpeg
aa06658248a49f6ebf381894b9426cdfb377cd32
static int dvvideo_close(AVCodecContext *c) { DVVideoContext *s = c->priv_data; av_free(s->dv_anchor); return 0; }
{ "code": [ " DVVideoContext *s = c->priv_data;", " av_free(s->dv_anchor);" ], "line_no": [ 5, 9 ] }
static int FUNC_0(AVCodecContext *VAR_0) { DVVideoContext *s = VAR_0->priv_data; av_free(s->dv_anchor); return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "DVVideoContext *s = VAR_0->priv_data;", "av_free(s->dv_anchor);", "return 0;", "}" ]
[ 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ] ]
22,706
udp_attach(struct socket *so) { if((so->s = socket(AF_INET,SOCK_DGRAM,0)) != -1) { so->so_expire = curtime + SO_EXPIRE; insque(so, &so->slirp->udb); } return(so->s); }
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
udp_attach(struct socket *so) { if((so->s = socket(AF_INET,SOCK_DGRAM,0)) != -1) { so->so_expire = curtime + SO_EXPIRE; insque(so, &so->slirp->udb); } return(so->s); }
{ "code": [ " if((so->s = socket(AF_INET,SOCK_DGRAM,0)) != -1) {" ], "line_no": [ 5 ] }
FUNC_0(struct socket *VAR_0) { if((VAR_0->s = socket(AF_INET,SOCK_DGRAM,0)) != -1) { VAR_0->so_expire = curtime + SO_EXPIRE; insque(VAR_0, &VAR_0->slirp->udb); } return(VAR_0->s); }
[ "FUNC_0(struct socket *VAR_0)\n{", "if((VAR_0->s = socket(AF_INET,SOCK_DGRAM,0)) != -1) {", "VAR_0->so_expire = curtime + SO_EXPIRE;", "insque(VAR_0, &VAR_0->slirp->udb);", "}", "return(VAR_0->s);", "}" ]
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
22,707
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->out...
true
FFmpeg
e4eebc2da9da886e1bdf87d29e9a4c5b55111036
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->out...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int VAR_2 = VAR_1->audio->VAR_2; AVFilterBufferRef *outpicref = showwaves->outpicref; int VAR_3 = o...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AVFilterLink *outlink = ctx->outputs[0];", "ShowWavesContext *showwaves = ctx->priv;", "const int VAR_2 = VAR_1->audio->VAR_2;", "AVFilterBufferRef *outpicref = showwaves->outpicref;", "int 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
22,708
rgb16_32ToUV_half_c_template(uint8_t *dstU, uint8_t *dstV, const uint8_t *src, int width, enum PixelFormat origin, int shr, int shg, int shb, int shp, int maskr, int maskg, int maskb, ...
true
FFmpeg
4391805916a1557278351f25428d0145b1073520
rgb16_32ToUV_half_c_template(uint8_t *dstU, uint8_t *dstV, const uint8_t *src, int width, enum PixelFormat origin, int shr, int shg, int shb, int shp, int maskr, int maskg, int maskb, ...
{ "code": [ " rv = RV << rsh, gv = GV << gsh, bv = BV << bsh,", " rnd = 257 << S, maskgx = ~(maskr | maskb);" ], "line_no": [ 17, 19 ] }
FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3, enum PixelFormat VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, int VAR_11, ...
[ "FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nenum PixelFormat VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8,\nint VAR_9, int VAR_10, int VAR_11,\nint VAR_12, int VAR_13, int VAR_14, int VAR_15)\n{", "const int VAR_16 = RU << VAR_12, VAR_17 = GU << VAR_13, VAR_18 = BU << ...
[ 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, 13 ], [ 15, 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
22,711
__org_qemu_x_Union1 *qmp___org_qemu_x_command(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, ...
true
qemu
c43567c12042cf401b039bfc94a5f85e1cc1e796
__org_qemu_x_Union1 *qmp___org_qemu_x_command(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, ...
{ "code": [], "line_no": [] }
__org_qemu_x_Union1 *FUNC_0(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, Error...
[ "__org_qemu_x_Union1 *FUNC_0(__org_qemu_x_EnumList *a,\n__org_qemu_x_StructList *b,\n__org_qemu_x_Union2 *c,\n__org_qemu_x_Alt *d,\nError **errp)\n{", "__org_qemu_x_Union1 *ret = g_new0(__org_qemu_x_Union1, 1);", "ret->type = ORG_QEMU_X_UNION1_KIND___ORG_QEMU_X_BRANCH;", "ret->u.__org_qemu_x_branch = strdup(\...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 27 ] ]
22,712
static int64_t realloc_refcount_block(BlockDriverState *bs, int reftable_index, uint64_t offset) { BDRVQcowState *s = bs->opaque; int64_t new_offset = 0; void *refcount_block = NULL; int ret; /* allocate new refcount block */ new_offset = qcow2_all...
true
qemu
a134d90f50806597c5da4fd191352fe62d40f71a
static int64_t realloc_refcount_block(BlockDriverState *bs, int reftable_index, uint64_t offset) { BDRVQcowState *s = bs->opaque; int64_t new_offset = 0; void *refcount_block = NULL; int ret; new_offset = qcow2_alloc_clusters(bs, s->cluster_size);...
{ "code": [ " goto fail;", " goto fail;", " new_offset = 0;", " goto fail;", " goto fail;", " goto fail;", "fail:", " if (new_offset && (ret < 0)) {", " qcow2_free_clusters(bs, new_offset, s->cluster_size,", " Q...
static int64_t FUNC_0(BlockDriverState *bs, int reftable_index, uint64_t offset) { BDRVQcowState *s = bs->opaque; int64_t new_offset = 0; void *VAR_0 = NULL; int VAR_1; new_offset = qcow2_alloc_clusters(bs, s->cluster_size); if (new_offset < ...
[ "static int64_t FUNC_0(BlockDriverState *bs, int reftable_index,\nuint64_t offset)\n{", "BDRVQcowState *s = bs->opaque;", "int64_t new_offset = 0;", "void *VAR_0 = NULL;", "int VAR_1;", "new_offset = qcow2_alloc_clusters(bs, s->cluster_size);", "if (new_offset < 0) {", "fprintf(stderr, \"Could not all...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [ 57 ...
22,713
static ssize_t imx_enet_receive(NetClientState *nc, const uint8_t *buf, size_t len) { IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc)); IMXENETBufDesc bd; uint32_t flags = 0; uint32_t addr; uint32_t crc; uint32_t buf_addr; uint8_t *crc_ptr; unsi...
true
qemu
b2b012afdd9c03ba8a1619f45301d34f358d367b
static ssize_t imx_enet_receive(NetClientState *nc, const uint8_t *buf, size_t len) { IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc)); IMXENETBufDesc bd; uint32_t flags = 0; uint32_t addr; uint32_t crc; uint32_t buf_addr; uint8_t *crc_ptr; unsi...
{ "code": [ " imx_eth_enable_rx(s);", " imx_eth_enable_rx(s);" ], "line_no": [ 183, 183 ] }
static ssize_t FUNC_0(NetClientState *nc, const uint8_t *buf, size_t len) { IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc)); IMXENETBufDesc bd; uint32_t flags = 0; uint32_t addr; uint32_t crc; uint32_t buf_addr; uint8_t *crc_ptr; unsigned int V...
[ "static ssize_t FUNC_0(NetClientState *nc, const uint8_t *buf,\nsize_t len)\n{", "IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc));", "IMXENETBufDesc bd;", "uint32_t flags = 0;", "uint32_t addr;", "uint32_t crc;", "uint32_t buf_addr;", "uint8_t *crc_ptr;", "unsigned int VAR_0;", "size_t size = le...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ...
22,714
static void test_machine(gconstpointer data) { const char *machine = data; char *args; QDict *response; args = g_strdup_printf("-machine %s", machine); qtest_start(args); test_properties("/machine"); response = qmp("{ 'execute': 'quit' }"); g_assert(qdict_haskey(response, ...
true
qemu
0380aef323154205a7d838fb9953423621290d41
static void test_machine(gconstpointer data) { const char *machine = data; char *args; QDict *response; args = g_strdup_printf("-machine %s", machine); qtest_start(args); test_properties("/machine"); response = qmp("{ 'execute': 'quit' }"); g_assert(qdict_haskey(response, ...
{ "code": [ " test_properties(\"/machine\");" ], "line_no": [ 19 ] }
static void FUNC_0(gconstpointer VAR_0) { const char *VAR_1 = VAR_0; char *VAR_2; QDict *response; VAR_2 = g_strdup_printf("-VAR_1 %s", VAR_1); qtest_start(VAR_2); test_properties("/VAR_1"); response = qmp("{ 'execute': 'quit' }"); g_assert(qdict_haskey(response, "return")...
[ "static void FUNC_0(gconstpointer VAR_0)\n{", "const char *VAR_1 = VAR_0;", "char *VAR_2;", "QDict *response;", "VAR_2 = g_strdup_printf(\"-VAR_1 %s\", VAR_1);", "qtest_start(VAR_2);", "test_properties(\"/VAR_1\");", "response = qmp(\"{ 'execute': 'quit' }\");", "g_assert(qdict_haskey(response, \"re...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ] ]
22,715
int av_reallocp_array(void *ptr, size_t nmemb, size_t size) { void **ptrptr = ptr; *ptrptr = av_realloc_f(*ptrptr, nmemb, size); if (!*ptrptr && !(nmemb && size)) return AVERROR(ENOMEM); return 0; }
true
FFmpeg
c94f9e854228e0ea00e1de8769d8d3f7cab84a55
int av_reallocp_array(void *ptr, size_t nmemb, size_t size) { void **ptrptr = ptr; *ptrptr = av_realloc_f(*ptrptr, nmemb, size); if (!*ptrptr && !(nmemb && size)) return AVERROR(ENOMEM); return 0; }
{ "code": [ " if (!*ptrptr && !(nmemb && size))" ], "line_no": [ 9 ] }
int FUNC_0(void *VAR_0, size_t VAR_1, size_t VAR_2) { void **VAR_3 = VAR_0; *VAR_3 = av_realloc_f(*VAR_3, VAR_1, VAR_2); if (!*VAR_3 && !(VAR_1 && VAR_2)) return AVERROR(ENOMEM); return 0; }
[ "int FUNC_0(void *VAR_0, size_t VAR_1, size_t VAR_2)\n{", "void **VAR_3 = VAR_0;", "*VAR_3 = av_realloc_f(*VAR_3, VAR_1, VAR_2);", "if (!*VAR_3 && !(VAR_1 && VAR_2))\nreturn AVERROR(ENOMEM);", "return 0;", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
22,716
bool qemu_co_queue_next(CoQueue *queue) { struct unlock_bh *unlock_bh; Coroutine *next; next = QTAILQ_FIRST(&queue->entries); if (next) { QTAILQ_REMOVE(&queue->entries, next, co_queue_next); QTAILQ_INSERT_TAIL(&unlock_bh_queue, next, co_queue_next); trace_qemu_co_queue_...
true
qemu
e680cfa7e20f5049c475ac94f998a79c9997b48d
bool qemu_co_queue_next(CoQueue *queue) { struct unlock_bh *unlock_bh; Coroutine *next; next = QTAILQ_FIRST(&queue->entries); if (next) { QTAILQ_REMOVE(&queue->entries, next, co_queue_next); QTAILQ_INSERT_TAIL(&unlock_bh_queue, next, co_queue_next); trace_qemu_co_queue_...
{ "code": [ " struct unlock_bh *unlock_bh;", " unlock_bh = qemu_malloc(sizeof(*unlock_bh));", " unlock_bh->bh = qemu_bh_new(qemu_co_queue_next_bh, unlock_bh);", " qemu_bh_schedule(unlock_bh->bh);" ], "line_no": [ 5, 23, 25, 27 ] }
bool FUNC_0(CoQueue *queue) { struct VAR_0 *VAR_0; Coroutine *next; next = QTAILQ_FIRST(&queue->entries); if (next) { QTAILQ_REMOVE(&queue->entries, next, co_queue_next); QTAILQ_INSERT_TAIL(&unlock_bh_queue, next, co_queue_next); trace_qemu_co_queue_next(next); ...
[ "bool FUNC_0(CoQueue *queue)\n{", "struct VAR_0 *VAR_0;", "Coroutine *next;", "next = QTAILQ_FIRST(&queue->entries);", "if (next) {", "QTAILQ_REMOVE(&queue->entries, next, co_queue_next);", "QTAILQ_INSERT_TAIL(&unlock_bh_queue, next, co_queue_next);", "trace_qemu_co_queue_next(next);", "VAR_0 = qemu...
[ 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
22,717
static int aac_decode_frame_int(AVCodecContext *avctx, void *data, int *got_frame_ptr, GetBitContext *gb, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType elem_type, che_prev_type = TYPE_END; i...
true
FFmpeg
a5e0dbf530d447f36099aed575b34e9258c5d75a
static int aac_decode_frame_int(AVCodecContext *avctx, void *data, int *got_frame_ptr, GetBitContext *gb, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType elem_type, che_prev_type = TYPE_END; i...
{ "code": [ " push_output_configuration(ac);" ], "line_no": [ 173 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, GetBitContext *VAR_3, AVPacket *VAR_4) { AACContext *ac = VAR_0->priv_data; ChannelElement *che = NULL, *che_prev = NULL; enum RawDataBlockType VAR_5, VAR_6 = TYPE_END; int VAR_7, VAR_8; int VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, GetBitContext *VAR_3, AVPacket *VAR_4)\n{", "AACContext *ac = VAR_0->priv_data;", "ChannelElement *che = NULL, *che_prev = NULL;", "enum RawDataBlockType VAR_5, VAR_6 = TYPE_END;", "int VAR_7, VAR_8;", "int VAR_9 = 0, VAR_10, VAR_11 = 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
22,719
static void spatial_compose97i_dy_buffered(dwt_compose_t *cs, slice_buffer * sb, int width, int height, int stride_line){ int y = cs->y; int mirror0 = mirror(y - 1, height - 1); int mirror1 = mirror(y + 0, height - 1); int mirror2 = mirror(y + 1, height - 1); int mirror3 = mirror(y + 2, heigh...
true
FFmpeg
13705b69ebe9e375fdb52469760a0fbb5f593cc1
static void spatial_compose97i_dy_buffered(dwt_compose_t *cs, slice_buffer * sb, int width, int height, int stride_line){ int y = cs->y; int mirror0 = mirror(y - 1, height - 1); int mirror1 = mirror(y + 0, height - 1); int mirror2 = mirror(y + 1, height - 1); int mirror3 = mirror(y + 2, heigh...
{ "code": [ " if(mirror3 <= mirror5) vertical_compose97iL1(b3, b4, b5, width);", " if(mirror2 <= mirror4) vertical_compose97iH1(b2, b3, b4, width);", " if(mirror1 <= mirror3) vertical_compose97iL0(b1, b2, b3, width);", " if(mirror0 <= mirror2) vertical_compose97iH0(b0, b1, ...
static void FUNC_0(dwt_compose_t *VAR_0, slice_buffer * VAR_1, int VAR_2, int VAR_3, int VAR_4){ int VAR_5 = VAR_0->VAR_5; int VAR_6 = mirror(VAR_5 - 1, VAR_3 - 1); int VAR_7 = mirror(VAR_5 + 0, VAR_3 - 1); int VAR_8 = mirror(VAR_5 + 1, VAR_3 - 1); int VAR_9 = mirror(VAR_5 + 2, VAR_3 - 1); ...
[ "static void FUNC_0(dwt_compose_t *VAR_0, slice_buffer * VAR_1, int VAR_2, int VAR_3, int VAR_4){", "int VAR_5 = VAR_0->VAR_5;", "int VAR_6 = mirror(VAR_5 - 1, VAR_3 - 1);", "int VAR_7 = mirror(VAR_5 + 0, VAR_3 - 1);", "int VAR_8 = mirror(VAR_5 + 1, VAR_3 - 1);", "int VAR_9 = mirror(VAR_5 + 2, VAR_3 - 1);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], ...
22,720
static void read_table(AVFormatContext *avctx, AVStream *st, int (*parse)(AVFormatContext *avctx, AVStream *st, const char *name, int size)) { int count, i; AVIOContext *pb = avctx->pb; avio_skip(pb, 4); count = avio_rb32(pb); avio_s...
true
FFmpeg
f1c21a200bcbc9bbd54fc336016ac16c2e015012
static void read_table(AVFormatContext *avctx, AVStream *st, int (*parse)(AVFormatContext *avctx, AVStream *st, const char *name, int size)) { int count, i; AVIOContext *pb = avctx->pb; avio_skip(pb, 4); count = avio_rb32(pb); avio_s...
{ "code": [ "static void read_table(AVFormatContext *avctx, AVStream *st," ], "line_no": [ 1 ] }
static void FUNC_0(AVFormatContext *VAR_3, AVStream *VAR_3, int (*VAR_2)(AVFormatContext *VAR_3, AVStream *VAR_3, const char *VAR_7, int VAR_7)) { int VAR_5, VAR_6; AVIOContext *pb = VAR_3->pb; avio_skip(pb, 4); VAR_5 = avio_rb32(pb); ...
[ "static void FUNC_0(AVFormatContext *VAR_3, AVStream *VAR_3,\nint (*VAR_2)(AVFormatContext *VAR_3, AVStream *VAR_3,\nconst char *VAR_7, int VAR_7))\n{", "int VAR_5, VAR_6;", "AVIOContext *pb = VAR_3->pb;", "avio_skip(pb, 4);", "VAR_5 = avio_rb32(pb);", "avio_skip(pb, 4);", "for (VAR_6 = 0; VAR_6 < VAR_5...
[ 1, 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,721
static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #if COMPILE_TEMPLATE_MMX __asm__ volatile(PREFET...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #if COMPILE_TEMPLATE_MMX __asm__ volatile(PREFET...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #if COMPILE_TEMPLATE_MMX __asm__ vol...
[ "static inline void FUNC_0(rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "#if COMPILE_TEMPLATE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#if COMPILE_TEMPLATE_MMX\n__asm_...
[ 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, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
22,722
static int avi_extract_stream_metadata(AVFormatContext *s, AVStream *st) { GetByteContext gb; uint8_t *data = st->codecpar->extradata; int data_size = st->codecpar->extradata_size; int tag, offset; if (!data || data_size < 8) { return AVERROR_INVALIDDATA; } bytestream2_i...
false
FFmpeg
ae100046ca32b0b83031a60d0c3cdfc5ceb9f874
static int avi_extract_stream_metadata(AVFormatContext *s, AVStream *st) { GetByteContext gb; uint8_t *data = st->codecpar->extradata; int data_size = st->codecpar->extradata_size; int tag, offset; if (!data || data_size < 8) { return AVERROR_INVALIDDATA; } bytestream2_i...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1) { GetByteContext gb; uint8_t *data = VAR_1->codecpar->extradata; int VAR_2 = VAR_1->codecpar->extradata_size; int VAR_3, VAR_4; if (!data || VAR_2 < 8) { return AVERROR_INVALIDDATA; } bytestream2_init(&gb, data, ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1)\n{", "GetByteContext gb;", "uint8_t *data = VAR_1->codecpar->extradata;", "int VAR_2 = VAR_1->codecpar->extradata_size;", "int VAR_3, VAR_4;", "if (!data || VAR_2 < 8) {", "return AVERROR_INVALIDDATA;", "}", "bytestream2_init(&gb, data, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33, 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57,...
22,723
static void virtio_vmstate_change(void *opaque, int running, RunState state) { VirtIODevice *vdev = opaque; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); bool backend_run = running && (vdev->status & VIRTIO_CONFIG_S_DRIVER_OK); if (runnin...
false
qemu
9e8e8c48653471fa5fed447e388fdef57d4f6998
static void virtio_vmstate_change(void *opaque, int running, RunState state) { VirtIODevice *vdev = opaque; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); bool backend_run = running && (vdev->status & VIRTIO_CONFIG_S_DRIVER_OK); if (runnin...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, RunState VAR_2) { VirtIODevice *vdev = VAR_0; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); bool backend_run = VAR_1 && (vdev->status & VIRTIO_CONFIG_S_DRIVER_OK); if (VAR_1) { vdev->vm_...
[ "static void FUNC_0(void *VAR_0, int VAR_1, RunState VAR_2)\n{", "VirtIODevice *vdev = VAR_0;", "BusState *qbus = qdev_get_parent_bus(DEVICE(vdev));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "bool backend_run = VAR_1 && (vdev->status & VIRTIO_CONFIG_S_DRIVER_OK);", "if (VAR_1) {", "vdev->vm_r...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
22,725
static int qcow2_set_key(BlockDriverState *bs, const char *key) { BDRVQcow2State *s = bs->opaque; uint8_t keybuf[16]; int len, i; Error *err = NULL; memset(keybuf, 0, 16); len = strlen(key); if (len > 16) len = 16; /* XXX: we could compress the chars to 7 bits to incr...
false
qemu
b25b387fa5928e516cb2c9e7fde68e958bd7e50a
static int qcow2_set_key(BlockDriverState *bs, const char *key) { BDRVQcow2State *s = bs->opaque; uint8_t keybuf[16]; int len, i; Error *err = NULL; memset(keybuf, 0, 16); len = strlen(key); if (len > 16) len = 16; for(i = 0;i < len;i++) { keybuf[i] =...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVQcow2State *s = VAR_0->opaque; uint8_t keybuf[16]; int VAR_2, VAR_3; Error *err = NULL; memset(keybuf, 0, 16); VAR_2 = strlen(VAR_1); if (VAR_2 > 16) VAR_2 = 16; for(VAR_3 = 0;VAR_3 < VAR_2;VA...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "uint8_t keybuf[16];", "int VAR_2, VAR_3;", "Error *err = NULL;", "memset(keybuf, 0, 16);", "VAR_2 = strlen(VAR_1);", "if (VAR_2 > 16)\nVAR_2 = 16;", "for(VAR_3 = 0;VAR_3 < VAR_2;VAR_3++) {", ...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43, 45, 47 ], [ 51 ], [ 59 ], [ 61 ], [...
22,726
void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val) { uint32_t op2; uint32_t crm; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: /* ID codes. */ if (arm_feature(env, ARM_FEATURE_XSCALE)) break; if (arm_feature(...
false
qemu
405ee3ad573c35790500048d07d5c7ac93167e6a
void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val) { uint32_t op2; uint32_t crm; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: if (arm_feature(env, ARM_FEATURE_XSCALE)) break; if (arm_feature(env, ARM_FEATURE...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { uint32_t op2; uint32_t crm; op2 = (VAR_1 >> 5) & 7; crm = VAR_1 & 0xf; switch ((VAR_1 >> 16) & 0xf) { case 0: if (arm_feature(VAR_0, ARM_FEATURE_XSCALE)) break; if (arm_feature(VAR_0, ARM_FEAT...
[ "void FUNC_0(CPUState *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "uint32_t op2;", "uint32_t crm;", "op2 = (VAR_1 >> 5) & 7;", "crm = VAR_1 & 0xf;", "switch ((VAR_1 >> 16) & 0xf) {", "case 0:\nif (arm_feature(VAR_0, ARM_FEATURE_XSCALE))\nbreak;", "if (arm_feature(VAR_0, ARM_FEATURE_OMAPCP))\nbreak;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37, 39, 41 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55...
22,727
static size_t stream_process_s2mem(struct Stream *s, unsigned char *buf, size_t len, uint32_t *app) { uint32_t prev_d; unsigned int rxlen; size_t pos = 0; int sof = 1; if (!stream_running(s) || stream_idle(s)) { return 0; } while (len)...
false
qemu
42bb9c9178ae7ac4c439172b1ae99cc29188a5c6
static size_t stream_process_s2mem(struct Stream *s, unsigned char *buf, size_t len, uint32_t *app) { uint32_t prev_d; unsigned int rxlen; size_t pos = 0; int sof = 1; if (!stream_running(s) || stream_idle(s)) { return 0; } while (len)...
{ "code": [], "line_no": [] }
static size_t FUNC_0(struct Stream *s, unsigned char *buf, size_t len, uint32_t *app) { uint32_t prev_d; unsigned int VAR_0; size_t pos = 0; int VAR_1 = 1; if (!stream_running(s) || stream_idle(s)) { return 0; } while (len) { ...
[ "static size_t FUNC_0(struct Stream *s, unsigned char *buf,\nsize_t len, uint32_t *app)\n{", "uint32_t prev_d;", "unsigned int VAR_0;", "size_t pos = 0;", "int VAR_1 = 1;", "if (!stream_running(s) || stream_idle(s)) {", "return 0;", "}", "while (len) {", "stream_desc_load(s, s->regs[R_CURDESC]);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [...
22,728
static void gen_arith(DisasContext *ctx, uint32_t opc, int rd, int rs, int rt) { const char *opn = "arith"; if (rd == 0 && opc != OPC_ADD && opc != OPC_SUB && opc != OPC_DADD && opc != OPC_DSUB) { /* If no destination, treat it as a NOP. For add & sub, we...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void gen_arith(DisasContext *ctx, uint32_t opc, int rd, int rs, int rt) { const char *opn = "arith"; if (rd == 0 && opc != OPC_ADD && opc != OPC_SUB && opc != OPC_DADD && opc != OPC_DSUB) { MIPS_DEBUG("NOP"); return; } switch (...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4) { const char *VAR_5 = "arith"; if (VAR_2 == 0 && VAR_1 != OPC_ADD && VAR_1 != OPC_SUB && VAR_1 != OPC_DADD && VAR_1 != OPC_DSUB) { MIPS_DEBUG("NOP"); return;...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{", "const char *VAR_5 = \"arith\";", "if (VAR_2 == 0 && VAR_1 != OPC_ADD && VAR_1 != OPC_SUB\n&& VAR_1 != OPC_DADD && VAR_1 != OPC_DSUB) {", "MIPS_DEBUG(\"NOP\");", "return;", "}", "switch (VAR_1) {", "case OP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
22,729
static inline void gen_op_eval_fbl(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_xori_tl(cpu_tmp0, cpu_tmp0, 0x1); tcg_gen_and_tl(dst, dst, cpu_tmp0); }
false
qemu
de9e9d9f17a36ff76c1a02a5348835e5e0a081b0
static inline void gen_op_eval_fbl(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_xori_tl(cpu_tmp0, cpu_tmp0, 0x1); tcg_gen_and_tl(dst, dst, cpu_tmp0); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, unsigned int VAR_2) { gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2); gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2); tcg_gen_xori_tl(cpu_tmp0, cpu_tmp0, 0x1); tcg_gen_and_tl(VAR_0, VAR_0, cpu_tmp0); }
[ "static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1,\nunsigned int VAR_2)\n{", "gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2);", "gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2);", "tcg_gen_xori_tl(cpu_tmp0, cpu_tmp0, 0x1);", "tcg_gen_and_tl(VAR_0, VAR_0, cpu_tmp0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
22,730
void qemu_clock_register_reset_notifier(QEMUClockType type, Notifier *notifier) { QEMUClock *clock = qemu_clock_ptr(type); notifier_list_add(&clock->reset_notifiers, notifier); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void qemu_clock_register_reset_notifier(QEMUClockType type, Notifier *notifier) { QEMUClock *clock = qemu_clock_ptr(type); notifier_list_add(&clock->reset_notifiers, notifier); }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUClockType VAR_0, Notifier *VAR_1) { QEMUClock *clock = qemu_clock_ptr(VAR_0); notifier_list_add(&clock->reset_notifiers, VAR_1); }
[ "void FUNC_0(QEMUClockType VAR_0,\nNotifier *VAR_1)\n{", "QEMUClock *clock = qemu_clock_ptr(VAR_0);", "notifier_list_add(&clock->reset_notifiers, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
22,731
DriveInfo *drive_init(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *value; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int cyls, heads, secs, translation; int max_devs, bus...
false
qemu
ee13ed1cbc5f7f848e417f587c93ca1f36d83eb0
DriveInfo *drive_init(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *value; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int cyls, heads, secs, translation; int max_devs, bus...
{ "code": [], "line_no": [] }
DriveInfo *FUNC_0(QemuOpts *all_opts, BlockInterfaceType block_default_type) { const char *VAR_0; DriveInfo *dinfo = NULL; QDict *bs_opts; QemuOpts *legacy_opts; DriveMediaType media = MEDIA_DISK; BlockInterfaceType type; int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7, ...
[ "DriveInfo *FUNC_0(QemuOpts *all_opts, BlockInterfaceType block_default_type)\n{", "const char *VAR_0;", "DriveInfo *dinfo = NULL;", "QDict *bs_opts;", "QemuOpts *legacy_opts;", "DriveMediaType media = MEDIA_DISK;", "BlockInterfaceType type;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
22,732
static int cd_read_sector(IDEState *s, int lba, uint8_t *buf, int sector_size) { int ret; switch(sector_size) { case 2048: block_acct_start(bdrv_get_stats(s->bs), &s->acct, 4 * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); ret = bdrv_read(s->bs, (int64_t)lba << 2, buf...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static int cd_read_sector(IDEState *s, int lba, uint8_t *buf, int sector_size) { int ret; switch(sector_size) { case 2048: block_acct_start(bdrv_get_stats(s->bs), &s->acct, 4 * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); ret = bdrv_read(s->bs, (int64_t)lba << 2, buf...
{ "code": [], "line_no": [] }
static int FUNC_0(IDEState *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3) { int VAR_4; switch(VAR_3) { case 2048: block_acct_start(bdrv_get_stats(VAR_0->bs), &VAR_0->acct, 4 * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); VAR_4 = bdrv_read(VAR_0->bs, (int64_t)VAR_1 << ...
[ "static int FUNC_0(IDEState *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "switch(VAR_3) {", "case 2048:\nblock_acct_start(bdrv_get_stats(VAR_0->bs), &VAR_0->acct,\n4 * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ);", "VAR_4 = bdrv_read(VAR_0->bs, (int64_t)VAR_1 << 2, VAR_2, 4);", "block_acct_done...
[ 0, 0, 0, 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49...
22,733
static void av_always_inline filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h, int intra ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[i...
false
FFmpeg
f6b7f72461673e4d398b1edf9ed2a7fe70d99c47
static void av_always_inline filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h, int intra ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[i...
{ "code": [], "line_no": [] }
static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h, int intra ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; ...
[ "static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, H264Context *h, int intra ) {", "const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);", "const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;", "const int alpha = alpha_table[index_a...
[ 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 ] ]