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
4,680
static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) { AVFrame *decoded_frame, *f; void *buffer_to_free = NULL; int i, ret = 0, err = 0, resample_changed; int64_t best_effort_timestamp; AVRational *frame_sample_aspect; if (!ist->decoded_frame && !(ist->decoded_frame...
false
FFmpeg
4257b804e2354db07e66ebfd966d7d13f49c7895
static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) { AVFrame *decoded_frame, *f; void *buffer_to_free = NULL; int i, ret = 0, err = 0, resample_changed; int64_t best_effort_timestamp; AVRational *frame_sample_aspect; if (!ist->decoded_frame && !(ist->decoded_frame...
{ "code": [], "line_no": [] }
static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2) { AVFrame *decoded_frame, *f; void *VAR_3 = NULL; int VAR_4, VAR_5 = 0, VAR_6 = 0, VAR_7; int64_t best_effort_timestamp; AVRational *frame_sample_aspect; if (!VAR_0->decoded_frame && !(VAR_0->decoded_frame = av_frame_all...
[ "static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2)\n{", "AVFrame *decoded_frame, *f;", "void *VAR_3 = NULL;", "int VAR_4, VAR_5 = 0, VAR_6 = 0, VAR_7;", "int64_t best_effort_timestamp;", "AVRational *frame_sample_aspect;", "if (!VAR_0->decoded_frame && !(VAR_0->decoded_frame = av_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49,...
4,682
static void audio_encode_example(const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; AVFrame *frame; AVPacket pkt; int i, j, k, ret, got_output; int buffer_size; FILE *f; uint16_t *samples; float t, tincr; printf("Encode audio file %s\n", filename); ...
false
FFmpeg
b2a4316287ea814168b0b794bd7ab0063fd1dd0f
static void audio_encode_example(const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; AVFrame *frame; AVPacket pkt; int i, j, k, ret, got_output; int buffer_size; FILE *f; uint16_t *samples; float t, tincr; printf("Encode audio file %s\n", filename); ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { AVCodec *codec; AVCodecContext *c= NULL; AVFrame *frame; AVPacket pkt; int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6; FILE *f; uint16_t *samples; float VAR_7, VAR_8; printf("Encode audio file %s\n", VAR_0); code...
[ "static void FUNC_0(const char *VAR_0)\n{", "AVCodec *codec;", "AVCodecContext *c= NULL;", "AVFrame *frame;", "AVPacket pkt;", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6;", "FILE *f;", "uint16_t *samples;", "float VAR_7, VAR_8;", "printf(\"Encode audio file %s\\n\", VAR_0);", "codec ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
4,683
static void avconv_cleanup(int ret) { int i, j; for (i = 0; i < nb_filtergraphs; i++) { FilterGraph *fg = filtergraphs[i]; avfilter_graph_free(&fg->graph); for (j = 0; j < fg->nb_inputs; j++) { while (av_fifo_size(fg->inputs[j]->frame_queue)) { AVFra...
false
FFmpeg
e46a6fb7732a7caef97a916a4f765ec0f779d195
static void avconv_cleanup(int ret) { int i, j; for (i = 0; i < nb_filtergraphs; i++) { FilterGraph *fg = filtergraphs[i]; avfilter_graph_free(&fg->graph); for (j = 0; j < fg->nb_inputs; j++) { while (av_fifo_size(fg->inputs[j]->frame_queue)) { AVFra...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0) { int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < nb_filtergraphs; VAR_1++) { FilterGraph *fg = filtergraphs[VAR_1]; avfilter_graph_free(&fg->graph); for (VAR_2 = 0; VAR_2 < fg->nb_inputs; VAR_2++) { while (av_fifo_size(fg->inputs[VAR_2]->fram...
[ "static void FUNC_0(int VAR_0)\n{", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < nb_filtergraphs; VAR_1++) {", "FilterGraph *fg = filtergraphs[VAR_1];", "avfilter_graph_free(&fg->graph);", "for (VAR_2 = 0; VAR_2 < fg->nb_inputs; VAR_2++) {", "while (av_fifo_size(fg->inputs[VAR_2]->frame_queue)) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], ...
4,684
static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_output) { char buf[256]; int flags = (is_output ? ic->oformat->flags : ic->iformat->flags); AVStream *st = ic->streams[i]; int g = ff_gcd(st->time_base.num, st->time_base.den); avcodec_string(buf, sizeof(buf), st->cod...
false
FFmpeg
5fba300d02f693de3c741e07740a851b2b3a94c7
static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_output) { char buf[256]; int flags = (is_output ? ic->oformat->flags : ic->iformat->flags); AVStream *st = ic->streams[i]; int g = ff_gcd(st->time_base.num, st->time_base.den); avcodec_string(buf, sizeof(buf), st->cod...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { char VAR_4[256]; int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5); AVStream *st = VAR_0->streams[VAR_1]; int VAR_6 = ff_gcd(st->time_base.num, st->time_base.den); avcodec_string(VAR_4, sizeof(VAR_4...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "char VAR_4[256];", "int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5);", "AVStream *st = VAR_0->streams[VAR_1];", "int VAR_6 = ff_gcd(st->time_base.num, st->time_base.den);", "avcodec_string(VAR_4, sizeof(...
[ 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 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ] ]
4,687
static inline void rv34_decode_block(DCTELEM *dst, GetBitContext *gb, RV34VLC *rvlc, int fc, int sc, int q_dc, int q_ac1, int q_ac2) { int code, pattern; code = get_vlc2(gb, rvlc->first_pattern[fc].table, 9, 2); pattern = code & 0x7; code >>= 3; decode_subblock3(dst, code, 0, gb, &rvlc->...
false
FFmpeg
3faa303a47e0c3b59a53988e0f76018930c6cb1a
static inline void rv34_decode_block(DCTELEM *dst, GetBitContext *gb, RV34VLC *rvlc, int fc, int sc, int q_dc, int q_ac1, int q_ac2) { int code, pattern; code = get_vlc2(gb, rvlc->first_pattern[fc].table, 9, 2); pattern = code & 0x7; code >>= 3; decode_subblock3(dst, code, 0, gb, &rvlc->...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DCTELEM *VAR_0, GetBitContext *VAR_1, RV34VLC *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8, VAR_9; VAR_8 = get_vlc2(VAR_1, VAR_2->first_pattern[VAR_3].table, 9, 2); VAR_9 = VAR_8 & 0x7; VAR_8 >>= 3; decode_subblock3(VAR_0, VAR_8, 0,...
[ "static inline void FUNC_0(DCTELEM *VAR_0, GetBitContext *VAR_1, RV34VLC *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8, VAR_9;", "VAR_8 = get_vlc2(VAR_1, VAR_2->first_pattern[VAR_3].table, 9, 2);", "VAR_9 = VAR_8 & 0x7;", "VAR_8 >>= 3;", "decode_subblock3(VAR_0, VAR_8, 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 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ] ]
4,688
static int kvm_set_ioeventfd_mmio(int fd, hwaddr addr, uint32_t val, bool assign, uint32_t size, bool datamatch) { int ret; struct kvm_ioeventfd iofd; iofd.datamatch = datamatch ? adjust_ioeventfd_endianness(val, size) : 0; iofd.addr = addr; iofd.len = size...
true
qemu
03a96b83b539498510e22aab585e41015ba18247
static int kvm_set_ioeventfd_mmio(int fd, hwaddr addr, uint32_t val, bool assign, uint32_t size, bool datamatch) { int ret; struct kvm_ioeventfd iofd; iofd.datamatch = datamatch ? adjust_ioeventfd_endianness(val, size) : 0; iofd.addr = addr; iofd.len = size...
{ "code": [ " struct kvm_ioeventfd iofd;", " iofd.datamatch = datamatch ? adjust_ioeventfd_endianness(val, size) : 0;", " iofd.addr = addr;", " iofd.len = size;", " iofd.flags = 0;", " iofd.fd = fd;" ], "line_no": [ 9, 13, 15, 17, 19, 21 ] }
static int FUNC_0(int VAR_0, hwaddr VAR_1, uint32_t VAR_2, bool VAR_3, uint32_t VAR_4, bool VAR_5) { int VAR_6; struct kvm_ioeventfd VAR_7; VAR_7.VAR_5 = VAR_5 ? adjust_ioeventfd_endianness(VAR_2, VAR_4) : 0; VAR_7.VAR_1 = VAR_1; VAR_7.len = VAR_4; VAR...
[ "static int FUNC_0(int VAR_0, hwaddr VAR_1, uint32_t VAR_2,\nbool VAR_3, uint32_t VAR_4, bool VAR_5)\n{", "int VAR_6;", "struct kvm_ioeventfd VAR_7;", "VAR_7.VAR_5 = VAR_5 ? adjust_ioeventfd_endianness(VAR_2, VAR_4) : 0;", "VAR_7.VAR_1 = VAR_1;", "VAR_7.len = VAR_4;", "VAR_7.flags = 0;", "VAR_7.VAR_0 ...
[ 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [...
4,689
AVFrameSideData *av_frame_new_side_data(AVFrame *frame, enum AVFrameSideDataType type, int size) { AVFrameSideData *ret, **tmp; if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1) return NULL; t...
true
FFmpeg
5804201cbac2de8824013a8294e381e93bbe45f2
AVFrameSideData *av_frame_new_side_data(AVFrame *frame, enum AVFrameSideDataType type, int size) { AVFrameSideData *ret, **tmp; if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1) return NULL; t...
{ "code": [ "AVFrameSideData *av_frame_new_side_data(AVFrame *frame,", " enum AVFrameSideDataType type,", " int size)", " if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1)", " return NULL;", ...
AVFrameSideData *FUNC_0(AVFrame *frame, enum AVFrameSideDataType type, int size) { AVFrameSideData *ret, **tmp; if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1) return NULL; tmp = av_realloc(...
[ "AVFrameSideData *FUNC_0(AVFrame *frame,\nenum AVFrameSideDataType type,\nint size)\n{", "AVFrameSideData *ret, **tmp;", "if (frame->nb_side_data > INT_MAX / sizeof(*frame->side_data) - 1)\nreturn NULL;", "tmp = av_realloc(frame->side_data,\n(frame->nb_side_data + 1) * sizeof(*frame->side_data));", "if (!tm...
[ 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
4,690
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...
true
qemu
3cb0e25c4b417b7336816bd92de458f0770d49ff
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 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
4,691
static int connect_to_ssh(BDRVSSHState *s, QDict *options, int ssh_flags, int creat_mode, Error **errp) { int r, ret; const char *host, *user, *path, *host_key_check; int port; if (!qdict_haskey(options, "host")) { ret = -EINVAL; error_setg(errp, "No h...
true
qemu
8a6a80896d6af03b8ee0c17cdf37219eca2588a7
static int connect_to_ssh(BDRVSSHState *s, QDict *options, int ssh_flags, int creat_mode, Error **errp) { int r, ret; const char *host, *user, *path, *host_key_check; int port; if (!qdict_haskey(options, "host")) { ret = -EINVAL; error_setg(errp, "No h...
{ "code": [ " if (!qdict_haskey(options, \"host\")) {", " error_setg(errp, \"No hostname was specified\");", " host = qdict_get_str(options, \"host\");", " if (qdict_haskey(options, \"port\")) {", " port = qdict_get_int(options, \"port\");", " } else {", " ...
static int FUNC_0(BDRVSSHState *VAR_0, QDict *VAR_1, int VAR_2, int VAR_3, Error **VAR_4) { int VAR_5, VAR_6; const char *VAR_7, *VAR_8, *VAR_9, *VAR_10; int VAR_11; if (!qdict_haskey(VAR_1, "VAR_7")) { VAR_6 = -EINVAL; error_setg(VAR_4, "No hostname w...
[ "static int FUNC_0(BDRVSSHState *VAR_0, QDict *VAR_1,\nint VAR_2, int VAR_3, Error **VAR_4)\n{", "int VAR_5, VAR_6;", "const char *VAR_7, *VAR_8, *VAR_9, *VAR_10;", "int VAR_11;", "if (!qdict_haskey(VAR_1, \"VAR_7\")) {", "VAR_6 = -EINVAL;", "error_setg(VAR_4, \"No hostname was specified\");", "goto e...
[ 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
4,692
void ff_configure_buffers_for_index(AVFormatContext *s, int64_t time_tolerance) { int ist1, ist2; int64_t pos_delta = 0; //We could use URLProtocol flags here but as many user applications do not use URLProtocols this would be unreliable const char *proto = avio_find_protocol_name(s->filename); ...
true
FFmpeg
130a8e0eef2f81e0d853117e417b650c3e16d1b7
void ff_configure_buffers_for_index(AVFormatContext *s, int64_t time_tolerance) { int ist1, ist2; int64_t pos_delta = 0; const char *proto = avio_find_protocol_name(s->filename); if (!(strcmp(proto, "file") && strcmp(proto, "pipe") && strcmp(proto, "cache"))) return; for (is...
{ "code": [ " if (!(strcmp(proto, \"file\") && strcmp(proto, \"pipe\") && strcmp(proto, \"cache\")))" ], "line_no": [ 15 ] }
void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1) { int VAR_2, VAR_3; int64_t pos_delta = 0; const char *VAR_4 = avio_find_protocol_name(VAR_0->filename); if (!(strcmp(VAR_4, "file") && strcmp(VAR_4, "pipe") && strcmp(VAR_4, "cache"))) return; for (VAR_2 = 0; VAR_2 < VAR_0-...
[ "void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)\n{", "int VAR_2, VAR_3;", "int64_t pos_delta = 0;", "const char *VAR_4 = avio_find_protocol_name(VAR_0->filename);", "if (!(strcmp(VAR_4, \"file\") && strcmp(VAR_4, \"pipe\") && strcmp(VAR_4, \"cache\")))\nreturn;", "for (VAR_2 = 0; VAR_2 < VAR_0->nb_str...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], ...
4,693
int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; ...
true
FFmpeg
b42bcaef29e6ffcd9513e1ad92dbff07bea84c94
int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; ...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; int planar,...
[ "int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx,\nAVFrame *frame,\nint *got_frame_ptr,\nconst AVPacket *avpkt)\n{", "AVCodecInternal *avci = avctx->internal;", "int planar, channels;", "int ret = 0;", "*got_frame_ptr = 0;", "if (!avpkt->data && avpkt->size) {", "av_log(avctx, AV_LOG_ERROR, \"inva...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 28 ], [ 32 ], [ 34 ], [ 37 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ...
4,694
static void s390_cpu_realizefn(DeviceState *dev, Error **errp) { S390CPU *cpu = S390_CPU(dev); S390CPUClass *scc = S390_CPU_GET_CLASS(dev); cpu_reset(CPU(cpu)); scc->parent_realize(dev, errp); }
true
qemu
14a10fc39923b3af07c8c46d22cb20843bee3a72
static void s390_cpu_realizefn(DeviceState *dev, Error **errp) { S390CPU *cpu = S390_CPU(dev); S390CPUClass *scc = S390_CPU_GET_CLASS(dev); cpu_reset(CPU(cpu)); scc->parent_realize(dev, errp); }
{ "code": [ " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " cpu_reset(CPU(cpu));", " S390CPU *...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { S390CPU *cpu = S390_CPU(VAR_0); S390CPUClass *scc = S390_CPU_GET_CLASS(VAR_0); cpu_reset(CPU(cpu)); scc->parent_realize(VAR_0, VAR_1); }
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "S390CPU *cpu = S390_CPU(VAR_0);", "S390CPUClass *scc = S390_CPU_GET_CLASS(VAR_0);", "cpu_reset(CPU(cpu));", "scc->parent_realize(VAR_0, VAR_1);", "}" ]
[ 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ] ]
4,695
static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int b, ab, b_max, plane, off; if (s->frames[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_type = vp5...
true
FFmpeg
9e6a2427558a718be0c1fffacffd935f630a7a8d
static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int b, ab, b_max, plane, off; if (s->frames[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_type = vp5...
{ "code": [ "static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)", " s->parse_coeff(s);" ], "line_no": [ 1, 27 ] }
static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, int VAR_3) { AVFrame *frame_current, *frame_ref; VP56mb mb_type; VP56Frame ref_frame; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; if (VAR_0->frames[VP56_FRAME_CURRENT]->key_frame) mb_type = VP56_MB_INTRA; else mb_...
[ "static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "AVFrame *frame_current, *frame_ref;", "VP56mb mb_type;", "VP56Frame ref_frame;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "if (VAR_0->frames[VP56_FRAME_CURRENT]->key_frame)\nmb_type = VP56_MB_INTRA;", "else\nmb_type = vp56_d...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53, 55 ], [ 57 ...
4,696
static int qemu_rbd_create(const char *filename, QemuOpts *opts, Error **errp) { Error *local_err = NULL; int64_t bytes = 0; int64_t objsize; int obj_order = 0; const char *pool, *name, *conf, *clientname, *keypairs; const char *secretid; rados_t cluster; rados_ioctx_t io_ctx; ...
true
qemu
129c7d1c536d0c67a8781cb09fb5bdb3d0f6a2d0
static int qemu_rbd_create(const char *filename, QemuOpts *opts, Error **errp) { Error *local_err = NULL; int64_t bytes = 0; int64_t objsize; int obj_order = 0; const char *pool, *name, *conf, *clientname, *keypairs; const char *secretid; rados_t cluster; rados_ioctx_t io_ctx; ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { Error *local_err = NULL; int64_t bytes = 0; int64_t objsize; int VAR_3 = 0; const char *VAR_4, *VAR_5, *VAR_6, *VAR_7, *VAR_8; const char *VAR_9; rados_t cluster; rados_ioctx_t io_ctx; QDict *options = N...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "Error *local_err = NULL;", "int64_t bytes = 0;", "int64_t objsize;", "int VAR_3 = 0;", "const char *VAR_4, *VAR_5, *VAR_6, *VAR_7, *VAR_8;", "const char *VAR_9;", "rados_t cluster;", "rados_ioctx_t io_ctx;", "QDict *option...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
4,699
void av_force_cpu_flags(int arg){ if ( (arg & ( AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_3DNOWEXT | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_SSE | AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_SSE2SLOW | A...
false
FFmpeg
29fb49194bedc74ac9be0b49b6b42dcfeb6222d9
void av_force_cpu_flags(int arg){ if ( (arg & ( AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_3DNOWEXT | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_SSE | AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_SSE2SLOW | A...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0){ if ( (VAR_0 & ( AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_3DNOWEXT | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_SSE | AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_SSE2SLOW | AV_CPU_FL...
[ "void FUNC_0(int VAR_0){", "if ( (VAR_0 & ( AV_CPU_FLAG_3DNOW |\nAV_CPU_FLAG_3DNOWEXT |\nAV_CPU_FLAG_MMXEXT |\nAV_CPU_FLAG_SSE |\nAV_CPU_FLAG_SSE2 |\nAV_CPU_FLAG_SSE2SLOW |\nAV_CPU_FLAG_SSE3 |\nAV_CPU_FLAG_SSE3SLOW |\nAV_CPU_FLAG_SSSE3 |\nAV_CPU_FLAG_SSE4 |\nAV_CPU_FLAG_SSE42 |\nAV_C...
[ 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 ], [ 47 ], [ 49 ], [ 51 ] ]
4,700
static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref) { SelectContext *select = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; double res; if (isnan(select->var_values[VAR_START_PTS])) select->var_values[VAR_START_PTS] = TS2D(picref->pts); if (isnan(select->var...
false
FFmpeg
43fab7aafc3efc3d88e23a1ba27b939be09b3bd3
static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref) { SelectContext *select = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; double res; if (isnan(select->var_values[VAR_START_PTS])) select->var_values[VAR_START_PTS] = TS2D(picref->pts); if (isnan(select->var...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1) { SelectContext *select = VAR_0->priv; AVFilterLink *inlink = VAR_0->inputs[0]; double VAR_2; if (isnan(select->var_values[VAR_START_PTS])) select->var_values[VAR_START_PTS] = TS2D(VAR_1->pts); if (isnan(select->var...
[ "static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1)\n{", "SelectContext *select = VAR_0->priv;", "AVFilterLink *inlink = VAR_0->inputs[0];", "double VAR_2;", "if (isnan(select->var_values[VAR_START_PTS]))\nselect->var_values[VAR_START_PTS] = TS2D(VAR_1->pts);", "if (isnan(select->var_valu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 43 ], [ 45, 47, 49, 51, 53, 55, 57, 59, 61,...
4,702
static int mov_write_identification(AVIOContext *pb, AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; int i; mov_write_ftyp_tag(pb,s); if (mov->mode == MODE_PSP) { int video_streams_nb = 0, audio_streams_nb = 0, other_streams_nb = 0; for (i = 0; i < s->nb_streams; i++) {...
false
FFmpeg
ed2112fb36d7407d960b4f44475a700a7c44344c
static int mov_write_identification(AVIOContext *pb, AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; int i; mov_write_ftyp_tag(pb,s); if (mov->mode == MODE_PSP) { int video_streams_nb = 0, audio_streams_nb = 0, other_streams_nb = 0; for (i = 0; i < s->nb_streams; i++) {...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1) { MOVMuxContext *mov = VAR_1->priv_data; int VAR_2; mov_write_ftyp_tag(VAR_0,VAR_1); if (mov->mode == MODE_PSP) { int VAR_3 = 0, VAR_4 = 0, VAR_5 = 0; for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) { ...
[ "static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)\n{", "MOVMuxContext *mov = VAR_1->priv_data;", "int VAR_2;", "mov_write_ftyp_tag(VAR_0,VAR_1);", "if (mov->mode == MODE_PSP) {", "int VAR_3 = 0, VAR_4 = 0, VAR_5 = 0;", "for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) {", "AVStream *st...
[ 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
4,703
static QIOChannel *nbd_negotiate_handle_starttls(NBDClient *client, uint32_t length, Error **errp) { QIOChannel *ioc; QIOChannelTLS *tioc; struct NBDTLSHandshakeData data = { 0 }; trace_nbd_negotia...
false
qemu
e68c35cfb8088a11300371751e3987f67cac15b1
static QIOChannel *nbd_negotiate_handle_starttls(NBDClient *client, uint32_t length, Error **errp) { QIOChannel *ioc; QIOChannelTLS *tioc; struct NBDTLSHandshakeData data = { 0 }; trace_nbd_negotia...
{ "code": [], "line_no": [] }
static QIOChannel *FUNC_0(NBDClient *client, uint32_t length, Error **errp) { QIOChannel *ioc; QIOChannelTLS *tioc; struct NBDTLSHandshakeData VAR_0 = { 0 }; trace_nbd_negotiate_handle_starttls(); ...
[ "static QIOChannel *FUNC_0(NBDClient *client,\nuint32_t length,\nError **errp)\n{", "QIOChannel *ioc;", "QIOChannelTLS *tioc;", "struct NBDTLSHandshakeData VAR_0 = { 0 };", "trace_nbd_negotiate_handle_starttls();", "ioc = client->ioc;", "if (length) {", "if (nbd_drop(ioc, length, errp) < 0) {", "ret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51, 53,...
4,704
static void vnc_write_u32(VncState *vs, uint32_t value) { uint8_t buf[4]; buf[0] = (value >> 24) & 0xFF; buf[1] = (value >> 16) & 0xFF; buf[2] = (value >> 8) & 0xFF; buf[3] = value & 0xFF; vnc_write(vs, buf, 4); }
false
qemu
5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b
static void vnc_write_u32(VncState *vs, uint32_t value) { uint8_t buf[4]; buf[0] = (value >> 24) & 0xFF; buf[1] = (value >> 16) & 0xFF; buf[2] = (value >> 8) & 0xFF; buf[3] = value & 0xFF; vnc_write(vs, buf, 4); }
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, uint32_t VAR_1) { uint8_t buf[4]; buf[0] = (VAR_1 >> 24) & 0xFF; buf[1] = (VAR_1 >> 16) & 0xFF; buf[2] = (VAR_1 >> 8) & 0xFF; buf[3] = VAR_1 & 0xFF; vnc_write(VAR_0, buf, 4); }
[ "static void FUNC_0(VncState *VAR_0, uint32_t VAR_1)\n{", "uint8_t buf[4];", "buf[0] = (VAR_1 >> 24) & 0xFF;", "buf[1] = (VAR_1 >> 16) & 0xFF;", "buf[2] = (VAR_1 >> 8) & 0xFF;", "buf[3] = VAR_1 & 0xFF;", "vnc_write(VAR_0, buf, 4);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
4,705
static int tcg_cpu_exec(CPUState *cpu) { int ret; #ifdef CONFIG_PROFILER int64_t ti; #endif #ifdef CONFIG_PROFILER ti = profile_getclock(); #endif if (use_icount) { int64_t count; int64_t deadline; int decr; timers_state.qemu_icount -= (cpu->icount_decr.u16...
false
qemu
8b42704441865611a5ee241ac9fc5cabc47a079b
static int tcg_cpu_exec(CPUState *cpu) { int ret; #ifdef CONFIG_PROFILER int64_t ti; #endif #ifdef CONFIG_PROFILER ti = profile_getclock(); #endif if (use_icount) { int64_t count; int64_t deadline; int decr; timers_state.qemu_icount -= (cpu->icount_decr.u16...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { int VAR_1; #ifdef CONFIG_PROFILER int64_t ti; #endif #ifdef CONFIG_PROFILER ti = profile_getclock(); #endif if (use_icount) { int64_t count; int64_t deadline; int VAR_2; timers_state.qemu_icount -= (VAR_0->icount_decr.u1...
[ "static int FUNC_0(CPUState *VAR_0)\n{", "int VAR_1;", "#ifdef CONFIG_PROFILER\nint64_t ti;", "#endif\n#ifdef CONFIG_PROFILER\nti = profile_getclock();", "#endif\nif (use_icount) {", "int64_t count;", "int64_t deadline;", "int VAR_2;", "timers_state.qemu_icount -= (VAR_0->icount_decr.u16.low\n+ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [...
4,706
vcard_emul_login(VCard *card, unsigned char *pin, int pin_len) { PK11SlotInfo *slot; unsigned char *pin_string = NULL; int i; SECStatus rv; if (!nss_emul_init) { return VCARD7816_STATUS_ERROR_CONDITION_NOT_SATISFIED; } slot = vcard_emul_card_get_slot(card); /* We dep...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
vcard_emul_login(VCard *card, unsigned char *pin, int pin_len) { PK11SlotInfo *slot; unsigned char *pin_string = NULL; int i; SECStatus rv; if (!nss_emul_init) { return VCARD7816_STATUS_ERROR_CONDITION_NOT_SATISFIED; } slot = vcard_emul_card_get_slot(card); ...
{ "code": [], "line_no": [] }
FUNC_0(VCard *VAR_0, unsigned char *VAR_1, int VAR_2) { PK11SlotInfo *slot; unsigned char *VAR_3 = NULL; int VAR_4; SECStatus rv; if (!nss_emul_init) { return VCARD7816_STATUS_ERROR_CONDITION_NOT_SATISFIED; } slot = vcard_emul_card_get_slot(VAR_0); VAR_...
[ "FUNC_0(VCard *VAR_0, unsigned char *VAR_1, int VAR_2)\n{", "PK11SlotInfo *slot;", "unsigned char *VAR_3 = NULL;", "int VAR_4;", "SECStatus rv;", "if (!nss_emul_init) {", "return VCARD7816_STATUS_ERROR_CONDITION_NOT_SATISFIED;", "}", "slot = vcard_emul_card_get_slot(VAR_0);", "VAR_3 = g_malloc(VAR...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ...
4,707
static int motion_inter_block (bit_buffer_t *bitbuf, uint8_t *current, uint8_t *previous, int pitch, svq1_pmv_t *motion, int x, int y) { uint8_t *src; uint8_t *dst; svq1_pmv_t mv; svq1_pmv_t *pmv[3]; int result; /* predict and decode motion vector */ pmv[0] = &m...
false
FFmpeg
82dd7d0dec29ee59af91ce18c29eb151b363ff37
static int motion_inter_block (bit_buffer_t *bitbuf, uint8_t *current, uint8_t *previous, int pitch, svq1_pmv_t *motion, int x, int y) { uint8_t *src; uint8_t *dst; svq1_pmv_t mv; svq1_pmv_t *pmv[3]; int result; pmv[0] = &motion[0]; pmv[1] = &motion[(x / 8) ...
{ "code": [], "line_no": [] }
static int FUNC_0 (bit_buffer_t *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, svq1_pmv_t *VAR_4, int VAR_5, int VAR_6) { uint8_t *src; uint8_t *dst; svq1_pmv_t mv; svq1_pmv_t *pmv[3]; int VAR_7; pmv[0] = &VAR_4[0]; pmv[1] = &VAR_4[(VAR_5 / 8) + 2]; p...
[ "static int FUNC_0 (bit_buffer_t *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, int VAR_3,\nsvq1_pmv_t *VAR_4, int VAR_5, int VAR_6) {", "uint8_t *src;", "uint8_t *dst;", "svq1_pmv_t mv;", "svq1_pmv_t *pmv[3];", "int\t VAR_7;", "pmv[0] = &VAR_4[0];", "pmv[1] = &VAR_4[(VAR_5 / 8) + 2];", "pmv[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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
4,709
vreader_list_delete(VReaderList *list) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { next_entry = vreader_list_get_next(current_entry); vreader_list_entry...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
vreader_list_delete(VReaderList *list) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { next_entry = vreader_list_get_next(current_entry); vreader_list_entry...
{ "code": [], "line_no": [] }
FUNC_0(VReaderList *VAR_0) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; for (current_entry = vreader_list_get_first(VAR_0); current_entry; current_entry = next_entry) { next_entry = vreader_list_get_next(current_entry); vreader_list_entry_delete(cur...
[ "FUNC_0(VReaderList *VAR_0)\n{", "VReaderListEntry *current_entry;", "VReaderListEntry *next_entry = NULL;", "for (current_entry = vreader_list_get_first(VAR_0); current_entry;", "current_entry = next_entry) {", "next_entry = vreader_list_get_next(current_entry);", "vreader_list_entry_delete(current_ent...
[ 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 ] ]
4,710
static uint32_t cadence_ttc_read_imp(void *opaque, target_phys_addr_t offset) { CadenceTimerState *s = cadence_timer_from_addr(opaque, offset); uint32_t value; cadence_timer_sync(s); cadence_timer_run(s); switch (offset) { case 0x00: /* clock control */ case 0x04: case 0x08:...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t cadence_ttc_read_imp(void *opaque, target_phys_addr_t offset) { CadenceTimerState *s = cadence_timer_from_addr(opaque, offset); uint32_t value; cadence_timer_sync(s); cadence_timer_run(s); switch (offset) { case 0x00: case 0x04: case 0x08: return s-...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset) { CadenceTimerState *s = cadence_timer_from_addr(opaque, offset); uint32_t value; cadence_timer_sync(s); cadence_timer_run(s); switch (offset) { case 0x00: case 0x04: case 0x08: return s->reg_clock; ...
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{", "CadenceTimerState *s = cadence_timer_from_addr(opaque, offset);", "uint32_t value;", "cadence_timer_sync(s);", "cadence_timer_run(s);", "switch (offset) {", "case 0x00:\ncase 0x04:\ncase 0x08:\nreturn s->reg_clock;", "case 0x0c:\nc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25 ], [ 29, 31, 33, 35 ], [ 39, 41, 43, 45 ], [ 49, 51, 53, 55 ], [ 59, 61, 63, 65 ], [ 69, 71...
4,711
static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_do_pwritev(bs, sector_num << BDRV_SECTOR_...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_do_pwritev(bs, sector_num << BDRV_SECTOR_...
{ "code": [], "line_no": [] }
static int VAR_0 bdrv_co_do_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_do_pwritev(bs, sector_num << BDRV_SECTOR_BITS, ...
[ "static int VAR_0 bdrv_co_do_writev(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, QEMUIOVector *qiov,\nBdrvRequestFlags flags)\n{", "if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) {", "return -EINVAL;", "}", "return bdrv_co_do_pwritev(bs, sector_num << BDRV_SECTOR_BITS,\nnb_sector...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ] ]
4,712
static int vnc_display_connect(VncDisplay *vd, SocketAddress **saddr, size_t nsaddr, SocketAddress **wsaddr, size_t nwsaddr, Error **errp) { /* connect to...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static int vnc_display_connect(VncDisplay *vd, SocketAddress **saddr, size_t nsaddr, SocketAddress **wsaddr, size_t nwsaddr, Error **errp) { QIOChan...
{ "code": [], "line_no": [] }
static int FUNC_0(VncDisplay *VAR_0, SocketAddress **VAR_1, size_t VAR_2, SocketAddress **VAR_3, size_t VAR_4, Error **VAR_5) { QIOChannelSocket *si...
[ "static int FUNC_0(VncDisplay *VAR_0,\nSocketAddress **VAR_1,\nsize_t VAR_2,\nSocketAddress **VAR_3,\nsize_t VAR_4,\nError **VAR_5)\n{", "QIOChannelSocket *sioc = NULL;", "if (VAR_4 != 0) {", "error_setg(VAR_5, \"Cannot use websockets in reverse mode\");", "return -1;", "}", "if (VAR_2 != 1) {", "erro...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
4,714
static int vfio_add_ext_cap(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; /* * pcie_add_capability always inserts the new capability at the tail * of the chain. Therefore to end up with ...
false
qemu
e37dac06dc4e85a2f46c24261c0dfdf2a30b50e3
static int vfio_add_ext_cap(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; config = g_memdup(pdev->config, vdev->config_size); for (next = PCI_CONFIG_SPACE_SIZE; next; ...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOPCIDevice *VAR_0) { PCIDevice *pdev = &VAR_0->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; config = g_memdup(pdev->config, VAR_0->config_size); for (next = PCI_CONFIG_SPACE_SIZE; next; next =...
[ "static int FUNC_0(VFIOPCIDevice *VAR_0)\n{", "PCIDevice *pdev = &VAR_0->pdev;", "uint32_t header;", "uint16_t cap_id, next, size;", "uint8_t cap_ver;", "uint8_t *config;", "config = g_memdup(pdev->config, VAR_0->config_size);", "for (next = PCI_CONFIG_SPACE_SIZE; next;", "next = PCI_EXT_CAP_NEXT(pc...
[ 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 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 57 ], [ 61 ], [ 63 ], [ 69, 71 ], [ 73 ], [ 77 ], [ 79 ], [...
4,715
void desc_ring_free(DescRing *ring) { if (ring->info) { g_free(ring->info); } g_free(ring); }
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
void desc_ring_free(DescRing *ring) { if (ring->info) { g_free(ring->info); } g_free(ring); }
{ "code": [], "line_no": [] }
void FUNC_0(DescRing *VAR_0) { if (VAR_0->info) { g_free(VAR_0->info); } g_free(VAR_0); }
[ "void FUNC_0(DescRing *VAR_0)\n{", "if (VAR_0->info) {", "g_free(VAR_0->info);", "}", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
4,716
setup_return(CPUState *env, struct emulated_sigaction *ka, abi_ulong *rc, void *frame, int usig) { abi_ulong handler = (abi_ulong)ka->sa._sa_handler; abi_ulong retcode; int thumb = 0; #if defined(TARGET_CONFIG_CPU_32) #if 0 abi_ulong cpsr = env->cpsr; /* * Maybe we need to deliver a 32-bit sign...
false
qemu
f8b0aa25599782eef91edc00ebf620bd14db720c
setup_return(CPUState *env, struct emulated_sigaction *ka, abi_ulong *rc, void *frame, int usig) { abi_ulong handler = (abi_ulong)ka->sa._sa_handler; abi_ulong retcode; int thumb = 0; #if defined(TARGET_CONFIG_CPU_32) #if 0 abi_ulong cpsr = env->cpsr; if (ka->sa.sa_flags & SA_THIRTYTWO) ...
{ "code": [], "line_no": [] }
FUNC_0(CPUState *VAR_0, struct emulated_sigaction *VAR_1, abi_ulong *VAR_2, void *VAR_3, int VAR_4) { abi_ulong handler = (abi_ulong)VAR_1->sa._sa_handler; abi_ulong retcode; int VAR_5 = 0; #if defined(TARGET_CONFIG_CPU_32) #if 0 abi_ulong cpsr = VAR_0->cpsr; if (VAR_1->sa.sa_flags & SA_THI...
[ "FUNC_0(CPUState *VAR_0, struct emulated_sigaction *VAR_1,\nabi_ulong *VAR_2, void *VAR_3, int VAR_4)\n{", "abi_ulong handler = (abi_ulong)VAR_1->sa._sa_handler;", "abi_ulong retcode;", "int VAR_5 = 0;", "#if defined(TARGET_CONFIG_CPU_32)\n#if 0\nabi_ulong cpsr = VAR_0->cpsr;", "if (VAR_1->sa.sa_flags & 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17 ], [ 27, 29 ], [ 33, 35 ], [ 45 ], [ 49, 51 ], [ 53, 55 ], [ 57 ], [ 59, 61, 63, 67 ], [ 69 ], [ 71 ], [ 73 ...
4,717
BlockStatsList *qmp_query_blockstats(bool has_query_nodes, bool query_nodes, Error **errp) { BlockStatsList *head = NULL, **p_next = &head; BlockBackend *blk = NULL; BlockDriverState *bs = NULL; /* Just to be safe if quer...
false
qemu
a6baa60807f88ba7d97b1787797fb58882ccbfb9
BlockStatsList *qmp_query_blockstats(bool has_query_nodes, bool query_nodes, Error **errp) { BlockStatsList *head = NULL, **p_next = &head; BlockBackend *blk = NULL; BlockDriverState *bs = NULL; query_nodes = has_qu...
{ "code": [], "line_no": [] }
BlockStatsList *FUNC_0(bool has_query_nodes, bool query_nodes, Error **errp) { BlockStatsList *head = NULL, **p_next = &head; BlockBackend *blk = NULL; BlockDriverState *bs = NULL; query_nodes = has_query_nodes && q...
[ "BlockStatsList *FUNC_0(bool has_query_nodes,\nbool query_nodes,\nError **errp)\n{", "BlockStatsList *head = NULL, **p_next = &head;", "BlockBackend *blk = NULL;", "BlockDriverState *bs = NULL;", "query_nodes = has_query_nodes && query_nodes;", "while (next_query_bds(&blk, &bs, query_nodes)) {", "BlockS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
4,719
static void dp8393x_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { dp8393x_writew(opaque, addr, val & 0xffff); dp8393x_writew(opaque, addr + 2, (val >> 16) & 0xffff); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void dp8393x_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { dp8393x_writew(opaque, addr, val & 0xffff); dp8393x_writew(opaque, addr + 2, (val >> 16) & 0xffff); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { dp8393x_writew(VAR_0, VAR_1, VAR_2 & 0xffff); dp8393x_writew(VAR_0, VAR_1 + 2, (VAR_2 >> 16) & 0xffff); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "dp8393x_writew(VAR_0, VAR_1, VAR_2 & 0xffff);", "dp8393x_writew(VAR_0, VAR_1 + 2, (VAR_2 >> 16) & 0xffff);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
4,720
void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index, usb_attachfn attach) { port->opaque = opaque; port->index = index; port->attach = attach; TAILQ_INSERT_TAIL(&bus->free, port, next); bus->nfree++; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index, usb_attachfn attach) { port->opaque = opaque; port->index = index; port->attach = attach; TAILQ_INSERT_TAIL(&bus->free, port, next); bus->nfree++; }
{ "code": [], "line_no": [] }
void FUNC_0(USBBus *VAR_0, USBPort *VAR_1, void *VAR_2, int VAR_3, usb_attachfn VAR_4) { VAR_1->VAR_2 = VAR_2; VAR_1->VAR_3 = VAR_3; VAR_1->VAR_4 = VAR_4; TAILQ_INSERT_TAIL(&VAR_0->free, VAR_1, next); VAR_0->nfree++; }
[ "void FUNC_0(USBBus *VAR_0, USBPort *VAR_1, void *VAR_2, int VAR_3,\nusb_attachfn VAR_4)\n{", "VAR_1->VAR_2 = VAR_2;", "VAR_1->VAR_3 = VAR_3;", "VAR_1->VAR_4 = VAR_4;", "TAILQ_INSERT_TAIL(&VAR_0->free, VAR_1, next);", "VAR_0->nfree++;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
4,721
static void scsi_read_data(SCSIRequest *req) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); bool first; DPRINTF("Read sector_count=%d\n", r->sector_count); if (r->sector_count == 0) { /* This also clears the sense ...
false
qemu
cd723b85601baa7a0eeffbac83421357a70d81ee
static void scsi_read_data(SCSIRequest *req) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); bool first; DPRINTF("Read sector_count=%d\n", r->sector_count); if (r->sector_count == 0) { scsi_req_complete(&r...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIRequest *VAR_0) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, VAR_0, VAR_0); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->VAR_0.dev); bool first; DPRINTF("Read sector_count=%d\n", r->sector_count); if (r->sector_count == 0) { scsi_req_complete(&r...
[ "static void FUNC_0(SCSIRequest *VAR_0)\n{", "SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, VAR_0, VAR_0);", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->VAR_0.dev);", "bool first;", "DPRINTF(\"Read sector_count=%d\\n\", r->sector_count);", "if (r->sector_count == 0) {", "scsi_req_complete(&r->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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
4,722
void qmp_cont(Error **errp) { Error *local_err = NULL; BlockBackend *blk; BlockDriverState *bs; BdrvNextIterator it; /* if there is a dump in background, we should wait until the dump * finished */ if (dump_in_progress()) { error_setg(errp, "There is a dump in process, pl...
false
qemu
4417ab7adf1613799054be5afedf810fc2524ee8
void qmp_cont(Error **errp) { Error *local_err = NULL; BlockBackend *blk; BlockDriverState *bs; BdrvNextIterator it; if (dump_in_progress()) { error_setg(errp, "There is a dump in process, please wait."); return; } if (runstate_needs_reset()) { ...
{ "code": [], "line_no": [] }
void FUNC_0(Error **VAR_0) { Error *local_err = NULL; BlockBackend *blk; BlockDriverState *bs; BdrvNextIterator it; if (dump_in_progress()) { error_setg(VAR_0, "There is a dump in process, please wait."); return; } if (runstate_needs_reset()) { ...
[ "void FUNC_0(Error **VAR_0)\n{", "Error *local_err = NULL;", "BlockBackend *blk;", "BlockDriverState *bs;", "BdrvNextIterator it;", "if (dump_in_progress()) {", "error_setg(VAR_0, \"There is a dump in process, please wait.\");", "return;", "}", "if (runstate_needs_reset()) {", "error_setg(VAR_0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
4,724
static void ehci_queues_rip_unused(EHCIState *ehci, int async, int flush) { EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; uint64_t maxage = FRAME_TIMER_NS * ehci->maxframes * 4; EHCIQueue *q, *tmp; QTAILQ_FOREACH_SAFE(q, head, next, tmp) { if (q->seen) { q->...
false
qemu
9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0
static void ehci_queues_rip_unused(EHCIState *ehci, int async, int flush) { EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; uint64_t maxage = FRAME_TIMER_NS * ehci->maxframes * 4; EHCIQueue *q, *tmp; QTAILQ_FOREACH_SAFE(q, head, next, tmp) { if (q->seen) { q->...
{ "code": [], "line_no": [] }
static void FUNC_0(EHCIState *VAR_0, int VAR_1, int VAR_2) { EHCIQueueHead *head = VAR_1 ? &VAR_0->aqueues : &VAR_0->pqueues; uint64_t maxage = FRAME_TIMER_NS * VAR_0->maxframes * 4; EHCIQueue *q, *tmp; QTAILQ_FOREACH_SAFE(q, head, next, tmp) { if (q->seen) { q->seen = 0; ...
[ "static void FUNC_0(EHCIState *VAR_0, int VAR_1, int VAR_2)\n{", "EHCIQueueHead *head = VAR_1 ? &VAR_0->aqueues : &VAR_0->pqueues;", "uint64_t maxage = FRAME_TIMER_NS * VAR_0->maxframes * 4;", "EHCIQueue *q, *tmp;", "QTAILQ_FOREACH_SAFE(q, head, next, tmp) {", "if (q->seen) {", "q->seen = 0;", "q->ts ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
4,725
static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len) { struct mipid_s *s = (struct mipid_s *) opaque; uint8_t ret; if (len > 9) { hw_error("%s: FIXME: bad SPI word width %i\n", __FUNCTION__, len); } if (s->p >= ARRAY_SIZE(s->resp)) { ret = 0; } else { ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len) { struct mipid_s *s = (struct mipid_s *) opaque; uint8_t ret; if (len > 9) { hw_error("%s: FIXME: bad SPI word width %i\n", __FUNCTION__, len); } if (s->p >= ARRAY_SIZE(s->resp)) { ret = 0; } else { ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, uint32_t cmd, int len) { struct mipid_s *VAR_0 = (struct mipid_s *) opaque; uint8_t ret; if (len > 9) { hw_error("%VAR_0: FIXME: bad SPI word width %i\n", __FUNCTION__, len); } if (VAR_0->p >= ARRAY_SIZE(VAR_0->resp)) { ret = 0; }...
[ "static uint32_t FUNC_0(void *opaque, uint32_t cmd, int len)\n{", "struct mipid_s *VAR_0 = (struct mipid_s *) opaque;", "uint8_t ret;", "if (len > 9) {", "hw_error(\"%VAR_0: FIXME: bad SPI word width %i\\n\", __FUNCTION__, len);", "}", "if (VAR_0->p >= ARRAY_SIZE(VAR_0->resp)) {", "ret = 0;", "} els...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 49, 51...
4,726
static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) { int i; unsigned int enc = 0; vnc_zlib_init(vs); vs->features = 0; vs->vnc_encoding = -1; vs->tight_compression = 9; vs->tight_quality = 9; vs->absolute = -1; for (i = n_encodings - 1; i >=...
false
qemu
a9f20d31a8332ea4d6a0c90b9731f11a51cff6db
static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) { int i; unsigned int enc = 0; vnc_zlib_init(vs); vs->features = 0; vs->vnc_encoding = -1; vs->tight_compression = 9; vs->tight_quality = 9; vs->absolute = -1; for (i = n_encodings - 1; i >=...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, int32_t *VAR_1, size_t VAR_2) { int VAR_3; unsigned int VAR_4 = 0; vnc_zlib_init(VAR_0); VAR_0->features = 0; VAR_0->vnc_encoding = -1; VAR_0->tight_compression = 9; VAR_0->tight_quality = 9; VAR_0->absolute = -1; for (VAR_3 = VAR_2 -...
[ "static void FUNC_0(VncState *VAR_0, int32_t *VAR_1, size_t VAR_2)\n{", "int VAR_3;", "unsigned int VAR_4 = 0;", "vnc_zlib_init(VAR_0);", "VAR_0->features = 0;", "VAR_0->vnc_encoding = -1;", "VAR_0->tight_compression = 9;", "VAR_0->tight_quality = 9;", "VAR_0->absolute = -1;", "for (VAR_3 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47...
4,727
static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model) { unsigned int i; x86_def_t *def; char *s = strdup(cpu_model); char *featurestr, *name = strtok(s, ","); uint32_t plus_features = 0, plus_ext_features = 0, plus_ext2_features = 0, plus_ext3_features = 0; uint...
false
qemu
a8a358bf35e660b1c0bf5adc5446836c6c0d1c73
static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model) { unsigned int i; x86_def_t *def; char *s = strdup(cpu_model); char *featurestr, *name = strtok(s, ","); uint32_t plus_features = 0, plus_ext_features = 0, plus_ext2_features = 0, plus_ext3_features = 0; uint...
{ "code": [], "line_no": [] }
static int FUNC_0(x86_def_t *VAR_0, const char *VAR_1) { unsigned int VAR_2; x86_def_t *def; char *VAR_3 = strdup(VAR_1); char *VAR_4, *VAR_5 = strtok(VAR_3, ","); uint32_t plus_features = 0, plus_ext_features = 0, plus_ext2_features = 0, plus_ext3_features = 0; uint32_t minus_features ...
[ "static int FUNC_0(x86_def_t *VAR_0, const char *VAR_1)\n{", "unsigned int VAR_2;", "x86_def_t *def;", "char *VAR_3 = strdup(VAR_1);", "char *VAR_4, *VAR_5 = strtok(VAR_3, \",\");", "uint32_t plus_features = 0, plus_ext_features = 0, plus_ext2_features = 0, plus_ext3_features = 0;", "uint32_t minus_feat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
4,728
static void ppc_spapr_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model...
false
qemu
92c93a816a8c04071264f9fb47cbc90a5e1ae5d8
static void ppc_spapr_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { CPUState *env; int VAR_6; Memo...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "CPUState *env;", "int VAR_6;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *ram = g_new(MemoryRegion, 1);", "target_phys_addr_t rma_alloc_size, r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
4,730
static int swf_write_video(AVFormatContext *s, AVCodecContext *enc, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; static int tag_id = 0; if (enc->frame_number > 1) { /* remove the shape */ put_swf_tag(s, TAG_REMOVEOBJECT); put_le16(...
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
static int swf_write_video(AVFormatContext *s, AVCodecContext *enc, const uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; static int tag_id = 0; if (enc->frame_number > 1) { put_swf_tag(s, TAG_REMOVEOBJECT); put_le16(pb, SHAPE_ID); ...
{ "code": [ " put_swf_end_tag(s);", " static int tag_id = 0;", " if (enc->frame_number > 1) {", " put_swf_tag(s, TAG_REMOVEOBJECT);", " put_swf_end_tag(s);", " put_swf_tag(s, TAG_FREECHARACTER);", " put_le16(pb, BITMAP_ID);", " put_swf_end_ta...
static int FUNC_0(AVFormatContext *VAR_0, AVCodecContext *VAR_1, const uint8_t *VAR_2, int VAR_3) { ByteIOContext *pb = &VAR_0->pb; static int VAR_4 = 0; if (VAR_1->frame_number > 1) { put_swf_tag(VAR_0, TAG_REMOVEOBJECT); put_le16(pb, SHAPE_ID)...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVCodecContext *VAR_1, const uint8_t *VAR_2, int VAR_3)\n{", "ByteIOContext *pb = &VAR_0->pb;", "static int VAR_4 = 0;", "if (VAR_1->frame_number > 1) {", "put_swf_tag(VAR_0, TAG_REMOVEOBJECT);", "put_le16(pb, SHAPE_ID);", "put_le16(pb, 1);", "put_swf_end_ta...
[ 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [...
4,731
static int ehci_state_writeback(EHCIQueue *q) { EHCIPacket *p = QTAILQ_FIRST(&q->packets); int again = 0; /* Write back the QTD from the QH area */ assert(p != NULL); assert(p->qtdaddr == q->qtdaddr); ehci_trace_qtd(q, NLPTR_GET(p->qtdaddr), (EHCIqtd *) &q->qh.next_qtd); put_dwo...
true
qemu
4ed1c57a64992d84376b446b0c60edff2486681b
static int ehci_state_writeback(EHCIQueue *q) { EHCIPacket *p = QTAILQ_FIRST(&q->packets); int again = 0; assert(p != NULL); assert(p->qtdaddr == q->qtdaddr); ehci_trace_qtd(q, NLPTR_GET(p->qtdaddr), (EHCIqtd *) &q->qh.next_qtd); put_dwords(q->ehci, NLPTR_GET(p->qtdaddr), (uint3...
{ "code": [ " put_dwords(q->ehci, NLPTR_GET(p->qtdaddr), (uint32_t *) &q->qh.next_qtd,", " sizeof(EHCIqtd) >> 2);" ], "line_no": [ 21, 23 ] }
static int FUNC_0(EHCIQueue *VAR_0) { EHCIPacket *p = QTAILQ_FIRST(&VAR_0->packets); int VAR_1 = 0; assert(p != NULL); assert(p->qtdaddr == VAR_0->qtdaddr); ehci_trace_qtd(VAR_0, NLPTR_GET(p->qtdaddr), (EHCIqtd *) &VAR_0->qh.next_qtd); put_dwords(VAR_0->ehci, NLPTR_GET(p->qtdadd...
[ "static int FUNC_0(EHCIQueue *VAR_0)\n{", "EHCIPacket *p = QTAILQ_FIRST(&VAR_0->packets);", "int VAR_1 = 0;", "assert(p != NULL);", "assert(p->qtdaddr == VAR_0->qtdaddr);", "ehci_trace_qtd(VAR_0, NLPTR_GET(p->qtdaddr), (EHCIqtd *) &VAR_0->qh.next_qtd);", "put_dwords(VAR_0->ehci, NLPTR_GET(p->qtdaddr), (...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ] ]
4,732
static int mov_skip_multiple_stsd(MOVContext *c, AVIOContext *pb, int codec_tag, int format, int size) { int video_codec_id = ff_codec_get_id(ff_codec_movvideo_tags, format); if (codec_tag && (codec_tag != format && ...
true
FFmpeg
a9f3bb14ba8b303cf87c42b8fe7e423571176d54
static int mov_skip_multiple_stsd(MOVContext *c, AVIOContext *pb, int codec_tag, int format, int size) { int video_codec_id = ff_codec_get_id(ff_codec_movvideo_tags, format); if (codec_tag && (codec_tag != format && ...
{ "code": [ " int size)" ], "line_no": [ 5 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5 = ff_codec_get_id(ff_codec_movvideo_tags, VAR_3); if (VAR_2 && (VAR_2 != VAR_3 && (VAR_0->fc->VAR_5 ? VAR_5 != VAR...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4)\n{", "int VAR_5 = ff_codec_get_id(ff_codec_movvideo_tags, VAR_3);", "if (VAR_2 &&\n(VAR_2 != VAR_3 &&\n(VAR_0->fc->VAR_5 ? VAR_5 != VAR_0->fc->VAR_5\n: VAR_2 != MKTAG('j','p','e','g')))) {", "av_log(VAR_0->fc, AV_LOG_...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43, 45 ], [ 49 ], [ 51 ] ]
4,733
static uint32_t cas_check_pvr(PowerPCCPU *cpu, target_ulong *addr, Error **errp) { bool explicit_match = false; /* Matched the CPU's real PVR */ uint32_t max_compat = cpu->max_compat; uint32_t best_compat = 0; int i; /* * We scan the supplied table of PVR...
true
qemu
7843c0d60db694b6d97e14ec5538fb97424016c1
static uint32_t cas_check_pvr(PowerPCCPU *cpu, target_ulong *addr, Error **errp) { bool explicit_match = false; uint32_t max_compat = cpu->max_compat; uint32_t best_compat = 0; int i; for (i = 0; i < 512; ++i) { uint32_t pvr, pvr_mask; ...
{ "code": [ "static uint32_t cas_check_pvr(PowerPCCPU *cpu, target_ulong *addr,", " Error **errp)", " uint32_t max_compat = cpu->max_compat;" ], "line_no": [ 1, 3, 9 ] }
static uint32_t FUNC_0(PowerPCCPU *cpu, target_ulong *addr, Error **errp) { bool explicit_match = false; uint32_t max_compat = cpu->max_compat; uint32_t best_compat = 0; int VAR_0; for (VAR_0 = 0; VAR_0 < 512; ++VAR_0) { uint32_t pvr, pv...
[ "static uint32_t FUNC_0(PowerPCCPU *cpu, target_ulong *addr,\nError **errp)\n{", "bool explicit_match = false;", "uint32_t max_compat = cpu->max_compat;", "uint32_t best_compat = 0;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < 512; ++VAR_0) {", "uint32_t pvr, pvr_mask;", "pvr_mask = ldl_be_phys(&address_s...
[ 1, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
4,735
void ff_slice_thread_free(AVCodecContext *avctx) { SliceThreadContext *c = avctx->internal->thread_ctx; int i; pthread_mutex_lock(&c->current_job_lock); c->done = 1; pthread_cond_broadcast(&c->current_job_cond); for (i = 0; i < c->thread_count; i++) pthread_cond_broadcast(&c->p...
true
FFmpeg
b505f15b1530d72682b3314e84936f80fe6e43b2
void ff_slice_thread_free(AVCodecContext *avctx) { SliceThreadContext *c = avctx->internal->thread_ctx; int i; pthread_mutex_lock(&c->current_job_lock); c->done = 1; pthread_cond_broadcast(&c->current_job_cond); for (i = 0; i < c->thread_count; i++) pthread_cond_broadcast(&c->p...
{ "code": [ " pthread_mutex_lock(&c->current_job_lock);", " pthread_mutex_lock(&c->current_job_lock);", " c->done = 1;", " pthread_cond_broadcast(&c->current_job_cond);", " for (i = 0; i < c->thread_count; i++)", " pthread_cond_broadcast(&c->progress_cond[i]);", " ...
void FUNC_0(AVCodecContext *VAR_0) { SliceThreadContext *c = VAR_0->internal->thread_ctx; int VAR_1; pthread_mutex_lock(&c->current_job_lock); c->done = 1; pthread_cond_broadcast(&c->current_job_cond); for (VAR_1 = 0; VAR_1 < c->thread_count; VAR_1++) pthread_cond_broadcast(&c-...
[ "void FUNC_0(AVCodecContext *VAR_0)\n{", "SliceThreadContext *c = VAR_0->internal->thread_ctx;", "int VAR_1;", "pthread_mutex_lock(&c->current_job_lock);", "c->done = 1;", "pthread_cond_broadcast(&c->current_job_cond);", "for (VAR_1 = 0; VAR_1 < c->thread_count; VAR_1++)", "pthread_cond_broadcast(&c->...
[ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
4,736
RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, RTPPayloadData *rtp_payload_data) { RTPDemuxContext *s; s = av_mallocz(sizeof(RTPDemuxContext)); if (!s) return NULL; s->payload_type = payload_type; s->last_rtcp_ntp_time = AV_NOP...
true
FFmpeg
fc78b0cb7e115ae494861c37a9928cff74df8db9
RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, RTPPayloadData *rtp_payload_data) { RTPDemuxContext *s; s = av_mallocz(sizeof(RTPDemuxContext)); if (!s) return NULL; s->payload_type = payload_type; s->last_rtcp_ntp_time = AV_NOP...
{ "code": [ " s->first_rtcp_ntp_time = AV_NOPTS_VALUE;" ], "line_no": [ 19 ] }
RTPDemuxContext *FUNC_0(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, RTPPayloadData *rtp_payload_data) { RTPDemuxContext *s; s = av_mallocz(sizeof(RTPDemuxContext)); if (!s) return NULL; s->payload_type = payload_type; s->last_rtcp_ntp_time = AV_NOPTS_VALUE...
[ "RTPDemuxContext *FUNC_0(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, RTPPayloadData *rtp_payload_data)\n{", "RTPDemuxContext *s;", "s = av_mallocz(sizeof(RTPDemuxContext));", "if (!s)\nreturn NULL;", "s->payload_type = payload_type;", "s->last_rtcp_ntp_time = AV_NOPTS_VALUE;", ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], ...
4,737
static int http_send_data(HTTPContext *c, long cur_time) { int len, ret; while (c->buffer_ptr >= c->buffer_end) { ret = http_prepare_data(c, cur_time); if (ret < 0) return -1; else if (ret == 0) { continue; } else { /* state change ...
true
FFmpeg
5eb765ef341c3ec1bea31914c897750f88476ede
static int http_send_data(HTTPContext *c, long cur_time) { int len, ret; while (c->buffer_ptr >= c->buffer_end) { ret = http_prepare_data(c, cur_time); if (ret < 0) return -1; else if (ret == 0) { continue; } else { re...
{ "code": [ "static int http_send_data(HTTPContext *c, long cur_time)", " ret = http_prepare_data(c, cur_time);" ], "line_no": [ 1, 11 ] }
static int FUNC_0(HTTPContext *VAR_0, long VAR_1) { int VAR_2, VAR_3; while (VAR_0->buffer_ptr >= VAR_0->buffer_end) { VAR_3 = http_prepare_data(VAR_0, VAR_1); if (VAR_3 < 0) return -1; else if (VAR_3 == 0) { continue; } else { ...
[ "static int FUNC_0(HTTPContext *VAR_0, long VAR_1)\n{", "int VAR_2, VAR_3;", "while (VAR_0->buffer_ptr >= VAR_0->buffer_end) {", "VAR_3 = http_prepare_data(VAR_0, VAR_1);", "if (VAR_3 < 0)\nreturn -1;", "else if (VAR_3 == 0) {", "continue;", "} else {", "return 0;", "}", "}", "if (VAR_0->buffe...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
4,738
static void virgl_cmd_resource_unref(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) { struct virtio_gpu_resource_unref unref; VIRTIO_GPU_FILL_CMD(unref); trace_virtio_gpu_cmd_res_unref(unref.resource_id); virgl_renderer_resource_unref(unref.reso...
true
qemu
5e8e3c4c75c199aa1017db816fca02be2a9f8798
static void virgl_cmd_resource_unref(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) { struct virtio_gpu_resource_unref unref; VIRTIO_GPU_FILL_CMD(unref); trace_virtio_gpu_cmd_res_unref(unref.resource_id); virgl_renderer_resource_unref(unref.reso...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIOGPU *VAR_0, struct virtio_gpu_ctrl_command *VAR_1) { struct virtio_gpu_resource_unref VAR_2; VIRTIO_GPU_FILL_CMD(VAR_2); trace_virtio_gpu_cmd_res_unref(VAR_2.resource_id); virgl_renderer_resource_unref(VAR_2.resource_id);
[ "static void FUNC_0(VirtIOGPU *VAR_0,\nstruct virtio_gpu_ctrl_command *VAR_1)\n{", "struct virtio_gpu_resource_unref VAR_2;", "VIRTIO_GPU_FILL_CMD(VAR_2);", "trace_virtio_gpu_cmd_res_unref(VAR_2.resource_id);", "virgl_renderer_resource_unref(VAR_2.resource_id);" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 25 ] ]
4,739
static void perf_yield(void) { unsigned int i, maxcycles; double duration; maxcycles = 100000000; i = maxcycles; Coroutine *coroutine = qemu_coroutine_create(yield_loop); g_test_timer_start(); while (i > 0) { qemu_coroutine_enter(coroutine, &i); } duration = g_...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void perf_yield(void) { unsigned int i, maxcycles; double duration; maxcycles = 100000000; i = maxcycles; Coroutine *coroutine = qemu_coroutine_create(yield_loop); g_test_timer_start(); while (i > 0) { qemu_coroutine_enter(coroutine, &i); } duration = g_...
{ "code": [ " Coroutine *coroutine = qemu_coroutine_create(yield_loop);", " qemu_coroutine_enter(coroutine, &i);" ], "line_no": [ 15, 23 ] }
static void FUNC_0(void) { unsigned int VAR_0, VAR_1; double VAR_2; VAR_1 = 100000000; VAR_0 = VAR_1; Coroutine *coroutine = qemu_coroutine_create(yield_loop); g_test_timer_start(); while (VAR_0 > 0) { qemu_coroutine_enter(coroutine, &VAR_0); } VAR_2 = g_test_t...
[ "static void FUNC_0(void)\n{", "unsigned int VAR_0, VAR_1;", "double VAR_2;", "VAR_1 = 100000000;", "VAR_0 = VAR_1;", "Coroutine *coroutine = qemu_coroutine_create(yield_loop);", "g_test_timer_start();", "while (VAR_0 > 0) {", "qemu_coroutine_enter(coroutine, &VAR_0);", "}", "VAR_2 = g_test_time...
[ 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ] ]
4,740
static void fill_picture_parameters(AVCodecContext *avctx, struct dxva_context *ctx, const struct MpegEncContext *s, DXVA_PictureParameters *pp) { const Picture *current_picture = s->current_picture_ptr;...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static void fill_picture_parameters(AVCodecContext *avctx, struct dxva_context *ctx, const struct MpegEncContext *s, DXVA_PictureParameters *pp) { const Picture *current_picture = s->current_picture_ptr;...
{ "code": [ " pp->wDecodedPictureIndex = ff_dxva2_get_surface_index(ctx, &current_picture->f);", " pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture.f);", " pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);", " ...
static void FUNC_0(AVCodecContext *VAR_0, struct dxva_context *VAR_1, const struct MpegEncContext *VAR_2, DXVA_PictureParameters *VAR_3) { const Picture *VAR_4 = VAR_2->current_picture_ptr; int VAR_...
[ "static void FUNC_0(AVCodecContext *VAR_0,\nstruct dxva_context *VAR_1,\nconst struct MpegEncContext *VAR_2,\nDXVA_PictureParameters *VAR_3)\n{", "const Picture *VAR_4 = VAR_2->current_picture_ptr;", "int VAR_5 = VAR_2->picture_structure != PICT_FRAME;", "memset(VAR_3, 0, sizeof(*VAR_3));", "VAR_3->wDecoded...
[ 0, 0, 0, 0, 1, 0, 1, 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
4,741
static int virtio_balloon_load(QEMUFile *f, void *opaque, int version_id) { VirtIOBalloon *s = opaque; if (version_id != 1) return -EINVAL; virtio_load(&s->vdev, f); s->num_pages = qemu_get_be32(f); s->actual = qemu_get_be32(f); qemu_get_buffer(f, (uint8_t *)&s->stats_vq_el...
true
qemu
6d0ee85040e4d238e2483191fe6e74aebbecd5d5
static int virtio_balloon_load(QEMUFile *f, void *opaque, int version_id) { VirtIOBalloon *s = opaque; if (version_id != 1) return -EINVAL; virtio_load(&s->vdev, f); s->num_pages = qemu_get_be32(f); s->actual = qemu_get_be32(f); qemu_get_buffer(f, (uint8_t *)&s->stats_vq_el...
{ "code": [ " qemu_get_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));", " qemu_get_buffer(f, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));", " qemu_get_buffer(f, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));", " qemu_get_buffer(f, (uint8_t *)&s->stats_op...
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { VirtIOBalloon *s = VAR_1; if (VAR_2 != 1) return -EINVAL; virtio_load(&s->vdev, VAR_0); s->num_pages = qemu_get_be32(VAR_0); s->actual = qemu_get_be32(VAR_0); qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, s...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "VirtIOBalloon *s = VAR_1;", "if (VAR_2 != 1)\nreturn -EINVAL;", "virtio_load(&s->vdev, VAR_0);", "s->num_pages = qemu_get_be32(VAR_0);", "s->actual = qemu_get_be32(VAR_0);", "qemu_get_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, sizeof(Vir...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
4,742
static inline void init_thread(struct target_pt_regs *_regs, struct image_info *infop) { _regs->gpr[1] = infop->start_stack; #if defined(TARGET_PPC64) && !defined(TARGET_ABI32) if (get_ppc64_abi(infop) < 2) { _regs->gpr[2] = ldq_raw(infop->entry + 8) + infop->load_bias; infop->entry = ldq_...
true
qemu
2ccf97ec0f1b7a62a3220064f305454f3932c55a
static inline void init_thread(struct target_pt_regs *_regs, struct image_info *infop) { _regs->gpr[1] = infop->start_stack; #if defined(TARGET_PPC64) && !defined(TARGET_ABI32) if (get_ppc64_abi(infop) < 2) { _regs->gpr[2] = ldq_raw(infop->entry + 8) + infop->load_bias; infop->entry = ldq_...
{ "code": [ " _regs->gpr[2] = ldq_raw(infop->entry + 8) + infop->load_bias;", " infop->entry = ldq_raw(infop->entry) + infop->load_bias;" ], "line_no": [ 11, 13 ] }
static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1) { VAR_0->gpr[1] = VAR_1->start_stack; #if defined(TARGET_PPC64) && !defined(TARGET_ABI32) if (get_ppc64_abi(VAR_1) < 2) { VAR_0->gpr[2] = ldq_raw(VAR_1->entry + 8) + VAR_1->load_bias; VAR_1->entry = ldq_raw(V...
[ "static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1)\n{", "VAR_0->gpr[1] = VAR_1->start_stack;", "#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)\nif (get_ppc64_abi(VAR_1) < 2) {", "VAR_0->gpr[2] = ldq_raw(VAR_1->entry + 8) + VAR_1->load_bias;", "VAR_1->entry = ldq_raw(VAR_...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
4,743
static int mov_read_custom_2plus(MOVContext *c, AVIOContext *pb, int size) { int64_t end = avio_tell(pb) + size; uint8_t *key = NULL, *val = NULL; int i; AVStream *st; MOVStreamContext *sc; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; ...
true
FFmpeg
b71528d8967c1e10f499432fe26ff4713d1fd3b6
static int mov_read_custom_2plus(MOVContext *c, AVIOContext *pb, int size) { int64_t end = avio_tell(pb) + size; uint8_t *key = NULL, *val = NULL; int i; AVStream *st; MOVStreamContext *sc; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; ...
{ "code": [ " avio_read(pb, *p, len);" ], "line_no": [ 81 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2) { int64_t end = avio_tell(VAR_1) + VAR_2; uint8_t *key = NULL, *val = NULL; int VAR_3; AVStream *st; MOVStreamContext *sc; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->streams[VAR_0->fc->nb_str...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2)\n{", "int64_t end = avio_tell(VAR_1) + VAR_2;", "uint8_t *key = NULL, *val = NULL;", "int VAR_3;", "AVStream *st;", "MOVStreamContext *sc;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams[VAR_0->fc->nb_streams-...
[ 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [...
4,744
static void softusb_usbdev_datain(void *opaque) { MilkymistSoftUsbState *s = opaque; USBPacket p; p.pid = USB_TOKEN_IN; p.devep = 1; p.data = s->kbd_usb_buffer; p.len = sizeof(s->kbd_usb_buffer); s->usbdev->info->handle_data(s->usbdev, &p); softusb_kbd_changed(s); }
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static void softusb_usbdev_datain(void *opaque) { MilkymistSoftUsbState *s = opaque; USBPacket p; p.pid = USB_TOKEN_IN; p.devep = 1; p.data = s->kbd_usb_buffer; p.len = sizeof(s->kbd_usb_buffer); s->usbdev->info->handle_data(s->usbdev, &p); softusb_kbd_changed(s); }
{ "code": [ " p.pid = USB_TOKEN_IN;", " p.devep = 1;", " p.pid = USB_TOKEN_IN;", " p.devep = 1;", " p.data = s->kbd_usb_buffer;", " p.len = sizeof(s->kbd_usb_buffer);" ], "line_no": [ 13, 15, 13, 15, 17, 19 ] }
static void FUNC_0(void *VAR_0) { MilkymistSoftUsbState *s = VAR_0; USBPacket p; p.pid = USB_TOKEN_IN; p.devep = 1; p.data = s->kbd_usb_buffer; p.len = sizeof(s->kbd_usb_buffer); s->usbdev->info->handle_data(s->usbdev, &p); softusb_kbd_changed(s); }
[ "static void FUNC_0(void *VAR_0)\n{", "MilkymistSoftUsbState *s = VAR_0;", "USBPacket p;", "p.pid = USB_TOKEN_IN;", "p.devep = 1;", "p.data = s->kbd_usb_buffer;", "p.len = sizeof(s->kbd_usb_buffer);", "s->usbdev->info->handle_data(s->usbdev, &p);", "softusb_kbd_changed(s);", "}" ]
[ 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
4,745
static int a52_decode_init(AVCodecContext *avctx) { AC3DecodeState *s = avctx->priv_data; #ifdef CONFIG_LIBA52BIN s->handle = dlopen(liba52name, RTLD_LAZY); if (!s->handle) { av_log( avctx, AV_LOG_ERROR, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror()); retu...
false
FFmpeg
95e5323510aa9526b7771d20deadc80c19f215eb
static int a52_decode_init(AVCodecContext *avctx) { AC3DecodeState *s = avctx->priv_data; #ifdef CONFIG_LIBA52BIN s->handle = dlopen(liba52name, RTLD_LAZY); if (!s->handle) { av_log( avctx, AV_LOG_ERROR, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror()); retu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { AC3DecodeState *s = VAR_0->priv_data; #ifdef CONFIG_LIBA52BIN s->handle = dlopen(liba52name, RTLD_LAZY); if (!s->handle) { av_log( VAR_0, AV_LOG_ERROR, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror()); return -1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "AC3DecodeState *s = VAR_0->priv_data;", "#ifdef CONFIG_LIBA52BIN\ns->handle = dlopen(liba52name, RTLD_LAZY);", "if (!s->handle)\n{", "av_log( VAR_0, AV_LOG_ERROR, \"A52 library %s could not be opened! \\n%s\\n\", liba52name, dlerror());", "return -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, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
4,746
static void release_drive(Object *obj, const char *name, void *opaque) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; BlockBackend **ptr = qdev_get_prop_ptr(dev, prop); if (*ptr) { blk_detach_dev(*ptr, dev); blockdev_auto_del(*ptr); } }
true
qemu
8daea510951dd309a44cea8de415c685c43851cf
static void release_drive(Object *obj, const char *name, void *opaque) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; BlockBackend **ptr = qdev_get_prop_ptr(dev, prop); if (*ptr) { blk_detach_dev(*ptr, dev); blockdev_auto_del(*ptr); } }
{ "code": [ " blk_detach_dev(*ptr, dev);" ], "line_no": [ 15 ] }
static void FUNC_0(Object *VAR_0, const char *VAR_1, void *VAR_2) { DeviceState *dev = DEVICE(VAR_0); Property *prop = VAR_2; BlockBackend **ptr = qdev_get_prop_ptr(dev, prop); if (*ptr) { blk_detach_dev(*ptr, dev); blockdev_auto_del(*ptr); } }
[ "static void FUNC_0(Object *VAR_0, const char *VAR_1, void *VAR_2)\n{", "DeviceState *dev = DEVICE(VAR_0);", "Property *prop = VAR_2;", "BlockBackend **ptr = qdev_get_prop_ptr(dev, prop);", "if (*ptr) {", "blk_detach_dev(*ptr, dev);", "blockdev_auto_del(*ptr);", "}", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
4,747
static inline int decode_picture_parameter_set(H264Context *h, int bit_length){ MpegEncContext * const s = &h->s; unsigned int pps_id= get_ue_golomb(&s->gb); PPS *pps; if(pps_id>=MAX_PPS_COUNT){ av_log(h->s.avctx, AV_LOG_ERROR, "pps_id out of range\n"); return -1; } pps...
true
FFmpeg
88e7a4d18c63799a21dff4a570ceb8008e310820
static inline int decode_picture_parameter_set(H264Context *h, int bit_length){ MpegEncContext * const s = &h->s; unsigned int pps_id= get_ue_golomb(&s->gb); PPS *pps; if(pps_id>=MAX_PPS_COUNT){ av_log(h->s.avctx, AV_LOG_ERROR, "pps_id out of range\n"); return -1; } pps...
{ "code": [ " unsigned int pps_id= get_ue_golomb(&s->gb);", " pps->sps_id= get_ue_golomb(&s->gb);" ], "line_no": [ 5, 23 ] }
static inline int FUNC_0(H264Context *VAR_0, int VAR_1){ MpegEncContext * const s = &VAR_0->s; unsigned int VAR_2= get_ue_golomb(&s->gb); PPS *pps; if(VAR_2>=MAX_PPS_COUNT){ av_log(VAR_0->s.avctx, AV_LOG_ERROR, "VAR_2 out of range\n"); return -1; } pps = &VAR_0->pps_buf...
[ "static inline int FUNC_0(H264Context *VAR_0, int VAR_1){", "MpegEncContext * const s = &VAR_0->s;", "unsigned int VAR_2= get_ue_golomb(&s->gb);", "PPS *pps;", "if(VAR_2>=MAX_PPS_COUNT){", "av_log(VAR_0->s.avctx, AV_LOG_ERROR, \"VAR_2 out of range\\n\");", "return -1;", "}", "pps = &VAR_0->pps_buffe...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45, 47...
4,748
static uint64_t watch_mem_read(void *opaque, hwaddr addr, unsigned size) { check_watchpoint(addr & ~TARGET_PAGE_MASK, size, BP_MEM_READ); switch (size) { case 1: return ldub_phys(&address_space_memory, addr); case 2: return lduw_phys(&address_space_memory, addr); ...
true
qemu
66b9b43c42049bcae37668e890fedde9a72c8167
static uint64_t watch_mem_read(void *opaque, hwaddr addr, unsigned size) { check_watchpoint(addr & ~TARGET_PAGE_MASK, size, BP_MEM_READ); switch (size) { case 1: return ldub_phys(&address_space_memory, addr); case 2: return lduw_phys(&address_space_memory, addr); ...
{ "code": [ "static uint64_t watch_mem_read(void *opaque, hwaddr addr,", " unsigned size)", " check_watchpoint(addr & ~TARGET_PAGE_MASK, size, BP_MEM_READ);", " case 1: return ldub_phys(&address_space_memory, addr);", " case 2: return lduw_phys(&address_space...
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { check_watchpoint(addr & ~TARGET_PAGE_MASK, size, BP_MEM_READ); switch (size) { case 1: return ldub_phys(&address_space_memory, addr); case 2: return lduw_phys(&address_space_memory, addr); case 4...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "check_watchpoint(addr & ~TARGET_PAGE_MASK, size, BP_MEM_READ);", "switch (size) {", "case 1: return ldub_phys(&address_space_memory, addr);", "case 2: return lduw_phys(&address_space_memory, addr);", "case 4: return ldl_phys(&address...
[ 1, 1, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
4,749
static int tcp_open(URLContext *h, const char *uri, int flags) { struct sockaddr_in dest_addr; char hostname[1024], *q; int port, fd = -1; TCPContext *s; const char *p; fd_set wfds; int fd_max, ret; struct timeval tv; socklen_t optlen; s = av_malloc(sizeof(TCPCon...
false
FFmpeg
6ba5cbc699e77cae66bb719354fa142114b64eab
static int tcp_open(URLContext *h, const char *uri, int flags) { struct sockaddr_in dest_addr; char hostname[1024], *q; int port, fd = -1; TCPContext *s; const char *p; fd_set wfds; int fd_max, ret; struct timeval tv; socklen_t optlen; s = av_malloc(sizeof(TCPCon...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { struct sockaddr_in VAR_3; char VAR_4[1024], *VAR_5; int VAR_6, VAR_7 = -1; TCPContext *s; const char *VAR_8; fd_set wfds; int VAR_9, VAR_10; struct timeval VAR_11; socklen_t optlen; s = av_mallo...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "struct sockaddr_in VAR_3;", "char VAR_4[1024], *VAR_5;", "int VAR_6, VAR_7 = -1;", "TCPContext *s;", "const char *VAR_8;", "fd_set wfds;", "int VAR_9, VAR_10;", "struct timeval VAR_11;", "socklen_t optlen;", "s = av_malloc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 45 ], [...
4,750
static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov) { int max_track_id = 1, i; int64_t max_track_len_temp, max_track_len = 0; int version; for (i = 0; i < mov->nb_streams; i++) { if (mov->tracks[i].entry > 0) { max_track_len_temp = av_rescale_rnd(mov->tracks[i...
false
FFmpeg
22de0f8369f1f3edf1a55e1d275f3c07c617b53e
static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov) { int max_track_id = 1, i; int64_t max_track_len_temp, max_track_len = 0; int version; for (i = 0; i < mov->nb_streams; i++) { if (mov->tracks[i].entry > 0) { max_track_len_temp = av_rescale_rnd(mov->tracks[i...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1) { int VAR_2 = 1, VAR_3; int64_t max_track_len_temp, max_track_len = 0; int VAR_4; for (VAR_3 = 0; VAR_3 < VAR_1->nb_streams; VAR_3++) { if (VAR_1->tracks[VAR_3].entry > 0) { max_track_len_temp = av_rescale_rnd(VAR_1...
[ "static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1)\n{", "int VAR_2 = 1, VAR_3;", "int64_t max_track_len_temp, max_track_len = 0;", "int VAR_4;", "for (VAR_3 = 0; VAR_3 < VAR_1->nb_streams; VAR_3++) {", "if (VAR_1->tracks[VAR_3].entry > 0) {", "max_track_len_temp = av_rescale_rnd(VAR_1->tracks[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
4,751
static inline void idct4col_put(uint8_t *dest, int line_size, const DCTELEM *col) { int c0, c1, c2, c3, a0, a1, a2, a3; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; a0 = col[8*0]; a1 = col[8*2]; a2 = col[8*4]; a3 = col[8*6]; c0 = ((a0 + a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1...
false
FFmpeg
689f65126be8a55e8a1e706cb56b19bb975c20ce
static inline void idct4col_put(uint8_t *dest, int line_size, const DCTELEM *col) { int c0, c1, c2, c3, a0, a1, a2, a3; const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; a0 = col[8*0]; a1 = col[8*2]; a2 = col[8*4]; a3 = col[8*6]; c0 = ((a0 + a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1...
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; const uint8_t *VAR_11 = ff_cropTbl + MAX_NEG_CROP; VAR_7 = VAR_2[8*0]; VAR_8 = VAR_2[8*2]; VAR_9 = VAR_2[8*4]; VAR_10 = VAR_2[8*6]; VAR_3 = ((VA...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "const uint8_t *VAR_11 = ff_cropTbl + MAX_NEG_CROP;", "VAR_7 = VAR_2[8*0];", "VAR_8 = VAR_2[8*2];", "VAR_9 = VAR_2[8*4];", "VAR_10 = VAR_2[8*6];", "VAR_3 = (...
[ 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 ] ]
4,752
static void print_final_stats(int64_t total_size) { uint64_t video_size = 0, audio_size = 0, extra_size = 0, other_size = 0; uint64_t subtitle_size = 0; uint64_t data_size = 0; float percent = -1.0; int i, j; for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_...
false
FFmpeg
b3f461508176236bd9d7c2762fd70e339b1494f8
static void print_final_stats(int64_t total_size) { uint64_t video_size = 0, audio_size = 0, extra_size = 0, other_size = 0; uint64_t subtitle_size = 0; uint64_t data_size = 0; float percent = -1.0; int i, j; for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_...
{ "code": [], "line_no": [] }
static void FUNC_0(int64_t VAR_0) { uint64_t video_size = 0, audio_size = 0, extra_size = 0, other_size = 0; uint64_t subtitle_size = 0; uint64_t data_size = 0; float VAR_1 = -1.0; int VAR_2, VAR_3; for (VAR_2 = 0; VAR_2 < nb_output_streams; VAR_2++) { OutputStream *ost = outpu...
[ "static void FUNC_0(int64_t VAR_0)\n{", "uint64_t video_size = 0, audio_size = 0, extra_size = 0, other_size = 0;", "uint64_t subtitle_size = 0;", "uint64_t data_size = 0;", "float VAR_1 = -1.0;", "int VAR_2, VAR_3;", "for (VAR_2 = 0; VAR_2 < nb_output_streams; VAR_2++) {", "OutputStream *ost = output...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [...
4,753
static void read_sbr_channel_pair_element(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) { if (get_bits1(gb)) // bs_data_extra skip_bits(gb, 8); // bs_reserved if ((sbr->bs_coupling = get_bit...
true
FFmpeg
58b1cba0c9173741cf769117a735b429356d83c0
static void read_sbr_channel_pair_element(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) { if (get_bits1(gb)) skip_bits(gb, 8); if ((sbr->bs_coupling = get_bits1(gb))) { read_sbr_g...
{ "code": [ "static void read_sbr_channel_pair_element(AACContext *ac,", " read_sbr_grid(ac, sbr, gb, &sbr->data[0]);", " read_sbr_grid(ac, sbr, gb, &sbr->data[0]);", " read_sbr_grid(ac, sbr, gb, &sbr->data[1]);" ], "line_no": [ 1, 17, 17, 43 ] }
static void FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1, GetBitContext *VAR_2) { if (get_bits1(VAR_2)) skip_bits(VAR_2, 8); if ((VAR_1->bs_coupling = get_bits1(VAR_2))) { read_sbr_grid(...
[ "static void FUNC_0(AACContext *VAR_0,\nSpectralBandReplication *VAR_1,\nGetBitContext *VAR_2)\n{", "if (get_bits1(VAR_2))\nskip_bits(VAR_2, 8);", "if ((VAR_1->bs_coupling = get_bits1(VAR_2))) {", "read_sbr_grid(VAR_0, VAR_1, VAR_2, &VAR_1->data[0]);", "copy_sbr_grid(&VAR_1->data[1], &VAR_1->data[0]);", "...
[ 1, 0, 0, 1, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
4,754
static void qtrle_decode_16bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change) { int rle_code; int pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned short rgb16; unsigned char *rgb = s->frame.data[0]; int pixel_limit = s->frame.linesize[0] * s->avctx->height; ...
true
FFmpeg
de64d8cf171c6ecdca22d57f0bdd7efec95d0c0e
static void qtrle_decode_16bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change) { int rle_code; int pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned short rgb16; unsigned char *rgb = s->frame.data[0]; int pixel_limit = s->frame.linesize[0] * s->avctx->height; ...
{ "code": [ " CHECK_STREAM_PTR(2);", " CHECK_STREAM_PTR(2);", " while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {", " CHECK_STREAM_PTR(1);", " CHECK_STREAM_PTR(2);", " while ((rle_code = (signed char)s->buf[stream_ptr++]) != -1) {"...
static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4; int VAR_5; int VAR_6 = VAR_0->frame.linesize[0]; unsigned short VAR_7; unsigned char *VAR_8 = VAR_0->frame.data[0]; int VAR_9 = VAR_0->frame.linesize[0] * VAR_0->avctx->height; while (VAR_3--) { ...
[ "static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5;", "int VAR_6 = VAR_0->frame.linesize[0];", "unsigned short VAR_7;", "unsigned char *VAR_8 = VAR_0->frame.data[0];", "int VAR_9 = VAR_0->frame.linesize[0] * VAR_0->avctx->height;", "while (VAR_3--) ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
4,755
static void v9fs_mknod(void *opaque) { int mode; gid_t gid; int32_t fid; V9fsQID qid; int err = 0; int major, minor; size_t offset = 7; V9fsString name; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarsha...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_mknod(void *opaque) { int mode; gid_t gid; int32_t fid; V9fsQID qid; int err = 0; int major, minor; size_t offset = 7; V9fsString name; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarsha...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1; gid_t gid; int32_t fid; V9fsQID qid; int VAR_2 = 0; int VAR_3, VAR_4; size_t offset = 7; V9fsString name; struct stat VAR_5; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(p...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "gid_t gid;", "int32_t fid;", "V9fsQID qid;", "int VAR_2 = 0;", "int VAR_3, VAR_4;", "size_t offset = 7;", "V9fsString name;", "struct stat VAR_5;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], ...
4,756
void HELPER(cpsr_write_eret)(CPUARMState *env, uint32_t val) { cpsr_write(env, val, CPSR_ERET_MASK, CPSRWriteExceptionReturn); arm_call_el_change_hook(arm_env_get_cpu(env)); }
true
qemu
fb0e8e79a9d77ee240dbca036fa8698ce654e5d1
void HELPER(cpsr_write_eret)(CPUARMState *env, uint32_t val) { cpsr_write(env, val, CPSR_ERET_MASK, CPSRWriteExceptionReturn); arm_call_el_change_hook(arm_env_get_cpu(env)); }
{ "code": [], "line_no": [] }
void FUNC_0(cpsr_write_eret)(CPUARMState *env, uint32_t val) { cpsr_write(env, val, CPSR_ERET_MASK, CPSRWriteExceptionReturn); arm_call_el_change_hook(arm_env_get_cpu(env)); }
[ "void FUNC_0(cpsr_write_eret)(CPUARMState *env, uint32_t val)\n{", "cpsr_write(env, val, CPSR_ERET_MASK, CPSRWriteExceptionReturn);", "arm_call_el_change_hook(arm_env_get_cpu(env));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ] ]
4,758
static void vp7_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 1); }
true
FFmpeg
7b5ff7d57355dc608f0fd86e3ab32a2fda65e752
static void vp7_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 1); }
{ "code": [ "static void vp7_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata,", " decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 1);" ], "line_no": [ 1, 7 ] }
static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { decode_mb_row_no_filter(VAR_0, VAR_1, VAR_2, VAR_3, 1); }
[ "static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{", "decode_mb_row_no_filter(VAR_0, VAR_1, VAR_2, VAR_3, 1);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
4,759
static void test_parse_path_subprocess(void) { /* All these should work without issue */ qemu_set_log_filename("/tmp/qemu.log"); qemu_set_log_filename("/tmp/qemu-%d.log"); qemu_set_log_filename("/tmp/qemu.log.%d"); }
true
qemu
daa76aa416b1e18ab1fac650ff53d966d8f21f68
static void test_parse_path_subprocess(void) { qemu_set_log_filename("/tmp/qemu.log"); qemu_set_log_filename("/tmp/qemu-%d.log"); qemu_set_log_filename("/tmp/qemu.log.%d"); }
{ "code": [ "static void test_parse_path_subprocess(void)", " qemu_set_log_filename(\"/tmp/qemu.log\");", " qemu_set_log_filename(\"/tmp/qemu-%d.log\");", " qemu_set_log_filename(\"/tmp/qemu.log.%d\");" ], "line_no": [ 1, 7, 9, 11 ] }
static void FUNC_0(void) { qemu_set_log_filename("/tmp/qemu.log"); qemu_set_log_filename("/tmp/qemu-%d.log"); qemu_set_log_filename("/tmp/qemu.log.%d"); }
[ "static void FUNC_0(void)\n{", "qemu_set_log_filename(\"/tmp/qemu.log\");", "qemu_set_log_filename(\"/tmp/qemu-%d.log\");", "qemu_set_log_filename(\"/tmp/qemu.log.%d\");", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
4,763
static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) // allways true for upscaling, sometimes for down too { long counter= -2*ds...
false
FFmpeg
4bff9ef9d0781c4de228bf1f85634d2706fc589b
static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) { long counter= -2*dstW; filter-= counter*2; filterPos-= counter/2; ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc, int16_t *filter, int16_t *filterPos, long filterSize) { #ifdef HAVE_MMX assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) { long counter= -2*dstW; filter-= counter*2; filterPos-= counter/2; ...
[ "static inline void FUNC_0(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW, int xInc,\nint16_t *filter, int16_t *filterPos, long filterSize)\n{", "#ifdef HAVE_MMX\nassert(filterSize % 4 == 0 && filterSize>0);", "if(filterSize==4)\n{", "long counter= -2*dstW;", "filter-= counter*2;", "filterPos-= co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
4,764
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples) { int i, nb_samples1; short *bufin[2]; short *bufout[2]; short *buftmp2[2], *buftmp3[2]; int lenout; if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) { /* nothing to do */ ...
false
FFmpeg
90901860c21468d6e9ae437c2bacb099c7bd3acf
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples) { int i, nb_samples1; short *bufin[2]; short *bufout[2]; short *buftmp2[2], *buftmp3[2]; int lenout; if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) { memcpy(outpu...
{ "code": [], "line_no": [] }
int FUNC_0(ReSampleContext *VAR_0, short *VAR_1, short *VAR_2, int VAR_3) { int VAR_4, VAR_5; short *VAR_6[2]; short *VAR_7[2]; short *VAR_8[2], *VAR_9[2]; int VAR_10; if (VAR_0->input_channels == VAR_0->output_channels && VAR_0->ratio == 1.0 && 0) { memcpy(VAR_1, VAR...
[ "int FUNC_0(ReSampleContext *VAR_0, short *VAR_1, short *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "short *VAR_6[2];", "short *VAR_7[2];", "short *VAR_8[2], *VAR_9[2];", "int VAR_10;", "if (VAR_0->input_channels == VAR_0->output_channels && VAR_0->ratio == 1.0 && 0) {", "memcpy(VAR_1, VAR_2, VAR_3 *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 53, 55 ], [...
4,765
static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { TransContext *s = ctx->priv; ThreadData *td = arg; AVFrame *out = td->out; AVFrame *in = td->in; int plane; for (plane = 0; out->data[plane]; plane++) { int hsub = pla...
false
FFmpeg
c6939f65a116b1ffed345d29d8621ee4ffb32235
static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { TransContext *s = ctx->priv; ThreadData *td = arg; AVFrame *out = td->out; AVFrame *in = td->in; int plane; for (plane = 0; out->data[plane]; plane++) { int hsub = pla...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { TransContext *s = VAR_0->priv; ThreadData *td = VAR_1; AVFrame *out = td->out; AVFrame *in = td->in; int VAR_4; for (VAR_4 = 0; out->data[VAR_4]; VAR_4++) { int hsub = VAR...
[ "static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2,\nint VAR_3)\n{", "TransContext *s = VAR_0->priv;", "ThreadData *td = VAR_1;", "AVFrame *out = td->out;", "AVFrame *in = td->in;", "int VAR_4;", "for (VAR_4 = 0; out->data[VAR_4]; VAR_4++) {", "int hsub = VAR_4 == 1 || VAR_4 == 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, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [...
4,771
static int expand_rle_row(const uint8_t *in_buf, const uint8_t* in_end, unsigned char *out_buf, uint8_t* out_end, int pixelstride) { unsigned char pixel, count; unsigned char *orig = out_buf; while (1) { if(in_buf + 1 > in_end) return -1; pixel = bytestream_get_byte(&in_...
true
FFmpeg
4cd0bdae9a62d1f0366e60603222762af31e5289
static int expand_rle_row(const uint8_t *in_buf, const uint8_t* in_end, unsigned char *out_buf, uint8_t* out_end, int pixelstride) { unsigned char pixel, count; unsigned char *orig = out_buf; while (1) { if(in_buf + 1 > in_end) return -1; pixel = bytestream_get_byte(&in_...
{ "code": [ "static int expand_rle_row(const uint8_t *in_buf, const uint8_t* in_end,", " unsigned char *out_buf, uint8_t* out_end, int pixelstride)", " if(in_buf + 1 > in_end) return -1;", " pixel = bytestream_get_byte(&in_buf);", " *out_buf = bytestream_get...
static int FUNC_0(const uint8_t *VAR_0, const uint8_t* VAR_1, unsigned char *VAR_2, uint8_t* VAR_3, int VAR_4) { unsigned char VAR_5, VAR_6; unsigned char *VAR_7 = VAR_2; while (1) { if(VAR_0 + 1 > VAR_1) return -1; VAR_5 = bytestream_get_byte(&VAR_0); if (!(VAR...
[ "static int FUNC_0(const uint8_t *VAR_0, const uint8_t* VAR_1,\nunsigned char *VAR_2, uint8_t* VAR_3, int VAR_4)\n{", "unsigned char VAR_5, VAR_6;", "unsigned char *VAR_7 = VAR_2;", "while (1) {", "if(VAR_0 + 1 > VAR_1) return -1;", "VAR_5 = bytestream_get_byte(&VAR_0);", "if (!(VAR_6 = (VAR_5 & 0x7f)))...
[ 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
4,772
static void encode_exponents_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy, uint8_t *num_exp_groups) { int group_size, nb_groups, i, j, k, exp_min; group_size = exp_strategy + (exp_strategy == EXP_D45); *num_exp_groups = (n...
false
FFmpeg
cdedf7e6254024c643532d45ac7c68e84e50eb01
static void encode_exponents_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy, uint8_t *num_exp_groups) { int group_size, nb_groups, i, j, k, exp_min; group_size = exp_strategy + (exp_strategy == EXP_D45); *num_exp_groups = (n...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; VAR_4 = VAR_2 + (VAR_2 == EXP_D45); *VAR_3 = (VAR_1 + (VAR_4 * 3) - 4) / (3 * VAR_4); VAR_5 = *VAR_3 *...
[ "static void FUNC_0(uint8_t *VAR_0,\nint VAR_1, int VAR_2,\nuint8_t *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "VAR_4 = VAR_2 + (VAR_2 == EXP_D45);", "*VAR_3 = (VAR_1 + (VAR_4 * 3) - 4) / (3 * VAR_4);", "VAR_5 = *VAR_3 * 3;", "if (VAR_2 > EXP_D15) {", "VAR_8 = 1;", "for (VAR_6 = 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55 ...
4,773
static void ac3_update_bap_counts_c(uint16_t mant_cnt[16], uint8_t *bap, int len) { while (len-- >= 0) mant_cnt[bap[len]]++; }
false
FFmpeg
dc0ad40de2b0d6995eb842e56b22f9096bd539ff
static void ac3_update_bap_counts_c(uint16_t mant_cnt[16], uint8_t *bap, int len) { while (len-- >= 0) mant_cnt[bap[len]]++; }
{ "code": [], "line_no": [] }
static void FUNC_0(uint16_t VAR_0[16], uint8_t *VAR_1, int VAR_2) { while (VAR_2-- >= 0) VAR_0[VAR_1[VAR_2]]++; }
[ "static void FUNC_0(uint16_t VAR_0[16], uint8_t *VAR_1,\nint VAR_2)\n{", "while (VAR_2-- >= 0)\nVAR_0[VAR_1[VAR_2]]++;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
4,774
static av_cold int adpcm_decode_init(AVCodecContext * avctx) { ADPCMDecodeContext *c = avctx->priv_data; unsigned int min_channels = 1; unsigned int max_channels = 2; switch(avctx->codec->id) { case AV_CODEC_ID_ADPCM_DTK: case AV_CODEC_ID_ADPCM_EA: min_channels = 2; br...
false
FFmpeg
3f9fa2d0b58b142b165d4a8eaa61d7e837a76838
static av_cold int adpcm_decode_init(AVCodecContext * avctx) { ADPCMDecodeContext *c = avctx->priv_data; unsigned int min_channels = 1; unsigned int max_channels = 2; switch(avctx->codec->id) { case AV_CODEC_ID_ADPCM_DTK: case AV_CODEC_ID_ADPCM_EA: min_channels = 2; br...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { ADPCMDecodeContext *c = avctx->priv_data; unsigned int VAR_0 = 1; unsigned int VAR_1 = 2; switch(avctx->codec->id) { case AV_CODEC_ID_ADPCM_DTK: case AV_CODEC_ID_ADPCM_EA: VAR_0 = 2; break; case AV_CODEC_ID_ADPCM...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "ADPCMDecodeContext *c = avctx->priv_data;", "unsigned int VAR_0 = 1;", "unsigned int VAR_1 = 2;", "switch(avctx->codec->id) {", "case AV_CODEC_ID_ADPCM_DTK:\ncase AV_CODEC_ID_ADPCM_EA:\nVAR_0 = 2;", "break;", "case AV_CODEC_ID_ADPCM_AFC:\ncase 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 ]
[ [ 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 ], [...
4,775
static void test2_fill_picture(AVFilterContext *ctx, AVFrame *frame) { TestSourceContext *s = ctx->priv; FFDrawColor color; unsigned alpha = (uint32_t)s->alpha << 24; /* colored background */ { unsigned i, x = 0, x2; x = 0; for (i = 1; i < 7; i++) { ...
true
FFmpeg
a8305b0ea3ccfe00a50cd3312bfcc455c78aacb5
static void test2_fill_picture(AVFilterContext *ctx, AVFrame *frame) { TestSourceContext *s = ctx->priv; FFDrawColor color; unsigned alpha = (uint32_t)s->alpha << 24; { unsigned i, x = 0, x2; x = 0; for (i = 1; i < 7; i++) { x2 = av_rescale(i, s->w,...
{ "code": [ " for (y = ymin; y < ymax - 15; y += 16) {", " for (x = xmin; x < xmax - 15; x += 16) {" ], "line_no": [ 245, 247 ] }
static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1) { TestSourceContext *s = VAR_0->priv; FFDrawColor color; unsigned VAR_2 = (uint32_t)s->VAR_2 << 24; { unsigned VAR_33, VAR_36 = 0, VAR_27; VAR_36 = 0; for (VAR_33 = 1; VAR_33 < 7; VAR_33++) { ...
[ "static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{", "TestSourceContext *s = VAR_0->priv;", "FFDrawColor color;", "unsigned VAR_2 = (uint32_t)s->VAR_2 << 24;", "{", "unsigned VAR_33, VAR_36 = 0, VAR_27;", "VAR_36 = 0;", "for (VAR_33 = 1; VAR_33 < 7; VAR_33++) {", "VAR_27 = av_rescale(VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [ 59 ...
4,776
static int iv_decode_frame(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Indeo3DecodeContext *s = avctx->priv_data; unsigned int image_width, image_height, chroma_width, chroma_height; unsigned long flags, cb_offset, data_size, ...
true
FFmpeg
16c831851384ab59e73579fdd9913fbff3c0284a
static int iv_decode_frame(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Indeo3DecodeContext *s = avctx->priv_data; unsigned int image_width, image_height, chroma_width, chroma_height; unsigned long flags, cb_offset, data_size, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { Indeo3DecodeContext *s = VAR_0->priv_data; unsigned int VAR_3, VAR_4, VAR_5, VAR_6; unsigned long VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; const u...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "Indeo3DecodeContext *s = VAR_0->priv_data;", "unsigned int VAR_3, VAR_4,\nVAR_5, VAR_6;", "unsigned long VAR_7, VAR_8, VAR_9,\nVAR_10, VAR_11, VAR_12, VAR_13;", "const uint8_t *VAR_14, *buf_pos;", "buf_pos = VAR_1;", "buf_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 58 ], [ 60 ], [ 62 ], [ 64 ...
4,777
static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { int ret = 0; /* apply the output bitstream filters, if any */ if (ost->nb_bitstream_filters) { int idx; ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt); if (ret < 0) goto finish; ...
true
FFmpeg
11f24e71ff2b598d973fd24bcf950eebaea9b3e6
static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { int ret = 0; if (ost->nb_bitstream_filters) { int idx; ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt); if (ret < 0) goto finish; idx = 1; while (idx) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2) { int VAR_3 = 0; if (VAR_2->nb_bitstream_filters) { int VAR_4; VAR_3 = av_bsf_send_packet(VAR_2->bsf_ctx[0], VAR_1); if (VAR_3 < 0) goto finish; VAR_4 = 1; while ...
[ "static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2)\n{", "int VAR_3 = 0;", "if (VAR_2->nb_bitstream_filters) {", "int VAR_4;", "VAR_3 = av_bsf_send_packet(VAR_2->bsf_ctx[0], VAR_1);", "if (VAR_3 < 0)\ngoto finish;", "VAR_4 = 1;", "while (VAR_4) {", "VAR_3 = av_bsf_receive_pa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 18 ], [ 20, 22 ], [ 26 ], [ 28 ], [ 32 ], [ 44 ], [ 46 ], [ 48, 50 ], [ 52 ], [ 54 ], [ 56 ], [ 58 ], [ 60 ], [ 62 ], [ 6...
4,778
static void audio_pp_nb_voices (const char *typ, int nb) { switch (nb) { case 0: printf ("Does not support %s\n", typ); break; case 1: printf ("One %s voice\n", typ); break; case INT_MAX: printf ("Theoretically supports many %s voices\n", typ); ...
true
qemu
e7d81004e486b0e80a674d164d8aec0e83fa812f
static void audio_pp_nb_voices (const char *typ, int nb) { switch (nb) { case 0: printf ("Does not support %s\n", typ); break; case 1: printf ("One %s voice\n", typ); break; case INT_MAX: printf ("Theoretically supports many %s voices\n", typ); ...
{ "code": [ " printf (\"Theoretically supports upto %d %s voices\\n\", nb, typ);" ], "line_no": [ 27 ] }
static void FUNC_0 (const char *VAR_0, int VAR_1) { switch (VAR_1) { case 0: printf ("Does not support %s\n", VAR_0); break; case 1: printf ("One %s voice\n", VAR_0); break; case INT_MAX: printf ("Theoretically supports many %s voices\n", VAR_0); ...
[ "static void FUNC_0 (const char *VAR_0, int VAR_1)\n{", "switch (VAR_1) {", "case 0:\nprintf (\"Does not support %s\\n\", VAR_0);", "break;", "case 1:\nprintf (\"One %s voice\\n\", VAR_0);", "break;", "case INT_MAX:\nprintf (\"Theoretically supports many %s voices\\n\", VAR_0);", "break;", "default:...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ] ]
4,779
int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt) { RTSPState *rt = s->priv_data; int ret, len; RTSPStream *rtsp_st, *first_queue_st = NULL; int64_t wait_end = 0; if (rt->nb_byes == rt->nb_rtsp_streams) return AVERROR_EOF; /* get next frames from the same RTP packet...
true
FFmpeg
604c9b1196c70d79bbbc1f23e75f6a8253a74da3
int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt) { RTSPState *rt = s->priv_data; int ret, len; RTSPStream *rtsp_st, *first_queue_st = NULL; int64_t wait_end = 0; if (rt->nb_byes == rt->nb_rtsp_streams) return AVERROR_EOF; if (rt->cur_transport_priv) { ...
{ "code": [ " } else if (rt->ts && CONFIG_RTPDEC) {", " } else if (rt->ts && CONFIG_RTPDEC) {" ], "line_no": [ 33, 291 ] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { RTSPState *rt = VAR_0->priv_data; int VAR_2, VAR_3; RTSPStream *rtsp_st, *first_queue_st = NULL; int64_t wait_end = 0; if (rt->nb_byes == rt->nb_rtsp_streams) return AVERROR_EOF; if (rt->cur_transport_priv) { ...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "RTSPState *rt = VAR_0->priv_data;", "int VAR_2, VAR_3;", "RTSPStream *rtsp_st, *first_queue_st = NULL;", "int64_t wait_end = 0;", "if (rt->nb_byes == rt->nb_rtsp_streams)\nreturn AVERROR_EOF;", "if (rt->cur_transport_priv) {", "if (rt->transpo...
[ 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, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
4,780
static void assign_failed_examine(AssignedDevice *dev) { char name[PATH_MAX], dir[PATH_MAX], driver[PATH_MAX] = {}, *ns; uint16_t vendor_id, device_id; int r; snprintf(dir, sizeof(dir), "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/", dev->host.domain, dev->host.bus, dev->host.slot, ...
true
qemu
82d07945652f16078b172d2bd46659e8f5f30d8e
static void assign_failed_examine(AssignedDevice *dev) { char name[PATH_MAX], dir[PATH_MAX], driver[PATH_MAX] = {}, *ns; uint16_t vendor_id, device_id; int r; snprintf(dir, sizeof(dir), "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/", dev->host.domain, dev->host.bus, dev->host.slot, ...
{ "code": [], "line_no": [] }
static void FUNC_0(AssignedDevice *VAR_0) { char VAR_1[PATH_MAX], dir[PATH_MAX], driver[PATH_MAX] = {}, *ns; uint16_t vendor_id, device_id; int VAR_2; snprintf(dir, sizeof(dir), "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/", VAR_0->host.domain, VAR_0->host.bus, VAR_0->host.slot, ...
[ "static void FUNC_0(AssignedDevice *VAR_0)\n{", "char VAR_1[PATH_MAX], dir[PATH_MAX], driver[PATH_MAX] = {}, *ns;", "uint16_t vendor_id, device_id;", "int VAR_2;", "snprintf(dir, sizeof(dir), \"/sys/bus/pci/devices/%04x:%02x:%02x.%01x/\",\nVAR_0->host.domain, VAR_0->host.bus, VAR_0->host.slot,\nVAR_0->host....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 46 ], [ 50, 52 ], [ 54 ], [ 56 ], [...
4,782
av_cold void ff_h264_free_context(H264Context *h) { int i; free_tables(h); //FIXME cleanup init stuff perhaps for(i = 0; i < MAX_SPS_COUNT; i++) av_freep(h->sps_buffers + i); for(i = 0; i < MAX_PPS_COUNT; i++) av_freep(h->pps_buffers + i); }
true
FFmpeg
2ed0f76655a76cc49f8a1a1d59e545f5906e7924
av_cold void ff_h264_free_context(H264Context *h) { int i; free_tables(h); for(i = 0; i < MAX_SPS_COUNT; i++) av_freep(h->sps_buffers + i); for(i = 0; i < MAX_PPS_COUNT; i++) av_freep(h->pps_buffers + i); }
{ "code": [], "line_no": [] }
av_cold void FUNC_0(H264Context *h) { int VAR_0; free_tables(h); for(VAR_0 = 0; VAR_0 < MAX_SPS_COUNT; VAR_0++) av_freep(h->sps_buffers + VAR_0); for(VAR_0 = 0; VAR_0 < MAX_PPS_COUNT; VAR_0++) av_freep(h->pps_buffers + VAR_0); }
[ "av_cold void FUNC_0(H264Context *h)\n{", "int VAR_0;", "free_tables(h);", "for(VAR_0 = 0; VAR_0 < MAX_SPS_COUNT; VAR_0++)", "av_freep(h->sps_buffers + VAR_0);", "for(VAR_0 = 0; VAR_0 < MAX_PPS_COUNT; VAR_0++)", "av_freep(h->pps_buffers + VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
4,784
static int nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; int rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) == -1) { rc = -EIO; goto out; } ...
true
qemu
94e7340b5db8bce7866e44e700ffa8fd26585c7e
static int nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; int rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) == -1) { rc = -EIO; goto out; } ...
{ "code": [ "static int nbd_co_receive_request(NBDRequest *req, struct nbd_request *request)", " int rc;" ], "line_no": [ 1, 9 ] }
static int FUNC_0(NBDRequest *VAR_0, struct nbd_request *VAR_1) { NBDClient *client = VAR_0->client; int VAR_2 = client->sock; int VAR_3; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(VAR_2, VAR_1) == -1) { VAR_3 = -EIO; goto out; } if ...
[ "static int FUNC_0(NBDRequest *VAR_0, struct nbd_request *VAR_1)\n{", "NBDClient *client = VAR_0->client;", "int VAR_2 = client->sock;", "int VAR_3;", "client->recv_coroutine = qemu_coroutine_self();", "if (nbd_receive_request(VAR_2, VAR_1) == -1) {", "VAR_3 = -EIO;", "goto out;", "}", "if (VAR_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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
4,785
static inline int hpel_motion(MpegEncContext *s, uint8_t *dest, uint8_t *src, int src_x, int src_y, op_pixels_func *pix_op, int motion_x, int motion_y) { int dxy = 0; int emu = 0; ...
true
FFmpeg
136f55207521f0b03194ef5b55ba70f1635d6aee
static inline int hpel_motion(MpegEncContext *s, uint8_t *dest, uint8_t *src, int src_x, int src_y, op_pixels_func *pix_op, int motion_x, int motion_y) { int dxy = 0; int emu = 0; ...
{ "code": [ " if (s->unrestricted_mv) {", " if ((unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x & 1) - 8, 0) ||", " (unsigned)src_y > FFMAX(s->v_edge_pos - (motion_y & 1) - 8, 0)) {", " s->vdsp.emulated_edge_mc(s->sc.edge_emu_buffer, src,", " ...
static inline int FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, op_pixels_func *VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 0; int VAR_9 = 0; ...
[ "static inline int FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4,\nop_pixels_func *VAR_5,\nint VAR_6, int VAR_7)\n{", "int VAR_8 = 0;", "int VAR_9 = 0;", "VAR_3 += VAR_6 >> 1;", "VAR_4 += VAR_7 >> 1;", "VAR_3 = av_clip(VAR_3, -16, VAR_0->width);", "if (VAR_3 != VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49, 51, 53, 55, 57 ], [ 59 ], [...
4,786
static void inline xan_wc3_copy_pixel_run(XanContext *s, int x, int y, int pixel_count, int motion_x, int motion_y) { int stride; int line_inc; int curframe_index, prevframe_index; int curframe_x, prevframe_x; int width = s->avctx->width; unsigned char *palette_plane, *prev_palette_...
false
FFmpeg
ca16618b01abfde44b4eaf92dc89b01aa1b4a91e
static void inline xan_wc3_copy_pixel_run(XanContext *s, int x, int y, int pixel_count, int motion_x, int motion_y) { int stride; int line_inc; int curframe_index, prevframe_index; int curframe_x, prevframe_x; int width = s->avctx->width; unsigned char *palette_plane, *prev_palette_...
{ "code": [], "line_no": [] }
static void inline FUNC_0(XanContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6; int VAR_7; int VAR_8, VAR_9; int VAR_10, VAR_11; int VAR_12 = VAR_0->avctx->VAR_12; unsigned char *VAR_13, *VAR_14; unsigned char *VAR_15, *VAR_16, *VAR_17; uns...
[ "static void inline FUNC_0(XanContext *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6;", "int VAR_7;", "int VAR_8, VAR_9;", "int VAR_10, VAR_11;", "int VAR_12 = VAR_0->avctx->VAR_12;", "unsigned char *VAR_13, *VAR_14;", "unsigned char *VAR_15, *VAR_16, *VAR_17;", "uns...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
4,787
static int set_format(void *obj, const char *name, int fmt, int search_flags, enum AVOptionType type, const char *desc, int nb_fmts) { void *target_obj; const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj); int min, ...
false
FFmpeg
e2b54464c6a9de5d6b9ad4307696b0215d5e05a4
static int set_format(void *obj, const char *name, int fmt, int search_flags, enum AVOptionType type, const char *desc, int nb_fmts) { void *target_obj; const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj); int min, ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2, int VAR_3, enum AVOptionType VAR_4, const char *VAR_5, int VAR_6) { void *VAR_7; const AVOption *VAR_8 = av_opt_find2(VAR_0, VAR_1, NULL, 0, VAR_3, &VAR_7); int VAR_9, VAR_10; c...
[ "static int FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2, int VAR_3,\nenum AVOptionType VAR_4, const char *VAR_5, int VAR_6)\n{", "void *VAR_7;", "const AVOption *VAR_8 = av_opt_find2(VAR_0, VAR_1, NULL, 0,\nVAR_3, &VAR_7);", "int VAR_9, VAR_10;", "const AVClass *VAR_11 = *(AVClass **)VAR_0;", "if (!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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
4,788
void ff_put_h264_qpel4_mc01_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_qrt_4w_msa(src - (stride * 2), stride, dst, stride, 4, 0); }
false
FFmpeg
6796a1dd8c14843b77925cb83a3ef88706ae1dd0
void ff_put_h264_qpel4_mc01_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_qrt_4w_msa(src - (stride * 2), stride, dst, stride, 4, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_vt_qrt_4w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 4, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_vt_qrt_4w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 4, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
4,789
static void dump_cook_context(COOKContext *q, COOKextradata *e) { //int i=0; #define PRINT(a,b) av_log(NULL,AV_LOG_ERROR," %s = %d\n", a, b); av_log(NULL,AV_LOG_ERROR,"COOKextradata\n"); av_log(NULL,AV_LOG_ERROR,"cookversion=%x\n",e->cookversion); if (e->cookversion > MONO_COOK2) { PRINT(...
false
FFmpeg
702200358197a0ea5ea82d1d6540c785bb04fae4
static void dump_cook_context(COOKContext *q, COOKextradata *e) { #define PRINT(a,b) av_log(NULL,AV_LOG_ERROR," %s = %d\n", a, b); av_log(NULL,AV_LOG_ERROR,"COOKextradata\n"); av_log(NULL,AV_LOG_ERROR,"cookversion=%x\n",e->cookversion); if (e->cookversion > MONO_COOK2) { PRINT("js_subban...
{ "code": [], "line_no": [] }
static void FUNC_0(COOKContext *VAR_0, COOKextradata *VAR_1) { #define PRINT(a,b) av_log(NULL,AV_LOG_ERROR," %s = %d\n", a, b); av_log(NULL,AV_LOG_ERROR,"COOKextradata\n"); av_log(NULL,AV_LOG_ERROR,"cookversion=%x\n",VAR_1->cookversion); if (VAR_1->cookversion > MONO_COOK2) { PRINT("js_s...
[ "static void FUNC_0(COOKContext *VAR_0, COOKextradata *VAR_1)\n{", "#define PRINT(a,b) av_log(NULL,AV_LOG_ERROR,\" %s = %d\\n\", a, b);", "av_log(NULL,AV_LOG_ERROR,\"COOKextradata\\n\");", "av_log(NULL,AV_LOG_ERROR,\"cookversion=%x\\n\",VAR_1->cookversion);", "if (VAR_1->cookversion > MONO_COOK2) {", "PRI...
[ 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
4,790
static void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size) { FFMContext *ffm = s->priv_data; ffm->write_index = pos; ffm->file_size = file_size; }
false
FFmpeg
e33d3720239314d28a48c64c1071ba9c048280d1
static void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size) { FFMContext *ffm = s->priv_data; ffm->write_index = pos; ffm->file_size = file_size; }
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, int64_t VAR_2) { FFMContext *ffm = VAR_0->priv_data; ffm->write_index = VAR_1; ffm->VAR_2 = VAR_2; }
[ "static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1,\nint64_t VAR_2)\n{", "FFMContext *ffm = VAR_0->priv_data;", "ffm->write_index = VAR_1;", "ffm->VAR_2 = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
4,791
static void usb_msd_class_initfn_bot(ObjectClass *klass, void *data) { USBDeviceClass *uc = USB_DEVICE_CLASS(klass); uc->realize = usb_msd_realize_bot; uc->attached_settable = true; }
true
qemu
cd7bc87868d534f95e928cad98e2a52df7695771
static void usb_msd_class_initfn_bot(ObjectClass *klass, void *data) { USBDeviceClass *uc = USB_DEVICE_CLASS(klass); uc->realize = usb_msd_realize_bot; uc->attached_settable = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { USBDeviceClass *uc = USB_DEVICE_CLASS(VAR_0); uc->realize = usb_msd_realize_bot; uc->attached_settable = true; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "USBDeviceClass *uc = USB_DEVICE_CLASS(VAR_0);", "uc->realize = usb_msd_realize_bot;", "uc->attached_settable = true;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 12 ], [ 14 ] ]
4,792
uint64_t HELPER(get_cp_reg64)(CPUARMState *env, void *rip) { const ARMCPRegInfo *ri = rip; return ri->readfn(env, ri); }
true
qemu
8d04fb55dec381bc5105cb47f29d918e579e8cbd
uint64_t HELPER(get_cp_reg64)(CPUARMState *env, void *rip) { const ARMCPRegInfo *ri = rip; return ri->readfn(env, ri); }
{ "code": [ " return ri->readfn(env, ri);", " return ri->readfn(env, ri);" ], "line_no": [ 9, 9 ] }
uint64_t FUNC_0(get_cp_reg64)(CPUARMState *env, void *rip) { const ARMCPRegInfo *VAR_0 = rip; return VAR_0->readfn(env, VAR_0); }
[ "uint64_t FUNC_0(get_cp_reg64)(CPUARMState *env, void *rip)\n{", "const ARMCPRegInfo *VAR_0 = rip;", "return VAR_0->readfn(env, VAR_0);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
4,793
static USBDevice *usb_try_create_simple(USBBus *bus, const char *name, Error **errp) { Error *err = NULL; USBDevice *dev; dev = USB_DEVICE(qdev_try_create(&bus->qbus, name)); if (!dev) { error_setg(errp, "Failed to create USB device '%s'", name); ...
true
qemu
f3b2bea3c76ba9283b957f1373e7cebdbf863059
static USBDevice *usb_try_create_simple(USBBus *bus, const char *name, Error **errp) { Error *err = NULL; USBDevice *dev; dev = USB_DEVICE(qdev_try_create(&bus->qbus, name)); if (!dev) { error_setg(errp, "Failed to create USB device '%s'", name); ...
{ "code": [ " error_prepend(errp, \"Failed to initialize USB device '%s': \",", " name);", " object_unparent(OBJECT(dev));" ], "line_no": [ 29, 31, 33 ] }
static USBDevice *FUNC_0(USBBus *bus, const char *name, Error **errp) { Error *err = NULL; USBDevice *dev; dev = USB_DEVICE(qdev_try_create(&bus->qbus, name)); if (!dev) { error_setg(errp, "Failed to create USB device '%s'", name); return...
[ "static USBDevice *FUNC_0(USBBus *bus, const char *name,\nError **errp)\n{", "Error *err = NULL;", "USBDevice *dev;", "dev = USB_DEVICE(qdev_try_create(&bus->qbus, name));", "if (!dev) {", "error_setg(errp, \"Failed to create USB device '%s'\", name);", "return NULL;", "}", "object_property_set_bool...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
4,795
static int decode_chunks(AVCodecContext *avctx, AVFrame *picture, int *got_output, const uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; MpegEncContext *s2 = &s->mpeg_enc_ctx; const uint8_t *buf_ptr = buf; const uint8_t *buf_end ...
true
FFmpeg
f1d8763a02b5fce9a7d9789e049d74a45b15e1e8
static int decode_chunks(AVCodecContext *avctx, AVFrame *picture, int *got_output, const uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; MpegEncContext *s2 = &s->mpeg_enc_ctx; const uint8_t *buf_ptr = buf; const uint8_t *buf_end ...
{ "code": [ " ff_update_duplicate_context(thread_context, s2);" ], "line_no": [ 413 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { Mpeg1Context *s = VAR_0->priv_data; MpegEncContext *s2 = &s->mpeg_enc_ctx; const uint8_t *VAR_5 = VAR_3; const uint8_t *VAR_6 = VAR_3 + VAR_4; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nAVFrame *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "Mpeg1Context *s = VAR_0->priv_data;", "MpegEncContext *s2 = &s->mpeg_enc_ctx;", "const uint8_t *VAR_5 = VAR_3;", "const uint8_t *VAR_6 = VAR_3 + VAR_4;", "int VAR_7, VAR_8;", "int VAR_9 = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51,...
4,796
static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n) { int level, diff, i, j, run; int component; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = a->scantable.permutated; const uint16_t *quant_matrix = ff_mpeg1_default_intra_matrix; const int qscale = a...
true
FFmpeg
6ca82975b7a8eaf676a52738ec8e7e36732327cc
static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n) { int level, diff, i, j, run; int component; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = a->scantable.permutated; const uint16_t *quant_matrix = ff_mpeg1_default_intra_matrix; const int qscale = a...
{ "code": [ " block[0] = a->last_dc[component] << 3;" ], "line_no": [ 37 ] }
static inline int FUNC_0(MDECContext *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = VAR_0->scantable.permutated; const uint16_t *VAR_9 = ff_mpeg1_default_intra_matrix; const int VAR_10 = VAR_0-...
[ "static inline int FUNC_0(MDECContext *VAR_0, int16_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "RLTable *rl = &ff_rl_mpeg1;", "uint8_t * const scantable = VAR_0->scantable.permutated;", "const uint16_t *VAR_9 = ff_mpeg1_default_intra_matrix;", "const int VAR_10 = V...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
4,797
static int raw_open_common(BlockDriverState *bs, QDict *options, int bdrv_flags, int open_flags, Error **errp) { BDRVRawState *s = bs->opaque; QemuOpts *opts; Error *local_err = NULL; const char *filename = NULL; const char *str; BlockdevAioOptions aio, aio_default; ...
true
qemu
7c9e527659c67d4d7b41d9504f93d2d7ee482488
static int raw_open_common(BlockDriverState *bs, QDict *options, int bdrv_flags, int open_flags, Error **errp) { BDRVRawState *s = bs->opaque; QemuOpts *opts; Error *local_err = NULL; const char *filename = NULL; const char *str; BlockdevAioOptions aio, aio_default; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, int VAR_3, Error **VAR_4) { BDRVRawState *s = VAR_0->opaque; QemuOpts *opts; Error *local_err = NULL; const char *VAR_5 = NULL; const char *VAR_6; BlockdevAioOptions aio, aio_default; int VAR_7, VA...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1,\nint VAR_2, int VAR_3, Error **VAR_4)\n{", "BDRVRawState *s = VAR_0->opaque;", "QemuOpts *opts;", "Error *local_err = NULL;", "const char *VAR_5 = NULL;", "const char *VAR_6;", "BlockdevAioOptions aio, aio_default;", "int VAR_7, VAR_8;", "str...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, ...
4,799
av_cold int ff_vp8_decode_init(AVCodecContext *avctx) { VP8Context *s = avctx->priv_data; int ret; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->internal->allocate_progress = 1; ff_videodsp_init(&s->vdsp, 8); ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1); ...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
av_cold int ff_vp8_decode_init(AVCodecContext *avctx) { VP8Context *s = avctx->priv_data; int ret; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->internal->allocate_progress = 1; ff_videodsp_init(&s->vdsp, 8); ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1); ...
{ "code": [ "av_cold int ff_vp8_decode_init(AVCodecContext *avctx)", " ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1);", " ff_vp8dsp_init(&s->vp8dsp);" ], "line_no": [ 1, 21, 23 ] }
av_cold int FUNC_0(AVCodecContext *avctx) { VP8Context *s = avctx->priv_data; int VAR_0; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->internal->allocate_progress = 1; ff_videodsp_init(&s->vdsp, 8); ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1); ff_vp8dsp...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VP8Context *s = avctx->priv_data;", "int VAR_0;", "s->avctx = avctx;", "avctx->pix_fmt = AV_PIX_FMT_YUV420P;", "avctx->internal->allocate_progress = 1;", "ff_videodsp_init(&s->vdsp, 8);", "ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1);", "ff_vp8ds...
[ 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
4,802
static inline void json_print_item_str(WriterContext *wctx, const char *key, const char *value, const char *indent) { char *key_esc = json_escape_str(key); char *value_esc = json_escape_str(value); printf("%s\"%s\": \"%s\"...
true
FFmpeg
2f3b028c7117e03267ea7f88d0d612e70f1afc06
static inline void json_print_item_str(WriterContext *wctx, const char *key, const char *value, const char *indent) { char *key_esc = json_escape_str(key); char *value_esc = json_escape_str(value); printf("%s\"%s\": \"%s\"...
{ "code": [ " char *key_esc = json_escape_str(key);", " char *value_esc = json_escape_str(value);", " printf(\"%s\\\"%s\\\": \\\"%s\\\"\", indent,", " key_esc ? key_esc : \"\",", " value_esc ? value_esc : \"\");", " av_free(key_esc);", " av_free(value...
static inline void FUNC_0(WriterContext *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3) { char *VAR_4 = json_escape_str(VAR_1); char *VAR_5 = json_escape_str(VAR_2); printf("%s\"%s\": \"%s\"", VAR_3, ...
[ "static inline void FUNC_0(WriterContext *VAR_0,\nconst char *VAR_1, const char *VAR_2,\nconst char *VAR_3)\n{", "char *VAR_4 = json_escape_str(VAR_1);", "char *VAR_5 = json_escape_str(VAR_2);", "printf(\"%s\\\"%s\\\": \\\"%s\\\"\", VAR_3,\nVAR_4 ? VAR_4 : \"\",\nVAR_5 ? VAR_5 : \"\");", "av_free(VAR_4)...
[ 0, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ] ]
4,803
static void handle_keydown(SDL_Event *ev) { int mod_state, win; struct sdl2_console *scon = get_scon_from_window(ev->key.windowID); if (alt_grab) { mod_state = (SDL_GetModState() & (gui_grab_code | KMOD_LSHIFT)) == (gui_grab_code | KMOD_LSHIFT); } else if (ctrl_grab) { mod_st...
true
qemu
56f289f383a871e871f944c7226920b35794efe6
static void handle_keydown(SDL_Event *ev) { int mod_state, win; struct sdl2_console *scon = get_scon_from_window(ev->key.windowID); if (alt_grab) { mod_state = (SDL_GetModState() & (gui_grab_code | KMOD_LSHIFT)) == (gui_grab_code | KMOD_LSHIFT); } else if (ctrl_grab) { mod_st...
{ "code": [], "line_no": [] }
static void FUNC_0(SDL_Event *VAR_0) { int VAR_1, VAR_2; struct sdl2_console *VAR_3 = get_scon_from_window(VAR_0->key.windowID); if (alt_grab) { VAR_1 = (SDL_GetModState() & (gui_grab_code | KMOD_LSHIFT)) == (gui_grab_code | KMOD_LSHIFT); } else if (ctrl_grab) { VAR_1 = (SDL_...
[ "static void FUNC_0(SDL_Event *VAR_0)\n{", "int VAR_1, VAR_2;", "struct sdl2_console *VAR_3 = get_scon_from_window(VAR_0->key.windowID);", "if (alt_grab) {", "VAR_1 = (SDL_GetModState() & (gui_grab_code | KMOD_LSHIFT)) ==\n(gui_grab_code | KMOD_LSHIFT);", "} else if (ctrl_grab) {", "VAR_1 = (SDL_GetModS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
4,804
AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precission) { AVRational q; int j; if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { q = (AVRational){1, st->codec->sample_rate}; } else { q = st->codec->time_base; } for (j=2; j<2000; j+= 1+(j>2)...
true
FFmpeg
5e6439a12508f8f7f30aeef64eb96c2311b7f573
AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precission) { AVRational q; int j; if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { q = (AVRational){1, st->codec->sample_rate}; } else { q = st->codec->time_base; } for (j=2; j<2000; j+= 1+(j>2)...
{ "code": [ " for (j=2; j<2000; j+= 1+(j>2))" ], "line_no": [ 21 ] }
AVRational FUNC_0(AVFormatContext *s, AVStream *st, int min_precission) { AVRational q; int VAR_0; if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { q = (AVRational){1, st->codec->sample_rate}; } else { q = st->codec->time_base; } for (VAR_0=2; VAR_0<2000; VAR_0+= 1+(...
[ "AVRational FUNC_0(AVFormatContext *s, AVStream *st, int min_precission)\n{", "AVRational q;", "int VAR_0;", "if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {", "q = (AVRational){1, st->codec->sample_rate};", "} else {", "q = st->codec->time_base;", "}", "for (VAR_0=2; VAR_0<2000; VAR_0+= 1+(VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35 ] ]
4,805
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int c, n; short *samples; uint8_t *src, *src2[MAX_CHANNELS]; samples = data; src = buf;...
true
FFmpeg
3426d575bf46edc0f52d15f7e7c1d199e8688faa
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int c, n; short *samples; uint8_t *src, *src2[MAX_CHANNELS]; samples = data; src = buf;...
{ "code": [ " if((n && buf_size % n) || avctx->channels > MAX_CHANNELS){" ], "line_no": [ 27 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { PCMDecode *s = VAR_0->priv_data; int VAR_5, VAR_6; short *VAR_7; uint8_t *src, *src2[MAX_CHANNELS]; VAR_7 = VAR_1; src = VAR_3; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "PCMDecode *s = VAR_0->priv_data;", "int VAR_5, VAR_6;", "short *VAR_7;", "uint8_t *src, *src2[MAX_CHANNELS];", "VAR_7 = VAR_1;", "src = VAR_3;", "VAR_6= av_get_bits_per_sample(VAR_0->codec_id)/8;", ...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53,...
4,806
static int h264_slice_init(H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { int i, j, ret = 0; if (h->picture_idr && nal->type != H264_NAL_IDR_SLICE) { av_log(h->avctx, AV_LOG_ERROR, "Invalid mix of IDR and non-IDR slices\n"); return AVERROR_INVALID...
true
FFmpeg
7f05c5cea04112471d8147487aa3b44141922d09
static int h264_slice_init(H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { int i, j, ret = 0; if (h->picture_idr && nal->type != H264_NAL_IDR_SLICE) { av_log(h->avctx, AV_LOG_ERROR, "Invalid mix of IDR and non-IDR slices\n"); return AVERROR_INVALID...
{ "code": [ " ff_h264_direct_ref_list_init(h, sl);" ], "line_no": [ 77 ] }
static int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, const H2645NAL *VAR_2) { int VAR_3, VAR_4, VAR_5 = 0; if (VAR_0->picture_idr && VAR_2->type != H264_NAL_IDR_SLICE) { av_log(VAR_0->avctx, AV_LOG_ERROR, "Invalid mix of IDR and non-IDR slices\n"); re...
[ "static int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1,\nconst H2645NAL *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5 = 0;", "if (VAR_0->picture_idr && VAR_2->type != H264_NAL_IDR_SLICE) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"Invalid mix of IDR and non-IDR slices\\n\");", "return AVERROR_INVALIDDATA;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 49, 51 ], ...