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
19,618
static av_cold int libopus_decode_init(AVCodecContext *avc) { struct libopus_context *opus = avc->priv_data; int ret, channel_map = 0, gain_db = 0, nb_streams, nb_coupled; uint8_t mapping_arr[8] = { 0, 1 }, *mapping; avc->sample_rate = 48000; avc->sample_fmt = avc->request_sample_fmt == AV_SA...
true
FFmpeg
fc85646ad495f3418042468da415af73a7a07334
static av_cold int libopus_decode_init(AVCodecContext *avc) { struct libopus_context *opus = avc->priv_data; int ret, channel_map = 0, gain_db = 0, nb_streams, nb_coupled; uint8_t mapping_arr[8] = { 0, 1 }, *mapping; avc->sample_rate = 48000; avc->sample_fmt = avc->request_sample_fmt == AV_SA...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avc) { struct libopus_context *VAR_0 = avc->priv_data; int VAR_1, VAR_2 = 0, VAR_3 = 0, VAR_4, VAR_5; uint8_t mapping_arr[8] = { 0, 1 }, *mapping; avc->sample_rate = 48000; avc->sample_fmt = avc->request_sample_fmt == AV_SAMPLE_FMT_FLT ? ...
[ "static av_cold int FUNC_0(AVCodecContext *avc)\n{", "struct libopus_context *VAR_0 = avc->priv_data;", "int VAR_1, VAR_2 = 0, VAR_3 = 0, VAR_4, VAR_5;", "uint8_t mapping_arr[8] = { 0, 1 }, *mapping;", "avc->sample_rate = 48000;", "avc->sample_fmt = avc->request_sample_fmt == AV_SAMPLE_FMT_FLT ?\nA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ],...
19,619
gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, int search_pc) { uint16_t *gen_opc_end; uint32_t pc_start; unsigned int insn_len; int j, lj; struct DisasContext ctx; struct DisasContext *dc = &ctx; uint32_t next_page_start; ...
true
qemu
632314c49ce20ee9c974f07544d9125fbbbfbe1b
gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, int search_pc) { uint16_t *gen_opc_end; uint32_t pc_start; unsigned int insn_len; int j, lj; struct DisasContext ctx; struct DisasContext *dc = &ctx; uint32_t next_page_start; ...
{ "code": [ " qemu_log_try_set_file(stderr);", " qemu_log_try_set_file(stderr);", " qemu_log_try_set_file(stderr);", " qemu_log_try_set_file(stderr);" ], "line_no": [ 29, 29, 29, 29 ] }
FUNC_0(CPUCRISState *VAR_0, TranslationBlock *VAR_1, int VAR_2) { uint16_t *gen_opc_end; uint32_t pc_start; unsigned int VAR_3; int VAR_4, VAR_5; struct DisasContext VAR_6; struct DisasContext *VAR_7 = &VAR_6; uint32_t next_page_start; target_ulon...
[ "FUNC_0(CPUCRISState *VAR_0, TranslationBlock *VAR_1,\nint VAR_2)\n{", "uint16_t *gen_opc_end;", "uint32_t pc_start;", "unsigned int VAR_3;", "int VAR_4, VAR_5;", "struct DisasContext VAR_6;", "struct DisasContext *VAR_7 = &VAR_6;", "uint32_t next_page_start;", "target_ulong npc;", "int VAR_8;", ...
[ 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
19,621
int fw_cfg_add_callback(FWCfgState *s, uint16_t key, FWCfgCallback callback, void *callback_opaque, uint8_t *data, size_t len) { int arch = !!(key & FW_CFG_ARCH_LOCAL); if (!(key & FW_CFG_WRITE_CHANNEL)) return 0; key &= FW_CFG_ENTRY_MASK; if (key >= FW_CFG_M...
true
qemu
4cad3867b6df2c0826ae508a9fe15dd0b9d8936a
int fw_cfg_add_callback(FWCfgState *s, uint16_t key, FWCfgCallback callback, void *callback_opaque, uint8_t *data, size_t len) { int arch = !!(key & FW_CFG_ARCH_LOCAL); if (!(key & FW_CFG_WRITE_CHANNEL)) return 0; key &= FW_CFG_ENTRY_MASK; if (key >= FW_CFG_M...
{ "code": [ " return 0;", " return 1;", "int fw_cfg_add_callback(FWCfgState *s, uint16_t key, FWCfgCallback callback,", " void *callback_opaque, uint8_t *data, size_t len)", " if (!(key & FW_CFG_WRITE_CHANNEL))", " return 0;", " if (key >= FW_C...
int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, FWCfgCallback VAR_2, void *VAR_3, uint8_t *VAR_4, size_t VAR_5) { int VAR_6 = !!(VAR_1 & FW_CFG_ARCH_LOCAL); if (!(VAR_1 & FW_CFG_WRITE_CHANNEL)) return 0; VAR_1 &= FW_CFG_ENTRY_MASK; if (VAR_1 >= FW_CFG_MAX_ENTRY...
[ "int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, FWCfgCallback VAR_2,\nvoid *VAR_3, uint8_t *VAR_4, size_t VAR_5)\n{", "int VAR_6 = !!(VAR_1 & FW_CFG_ARCH_LOCAL);", "if (!(VAR_1 & FW_CFG_WRITE_CHANNEL))\nreturn 0;", "VAR_1 &= FW_CFG_ENTRY_MASK;", "if (VAR_1 >= FW_CFG_MAX_ENTRY || VAR_5 > 65535)\nreturn 0;", ...
[ 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
19,622
void do_subfmeo_64 (void) { T1 = T0; T0 = ~T0 + xer_ca - 1; if (likely(!((uint64_t)~T1 & ((uint64_t)~T1 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } if (likely((uint64_t)T1 != UINT64_MAX)) xer_ca =...
true
qemu
966439a67830239a6c520c5df6c55627b8153c8b
void do_subfmeo_64 (void) { T1 = T0; T0 = ~T0 + xer_ca - 1; if (likely(!((uint64_t)~T1 & ((uint64_t)~T1 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } if (likely((uint64_t)T1 != UINT64_MAX)) xer_ca =...
{ "code": [ " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " ...
void FUNC_0 (void) { T1 = T0; T0 = ~T0 + xer_ca - 1; if (likely(!((uint64_t)~T1 & ((uint64_t)~T1 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } if (likely((uint64_t)T1 != UINT64_MAX)) xer_ca = 1; }
[ "void FUNC_0 (void)\n{", "T1 = T0;", "T0 = ~T0 + xer_ca - 1;", "if (likely(!((uint64_t)~T1 & ((uint64_t)~T1 ^ (uint64_t)T0) &\n(1ULL << 63)))) {", "xer_ov = 0;", "} else {", "xer_so = 1;", "xer_ov = 1;", "}", "if (likely((uint64_t)T1 != UINT64_MAX))\nxer_ca = 1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ] ]
19,623
static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) { int tileno, compno; for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) { if (s->tile[tileno].comp) { for (compno = 0; compno < s->ncomponents; compno++) { Jpeg2000Component *comp = s->tile[t...
true
FFmpeg
fcd19d6c8db514b017662166d014ac8560fbe8f5
static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) { int tileno, compno; for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) { if (s->tile[tileno].comp) { for (compno = 0; compno < s->ncomponents; compno++) { Jpeg2000Component *comp = s->tile[t...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000DecoderContext *VAR_0) { int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_1++) { if (VAR_0->tile[VAR_1].comp) { for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; VAR_2++) { Jpeg2000Component *comp = VAR_0->tile[...
[ "static void FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_1++) {", "if (VAR_0->tile[VAR_1].comp) {", "for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; VAR_2++) {", "Jpeg2000Component *comp = VAR_0->tile[VAR_1].comp + VAR...
[ 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 ], [ 33 ], [ 35 ] ]
19,624
static void quantize_and_encode_band_cost_ESC_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static void quantize_and_encode_band_cost_ESC_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
{ "code": [ " int *bits, const float ROUNDING)", " if (out) {", " vec1 = &p_vectors[curidx*2 ];", " vec2 = &p_vectors[curidx2*2];", " out[i+0] = copysignf(vec1[0] * IQ, in[i+0]);", " ...
static void FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1, const float *VAR_2, float *VAR_3, const float *VAR_4, int VAR_5, int VAR_6, int VAR_7, const f...
[ "static void FUNC_0(struct AACEncContext *VAR_0,\nPutBitContext *VAR_1, const float *VAR_2, float *VAR_3,\nconst float *VAR_4, int VAR_5, int VAR_6,\nint VAR_7, const float VAR_8, const float VAR_9,\nint *VAR_10, const float VAR_11)\n{", "const float VAR_12 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_6 + SCALE_ONE_PO...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
19,626
static int vc9_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { VC9Context *v = avctx->priv_data; int ret = FRAME_SKIPED, len, start_code; AVFrame *pict = data; uint8_t *tmp_buf; v->avctx = a...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int vc9_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { VC9Context *v = avctx->priv_data; int ret = FRAME_SKIPED, len, start_code; AVFrame *pict = data; uint8_t *tmp_buf; v->avctx = a...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { VC9Context *v = VAR_0->priv_data; int VAR_5 = FRAME_SKIPED, VAR_6, VAR_7; AVFrame *pict = VAR_1; uint8_t *tmp_buf; v->VAR_0 = VAR_0; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "VC9Context *v = VAR_0->priv_data;", "int VAR_5 = FRAME_SKIPED, VAR_6, VAR_7;", "AVFrame *pict = VAR_1;", "uint8_t *tmp_buf;", "v->VAR_0 = VAR_0;", "if (!VAR_4) return 0;", "VAR_6 = avpicture_get_size(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49, 51, 53 ], [ 55 ], [ 57, 59 ...
19,627
static int compand_delay(AVFilterContext *ctx, AVFrame *frame) { CompandContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; const int channels = inlink->channels; const int nb_samples = frame->nb_samples; int chan, i, av_uninit(dindex), oindex, av_uninit(count); AVFrame *out...
false
FFmpeg
e509df4bc8eb3aebdda71b826955d581e717fb0e
static int compand_delay(AVFilterContext *ctx, AVFrame *frame) { CompandContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; const int channels = inlink->channels; const int nb_samples = frame->nb_samples; int chan, i, av_uninit(dindex), oindex, av_uninit(count); AVFrame *out...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1) { CompandContext *s = VAR_0->priv; AVFilterLink *inlink = VAR_0->inputs[0]; const int VAR_2 = inlink->VAR_2; const int VAR_3 = VAR_1->VAR_3; int VAR_4, VAR_5, FUNC_1(dindex), oindex, FUNC_1(count); AVFrame *out_frame = NULL; ...
[ "static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{", "CompandContext *s = VAR_0->priv;", "AVFilterLink *inlink = VAR_0->inputs[0];", "const int VAR_2 = inlink->VAR_2;", "const int VAR_3 = VAR_1->VAR_3;", "int VAR_4, VAR_5, FUNC_1(dindex), oindex, FUNC_1(count);", "AVFrame *out_frame = NU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
19,628
static void vc1_overlap_block(MpegEncContext *s, DCTELEM block[64], int n, int do_hor, int do_vert) { int i; if(do_hor) { //TODO } if(do_vert) { //TODO } for(i = 0; i < 64; i++) block[i] += 128; }
false
FFmpeg
65c7bb9ec4f521a46577a1e87d71ad9a8deee6cd
static void vc1_overlap_block(MpegEncContext *s, DCTELEM block[64], int n, int do_hor, int do_vert) { int i; if(do_hor) { } if(do_vert) { } for(i = 0; i < 64; i++) block[i] += 128; }
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0, DCTELEM VAR_1[64], int VAR_2, int VAR_3, int VAR_4) { int VAR_5; if(VAR_3) { } if(VAR_4) { } for(VAR_5 = 0; VAR_5 < 64; VAR_5++) VAR_1[VAR_5] += 128; }
[ "static void FUNC_0(MpegEncContext *VAR_0, DCTELEM VAR_1[64], int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "if(VAR_3) {", "}", "if(VAR_4) {", "}", "for(VAR_5 = 0; VAR_5 < 64; VAR_5++)", "VAR_1[VAR_5] += 128;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
19,629
static int32_t parse_gain(const char *gain) { char *fraction; int scale = 10000; int32_t mb = 0; int db; if (!gain) return INT32_MIN; gain += strspn(gain, " \t"); db = strtol(gain, &fraction, 0); if (*fraction++ == '.') { while (av_isdigit(*fraction) && ...
false
FFmpeg
25b6837f7cacd691b19cbc12b9dad1ce84a318a1
static int32_t parse_gain(const char *gain) { char *fraction; int scale = 10000; int32_t mb = 0; int db; if (!gain) return INT32_MIN; gain += strspn(gain, " \t"); db = strtol(gain, &fraction, 0); if (*fraction++ == '.') { while (av_isdigit(*fraction) && ...
{ "code": [], "line_no": [] }
static int32_t FUNC_0(const char *gain) { char *VAR_0; int VAR_1 = 10000; int32_t mb = 0; int VAR_2; if (!gain) return INT32_MIN; gain += strspn(gain, " \t"); VAR_2 = strtol(gain, &VAR_0, 0); if (*VAR_0++ == '.') { while (av_isdigit(*VAR_0) && VAR_1) { ...
[ "static int32_t FUNC_0(const char *gain)\n{", "char *VAR_0;", "int VAR_1 = 10000;", "int32_t mb = 0;", "int VAR_2;", "if (!gain)\nreturn INT32_MIN;", "gain += strspn(gain, \" \\t\");", "VAR_2 = strtol(gain, &VAR_0, 0);", "if (*VAR_0++ == '.') {", "while (av_isdigit(*VAR_0) && VAR_1) {", "mb += ...
[ 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 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ] ]
19,630
int ffurl_read(URLContext *h, unsigned char *buf, int size) { if (h->flags & AVIO_FLAG_WRITE) return AVERROR(EIO); return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read); }
true
FFmpeg
26f6b8c571bcff7b325c7d6cc226c625dd465f8e
int ffurl_read(URLContext *h, unsigned char *buf, int size) { if (h->flags & AVIO_FLAG_WRITE) return AVERROR(EIO); return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read); }
{ "code": [ " if (h->flags & AVIO_FLAG_WRITE)", " if (h->flags & AVIO_FLAG_WRITE)" ], "line_no": [ 5, 5 ] }
int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2) { if (VAR_0->flags & AVIO_FLAG_WRITE) return AVERROR(EIO); return retry_transfer_wrapper(VAR_0, VAR_1, VAR_2, 1, VAR_0->prot->url_read); }
[ "int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{", "if (VAR_0->flags & AVIO_FLAG_WRITE)\nreturn AVERROR(EIO);", "return retry_transfer_wrapper(VAR_0, VAR_1, VAR_2, 1, VAR_0->prot->url_read);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
19,631
static void spapr_vio_bridge_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = spapr_vio_bridge_init; dc->no_user = 1; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void spapr_vio_bridge_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = spapr_vio_bridge_init; dc->no_user = 1; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0); k->init = spapr_vio_bridge_init; dc->no_user = 1; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);", "k->init = spapr_vio_bridge_init;", "dc->no_user = 1;", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
19,632
int kvm_arch_init_vcpu(CPUState *env) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) cpuid_data; uint32_t limit, i, j, cpuid_i; uint32_t eax, ebx, ecx, edx; cpuid_i = 0; cpu_x86_cpuid(env, 0, 0, &eax, &ebx, &ecx, &...
true
qemu
a33609cae0d57a7574608145f553cc5279221c31
int kvm_arch_init_vcpu(CPUState *env) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) cpuid_data; uint32_t limit, i, j, cpuid_i; uint32_t eax, ebx, ecx, edx; cpuid_i = 0; cpu_x86_cpuid(env, 0, 0, &eax, &ebx, &ecx, &...
{ "code": [ " uint32_t eax, ebx, ecx, edx;", " cpu_x86_cpuid(env, 0, 0, &eax, &ebx, &ecx, &edx);", " limit = eax;", " cpu_x86_cpuid(env, i, 0, &eax, &ebx, &ecx, &edx);", " times = eax & 0xff;", " c->flags |= KVM_CPUID_FLAG_STATEFUL_FUNC;", " ...
int FUNC_0(CPUState *VAR_0) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) VAR_1; uint32_t limit, i, j, cpuid_i; uint32_t eax, ebx, ecx, edx; cpuid_i = 0; cpu_x86_cpuid(VAR_0, 0, 0, &eax, &ebx, &ecx, &edx); li...
[ "int FUNC_0(CPUState *VAR_0)\n{", "struct {", "struct kvm_cpuid2 cpuid;", "struct kvm_cpuid_entry2 entries[100];", "} __attribute__((packed)) VAR_1;", "uint32_t limit, i, j, cpuid_i;", "uint32_t eax, ebx, ecx, edx;", "cpuid_i = 0;", "cpu_x86_cpuid(VAR_0, 0, 0, &eax, &ebx, &ecx, &edx);", "limit = e...
[ 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
19,634
static int webm_dash_manifest_read_header(AVFormatContext *s) { char *buf; int ret = matroska_read_header(s); MatroskaTrack *tracks; MatroskaDemuxContext *matroska = s->priv_data; if (ret) { av_log(s, AV_LOG_ERROR, "Failed to read file headers\n"); return -1; if ...
true
FFmpeg
ff100c9dd97d2f1f456ff38b192edf84f9744738
static int webm_dash_manifest_read_header(AVFormatContext *s) { char *buf; int ret = matroska_read_header(s); MatroskaTrack *tracks; MatroskaDemuxContext *matroska = s->priv_data; if (ret) { av_log(s, AV_LOG_ERROR, "Failed to read file headers\n"); return -1; if ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { char *VAR_1; int VAR_2 = matroska_read_header(VAR_0); MatroskaTrack *tracks; MatroskaDemuxContext *matroska = VAR_0->priv_data; if (VAR_2) { av_log(VAR_0, AV_LOG_ERROR, "Failed to read file headers\n"); return -1; if (!...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "char *VAR_1;", "int VAR_2 = matroska_read_header(VAR_0);", "MatroskaTrack *tracks;", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "if (VAR_2) {", "av_log(VAR_0, AV_LOG_ERROR, \"Failed to read file headers\\n\");", "return -1;", "if (!matroska...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 43 ], [ 50 ], [ 52 ], [ 58 ], [ 60 ], [ 66 ] ]
19,635
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, VLCcode *codes, int flags) { int table_size, table_index, index, code_prefix, symbol, subtable_bits; int i, j, k, n, nb, inc; uint32_t code; VLC_TYPE (*table)[2]; table_size = 1 << table_nb_bits; i...
true
FFmpeg
622d463000371467cb0365744f0c1d92b56bed52
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, VLCcode *codes, int flags) { int table_size, table_index, index, code_prefix, symbol, subtable_bits; int i, j, k, n, nb, inc; uint32_t code; VLC_TYPE (*table)[2]; table_size = 1 << table_nb_bits; i...
{ "code": [], "line_no": [] }
static int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2, VLCcode *VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16; uint32_t code; VLC_TYPE (*table)[2]; VAR_5 = 1 << VAR_1; if (VAR_1 > 30) re...
[ "static int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2,\nVLCcode *VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16;", "uint32_t code;", "VLC_TYPE (*table)[2];", "VAR_5 = 1 << VAR_1;", "if (VAR_1 > 30)\nreturn -1;", "VAR_6 = alloc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [...
19,636
static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->data && pkt->size >= 4) { MPADecodeHeader c; int av_unused base; avpriv_mpegaudio_decode_header(&c, AV_RB32(pkt->data)); if (!mp3->initial_bitrate) ...
true
FFmpeg
2dd0da787ce5008d4d1b8f461fbd1288c32e2c38
static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->data && pkt->size >= 4) { MPADecodeHeader c; int av_unused base; avpriv_mpegaudio_decode_header(&c, AV_RB32(pkt->data)); if (!mp3->initial_bitrate) ...
{ "code": [ " avpriv_mpegaudio_decode_header(&c, AV_RB32(pkt->data));" ], "line_no": [ 17 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MP3Context *mp3 = VAR_0->priv_data; if (VAR_1->data && VAR_1->size >= 4) { MPADecodeHeader c; int VAR_2 base; avpriv_mpegaudio_decode_header(&c, AV_RB32(VAR_1->data)); if (!mp3->initial_bitrate) ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MP3Context *mp3 = VAR_0->priv_data;", "if (VAR_1->data && VAR_1->size >= 4) {", "MPADecodeHeader c;", "int VAR_2 base;", "avpriv_mpegaudio_decode_header(&c, AV_RB32(VAR_1->data));", "if (!mp3->initial_bitrate)\nmp3->initial_bitrate = c.b...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 31, 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 55 ], [ 59, 61 ], [ 63, 67, 69 ], ...
19,637
static int handle_instruction(CPUState *env, struct kvm_run *run) { unsigned int ipa0 = (run->s390_sieic.ipa & 0xff00); uint8_t ipa1 = run->s390_sieic.ipa & 0x00ff; int ipb_code = (run->s390_sieic.ipb & 0x0fff0000) >> 16; int r = -1; dprintf("handle_instruction 0x%x 0x%x\n", run->s390_sieic....
true
qemu
359507eed1b6d8ae2392e0c8fe32d5f0de9d1d75
static int handle_instruction(CPUState *env, struct kvm_run *run) { unsigned int ipa0 = (run->s390_sieic.ipa & 0xff00); uint8_t ipa1 = run->s390_sieic.ipa & 0x00ff; int ipb_code = (run->s390_sieic.ipb & 0x0fff0000) >> 16; int r = -1; dprintf("handle_instruction 0x%x 0x%x\n", run->s390_sieic....
{ "code": [ " return r;" ], "line_no": [ 47 ] }
static int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1) { unsigned int VAR_2 = (VAR_1->s390_sieic.ipa & 0xff00); uint8_t ipa1 = VAR_1->s390_sieic.ipa & 0x00ff; int VAR_3 = (VAR_1->s390_sieic.ipb & 0x0fff0000) >> 16; int VAR_4 = -1; dprintf("FUNC_0 0x%x 0x%x\n", VAR_1->s390_sieic.ipa, VAR_1...
[ "static int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{", "unsigned int VAR_2 = (VAR_1->s390_sieic.ipa & 0xff00);", "uint8_t ipa1 = VAR_1->s390_sieic.ipa & 0x00ff;", "int VAR_3 = (VAR_1->s390_sieic.ipb & 0x0fff0000) >> 16;", "int VAR_4 = -1;", "dprintf(\"FUNC_0 0x%x 0x%x\\n\", VAR_1->s390_sieic.ipa,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
19,638
static int process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSurface *tmpoutsurf) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *sl...
true
FFmpeg
a19989cae581817e8857623d3afc447372b1c0e3
static int process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSurface *tmpoutsurf) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *sl...
{ "code": [ " uint32_t *slice_offsets;" ], "line_no": [ 15 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, NvencSurface *VAR_2) { NvencContext *ctx = VAR_0->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *slice_offsets; N...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, NvencSurface *VAR_2)\n{", "NvencContext *ctx = VAR_0->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;", "NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;", "uint32_t slice_mode_data;", "uint32_t *slice_offsets;", ...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
19,639
yuv2422_1_c_template(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum PixelFormat target) { const int16_t *ubuf0 = ubuf[0], *vbuf0 = vbuf[0]; ...
true
FFmpeg
9487fb4dea3498eb4711eb023f43199f68701b1e
yuv2422_1_c_template(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum PixelFormat target) { const int16_t *ubuf0 = ubuf[0], *vbuf0 = vbuf[0]; ...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1, const int16_t *VAR_2[2], const int16_t *VAR_3[2], const int16_t *VAR_4, uint8_t *VAR_5, int VAR_6, int VAR_7, int VAR_8, enum PixelFormat VAR_9) { const int16_t *VAR_10 = VAR_2[0], *vbuf0 = VAR_3[0]; i...
[ "FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t *VAR_2[2], const int16_t *VAR_3[2],\nconst int16_t *VAR_4, uint8_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, enum PixelFormat VAR_9)\n{", "const int16_t *VAR_10 = VAR_2[0], *vbuf0 = VAR_3[0];", "int VAR_11;", "if (VAR_7 < 2048) {", "for (VAR_11...
[ 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 ], [ ...
19,640
static int coroutine_fn iscsi_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; i...
true
qemu
0ead93120eb7bd770b32adc00b5ec1ee721626dc
static int coroutine_fn iscsi_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; i...
{ "code": [ " ret = iscsi_co_get_block_status(bs, sector_num, INT_MAX, &pnum, &file);" ], "line_no": [ 49 ] }
static int VAR_0 iscsi_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; if (!is_...
[ "static int VAR_0 iscsi_co_readv(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors,\nQEMUIOVector *iov)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct IscsiTask iTask;", "uint64_t lba;", "uint32_t num_sectors;", "if (!is_sector_request_lun_aligned(sector_num, nb_sectors, iscsilun)) {", "return...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
19,641
static void spapr_numa_cpu(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 4,cores=4 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=0,core-id=0 " "-numa cpu,node-id=0,core-id=1 " "-numa...
true
qemu
5e39d89d20b17cf6fb7f09d181d34f17b2ae2160
static void spapr_numa_cpu(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 4,cores=4 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=0,core-id=0 " "-numa cpu,node-id=0,core-id=1 " "-numa...
{ "code": [ " const QObject *e;", " const QObject *e;", " const QObject *e;", " const QObject *e;" ], "line_no": [ 11, 11, 11, 11 ] }
static void FUNC_0(const void *VAR_0) { char *VAR_1; QDict *resp; QList *cpus; const QObject *VAR_2; VAR_1 = make_cli(VAR_0, "-smp 4,cores=4 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=0,core-id=0 " "-numa cpu,node-id=0,core-id=1 " "-nu...
[ "static void FUNC_0(const void *VAR_0)\n{", "char *VAR_1;", "QDict *resp;", "QList *cpus;", "const QObject *VAR_2;", "VAR_1 = make_cli(VAR_0, \"-smp 4,cores=4 \"\n\"-numa node,nodeid=0 -numa node,nodeid=1 \"\n\"-numa cpu,node-id=0,core-id=0 \"\n\"-numa cpu,node-id=0,core-id=1 \"\n\"-numa cpu,node-id=0,cor...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
19,642
ssize_t vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen) { ssize_t ret; #ifdef CONFIG_VNC_TLS if (vs->tls.session) { ret = vnc_client_read_tls(&vs->tls.session, data, datalen); } else { #endif /* CONFIG_VNC_TLS */ ret = qemu_recv(vs->csock, data, datalen, 0); #ifdef ...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
ssize_t vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen) { ssize_t ret; #ifdef CONFIG_VNC_TLS if (vs->tls.session) { ret = vnc_client_read_tls(&vs->tls.session, data, datalen); } else { #endif ret = qemu_recv(vs->csock, data, datalen, 0); #ifdef CONFIG_VNC_TLS ...
{ "code": [ "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", " } else {", " if (vs->tls.session) {", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_VNC_TLS", "#ifdef CONFIG_V...
ssize_t FUNC_0(VncState *vs, uint8_t *data, size_t datalen) { ssize_t ret; #ifdef CONFIG_VNC_TLS if (vs->tls.session) { ret = vnc_client_read_tls(&vs->tls.session, data, datalen); } else { #endif ret = qemu_recv(vs->csock, data, datalen, 0); #ifdef CONFIG_VNC_TLS } #endif ...
[ "ssize_t FUNC_0(VncState *vs, uint8_t *data, size_t datalen)\n{", "ssize_t ret;", "#ifdef CONFIG_VNC_TLS\nif (vs->tls.session) {", "ret = vnc_client_read_tls(&vs->tls.session, data, datalen);", "} else {", "#endif\nret = qemu_recv(vs->csock, data, datalen, 0);", "#ifdef CONFIG_VNC_TLS\n}", "#endif\nVN...
[ 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
19,644
void qemu_put_be64(QEMUFile *f, uint64_t v) { qemu_put_be32(f, v >> 32); qemu_put_be32(f, v); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void qemu_put_be64(QEMUFile *f, uint64_t v) { qemu_put_be32(f, v >> 32); qemu_put_be32(f, v); }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUFile *VAR_0, uint64_t VAR_1) { qemu_put_be32(VAR_0, VAR_1 >> 32); qemu_put_be32(VAR_0, VAR_1); }
[ "void FUNC_0(QEMUFile *VAR_0, uint64_t VAR_1)\n{", "qemu_put_be32(VAR_0, VAR_1 >> 32);", "qemu_put_be32(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
19,645
void lance_init(NICInfo *nd, int irq, uint32_t leaddr, uint32_t ledaddr) { LANCEState *s; int lance_io_memory, ledma_io_memory; s = qemu_mallocz(sizeof(LANCEState)); if (!s) return; s->irq = irq; lance_io_memory = cpu_register_io_memory(0, lance_mem_read, lance_mem_write, s...
true
qemu
d861b05ea30e6ac177de9b679da96194ebe21afc
void lance_init(NICInfo *nd, int irq, uint32_t leaddr, uint32_t ledaddr) { LANCEState *s; int lance_io_memory, ledma_io_memory; s = qemu_mallocz(sizeof(LANCEState)); if (!s) return; s->irq = irq; lance_io_memory = cpu_register_io_memory(0, lance_mem_read, lance_mem_write, s...
{ "code": [ " s->vc = qemu_new_vlan_client(nd->vlan, lance_receive, s);" ], "line_no": [ 43 ] }
void FUNC_0(NICInfo *VAR_0, int VAR_1, uint32_t VAR_2, uint32_t VAR_3) { LANCEState *s; int VAR_4, VAR_5; s = qemu_mallocz(sizeof(LANCEState)); if (!s) return; s->VAR_1 = VAR_1; VAR_4 = cpu_register_io_memory(0, lance_mem_read, lance_mem_write, s); cpu_register_physica...
[ "void FUNC_0(NICInfo *VAR_0, int VAR_1, uint32_t VAR_2, uint32_t VAR_3)\n{", "LANCEState *s;", "int VAR_4, VAR_5;", "s = qemu_mallocz(sizeof(LANCEState));", "if (!s)\nreturn;", "s->VAR_1 = VAR_1;", "VAR_4 = cpu_register_io_memory(0, lance_mem_read, lance_mem_write, s);", "cpu_register_physical_memory(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 43 ], [ 47, 49, 51, 53, 55, 57, 59, 61 ], [ 65 ], [ 67...
19,646
static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb, int channel, int *last) { int t, t2; int sign, base, add, ret; WvChannel *c = &ctx->ch[channel]; *last = 0; if((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) && !ctx->zero && !ctx->one){ if(ctx->zeroe...
true
FFmpeg
55354b7de21e7bb4bbeb1c12ff55ea17f807c70c
static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb, int channel, int *last) { int t, t2; int sign, base, add, ret; WvChannel *c = &ctx->ch[channel]; *last = 0; if((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) && !ctx->zero && !ctx->one){ if(ctx->zeroe...
{ "code": [ " if(t >= 2) t = get_bits(gb, t - 1) | (1 << (t-1));", " if(get_bits_count(gb) >= ctx->data_size){", " *last = 1;", " return 0;", " if(get_bits_count(gb) >= ctx->data_size){", " *last = 1;", " return 0;", " ...
static int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1, int VAR_2, int *VAR_3) { int VAR_4, VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9; WvChannel *c = &VAR_0->ch[VAR_2]; *VAR_3 = 0; if((VAR_0->ch[0].median[0] < 2U) && (VAR_0->ch[1].median[0] < 2U) && !VAR_0->zero && !VAR_0->one){ ...
[ "static int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1, int VAR_2, int *VAR_3)\n{", "int VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "WvChannel *c = &VAR_0->ch[VAR_2];", "*VAR_3 = 0;", "if((VAR_0->ch[0].median[0] < 2U) && (VAR_0->ch[1].median[0] < 2U) && !VAR_0->zero && !VAR_0->one){",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
19,647
static int block_save_setup(QEMUFile *f, void *opaque) { int ret; DPRINTF("Enter save live setup submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); qemu_mutex_lock_iothread(); init_blk_migration(f); /* start track dirty blocks */ se...
true
qemu
b8afb520e479e693c227aa39c2fb7670743e104f
static int block_save_setup(QEMUFile *f, void *opaque) { int ret; DPRINTF("Enter save live setup submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); qemu_mutex_lock_iothread(); init_blk_migration(f); set_dirty_tracking(); qemu_...
{ "code": [ " init_blk_migration(f);", " set_dirty_tracking();" ], "line_no": [ 17, 23 ] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1) { int VAR_2; DPRINTF("Enter save live setup submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); qemu_mutex_lock_iothread(); init_blk_migration(VAR_0); set_dirty_tracking(); qemu_m...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{", "int VAR_2;", "DPRINTF(\"Enter save live setup submitted %d transferred %d\\n\",\nblock_mig_state.submitted, block_mig_state.transferred);", "qemu_mutex_lock_iothread();", "init_blk_migration(VAR_0);", "set_dirty_tracking();", "qemu_mutex_unlock_ioth...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
19,649
static void test_dynamic_globalprop(void) { MyType *mt; static GlobalProperty props[] = { { TYPE_DYNAMIC_PROPS, "prop1", "101" }, { TYPE_DYNAMIC_PROPS, "prop2", "102" }, { TYPE_DYNAMIC_PROPS"-bad", "prop3", "103", true }, {} }; int all_used; qdev_prop_regi...
true
qemu
711e2f1e9ecad845e142fdddbbf1e8037bce902b
static void test_dynamic_globalprop(void) { MyType *mt; static GlobalProperty props[] = { { TYPE_DYNAMIC_PROPS, "prop1", "101" }, { TYPE_DYNAMIC_PROPS, "prop2", "102" }, { TYPE_DYNAMIC_PROPS"-bad", "prop3", "103", true }, {} }; int all_used; qdev_prop_regi...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { MyType *mt; static GlobalProperty VAR_0[] = { { TYPE_DYNAMIC_PROPS, "prop1", "101" }, { TYPE_DYNAMIC_PROPS, "prop2", "102" }, { TYPE_DYNAMIC_PROPS"-bad", "prop3", "103", true }, {} }; int VAR_1; qdev_prop_register_global_list(VAR...
[ "static void FUNC_0(void)\n{", "MyType *mt;", "static GlobalProperty VAR_0[] = {", "{ TYPE_DYNAMIC_PROPS, \"prop1\", \"101\" },", "{ TYPE_DYNAMIC_PROPS, \"prop2\", \"102\" },", "{ TYPE_DYNAMIC_PROPS\"-bad\", \"prop3\", \"103\", true },", "{}", "};", "int VAR_1;", "qdev_prop_register_global_list(VA...
[ 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 ], [ 33 ], [ 35 ], [ 39 ] ]
19,651
void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size) { if (min_size < *size) return ptr; min_size = FFMAX(min_size + min_size / 16 + 32, min_size); ptr = av_realloc(ptr, min_size); /* we could set this to the unmodified min_size but this is safer * if the user lo...
false
FFmpeg
21b5990da461e4f83cf53994715ed42e22cce9e0
void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size) { if (min_size < *size) return ptr; min_size = FFMAX(min_size + min_size / 16 + 32, min_size); ptr = av_realloc(ptr, min_size); if (!ptr) min_size = 0; *size = min_size; return ptr; ...
{ "code": [], "line_no": [] }
void *FUNC_0(void *VAR_0, unsigned int *VAR_1, size_t VAR_2) { if (VAR_2 < *VAR_1) return VAR_0; VAR_2 = FFMAX(VAR_2 + VAR_2 / 16 + 32, VAR_2); VAR_0 = av_realloc(VAR_0, VAR_2); if (!VAR_0) VAR_2 = 0; *VAR_1 = VAR_2; return VAR_0; }
[ "void *FUNC_0(void *VAR_0, unsigned int *VAR_1, size_t VAR_2)\n{", "if (VAR_2 < *VAR_1)\nreturn VAR_0;", "VAR_2 = FFMAX(VAR_2 + VAR_2 / 16 + 32, VAR_2);", "VAR_0 = av_realloc(VAR_0, VAR_2);", "if (!VAR_0)\nVAR_2 = 0;", "*VAR_1 = VAR_2;", "return VAR_0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 15 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ] ]
19,652
static inline int decode_residual_inter(AVSContext *h) { int block; /* get coded block pattern */ int cbp = get_ue_golomb(&h->gb); if (cbp > 63) { av_log(h->avctx, AV_LOG_ERROR, "illegal inter cbp\n"); return AVERROR_INVALIDDATA; } h->cbp = cbp_tab[cbp][1]; /* g...
false
FFmpeg
39185ec4faa9ef33954dbf2394444e045b632673
static inline int decode_residual_inter(AVSContext *h) { int block; int cbp = get_ue_golomb(&h->gb); if (cbp > 63) { av_log(h->avctx, AV_LOG_ERROR, "illegal inter cbp\n"); return AVERROR_INVALIDDATA; } h->cbp = cbp_tab[cbp][1]; if (h->cbp && !h->qp_fixed)...
{ "code": [], "line_no": [] }
static inline int FUNC_0(AVSContext *VAR_0) { int VAR_1; int VAR_2 = get_ue_golomb(&VAR_0->gb); if (VAR_2 > 63) { av_log(VAR_0->avctx, AV_LOG_ERROR, "illegal inter VAR_2\n"); return AVERROR_INVALIDDATA; } VAR_0->VAR_2 = cbp_tab[VAR_2][1]; if (VAR_0->VAR_2...
[ "static inline int FUNC_0(AVSContext *VAR_0)\n{", "int VAR_1;", "int VAR_2 = get_ue_golomb(&VAR_0->gb);", "if (VAR_2 > 63) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"illegal inter VAR_2\\n\");", "return AVERROR_INVALIDDATA;", "}", "VAR_0->VAR_2 = cbp_tab[VAR_2][1];", "if (VAR_0->VAR_2 && !VAR_0->qp_f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 43 ], [ 45 ] ]
19,653
static int decode_pulses(Pulse *pulse, GetBitContext *gb, const uint16_t *swb_offset, int num_swb) { int i, pulse_swb; pulse->num_pulse = get_bits(gb, 2) + 1; pulse_swb = get_bits(gb, 6); if (pulse_swb >= num_swb) return -1; pulse->pos[0] = swb_offs...
false
FFmpeg
6e42ccb9dbc13836cd52cda594f819d17af9afa2
static int decode_pulses(Pulse *pulse, GetBitContext *gb, const uint16_t *swb_offset, int num_swb) { int i, pulse_swb; pulse->num_pulse = get_bits(gb, 2) + 1; pulse_swb = get_bits(gb, 6); if (pulse_swb >= num_swb) return -1; pulse->pos[0] = swb_offs...
{ "code": [], "line_no": [] }
static int FUNC_0(Pulse *VAR_0, GetBitContext *VAR_1, const uint16_t *VAR_2, int VAR_3) { int VAR_4, VAR_5; VAR_0->num_pulse = get_bits(VAR_1, 2) + 1; VAR_5 = get_bits(VAR_1, 6); if (VAR_5 >= VAR_3) return -1; VAR_0->pos[0] = VAR_2[VAR_5]; VAR_...
[ "static int FUNC_0(Pulse *VAR_0, GetBitContext *VAR_1,\nconst uint16_t *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "VAR_0->num_pulse = get_bits(VAR_1, 2) + 1;", "VAR_5 = get_bits(VAR_1, 6);", "if (VAR_5 >= VAR_3)\nreturn -1;", "VAR_0->pos[0] = VAR_2[VAR_5];", "VAR_0->pos[0] += get_bits(VAR_...
[ 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 ] ]
19,655
static int aiff_probe(AVProbeData *p) { /* check file header */ if (p->buf_size < 16) return 0; if (p->buf[0] == 'F' && p->buf[1] == 'O' && p->buf[2] == 'R' && p->buf[3] == 'M' && p->buf[8] == 'A' && p->buf[9] == 'I' && p->buf[10] == 'F' && (p->buf[11] == 'F' || p->bu...
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int aiff_probe(AVProbeData *p) { if (p->buf_size < 16) return 0; if (p->buf[0] == 'F' && p->buf[1] == 'O' && p->buf[2] == 'R' && p->buf[3] == 'M' && p->buf[8] == 'A' && p->buf[9] == 'I' && p->buf[10] == 'F' && (p->buf[11] == 'F' || p->buf[11] == 'C')) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size < 16) return 0; if (VAR_0->buf[0] == 'F' && VAR_0->buf[1] == 'O' && VAR_0->buf[2] == 'R' && VAR_0->buf[3] == 'M' && VAR_0->buf[8] == 'A' && VAR_0->buf[9] == 'I' && VAR_0->buf[10] == 'F' && (VAR_0->buf[11] ==...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size < 16)\nreturn 0;", "if (VAR_0->buf[0] == 'F' && VAR_0->buf[1] == 'O' &&\nVAR_0->buf[2] == 'R' && VAR_0->buf[3] == 'M' &&\nVAR_0->buf[8] == 'A' && VAR_0->buf[9] == 'I' &&\nVAR_0->buf[10] == 'F' && (VAR_0->buf[11] == 'F' || VAR_0->buf[11] == 'C'))\n...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 11, 13, 15, 17, 19 ], [ 21, 23 ], [ 25 ] ]
19,656
static int encode_residual(FlacEncodeContext *ctx, int ch) { int i, n; int min_order, max_order, opt_order, precision, omethod; int min_porder, max_porder; FlacFrame *frame; FlacSubframe *sub; int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER]; int shift[MAX_LPC_ORDER]; int32_t *res, *...
false
FFmpeg
56c07e298914d0533a74bb4ba4be4abc8ea6b245
static int encode_residual(FlacEncodeContext *ctx, int ch) { int i, n; int min_order, max_order, opt_order, precision, omethod; int min_porder, max_porder; FlacFrame *frame; FlacSubframe *sub; int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER]; int shift[MAX_LPC_ORDER]; int32_t *res, *...
{ "code": [], "line_no": [] }
static int FUNC_0(FlacEncodeContext *VAR_0, int VAR_1) { int VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10; FlacFrame *frame; FlacSubframe *sub; int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER]; int VAR_11[MAX_LPC_ORDER]; int32_t *res, *smp; frame = &V...
[ "static int FUNC_0(FlacEncodeContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10;", "FlacFrame *frame;", "FlacSubframe *sub;", "int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER];", "int VAR_11[MAX_LPC_ORDER];", "int32_t *res, *smp;", "frame =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,657
static int decode_stream_header(NUTContext *nut){ AVFormatContext *s= nut->avf; ByteIOContext *bc = &s->pb; StreamContext *stc; int class, nom, denom, stream_id; uint64_t tmp, end; AVStream *st; end= get_packetheader(nut, bc, 1); end += url_ftell(bc) - 4; GET_V(stream_id...
true
FFmpeg
5d97d9d53ea1cc2c28411ad734565372ddeccc32
static int decode_stream_header(NUTContext *nut){ AVFormatContext *s= nut->avf; ByteIOContext *bc = &s->pb; StreamContext *stc; int class, nom, denom, stream_id; uint64_t tmp, end; AVStream *st; end= get_packetheader(nut, bc, 1); end += url_ftell(bc) - 4; GET_V(stream_id...
{ "code": [ " return 0;", " end += url_ftell(bc) - 4;", " if(skip_reserved(bc, end) || check_checksum(bc)){", " end += url_ftell(bc) - 4;", " if(skip_reserved(bc, end) || check_checksum(bc)){", " end += url_ftell(bc) - 4;", " if(skip_reserved(bc, end) || check_checksum...
static int FUNC_0(NUTContext *VAR_0){ AVFormatContext *s= VAR_0->avf; ByteIOContext *bc = &s->pb; StreamContext *stc; int VAR_1, VAR_2, VAR_3, VAR_4; uint64_t tmp, end; AVStream *st; end= get_packetheader(VAR_0, bc, 1); end += url_ftell(bc) - 4; GET_V(VAR_4, tmp < s->nb_...
[ "static int FUNC_0(NUTContext *VAR_0){", "AVFormatContext *s= VAR_0->avf;", "ByteIOContext *bc = &s->pb;", "StreamContext *stc;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "uint64_t tmp, end;", "AVStream *st;", "end= get_packetheader(VAR_0, bc, 1);", "end += url_ftell(bc) - 4;", "GET_V(VAR_4, tmp < s->nb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ...
19,658
void avformat_close_input(AVFormatContext **ps) { AVFormatContext *s = *ps; AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ? NULL : s->pb; flush_packet_queue(s); if (s->iformat->read_close) s->iformat->read_close(s); a...
true
FFmpeg
44272c1cccfb92415801ae60693a7ed04e458916
void avformat_close_input(AVFormatContext **ps) { AVFormatContext *s = *ps; AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ? NULL : s->pb; flush_packet_queue(s); if (s->iformat->read_close) s->iformat->read_close(s); a...
{ "code": [ " AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?", " NULL : s->pb;", " if (s->iformat->read_close)", " s->iformat->read_close(s);" ], "line_no": [ 7, 9, 13, 15 ] }
void FUNC_0(AVFormatContext **VAR_0) { AVFormatContext *s = *VAR_0; AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ? NULL : s->pb; flush_packet_queue(s); if (s->iformat->read_close) s->iformat->read_close(s); avformat_...
[ "void FUNC_0(AVFormatContext **VAR_0)\n{", "AVFormatContext *s = *VAR_0;", "AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?\nNULL : s->pb;", "flush_packet_queue(s);", "if (s->iformat->read_close)\ns->iformat->read_close(s);", "avformat_free_context(s);", "*VAR...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
19,660
static void cris_alu(DisasContext *dc, int op, TCGv d, TCGv op_a, TCGv op_b, int size) { TCGv tmp; int writeback; writeback = 1; if (op == CC_OP_BOUND || op == CC_OP_BTST) tmp = tcg_temp_local_new(TCG_TYPE_TL); else tmp = tcg_temp_new(TCG_TYPE_TL); if (op == CC_OP_CMP) { writeback...
true
qemu
44696296d5c2ffccef9d43d37d4f525bba7d9f5c
static void cris_alu(DisasContext *dc, int op, TCGv d, TCGv op_a, TCGv op_b, int size) { TCGv tmp; int writeback; writeback = 1; if (op == CC_OP_BOUND || op == CC_OP_BTST) tmp = tcg_temp_local_new(TCG_TYPE_TL); else tmp = tcg_temp_new(TCG_TYPE_TL); if (op == CC_OP_CMP) { writeback...
{ "code": [ "\t\ttmp = tcg_temp_new(TCG_TYPE_TL);" ], "line_no": [ 23 ] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv VAR_2, TCGv VAR_3, TCGv VAR_4, int VAR_5) { TCGv tmp; int VAR_6; VAR_6 = 1; if (VAR_1 == CC_OP_BOUND || VAR_1 == CC_OP_BTST) tmp = tcg_temp_local_new(TCG_TYPE_TL); else tmp = tcg_temp_new(TCG_TYPE_TL); if (VAR_1 == CC_OP_CMP) { ...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1,\nTCGv VAR_2, TCGv VAR_3, TCGv VAR_4, int VAR_5)\n{", "TCGv tmp;", "int VAR_6;", "VAR_6 = 1;", "if (VAR_1 == CC_OP_BOUND || VAR_1 == CC_OP_BTST)\ntmp = tcg_temp_local_new(TCG_TYPE_TL);", "else\ntmp = tcg_temp_new(TCG_TYPE_TL);", "if (VAR_1 == CC_OP_CMP)...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53, 55 ], [ 57,...
19,661
int avresample_set_matrix(AVAudioResampleContext *avr, const double *matrix, int stride) { int in_channels, out_channels, i, o; in_channels = av_get_channel_layout_nb_channels(avr->in_channel_layout); out_channels = av_get_channel_layout_nb_channels(avr->out_channel_layout)...
true
FFmpeg
8821ae649e61097ec57ca58472c3e4239c82913c
int avresample_set_matrix(AVAudioResampleContext *avr, const double *matrix, int stride) { int in_channels, out_channels, i, o; in_channels = av_get_channel_layout_nb_channels(avr->in_channel_layout); out_channels = av_get_channel_layout_nb_channels(avr->out_channel_layout)...
{ "code": [ " if ( in_channels < 0 || in_channels > AVRESAMPLE_MAX_CHANNELS ||", " out_channels < 0 || out_channels > AVRESAMPLE_MAX_CHANNELS) {", " if ( in_channels < 0 || in_channels > AVRESAMPLE_MAX_CHANNELS ||", " out_channels < 0 || out_channels > AVRESAMPLE_MAX_CHANNELS) {"...
int FUNC_0(AVAudioResampleContext *VAR_0, const double *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; VAR_3 = av_get_channel_layout_nb_channels(VAR_0->in_channel_layout); VAR_4 = av_get_channel_layout_nb_channels(VAR_0->out_channel_layout); if ( VAR_3 < 0 || V...
[ "int FUNC_0(AVAudioResampleContext *VAR_0, const double *VAR_1,\nint VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "VAR_3 = av_get_channel_layout_nb_channels(VAR_0->in_channel_layout);", "VAR_4 = av_get_channel_layout_nb_channels(VAR_0->out_channel_layout);", "if ( VAR_3 < 0 || VAR_3 > AVRESAMPLE_MAX_CHA...
[ 0, 0, 0, 0, 1, 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 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [ 57...
19,663
av_cold void ff_vp9dsp_init(VP9DSPContext *dsp, int bpp, int bitexact) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp,...
true
FFmpeg
68caef9d48c4f1540b1b3181ebe7062a3417c62a
av_cold void ff_vp9dsp_init(VP9DSPContext *dsp, int bpp, int bitexact) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp,...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(VP9DSPContext *dsp, int bpp, int bitexact) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp, bi...
[ "av_cold void FUNC_0(VP9DSPContext *dsp, int bpp, int bitexact)\n{", "if (bpp == 8) {", "ff_vp9dsp_init_8(dsp);", "} else if (bpp == 10) {", "ff_vp9dsp_init_10(dsp);", "} else {", "av_assert0(bpp == 12);", "ff_vp9dsp_init_12(dsp);", "}", "if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp, bitexact);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 24 ], [ 26 ], [ 28 ] ]
19,664
FFAMediaCodec* ff_AMediaCodec_createCodecByName(const char *name) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring codec_name = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_ge...
true
FFmpeg
1795dccde0ad22fc8201142f92fb8d58c234f3e4
FFAMediaCodec* ff_AMediaCodec_createCodecByName(const char *name) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring codec_name = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_ge...
{ "code": [ " codec->object = (*env)->CallStaticObjectMethod(env, codec->jfields.mediacodec_class, codec->jfields.create_by_codec_name_id, codec_name);", " codec->object = (*env)->NewGlobalRef(env, codec->object);", " return codec;", " ff_jni_reset_jfields(env, &codec->jfields, jni_amediac...
FFAMediaCodec* FUNC_0(const char *name) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring codec_name = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_get_env(codec); if (!en...
[ "FFAMediaCodec* FUNC_0(const char *name)\n{", "JNIEnv *env = NULL;", "FFAMediaCodec *codec = NULL;", "jstring codec_name = NULL;", "codec = av_mallocz(sizeof(FFAMediaCodec));", "if (!codec) {", "return NULL;", "}", "codec->class = &amediacodec_class;", "env = ff_jni_get_env(codec);", "if (!env) ...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
19,668
void ide_drive_get(DriveInfo **hd, int max_bus) { int i; if (drive_get_max_bus(IF_IDE) >= max_bus) { fprintf(stderr, "qemu: too many IDE bus: %d\n", max_bus); exit(1); } for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) { hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_...
true
qemu
d8f94e1bb275ab6a14a15220fd6afd0d04324aeb
void ide_drive_get(DriveInfo **hd, int max_bus) { int i; if (drive_get_max_bus(IF_IDE) >= max_bus) { fprintf(stderr, "qemu: too many IDE bus: %d\n", max_bus); exit(1); } for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) { hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_...
{ "code": [ "void ide_drive_get(DriveInfo **hd, int max_bus)", " if (drive_get_max_bus(IF_IDE) >= max_bus) {", " fprintf(stderr, \"qemu: too many IDE bus: %d\\n\", max_bus);", " for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) {", " hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MA...
void FUNC_0(DriveInfo **VAR_0, int VAR_1) { int VAR_2; if (drive_get_max_bus(IF_IDE) >= VAR_1) { fprintf(stderr, "qemu: too many IDE bus: %d\n", VAR_1); exit(1); } for(VAR_2 = 0; VAR_2 < VAR_1 * MAX_IDE_DEVS; VAR_2++) { VAR_0[VAR_2] = drive_get(IF_IDE, VAR_2 / MAX_IDE...
[ "void FUNC_0(DriveInfo **VAR_0, int VAR_1)\n{", "int VAR_2;", "if (drive_get_max_bus(IF_IDE) >= VAR_1) {", "fprintf(stderr, \"qemu: too many IDE bus: %d\\n\", VAR_1);", "exit(1);", "}", "for(VAR_2 = 0; VAR_2 < VAR_1 * MAX_IDE_DEVS; VAR_2++) {", "VAR_0[VAR_2] = drive_get(IF_IDE, VAR_2 / MAX_IDE_DEVS, V...
[ 1, 0, 1, 1, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,669
static void release_keys(void *opaque) { int i; for (i = 0; i < keycodes_size; i++) { if (keycodes[i] & 0x80) { kbd_put_keycode(0xe0); } kbd_put_keycode(keycodes[i]| 0x80); } free_keycodes(); }
true
qemu
153d02e338a063ad5c51ff0725d5d88285f44121
static void release_keys(void *opaque) { int i; for (i = 0; i < keycodes_size; i++) { if (keycodes[i] & 0x80) { kbd_put_keycode(0xe0); } kbd_put_keycode(keycodes[i]| 0x80); } free_keycodes(); }
{ "code": [ " int i;", " for (i = 0; i < keycodes_size; i++) {", " if (keycodes[i] & 0x80) {", " kbd_put_keycode(keycodes[i]| 0x80);" ], "line_no": [ 5, 9, 11, 17 ] }
static void FUNC_0(void *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < keycodes_size; VAR_1++) { if (keycodes[VAR_1] & 0x80) { kbd_put_keycode(0xe0); } kbd_put_keycode(keycodes[VAR_1]| 0x80); } free_keycodes(); }
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < keycodes_size; VAR_1++) {", "if (keycodes[VAR_1] & 0x80) {", "kbd_put_keycode(0xe0);", "}", "kbd_put_keycode(keycodes[VAR_1]| 0x80);", "}", "free_keycodes();", "}" ]
[ 0, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
19,670
static int mace6_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { int16_t *samples = data; MACEContext *ctx = avctx->priv_data; int i, j; for(i = 0; i < avctx->channels; i++) { ...
true
FFmpeg
f36aec3b5e18c4c167612d0051a6d5b6144b3552
static int mace6_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { int16_t *samples = data; MACEContext *ctx = avctx->priv_data; int i, j; for(i = 0; i < avctx->channels; i++) { ...
{ "code": [ " 8, avctx->channels);", " 4, avctx->channels);", " 8, avctx->channels);" ], "line_no": [ 31, 37, 31 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { int16_t *samples = VAR_1; MACEContext *ctx = VAR_0->priv_data; int VAR_5, VAR_6; for(VAR_5 = 0; VAR_5 < VAR_0->channels; VAR_5++) { ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "int16_t *samples = VAR_1;", "MACEContext *ctx = VAR_0->priv_data;", "int VAR_5, VAR_6;", "for(VAR_5 = 0; VAR_5 < VAR_0->channels; VAR_5++) {", "int16_t *output = samples + VAR_5;", "for (VAR_6 = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
19,671
static void new_video_stream(AVFormatContext *oc) { AVStream *st; AVCodecContext *video_enc; enum CodecID codec_id; AVCodec *codec= NULL; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { fprintf(stderr, "Could not alloc str...
true
FFmpeg
ca8064d2d1b293d7a8011bf0a08005c11ae8ba67
static void new_video_stream(AVFormatContext *oc) { AVStream *st; AVCodecContext *video_enc; enum CodecID codec_id; AVCodec *codec= NULL; st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0); if (!st) { fprintf(stderr, "Could not alloc str...
{ "code": [ "static void new_video_stream(AVFormatContext *oc)", " bitstream_filters[nb_output_files] =", " grow_array(bitstream_filters[nb_output_files],", " sizeof(*bitstream_filters[nb_output_files]),", " &nb_bitstream_filters[nb_output_files], oc->...
static void FUNC_0(AVFormatContext *VAR_0) { AVStream *st; AVCodecContext *video_enc; enum CodecID VAR_1; AVCodec *codec= NULL; st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0); if (!st) { fprintf(stderr, "Could not alloc stre...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "AVStream *st;", "AVCodecContext *video_enc;", "enum CodecID VAR_1;", "AVCodec *codec= NULL;", "st = av_new_stream(VAR_0, VAR_0->nb_streams < nb_streamid_map ? streamid_map[VAR_0->nb_streams] : 0);", "if (!st) {", "fprintf(stderr, \"Could not alloc stre...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
19,672
void visit_start_implicit_struct(Visitor *v, void **obj, size_t size, Error **errp) { if (!error_is_set(errp) && v->start_implicit_struct) { v->start_implicit_struct(v, obj, size, errp); } }
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
void visit_start_implicit_struct(Visitor *v, void **obj, size_t size, Error **errp) { if (!error_is_set(errp) && v->start_implicit_struct) { v->start_implicit_struct(v, obj, size, errp); } }
{ "code": [ " if (!error_is_set(errp) && v->start_implicit_struct) {" ], "line_no": [ 7 ] }
void FUNC_0(Visitor *VAR_0, void **VAR_1, size_t VAR_2, Error **VAR_3) { if (!error_is_set(VAR_3) && VAR_0->start_implicit_struct) { VAR_0->start_implicit_struct(VAR_0, VAR_1, VAR_2, VAR_3); } }
[ "void FUNC_0(Visitor *VAR_0, void **VAR_1, size_t VAR_2,\nError **VAR_3)\n{", "if (!error_is_set(VAR_3) && VAR_0->start_implicit_struct) {", "VAR_0->start_implicit_struct(VAR_0, VAR_1, VAR_2, VAR_3);", "}", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
19,673
static int multiwrite_f(int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char **buf; int64_t offset, first_offset = 0; /* Some compilers get confused and warn if this is not initialized. */ int total = 0; int nr_iov; int nr_reqs; i...
true
qemu
67403dbba76fb294fb3a2317227f4b77037145cc
static int multiwrite_f(int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, qflag = 0; int c, cnt; char **buf; int64_t offset, first_offset = 0; int total = 0; int nr_iov; int nr_reqs; int pattern = 0xcd; QEMUIOVector *qiovs; int i; BlockRequ...
{ "code": [ " for (i = 0; i < nr_reqs; i++) {", " return 0;", " return 0;" ], "line_no": [ 101, 115, 115 ] }
static int FUNC_0(int VAR_0, char **VAR_1) { struct timeval VAR_2, VAR_3; int VAR_4 = 0, VAR_5 = 0; int VAR_6, VAR_7; char **VAR_8; int64_t offset, first_offset = 0; int VAR_9 = 0; int VAR_10; int VAR_11; int VAR_12 = 0xcd; QEMUIOVector *qiovs; int VAR_13; ...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "struct timeval VAR_2, VAR_3;", "int VAR_4 = 0, VAR_5 = 0;", "int VAR_6, VAR_7;", "char **VAR_8;", "int64_t offset, first_offset = 0;", "int VAR_9 = 0;", "int VAR_10;", "int VAR_11;", "int VAR_12 = 0xcd;", "QEMUIOVector *qiovs;", "int VAR_13;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
19,675
static void vaapi_encode_h264_write_sps(PutBitContext *pbc, VAAPIEncodeContext *ctx) { VAEncSequenceParameterBufferH264 *vseq = ctx->codec_sequence_params; VAAPIEncodeH264Context *priv = ctx->priv_data; VAAPIEncodeH264MiscSequenceParams *mseq = &priv-...
false
FFmpeg
5c2fb561d94fc51d76ab21d6f7cc5b6cc3aa599c
static void vaapi_encode_h264_write_sps(PutBitContext *pbc, VAAPIEncodeContext *ctx) { VAEncSequenceParameterBufferH264 *vseq = ctx->codec_sequence_params; VAAPIEncodeH264Context *priv = ctx->priv_data; VAAPIEncodeH264MiscSequenceParams *mseq = &priv-...
{ "code": [], "line_no": [] }
static void FUNC_0(PutBitContext *VAR_0, VAAPIEncodeContext *VAR_1) { VAEncSequenceParameterBufferH264 *vseq = VAR_1->codec_sequence_params; VAAPIEncodeH264Context *priv = VAR_1->priv_data; VAAPIEncodeH264MiscSequenceParams *mseq = &priv->misc_sequenc...
[ "static void FUNC_0(PutBitContext *VAR_0,\nVAAPIEncodeContext *VAR_1)\n{", "VAEncSequenceParameterBufferH264 *vseq = VAR_1->codec_sequence_params;", "VAAPIEncodeH264Context *priv = VAR_1->priv_data;", "VAAPIEncodeH264MiscSequenceParams *mseq = &priv->misc_sequence_params;", "int VAR_2;", "vaap...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47, 49, 51, 53, 55 ], [...
19,676
static int pix_norm1_c(uint8_t * pix, int line_size) { int s, i, j; uint32_t *sq = ff_squareTbl + 256; s = 0; for (i = 0; i < 16; i++) { for (j = 0; j < 16; j += 8) { #if 0 s += sq[pix[0]]; s += sq[pix[1]]; s += sq[pix[2]]; s += sq[pix...
false
FFmpeg
d9a9f50a3683b577e9c391ce8cab9edc9b239fcb
static int pix_norm1_c(uint8_t * pix, int line_size) { int s, i, j; uint32_t *sq = ff_squareTbl + 256; s = 0; for (i = 0; i < 16; i++) { for (j = 0; j < 16; j += 8) { #if 0 s += sq[pix[0]]; s += sq[pix[1]]; s += sq[pix[2]]; s += sq[pix...
{ "code": [], "line_no": [] }
static int FUNC_0(uint8_t * VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4; uint32_t *sq = ff_squareTbl + 256; VAR_2 = 0; for (VAR_3 = 0; VAR_3 < 16; VAR_3++) { for (VAR_4 = 0; VAR_4 < 16; VAR_4 += 8) { #if 0 VAR_2 += sq[VAR_0[0]]; VAR_2 += sq[VAR_0[1]]; ...
[ "static int FUNC_0(uint8_t * VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "uint32_t *sq = ff_squareTbl + 256;", "VAR_2 = 0;", "for (VAR_3 = 0; VAR_3 < 16; VAR_3++) {", "for (VAR_4 = 0; VAR_4 < 16; VAR_4 += 8) {", "#if 0\nVAR_2 += sq[VAR_0[0]];", "VAR_2 += sq[VAR_0[1]];", "VAR_2 += sq[VAR_0[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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], ...
19,677
static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) { int i, j, slice; int A, B, C; uint8_t *bsrc; int slice_start, slice_height; const int cmask = ~rmode; for (slice = 0; slice < slices; slice++) { ...
false
FFmpeg
7656c4c6e66f8a787d384f027ad824cc1677fda1
static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) { int i, j, slice; int A, B, C; uint8_t *bsrc; int slice_start, slice_height; const int cmask = ~rmode; for (slice = 0; slice < slices; slice++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12; uint8_t *bsrc; int VAR_13, VAR_14; const int VAR_15 = ~VAR_6; for (VAR_9 = 0; VAR_9 < VAR_5; VAR_9++) {...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12;", "uint8_t *bsrc;", "int VAR_13, VAR_14;", "const int VAR_15 = ~VAR_6;", "for (VAR_9 = 0; VAR_9 < VAR_5; VAR_9++) {", "VAR_13 = ((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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [...
19,678
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; SVQ1Context *s = avctx->priv_data; AVFrame *cur = s->cur; uint8_t *current; int re...
false
FFmpeg
3b57bb478ff4455773378355e285877d757e151e
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; SVQ1Context *s = avctx->priv_data; AVFrame *cur = s->cur; uint8_t *current; int re...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; SVQ1Context *s = VAR_0->priv_data; AVFrame *cur = s->cur; uint8_t *current; int VAR_6, VAR_7, VA...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "SVQ1Context *s = VAR_0->priv_data;", "AVFrame *cur = s->cur;", "uint8_t *current;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 31 ], [ 37 ], [ 41, 43 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 61 ], [ 63 ], [ 65 ...
19,679
static int init_context_frame(MpegEncContext *s) { int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y; s->mb_width = (s->width + 15) / 16; s->mb_stride = s->mb_width + 1; s->b8_stride = s->mb_width * 2 + 1; s->b4_stride = s->mb_width * 4 + 1; mb_array_size = s->mb_h...
false
FFmpeg
9341e9497b1162726f09c1ff73edc95364b3c21a
static int init_context_frame(MpegEncContext *s) { int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y; s->mb_width = (s->width + 15) / 16; s->mb_stride = s->mb_width + 1; s->b8_stride = s->mb_width * 2 + 1; s->b4_stride = s->mb_width * 4 + 1; mb_array_size = s->mb_h...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; VAR_0->mb_width = (VAR_0->width + 15) / 16; VAR_0->mb_stride = VAR_0->mb_width + 1; VAR_0->b8_stride = VAR_0->mb_width * 2 + 1; VAR_0->b4_stride = VAR_0->mb_width * 4 + 1; VAR_5 =...
[ "static int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "VAR_0->mb_width = (VAR_0->width + 15) / 16;", "VAR_0->mb_stride = VAR_0->mb_width + 1;", "VAR_0->b8_stride = VAR_0->mb_width * 2 + 1;", "VAR_0->b4_stride = VAR_0->mb_width * 4 + 1;", "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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39, 41, 43 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59, 61 ], ...
19,680
static void mpeg4_encode_gop_header(MpegEncContext * s){ int hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time= s->current_picture_ptr->pts; if(s->reordered_input_picture[1]) time= FFMIN(time, s->reordered_input_picture[1...
false
FFmpeg
38bb5a5434f913451aa512624a92b12b9925690f
static void mpeg4_encode_gop_header(MpegEncContext * s){ int hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time= s->current_picture_ptr->pts; if(s->reordered_input_picture[1]) time= FFMIN(time, s->reordered_input_picture[1...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext * VAR_0){ int VAR_1, VAR_2, VAR_3; int64_t time; put_bits(&VAR_0->pb, 16, 0); put_bits(&VAR_0->pb, 16, GOP_STARTCODE); time= VAR_0->current_picture_ptr->pts; if(VAR_0->reordered_input_picture[1]) time= FFMIN(time, VAR_0->reordered_input_pictur...
[ "static void FUNC_0(MpegEncContext * VAR_0){", "int VAR_1, VAR_2, VAR_3;", "int64_t time;", "put_bits(&VAR_0->pb, 16, 0);", "put_bits(&VAR_0->pb, 16, GOP_STARTCODE);", "time= VAR_0->current_picture_ptr->pts;", "if(VAR_0->reordered_input_picture[1])\ntime= FFMIN(time, VAR_0->reordered_input_picture[1]->p...
[ 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 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55...
19,681
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; // WSSNDContext *c = avctx->priv_data; int in_size, out_size; int sample = 128; int i; ...
false
FFmpeg
618b067d2132b0336e609bc311e85c557ffb30ed
static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int in_size, out_size; int sample = 128; int i; uint8_t *samples = data; uint8_t *s...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->VAR_12; int VAR_6, VAR_7; int VAR_8 = 128; int VAR_9; uint8_t *samples = VAR_1; uint8_t *samples_end; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_12;", "int VAR_6, VAR_7;", "int VAR_8 = 128;", "int VAR_9;", "uint8_t *samples = VAR_1;", "uint8_t *samples_end;", "if (!VAR_5)\nreturn 0;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
19,683
static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat, int dstFormat, int srcW, int srcH, int dstW, int dstH, int flags){ uint8_t *src[3]; uint8_t *dst[3]; uint8_t *out[3]; int srcStride[3], dstStride[3]; int i; uint64_t ssdY, ssdU, ssdV; struct SwsContext *s...
true
FFmpeg
221b804f3491638ecf2eec1302c669ad2d9ec799
static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat, int dstFormat, int srcW, int srcH, int dstW, int dstH, int flags){ uint8_t *src[3]; uint8_t *dst[3]; uint8_t *out[3]; int srcStride[3], dstStride[3]; int i; uint64_t ssdY, ssdU, ssdV; struct SwsContext *s...
{ "code": [ " int srcW, int srcH, int dstW, int dstH, int flags){", "\tuint8_t *src[3];", "\tuint8_t *dst[3];", "\tuint8_t *out[3];", "\tint srcStride[3], dstStride[3];", "\tint i;", "\tuint64_t ssdY, ssdU, ssdV;", "\tstruct SwsContext *srcContext, *dstContext, *outCo...
static int FUNC_0(uint8_t *VAR_0[3], int VAR_1[3], int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10){ uint8_t *src[3]; uint8_t *dst[3]; uint8_t *out[3]; int VAR_11[3], VAR_12[3]; int VAR_13; uint64_t ssdY, ssdU, ssdV; struct SwsContext ...
[ "static int FUNC_0(uint8_t *VAR_0[3], int VAR_1[3], int VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10){", "uint8_t *src[3];", "uint8_t *dst[3];", "uint8_t *out[3];", "int VAR_11[3], VAR_12[3];", "int VAR_13;", "uint64_t ssdY, ssdU, ssdV;", "struct SwsC...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ...
19,686
static int local_mknod(FsContext *fs_ctx, const char *path, FsCred *credp) { int err = -1; int serrno = 0; /* Determine the security model */ if (fs_ctx->fs_sm == SM_MAPPED) { err = mknod(rpath(fs_ctx, path), SM_LOCAL_MODE_BITS|S_IFREG, 0); if (err == -1) { return e...
true
qemu
12848bfc5d719bad536c5448205a3226be1fda47
static int local_mknod(FsContext *fs_ctx, const char *path, FsCred *credp) { int err = -1; int serrno = 0; if (fs_ctx->fs_sm == SM_MAPPED) { err = mknod(rpath(fs_ctx, path), SM_LOCAL_MODE_BITS|S_IFREG, 0); if (err == -1) { return err; } local_set_...
{ "code": [ " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (f...
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2) { int VAR_3 = -1; int VAR_4 = 0; if (VAR_0->fs_sm == SM_MAPPED) { VAR_3 = mknod(rpath(VAR_0, VAR_1), SM_LOCAL_MODE_BITS|S_IFREG, 0); if (VAR_3 == -1) { return VAR_3; } local_set...
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2)\n{", "int VAR_3 = -1;", "int VAR_4 = 0;", "if (VAR_0->fs_sm == SM_MAPPED) {", "VAR_3 = mknod(rpath(VAR_0, VAR_1), SM_LOCAL_MODE_BITS|S_IFREG, 0);", "if (VAR_3 == -1) {", "return VAR_3;", "}", "local_set_xattr(rpath(VAR_0, VAR_1),...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
19,687
uint32_t ff_celt_encode_band(CeltFrame *f, OpusRangeCoder *rc, const int band, float *X, float *Y, int N, int b, uint32_t blocks, float *lowband, int duration, float *lowband_out, int level, float gain, float *lowband_scratch, int...
true
FFmpeg
1b90e2414df070d4ea7d12f300c4a950d3ecc975
uint32_t ff_celt_encode_band(CeltFrame *f, OpusRangeCoder *rc, const int band, float *X, float *Y, int N, int b, uint32_t blocks, float *lowband, int duration, float *lowband_out, int level, float gain, float *lowband_scratch, int...
{ "code": [ " int N_B;" ], "line_no": [ 19 ] }
uint32_t FUNC_0(CeltFrame *f, OpusRangeCoder *rc, const int band, float *X, float *Y, int N, int b, uint32_t blocks, float *lowband, int duration, float *lowband_out, int level, float gain, float *lowband_scratch, int fill) { ...
[ "uint32_t FUNC_0(CeltFrame *f, OpusRangeCoder *rc, const int band,\nfloat *X, float *Y, int N, int b, uint32_t blocks,\nfloat *lowband, int duration, float *lowband_out, int level,\nfloat gain, float *lowband_scratch, int fill)\n{", "const uint8_t *VAR_0;", "int VAR_1, VAR_2;", "int VAR_3 = 0, VAR_4 = 0;", ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
19,688
static void pmsav5_data_ap_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { env->cp15.c5_data = extended_mpu_ap_bits(value); }
true
qemu
7e09797c299712cafa7bc05dd57c1b13afcc6039
static void pmsav5_data_ap_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { env->cp15.c5_data = extended_mpu_ap_bits(value); }
{ "code": [ " env->cp15.c5_data = extended_mpu_ap_bits(value);" ], "line_no": [ 7 ] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { VAR_0->cp15.c5_data = extended_mpu_ap_bits(VAR_2); }
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{", "VAR_0->cp15.c5_data = extended_mpu_ap_bits(VAR_2);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
19,690
static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt) { MvContext *mv = avctx->priv_data; AVIOContext *pb = avctx->pb; AVStream *st = avctx->streams[mv->stream_index]; const AVIndexEntry *index; int frame = mv->frame[mv->stream_index]; int ret; uint64_t pos; if (fra...
false
FFmpeg
362271d72fc38cd1f4b076aff9a12b1104c26760
static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt) { MvContext *mv = avctx->priv_data; AVIOContext *pb = avctx->pb; AVStream *st = avctx->streams[mv->stream_index]; const AVIndexEntry *index; int frame = mv->frame[mv->stream_index]; int ret; uint64_t pos; if (fra...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MvContext *mv = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVStream *st = VAR_0->streams[mv->stream_index]; const AVIndexEntry *VAR_2; int VAR_3 = mv->VAR_3[mv->stream_index]; int VAR_4; uint64_t pos; if (VAR_3 ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MvContext *mv = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVStream *st = VAR_0->streams[mv->stream_index];", "const AVIndexEntry *VAR_2;", "int VAR_3 = mv->VAR_3[mv->stream_index];", "int VAR_4;", "uint64_t pos;", "if (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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [...
19,691
static int adx_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { ADXParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int nex...
false
FFmpeg
b024209b1fe57b7902d30a8e0d38f5ecb628e6f3
static int adx_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { ADXParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int nex...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { ADXParseContext *s = VAR_0->priv_data; ParseContext *pc = &s->pc; int VAR_6 = EN...
[ "static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "ADXParseContext *s = VAR_0->priv_data;", "ParseContext *pc = &s->pc;", "int VAR_6 = END_NOT_FOUND;", "if (!VAR_1->extradata_size) {", "int VAR_7;", "ff_comb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
19,692
void ff_put_h264_qpel8_mc10_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_8w_msa(src - 2, stride, dst, stride, 8, 0); }
false
FFmpeg
b5da07d4340a8e8e40dcd1900977a76ff31fbb84
void ff_put_h264_qpel8_mc10_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_8w_msa(src - 2, stride, dst, stride, 8, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hz_qrt_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hz_qrt_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
19,693
static int decode_dvd_subtitles(AVSubtitle *sub_header, const uint8_t *buf, int buf_size) { int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos; int big_offsets, offset_size, is_8bit = 0; const uint8_t *yuv_palette = 0; uint8_t colormap[4], alpha[2...
false
FFmpeg
3ee8ca9b0894df3aaf5086c643283cb58ef9763d
static int decode_dvd_subtitles(AVSubtitle *sub_header, const uint8_t *buf, int buf_size) { int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos; int big_offsets, offset_size, is_8bit = 0; const uint8_t *yuv_palette = 0; uint8_t colormap[4], alpha[2...
{ "code": [], "line_no": [] }
static int FUNC_0(AVSubtitle *VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; int VAR_13, VAR_14, VAR_15 = 0; const uint8_t *VAR_16 = 0; uint8_t colormap[4], alpha[256]; int VAR_17; int...
[ "static int FUNC_0(AVSubtitle *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13, VAR_14, VAR_15 = 0;", "const uint8_t *VAR_16 = 0;", "uint8_t colormap[4], alpha[256];", "int VAR_17;", "int VAR_18;", "int VAR_19 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,694
static AVFrame *apply_palette(AVFilterLink *inlink, AVFrame *in) { int x, y, w, h; AVFilterContext *ctx = inlink->dst; PaletteUseContext *s = ctx->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) { ...
false
FFmpeg
6470abc740367cc881c181db866891f8dd1d342f
static AVFrame *apply_palette(AVFilterLink *inlink, AVFrame *in) { int x, y, w, h; AVFilterContext *ctx = inlink->dst; PaletteUseContext *s = ctx->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) { ...
{ "code": [], "line_no": [] }
static AVFrame *FUNC_0(AVFilterLink *inlink, AVFrame *in) { int VAR_0, VAR_1, VAR_2, VAR_3; AVFilterContext *ctx = inlink->dst; PaletteUseContext *s = ctx->priv; AVFilterLink *outlink = inlink->dst->outputs[0]; AVFrame *out = ff_get_video_buffer(outlink, outlink->VAR_2, outlink->VAR_3); ...
[ "static AVFrame *FUNC_0(AVFilterLink *inlink, AVFrame *in)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3;", "AVFilterContext *ctx = inlink->dst;", "PaletteUseContext *s = ctx->priv;", "AVFilterLink *outlink = inlink->dst->outputs[0];", "AVFrame *out = ff_get_video_buffer(outlink, outlink->VAR_2, outlink->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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ...
19,695
static av_cold int flic_decode_init(AVCodecContext *avctx) { FlicDecodeContext *s = avctx->priv_data; unsigned char *fli_header = (unsigned char *)avctx->extradata; int depth; if (avctx->extradata_size != 0 && avctx->extradata_size != 12 && avctx->extradata_size != 128 && ...
true
FFmpeg
b4043ef504b77c357d33ffa2be28ed1c4eeecf7f
static av_cold int flic_decode_init(AVCodecContext *avctx) { FlicDecodeContext *s = avctx->priv_data; unsigned char *fli_header = (unsigned char *)avctx->extradata; int depth; if (avctx->extradata_size != 0 && avctx->extradata_size != 12 && avctx->extradata_size != 128 && ...
{ "code": [ " av_log(avctx, AV_LOG_ERROR, \"Expected extradata of 12, 128 or 1024 bytes\\n\");" ], "line_no": [ 21 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { FlicDecodeContext *s = avctx->priv_data; unsigned char *VAR_0 = (unsigned char *)avctx->extradata; int VAR_1; if (avctx->extradata_size != 0 && avctx->extradata_size != 12 && avctx->extradata_size != 128 && avctx->extra...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "FlicDecodeContext *s = avctx->priv_data;", "unsigned char *VAR_0 = (unsigned char *)avctx->extradata;", "int VAR_1;", "if (avctx->extradata_size != 0 &&\navctx->extradata_size != 12 &&\navctx->extradata_size != 128 &&\navctx->extradata_size != 1024) {"...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
19,696
static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_ADVISE); uint64_t remote_hps, remote_tps; trace_loadvm_postcopy_handle_advise(); if (ps != POSTCOPY_INCOMING_NONE) { error_report("CMD_POSTCOPY_ADVISE in wrong ...
true
qemu
e8ca1db29b349e780743c504cb735c8e1d542a8c
static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_ADVISE); uint64_t remote_hps, remote_tps; trace_loadvm_postcopy_handle_advise(); if (ps != POSTCOPY_INCOMING_NONE) { error_report("CMD_POSTCOPY_ADVISE in wrong ...
{ "code": [ " uint64_t remote_hps, remote_tps;", " remote_hps = qemu_get_be64(mis->from_src_file);", " if (remote_hps != getpagesize()) {", " error_report(\"Postcopy needs matching host page sizes (s=%d d=%d)\",", " (int)remote_hps, getpagesize());" ], "lin...
static int FUNC_0(MigrationIncomingState *VAR_0) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_ADVISE); uint64_t remote_hps, remote_tps; trace_loadvm_postcopy_handle_advise(); if (ps != POSTCOPY_INCOMING_NONE) { error_report("CMD_POSTCOPY_ADVISE in wrong postcopy state (%d)",...
[ "static int FUNC_0(MigrationIncomingState *VAR_0)\n{", "PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_ADVISE);", "uint64_t remote_hps, remote_tps;", "trace_loadvm_postcopy_handle_advise();", "if (ps != POSTCOPY_INCOMING_NONE) {", "error_report(\"CMD_POSTCOPY_ADVISE in wrong postcopy state (%d)\"...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], ...
19,697
static void search_for_quantizers_twoloop(AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce, const float lambda) { int start = 0, i, w, w2, g; int destbits = avctx...
true
FFmpeg
32be264cea542b4dc721b10092bf1dfe511a28ee
static void search_for_quantizers_twoloop(AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce, const float lambda) { int start = 0, i, w, w2, g; int destbits = avctx...
{ "code": [ " const float *coefs = sce->coeffs + start;", " const float *scaled = s->scoefs + start;" ], "line_no": [ 153, 155 ] }
static void FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1, SingleChannelElement *VAR_2, const float VAR_3) { int VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9 = VAR_0->bit_...
[ "static void FUNC_0(AVCodecContext *VAR_0,\nAACEncContext *VAR_1,\nSingleChannelElement *VAR_2,\nconst float VAR_3)\n{", "int VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9 = VAR_0->bit_rate * 1024.0 / VAR_0->sample_rate / VAR_0->channels * (VAR_3 / 120.f);", "float VAR_10[128] = { 0 }, VAR_11[128] = { 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
19,698
static void compare_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, bool *rebuild, int64_t *highest_cluster, uint16_t *refcount_table, int64_t nb_clusters) { BDRVQcowState *s = bs->opaque; in...
true
qemu
7453c96b78c2b09aa72924f933bb9616e5474194
static void compare_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, bool *rebuild, int64_t *highest_cluster, uint16_t *refcount_table, int64_t nb_clusters) { BDRVQcowState *s = bs->opaque; in...
{ "code": [ " uint16_t *refcount_table, int64_t nb_clusters)", " refcount2 = refcount_table[i];" ], "line_no": [ 7, 39 ] }
static void FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2, bool *VAR_3, int64_t *VAR_4, uint16_t *VAR_5, int64_t VAR_6) { BDRVQcowState *s = VAR_0->opaque; int64_t i; uint64_t refco...
[ "static void FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2, bool *VAR_3,\nint64_t *VAR_4,\nuint16_t *VAR_5, int64_t VAR_6)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t i;", "uint64_t refcount1, refcount2;", "int VAR_7;", "for (i = 0, *VAR_4 = 0; i < VAR_6; i++) {", "...
[ 1, 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ...
19,699
static void xilinx_spips_realize(DeviceState *dev, Error **errp) { XilinxSPIPS *s = XILINX_SPIPS(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int i; DB_PRINT_L(0, "realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); fo...
true
qemu
c8cccba3125d8d1a7ca66fc593a89543f3fe823d
static void xilinx_spips_realize(DeviceState *dev, Error **errp) { XilinxSPIPS *s = XILINX_SPIPS(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int i; DB_PRINT_L(0, "realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); fo...
{ "code": [ " ssi_auto_connect_slaves(DEVICE(s), s->cs_lines, s->spi[0]);", " ssi_auto_connect_slaves(DEVICE(s), s->cs_lines, s->spi[1]);" ], "line_no": [ 35, 37 ] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { XilinxSPIPS *s = XILINX_SPIPS(VAR_0); SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int VAR_2; DB_PRINT_L(0, "realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); for (...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "XilinxSPIPS *s = XILINX_SPIPS(VAR_0);", "SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);", "XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s);", "int VAR_2;", "DB_PRINT_L(0, \"realized spips\\n\");", "s->spi = g_new(SSIBus *, s->num_busses);", "f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49,...
19,700
int32_t HELPER(sdiv)(int32_t num, int32_t den) { if (den == 0) return 0; return num / den; }
true
qemu
686eeb93d5738c84c59395b2ec6f8181c2b7cbed
int32_t HELPER(sdiv)(int32_t num, int32_t den) { if (den == 0) return 0; return num / den; }
{ "code": [], "line_no": [] }
int32_t FUNC_0(sdiv)(int32_t num, int32_t den) { if (den == 0) return 0; return num / den; }
[ "int32_t FUNC_0(sdiv)(int32_t num, int32_t den)\n{", "if (den == 0)\nreturn 0;", "return num / den;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
19,701
static void bdrv_move_feature_fields(BlockDriverState *bs_dest, BlockDriverState *bs_src) { /* move some fields that need to stay attached to the device */ bs_dest->open_flags = bs_src->open_flags; /* dev info */ bs_dest->dev_ops = bs_src->...
true
qemu
90ce8a061bdcc485a56142cae68cfbfff270e634
static void bdrv_move_feature_fields(BlockDriverState *bs_dest, BlockDriverState *bs_src) { bs_dest->open_flags = bs_src->open_flags; bs_dest->dev_ops = bs_src->dev_ops; bs_dest->dev_opaque = bs_src->dev_opaque; bs_dest-...
{ "code": [ " bs_dest->node_list = bs_src->node_list;" ], "line_no": [ 99 ] }
static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1) { VAR_0->open_flags = VAR_1->open_flags; VAR_0->dev_ops = VAR_1->dev_ops; VAR_0->dev_opaque = VAR_1->dev_opaque; VAR_0->dev = VAR_1->dev...
[ "static void FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1)\n{", "VAR_0->open_flags = VAR_1->open_flags;", "VAR_0->dev_ops = VAR_1->dev_ops;", "VAR_0->dev_opaque = VAR_1->dev_opaque;", "VAR_0->dev = VAR_1->dev;", "VAR_0->guest_block_size = VAR_1->gues...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ], [ 65 ], [ 71 ], ...
19,702
int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, const void *pp, unsigned pp_size, const void *qm, unsigned qm_size, int (*commit_bs_si)(AVCodecContext *, D...
true
FFmpeg
99cf943339a2e5171863c48cd1a73dd43dc243e1
int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, const void *pp, unsigned pp_size, const void *qm, unsigned qm_size, int (*commit_bs_si)(AVCodecContext *, D...
{ "code": [ " if (hr == E_PENDING)", " av_usleep(2000);", " } while (hr == E_PENDING && ++runs < 50);" ], "line_no": [ 73, 75, 77 ] }
VAR_7intVAR_7 VAR_7ff_dxva2_common_end_frameVAR_7(VAR_7AVCodecContextVAR_7 *VAR_7VAR_0VAR_7, VAR_7AVFrameVAR_7 *VAR_7VAR_1VAR_7, VAR_7constVAR_7 VAR_7voidVAR_7 *VAR_7VAR_2VAR_7, VAR_7unsignedVAR_7 VAR_7VAR_3VAR_7, VAR_7constVAR_7 VAR_7voidVAR_7 *VAR_7VAR_4VA...
[ "VAR_7intVAR_7 VAR_7ff_dxva2_common_end_frameVAR_7(VAR_7AVCodecContextVAR_7 *VAR_7VAR_0VAR_7, VAR_7AVFrameVAR_7 *VAR_7VAR_1VAR_7,\nVAR_7constVAR_7 VAR_7voidVAR_7 *VAR_7VAR_2VAR_7, VAR_7unsignedVAR_7 VAR_7VAR_3VAR_7,\nVAR_7constVAR_7 VAR_7voidVAR_7 *VAR_7VAR_4VAR_7, VAR_7unsignedVAR_7 VAR_7VAR_5VAR_7,\nVAR_7intVAR_7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51, 53, 55 ], [...
19,703
static int xsub_encode(AVCodecContext *avctx, unsigned char *buf, int bufsize, void *data) { AVSubtitle *h = data; uint64_t startTime = h->pts / 1000; // FIXME: need better solution... uint64_t endTime = startTime + h->end_display_time - h->start_display_time; int start_tc[4...
true
FFmpeg
9522a752bf4179b69fa9e334ee755405ba8f4459
static int xsub_encode(AVCodecContext *avctx, unsigned char *buf, int bufsize, void *data) { AVSubtitle *h = data; uint64_t startTime = h->pts / 1000; uint64_t endTime = startTime + h->end_display_time - h->start_display_time; int start_tc[4], end_tc[4]; uint8_t *hdr =...
{ "code": [ " if (h->num_rects > 1)" ], "line_no": [ 39 ] }
static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3) { AVSubtitle *h = VAR_3; uint64_t startTime = h->pts / 1000; uint64_t endTime = startTime + h->end_display_time - h->start_display_time; int VAR_4[4], VAR_5[4]; uint8_t *hdr = VAR_1 ...
[ "static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1,\nint VAR_2, void *VAR_3)\n{", "AVSubtitle *h = VAR_3;", "uint64_t startTime = h->pts / 1000;", "uint64_t endTime = startTime + h->end_display_time - h->start_display_time;", "int VAR_4[4], VAR_5[4];", "uint8_t *hdr = VAR_1 + 27;", "uint8_t ...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
19,704
void avcodec_register_all(void) { static int initialized; if (initialized) return; initialized = 1; /* hardware accelerators */ REGISTER_HWACCEL(H263_CUVID, h263_cuvid); REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_vide...
true
FFmpeg
1891dfe0130991ee138d01f2877678de717b9e23
void avcodec_register_all(void) { static int initialized; if (initialized) return; initialized = 1; REGISTER_HWACCEL(H263_CUVID, h263_cuvid); REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox); REGISTER_HW...
{ "code": [], "line_no": [] }
void FUNC_0(void) { static int VAR_0; if (VAR_0) return; VAR_0 = 1; REGISTER_HWACCEL(H263_CUVID, h263_cuvid); REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox); REGISTER_HWACCEL(H264_CUVID, h264_cu...
[ "void FUNC_0(void)\n{", "static int VAR_0;", "if (VAR_0)\nreturn;", "VAR_0 = 1;", "REGISTER_HWACCEL(H263_CUVID, h263_cuvid);", "REGISTER_HWACCEL(H263_VAAPI, h263_vaapi);", "REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox);", "REGISTER_HWACCEL(H264_CUVID, h264_cuvid);", "RE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
19,705
static void spapr_machine_device_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(qdev_get_machine()); if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { error_setg(errp, "Memory hot unp...
true
qemu
3c0c47e3464f3c54bd3f1cc6d4da2cbf7465e295
static void spapr_machine_device_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(qdev_get_machine()); if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { error_setg(errp, "Memory hot unp...
{ "code": [ " sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(qdev_get_machine());", " if (!smc->dr_cpu_enabled) {" ], "line_no": [ 7, 17 ] }
static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(qdev_get_machine()); if (object_dynamic_cast(OBJECT(VAR_1), TYPE_PC_DIMM)) { error_setg(VAR_2, "Memory hot unplug not supported by ...
[ "static void FUNC_0(HotplugHandler *VAR_0,\nDeviceState *VAR_1, Error **VAR_2)\n{", "sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(qdev_get_machine());", "if (object_dynamic_cast(OBJECT(VAR_1), TYPE_PC_DIMM)) {", "error_setg(VAR_2, \"Memory hot unplug not supported by sPAPR\");", "} else if (object_dynam...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
19,706
static int mkv_add_cuepoint(mkv_cues *cues, int stream, int64_t ts, int64_t cluster_pos) { mkv_cuepoint *entries = cues->entries; entries = av_realloc(entries, (cues->num_entries + 1) * sizeof(mkv_cuepoint)); if (entries == NULL) return AVERROR(ENOMEM); if (ts < 0) return 0; ...
true
FFmpeg
4ffbe3f3a5d9892841d9bc31d859916c2c61123f
static int mkv_add_cuepoint(mkv_cues *cues, int stream, int64_t ts, int64_t cluster_pos) { mkv_cuepoint *entries = cues->entries; entries = av_realloc(entries, (cues->num_entries + 1) * sizeof(mkv_cuepoint)); if (entries == NULL) return AVERROR(ENOMEM); if (ts < 0) return 0; ...
{ "code": [ " if (ts < 0)", " return 0;" ], "line_no": [ 17, 19 ] }
static int FUNC_0(mkv_cues *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3) { mkv_cuepoint *entries = VAR_0->entries; entries = av_realloc(entries, (VAR_0->num_entries + 1) * sizeof(mkv_cuepoint)); if (entries == NULL) return AVERROR(ENOMEM); if (VAR_2 < 0) return 0; en...
[ "static int FUNC_0(mkv_cues *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3)\n{", "mkv_cuepoint *entries = VAR_0->entries;", "entries = av_realloc(entries, (VAR_0->num_entries + 1) * sizeof(mkv_cuepoint));", "if (entries == NULL)\nreturn AVERROR(ENOMEM);", "if (VAR_2 < 0)\nreturn 0;", "entries[VAR_0->num_...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
19,708
static void gen_exception(int excp) { TCGv tmp = new_tmp(); tcg_gen_movi_i32(tmp, excp); gen_helper_exception(tmp); dead_tmp(tmp); }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_exception(int excp) { TCGv tmp = new_tmp(); tcg_gen_movi_i32(tmp, excp); gen_helper_exception(tmp); dead_tmp(tmp); }
{ "code": [ " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", ...
static void FUNC_0(int VAR_0) { TCGv tmp = new_tmp(); tcg_gen_movi_i32(tmp, VAR_0); gen_helper_exception(tmp); dead_tmp(tmp); }
[ "static void FUNC_0(int VAR_0)\n{", "TCGv tmp = new_tmp();", "tcg_gen_movi_i32(tmp, VAR_0);", "gen_helper_exception(tmp);", "dead_tmp(tmp);", "}" ]
[ 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
19,710
static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { YopDecContext *s = avctx->priv_data; int tag, firstcolor, is_odd_frame; int ret, i; uint32_t *palette; if (s->frame.data[0]) avctx->release_buffer(avctx, &s...
true
FFmpeg
b12d92efd6c0d48665383a9baecc13e7ebbd8a22
static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { YopDecContext *s = avctx->priv_data; int tag, firstcolor, is_odd_frame; int ret, i; uint32_t *palette; if (s->frame.data[0]) avctx->release_buffer(avctx, &s...
{ "code": [ " palette[i + firstcolor] |= 0xFF << 24 |" ], "line_no": [ 85 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { YopDecContext *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6; int VAR_7, VAR_8; uint32_t *palette; if (s->frame.VAR_1[0]) VAR_0->release_buffer(VAR_0, &s->frame); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "YopDecContext *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6;", "int VAR_7, VAR_8;", "uint32_t *palette;", "if (s->frame.VAR_1[0])\nVAR_0->release_buffer(VAR_0, &s->frame);", "if (VAR_3->size < 4 + 3*s->num_pal...
[ 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
19,711
static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { DNXHDEncContext *ctx = avctx->priv_data; int first_field = 1; int offset, i, ret; if (buf_size < ctx->cid_table->frame_size) { av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compres...
true
FFmpeg
301a24de52f5baa09beff0958327af2c2a7005dc
static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { DNXHDEncContext *ctx = avctx->priv_data; int first_field = 1; int offset, i, ret; if (buf_size < ctx->cid_table->frame_size) { av_log(avctx, AV_LOG_ERROR, "output buffer is too small to compres...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3) { DNXHDEncContext *ctx = VAR_0->priv_data; int VAR_4 = 1; int VAR_5, VAR_6, VAR_7; if (VAR_2 < ctx->cid_table->frame_size) { av_log(VAR_0, AV_LOG_ERROR, "output buffer is too small to compress picture\n"); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3)\n{", "DNXHDEncContext *ctx = VAR_0->priv_data;", "int VAR_4 = 1;", "int VAR_5, VAR_6, VAR_7;", "if (VAR_2 < ctx->cid_table->frame_size) {", "av_log(VAR_0, AV_LOG_ERROR, \"output buffer is too small to compress picture\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ],...
19,713
static void mb_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_CLASS(oc); mcc->parent_realize = dc->realize; dc->realize = mb_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = mb_...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void mb_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_CLASS(oc); mcc->parent_realize = dc->realize; dc->realize = mb_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = mb_...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_CLASS(VAR_0); mcc->parent_realize = dc->realize; dc->realize = mb_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = m...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_CLASS(VAR_0);", "mcc->parent_realize = dc->realize;", "dc->realize = mb_cpu_realizefn;", "mcc->parent_reset = cc->reset;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17, 18 ], [ 19, 20 ], [ 21 ], [ 22, ...
19,714
static int vfio_connect_container(VFIOGroup *group, AddressSpace *as, Error **errp) { VFIOContainer *container; int ret, fd; VFIOAddressSpace *space; space = vfio_get_address_space(as); QLIST_FOREACH(container, &space->containers, next) { if (!io...
true
qemu
c6e7958eb76ed267f7254b97f89773874df50e48
static int vfio_connect_container(VFIOGroup *group, AddressSpace *as, Error **errp) { VFIOContainer *container; int ret, fd; VFIOAddressSpace *space; space = vfio_get_address_space(as); QLIST_FOREACH(container, &space->containers, next) { if (!io...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOGroup *VAR_0, AddressSpace *VAR_1, Error **VAR_2) { VFIOContainer *container; int VAR_3, VAR_4; VFIOAddressSpace *space; space = vfio_get_address_space(VAR_1); QLIST_FOREACH(container, &space->containers, next) { if (!ioctl(...
[ "static int FUNC_0(VFIOGroup *VAR_0, AddressSpace *VAR_1,\nError **VAR_2)\n{", "VFIOContainer *container;", "int VAR_3, VAR_4;", "VFIOAddressSpace *space;", "space = vfio_get_address_space(VAR_1);", "QLIST_FOREACH(container, &space->containers, next) {", "if (!ioctl(VAR_0->VAR_4, VFIO_GROUP_SET_CONTAINE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 48 ], [ 50 ], [ 52, 54 ...
19,715
static void FUNCC(pred4x4_top_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const int dc= ( src[-stride] + src[1-stride] + src[2-stride] + src[3-stride] + 2) >>2; ((pixel4*)(src+0*stride))[0]= ((pixel4*)(src+1*stride)...
true
FFmpeg
2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac
static void FUNCC(pred4x4_top_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const int dc= ( src[-stride] + src[1-stride] + src[2-stride] + src[3-stride] + 2) >>2; ((pixel4*)(src+0*stride))[0]= ((pixel4*)(src+1*stride)...
{ "code": [ " ((pixel4*)(src+0*stride))[0]=", " ((pixel4*)(src+1*stride))[0]=", " ((pixel4*)(src+2*stride))[0]=", " ((pixel4*)(src+3*stride))[0]= PIXEL_SPLAT_X4(dc);", " ((pixel4*)(src+0*stride))[0]=", " ((pixel4*)(src+1*stride))[0]=", " ((pixel4*)(src+2*stride))[0]=",...
static void FUNC_0(pred4x4_top_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int VAR_0 = _stride/sizeof(pixel); const int VAR_1= ( src[-VAR_0] + src[1-VAR_0] + src[2-VAR_0] + src[3-VAR_0] + 2) >>2; ((pixel4*)(src+0*VAR_0))[0]= ((pixel4*)(src+1*VAR_0))[0...
[ "static void FUNC_0(pred4x4_top_dc)(uint8_t *_src, const uint8_t *topright, int _stride){", "pixel *src = (pixel*)_src;", "int VAR_0 = _stride/sizeof(pixel);", "const int VAR_1= ( src[-VAR_0] + src[1-VAR_0] + src[2-VAR_0] + src[3-VAR_0] + 2) >>2;", "((pixel4*)(src+0*VAR_0))[0]=\n((pixel4*)(src+1*VAR_0))[0]...
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17 ], [ 19 ] ]
19,717
static void print_report(int is_last_report, int64_t timer_start) { char buf[1024]; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int frame_number, vid, i; double bitrate, ti1, pts; static int64_t last_time = -1; static int qp_histogram[52...
true
FFmpeg
5c79d2e12d13959fc6aed92d102c25194a06de05
static void print_report(int is_last_report, int64_t timer_start) { char buf[1024]; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int frame_number, vid, i; double bitrate, ti1, pts; static int64_t last_time = -1; static int qp_histogram[52...
{ "code": [ " int64_t raw= audio_size + video_size + extra_size;", " 100.0 * (total_size - raw) / raw", " );" ], "line_no": [ 235, 247, 249 ] }
static void FUNC_0(int VAR_0, int64_t VAR_1) { char VAR_2[1024]; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int VAR_3, VAR_4, VAR_5; double VAR_6, VAR_7, VAR_8; static int64_t VAR_9 = -1; static int VAR_10[52]; if (!print_stats &...
[ "static void FUNC_0(int VAR_0, int64_t VAR_1)\n{", "char VAR_2[1024];", "OutputStream *ost;", "AVFormatContext *oc;", "int64_t total_size;", "AVCodecContext *enc;", "int VAR_3, VAR_4, VAR_5;", "double VAR_6, VAR_7, VAR_8;", "static int64_t VAR_9 = -1;", "static int VAR_10[52];", "if (!print_stat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
19,718
static void store_slice_mmx(uint8_t *dst, const uint16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y; for (y = 0; y < height; y++) { uint8_t *...
true
FFmpeg
6706a2986c48e3f20f1274b24345e6555d8f0f48
static void store_slice_mmx(uint8_t *dst, const uint16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y; for (y = 0; y < height; y++) { uint8_t *...
{ "code": [ "static void store_slice_mmx(uint8_t *dst, const uint16_t *src," ], "line_no": [ 1 ] }
static void FUNC_0(uint8_t *VAR_0, const uint16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, const uint8_t VAR_7[8][8]) { int VAR_8; for (VAR_8 = 0; VAR_8 < VAR_5; VAR_8++) { uint8_t *dst1 = ...
[ "static void FUNC_0(uint8_t *VAR_0, const uint16_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nconst uint8_t VAR_7[8][8])\n{", "int VAR_8;", "for (VAR_8 = 0; VAR_8 < VAR_5; VAR_8++) {", "uint8_t *dst1 = VAR_0;", "const int16_t *VAR_9 = VAR_1;", "__asm__ volatile(\n\"movq (%3), %%mm3 ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71 ...
19,719
av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) { s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97; s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53; s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar; s->vc2_subband_dw...
true
FFmpeg
3228ac730c11eca49d5680d5550128e397061c85
av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) { s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97; s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53; s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar; s->vc2_subband_dw...
{ "code": [ "av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height)", " s->buffer = av_malloc(2*p_width*p_height*sizeof(dwtcoef));" ], "line_no": [ 1, 15 ] }
av_cold int FUNC_0(VC2TransformContext *s, int p_width, int p_height) { s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97; s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53; s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar; s->vc2_subband_dwt[VC2_TRANSFORM_HAA...
[ "av_cold int FUNC_0(VC2TransformContext *s, int p_width, int p_height)\n{", "s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97;", "s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53;", "s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar;", "s->vc2_subband_dwt[VC2_TRANSFOR...
[ 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ] ]
19,720
static void fill_buffer(AVIOContext *s) { int max_buffer_size = s->max_packet_size ? s->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ? s->buf_end : s->buffer; int len = ...
true
FFmpeg
0023ea4e20b0bec70e1dedb7f1183dd58f9122d8
static void fill_buffer(AVIOContext *s) { int max_buffer_size = s->max_packet_size ? s->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ? s->buf_end : s->buffer; int len = ...
{ "code": [ " ffio_set_buf_size(s, s->orig_buffer_size);" ], "line_no": [ 53 ] }
static void FUNC_0(AVIOContext *VAR_0) { int VAR_1 = VAR_0->max_packet_size ? VAR_0->max_packet_size : IO_BUFFER_SIZE; uint8_t *dst = VAR_0->buf_end - VAR_0->buffer + VAR_1 < VAR_0->buffer_size ? VAR_0->buf_end : VAR_0->buffer; int VAR_2 ...
[ "static void FUNC_0(AVIOContext *VAR_0)\n{", "int VAR_1 = VAR_0->max_packet_size ?\nVAR_0->max_packet_size : IO_BUFFER_SIZE;", "uint8_t *dst = VAR_0->buf_end - VAR_0->buffer + VAR_1 < VAR_0->buffer_size ?\nVAR_0->buf_end : VAR_0->buffer;", "int VAR_2 = VAR_0->buffer_size - (dst - VAR_0->buf...
[ 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 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 19, 21 ], [ 27, 29 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ...
19,722
static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) { int size = 0, ret; const uint8_t *data; uint32_t flags; data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); if (!data) return 0; if (!(avctx->codec->capabilities & CODEC_CAP_PARAM_CHAN...
false
FFmpeg
e83ffb48aca607ae3ec057f81c3d2eff9c075782
static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) { int size = 0, ret; const uint8_t *data; uint32_t flags; data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); if (!data) return 0; if (!(avctx->codec->capabilities & CODEC_CAP_PARAM_CHAN...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1) { int VAR_2 = 0, VAR_3; const uint8_t *VAR_4; uint32_t flags; VAR_4 = av_packet_get_side_data(VAR_1, AV_PKT_DATA_PARAM_CHANGE, &VAR_2); if (!VAR_4) return 0; if (!(VAR_0->codec->capabilities & CODEC_CAP_PARAM_CHANGE)) ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2 = 0, VAR_3;", "const uint8_t *VAR_4;", "uint32_t flags;", "VAR_4 = av_packet_get_side_data(VAR_1, AV_PKT_DATA_PARAM_CHANGE, &VAR_2);", "if (!VAR_4)\nreturn 0;", "if (!(VAR_0->codec->capabilities & CODEC_CAP_PARAM_CHANGE)) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
19,723
static int get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum) { const AVOption *o = av_opt_find(obj, name, NULL, 0, 0); void *dst; if (!o || o->offset<=0) goto error; dst= ((uint8_t*)obj) + o->offset; if (o_out) *o_out= o; ...
false
FFmpeg
4dbcdfa86d1405f7e5c0ec14a4be7d2fb5903d7b
static int get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum) { const AVOption *o = av_opt_find(obj, name, NULL, 0, 0); void *dst; if (!o || o->offset<=0) goto error; dst= ((uint8_t*)obj) + o->offset; if (o_out) *o_out= o; ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, const char *VAR_1, const AVOption **VAR_2, double *VAR_3, int *VAR_4, int64_t *VAR_5) { const AVOption *VAR_6 = av_opt_find(VAR_0, VAR_1, NULL, 0, 0); void *VAR_7; if (!VAR_6 || VAR_6->offset<=0) goto error; VAR_7= ((uint8_t*)VAR_0) + VAR_6->offset; ...
[ "static int FUNC_0(void *VAR_0, const char *VAR_1, const AVOption **VAR_2, double *VAR_3, int *VAR_4, int64_t *VAR_5)\n{", "const AVOption *VAR_6 = av_opt_find(VAR_0, VAR_1, NULL, 0, 0);", "void *VAR_7;", "if (!VAR_6 || VAR_6->offset<=0)\ngoto error;", "VAR_7= ((uint8_t*)VAR_0) + VAR_6->offset;", "if (VAR...
[ 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
19,726
static int dts_probe(AVProbeData *p) { const uint8_t *buf, *bufp; uint32_t state = -1; int markers[4*16] = {0}; int exss_markers = 0, exss_nextpos = 0; int sum, max, pos, i; int64_t diff = 0; uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; for (pos = FFMIN(4096, p->buf...
false
FFmpeg
3b7ec920af42f1dc3676b72db9e617227c220436
static int dts_probe(AVProbeData *p) { const uint8_t *buf, *bufp; uint32_t state = -1; int markers[4*16] = {0}; int exss_markers = 0, exss_nextpos = 0; int sum, max, pos, i; int64_t diff = 0; uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; for (pos = FFMIN(4096, p->buf...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { const uint8_t *VAR_1, *bufp; uint32_t state = -1; int VAR_2[4*16] = {0}; int VAR_3 = 0, VAR_4 = 0; int VAR_5, VAR_6, VAR_7, VAR_8; int64_t diff = 0; uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; for (VAR_7 = FFMIN(4096, VAR_0->...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "const uint8_t *VAR_1, *bufp;", "uint32_t state = -1;", "int VAR_2[4*16] = {0};", "int VAR_3 = 0, VAR_4 = 0;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int64_t diff = 0;", "uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 };", "for (VAR_7 = FFMIN(4096, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 45 ], [ 47, 49 ], [ 53 ], [ 55 ...
19,727
static int wc3_read_packet(AVFormatContext *s, AVPacket *pkt) { Wc3DemuxContext *wc3 = s->priv_data; ByteIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int packet_read = 0; int ret = 0; unsigned char preamble[WC3_PREAMBLE_SIZE]; un...
false
FFmpeg
e584914acddaeb21f5258d9947b530fbd9421ab8
static int wc3_read_packet(AVFormatContext *s, AVPacket *pkt) { Wc3DemuxContext *wc3 = s->priv_data; ByteIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int packet_read = 0; int ret = 0; unsigned char preamble[WC3_PREAMBLE_SIZE]; un...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { Wc3DemuxContext *wc3 = VAR_0->priv_data; ByteIOContext *pb = VAR_0->pb; unsigned int VAR_2; unsigned int VAR_3; int VAR_4 = 0; int VAR_5 = 0; unsigned char VAR_6[WC3_PREAMBLE_SIZE]; unsigned...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "Wc3DemuxContext *wc3 = VAR_0->priv_data;", "ByteIOContext *pb = VAR_0->pb;", "unsigned int VAR_2;", "unsigned int VAR_3;", "int VAR_4 = 0;", "int VAR_5 = 0;", "unsigned char VAR_6[WC3_PREAMBLE_SIZE];", "unsigned char VAR_7[1024];", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 39, 41, 43 ], [ 47 ], [ 51 ], [ 55 ], [...
19,729
int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup) { AVCodecContext *const avctx = h->avctx; int err = 0; h->mb_y = 0; if (!in_setup && !h->droppable) ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, h->picture_structure ==...
true
FFmpeg
45286a625c6ced1f5c4c842244cbb4509429abba
int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup) { AVCodecContext *const avctx = h->avctx; int err = 0; h->mb_y = 0; if (!in_setup && !h->droppable) ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, h->picture_structure ==...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2) { AVCodecContext *const avctx = VAR_0->avctx; int VAR_3 = 0; VAR_0->mb_y = 0; if (!VAR_2 && !VAR_0->droppable) ff_thread_report_progress(&VAR_0->cur_pic_ptr->tf, INT_MAX, VAR_0->picture_...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2)\n{", "AVCodecContext *const avctx = VAR_0->avctx;", "int VAR_3 = 0;", "VAR_0->mb_y = 0;", "if (!VAR_2 && !VAR_0->droppable)\nff_thread_report_progress(&VAR_0->cur_pic_ptr->tf, INT_MAX,\nVAR_0->picture_structure == PICT_BOTTOM_FIELD);", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 53,...
19,730
static void pic_common_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_pic_common; dc->no_user = 1; dc->props = pic_properties_common; dc->realize = pic_common_realize; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void pic_common_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->vmsd = &vmstate_pic_common; dc->no_user = 1; dc->props = pic_properties_common; dc->realize = pic_common_realize; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->vmsd = &vmstate_pic_common; dc->no_user = 1; dc->props = pic_properties_common; dc->realize = pic_common_realize; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->vmsd = &vmstate_pic_common;", "dc->no_user = 1;", "dc->props = pic_properties_common;", "dc->realize = pic_common_realize;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
19,731
static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h) { AVFrame *frame = av_frame_alloc(); if (!frame) return NULL; frame->format = pixfmt; frame->width = w; frame->height = h; if (av_frame_get_buffer(frame, 32) < 0) return NULL; return frame; ...
true
FFmpeg
7ad742b2247a0d6f742a656892b4963fa77744dd
static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h) { AVFrame *frame = av_frame_alloc(); if (!frame) return NULL; frame->format = pixfmt; frame->width = w; frame->height = h; if (av_frame_get_buffer(frame, 32) < 0) return NULL; return frame; ...
{ "code": [ " if (av_frame_get_buffer(frame, 32) < 0)" ], "line_no": [ 21 ] }
static AVFrame *FUNC_0(enum AVPixelFormat pixfmt, int w, int h) { AVFrame *frame = av_frame_alloc(); if (!frame) return NULL; frame->format = pixfmt; frame->width = w; frame->height = h; if (av_frame_get_buffer(frame, 32) < 0) return NULL; return frame; }
[ "static AVFrame *FUNC_0(enum AVPixelFormat pixfmt, int w, int h)\n{", "AVFrame *frame = av_frame_alloc();", "if (!frame)\nreturn NULL;", "frame->format = pixfmt;", "frame->width = w;", "frame->height = h;", "if (av_frame_get_buffer(frame, 32) < 0)\nreturn NULL;", "return frame;", "}" ]
[ 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ] ]
19,732
void qdev_init_nofail(DeviceState *dev) { Error *err = NULL; assert(!dev->realized); object_property_set_bool(OBJECT(dev), true, "realized", &err); if (err) { error_reportf_err(err, "Initialization of device %s failed: ", object_get_typename(OBJECT(dev))); ...
true
qemu
0d4104e5760221547fad158bbbb655a4e4c22b50
void qdev_init_nofail(DeviceState *dev) { Error *err = NULL; assert(!dev->realized); object_property_set_bool(OBJECT(dev), true, "realized", &err); if (err) { error_reportf_err(err, "Initialization of device %s failed: ", object_get_typename(OBJECT(dev))); ...
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0) { Error *err = NULL; assert(!VAR_0->realized); object_property_set_bool(OBJECT(VAR_0), true, "realized", &err); if (err) { error_reportf_err(err, "Initialization of device %s failed: ", object_get_typename(OBJECT(VAR_0))); ...
[ "void FUNC_0(DeviceState *VAR_0)\n{", "Error *err = NULL;", "assert(!VAR_0->realized);", "object_property_set_bool(OBJECT(VAR_0), true, \"realized\", &err);", "if (err) {", "error_reportf_err(err, \"Initialization of device %s failed: \",\nobject_get_typename(OBJECT(VAR_0)));", "exit(1);", "}", "}" ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 14 ], [ 16 ], [ 18, 20 ], [ 22 ], [ 24 ], [ 27 ] ]
19,733
static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn) { int op; int q; int rd, rn, rm; int size; int shift; int pass; int count; int pairwise; int u; int n; uint32_t imm, mask; TCGv tmp, tmp2, tmp3, tmp4, tmp5; TCGv_i64 tmp64; ...
true
qemu
72902672dc2ed6281cdb205259c1d52ecf01f6b2
static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn) { int op; int q; int rd, rn, rm; int size; int shift; int pass; int count; int pairwise; int u; int n; uint32_t imm, mask; TCGv tmp, tmp2, tmp3, tmp4, tmp5; TCGv_i64 tmp64; ...
{ "code": [ " gen_helper_neon_add_saturate_u64(CPU_V001);", " gen_helper_neon_add_saturate_s64(CPU_V001);", " gen_helper_neon_sub_saturate_u64(CPU_V001);", " gen_helper_neon_sub_saturate_s64(CPU_V001);" ], ...
static int FUNC_0(CPUState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2) { int VAR_3; int VAR_4; int VAR_5, VAR_6, VAR_7; int VAR_8; int VAR_9; int VAR_10; int VAR_11; int VAR_12; int VAR_13; int VAR_14; uint32_t imm, mask; TCGv tmp, tmp2, tmp3, tmp4, tmp5; ...
[ "static int FUNC_0(CPUState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2)\n{", "int VAR_3;", "int VAR_4;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8;", "int VAR_9;", "int VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "int VAR_14;", "uint32_t imm, mask;", "TCGv tmp, tmp2, tmp3, tmp4, tm...
[ 0, 0, 0, 0, 0, 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, 1, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
19,735
static av_cold int pcx_end(AVCodecContext *avctx) { PCXContext *s = avctx->priv_data; if(s->picture.data[0]) avctx->release_buffer(avctx, &s->picture); return 0; }
true
FFmpeg
8cd1c0febe88b757e915e9af15559575c21ca728
static av_cold int pcx_end(AVCodecContext *avctx) { PCXContext *s = avctx->priv_data; if(s->picture.data[0]) avctx->release_buffer(avctx, &s->picture); return 0; }
{ "code": [ "static av_cold int pcx_end(AVCodecContext *avctx) {" ], "line_no": [ 1 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { PCXContext *s = avctx->priv_data; if(s->picture.data[0]) avctx->release_buffer(avctx, &s->picture); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx) {", "PCXContext *s = avctx->priv_data;", "if(s->picture.data[0])\navctx->release_buffer(avctx, &s->picture);", "return 0;", "}" ]
[ 1, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9 ], [ 13 ], [ 15 ] ]
19,736
static void gen_dccci(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } /* interpreted as no-op */ #endif }
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_dccci(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } #endif }
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } #endif }
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "#endif\n}" ]
[ 0, 1, 1, 1, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ] ]
19,737
static void vmsvga_init(struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { DisplaySurface *surface; s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(vmsvga_update_display, ...
true
qemu
eb2f9b024d68884a3b25e63e4dbf90b67f8da236
static void vmsvga_init(struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { DisplaySurface *surface; s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(vmsvga_update_display, ...
{ "code": [ " DisplaySurface *surface;", " surface = qemu_console_surface(s->vga.con);", " s->depth = surface_bits_per_pixel(surface);", " s->bypp = surface_bytes_per_pixel(surface);" ], "line_no": [ 7, 25, 49, 51 ] }
static void FUNC_0(struct vmsvga_state_s *VAR_0, MemoryRegion *VAR_1, MemoryRegion *VAR_2) { DisplaySurface *surface; VAR_0->scratch_size = SVGA_SCRATCH_SIZE; VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4); VAR_0->vga.con = graphic_console_init(vmsvga_update_display...
[ "static void FUNC_0(struct vmsvga_state_s *VAR_0,\nMemoryRegion *VAR_1, MemoryRegion *VAR_2)\n{", "DisplaySurface *surface;", "VAR_0->scratch_size = SVGA_SCRATCH_SIZE;", "VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4);", "VAR_0->vga.con = graphic_console_init(vmsvga_update_display,\nvmsvga_invalidate_di...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19, 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ] ]
19,738
static void init_frame_decoder(APEContext *ctx) { int i; init_entropy_decoder(ctx); init_predictor_decoder(ctx); for (i = 0; i < APE_FILTER_LEVELS; i++) { if (!ape_filter_orders[ctx->fset][i]) break; init_filter(ctx, ctx->filters[i], ctx->filterbuf[i], ...
true
FFmpeg
a4c32c9a63142b602820800742f2d543b58cd278
static void init_frame_decoder(APEContext *ctx) { int i; init_entropy_decoder(ctx); init_predictor_decoder(ctx); for (i = 0; i < APE_FILTER_LEVELS; i++) { if (!ape_filter_orders[ctx->fset][i]) break; init_filter(ctx, ctx->filters[i], ctx->filterbuf[i], ...
{ "code": [ "static void init_frame_decoder(APEContext *ctx)", " int i;", " init_entropy_decoder(ctx);" ], "line_no": [ 1, 5, 7 ] }
static void FUNC_0(APEContext *VAR_0) { int VAR_1; init_entropy_decoder(VAR_0); init_predictor_decoder(VAR_0); for (VAR_1 = 0; VAR_1 < APE_FILTER_LEVELS; VAR_1++) { if (!ape_filter_orders[VAR_0->fset][VAR_1]) break; init_filter(VAR_0, VAR_0->filters[VAR_1], VAR_0->f...
[ "static void FUNC_0(APEContext *VAR_0)\n{", "int VAR_1;", "init_entropy_decoder(VAR_0);", "init_predictor_decoder(VAR_0);", "for (VAR_1 = 0; VAR_1 < APE_FILTER_LEVELS; VAR_1++) {", "if (!ape_filter_orders[VAR_0->fset][VAR_1])\nbreak;", "init_filter(VAR_0, VAR_0->filters[VAR_1], VAR_0->filterbuf[VAR_1],\...
[ 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ] ]
19,739
static ssize_t local_readlink(FsContext *fs_ctx, const char *path, char *buf, size_t bufsz) { ssize_t tsize = -1; if (fs_ctx->fs_sm == SM_MAPPED) { int fd; fd = open(rpath(fs_ctx, path), O_RDONLY); if (fd == -1) { return -1; } do { ...
true
qemu
12848bfc5d719bad536c5448205a3226be1fda47
static ssize_t local_readlink(FsContext *fs_ctx, const char *path, char *buf, size_t bufsz) { ssize_t tsize = -1; if (fs_ctx->fs_sm == SM_MAPPED) { int fd; fd = open(rpath(fs_ctx, path), O_RDONLY); if (fd == -1) { return -1; } do { ...
{ "code": [ " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {", " } else if (f...
static ssize_t FUNC_0(FsContext *fs_ctx, const char *path, char *buf, size_t bufsz) { ssize_t tsize = -1; if (fs_ctx->fs_sm == SM_MAPPED) { int VAR_0; VAR_0 = open(rpath(fs_ctx, path), O_RDONLY); if (VAR_0 == -1) { return -1; } do { ...
[ "static ssize_t FUNC_0(FsContext *fs_ctx, const char *path,\nchar *buf, size_t bufsz)\n{", "ssize_t tsize = -1;", "if (fs_ctx->fs_sm == SM_MAPPED) {", "int VAR_0;", "VAR_0 = open(rpath(fs_ctx, path), O_RDONLY);", "if (VAR_0 == -1) {", "return -1;", "}", "do {", "tsize = read(VAR_0, (void *)buf, bu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
19,740
static int dump_cleanup(DumpState *s) { int ret = 0; guest_phys_blocks_free(&s->guest_phys_blocks); memory_mapping_list_free(&s->list); if (s->fd != -1) { close(s->fd); } if (s->resume) { vm_start(); } return ret; }
true
qemu
2928207ac1bb2751a1554ea0f9a9641179f51488
static int dump_cleanup(DumpState *s) { int ret = 0; guest_phys_blocks_free(&s->guest_phys_blocks); memory_mapping_list_free(&s->list); if (s->fd != -1) { close(s->fd); } if (s->resume) { vm_start(); } return ret; }
{ "code": [ " int ret = 0;", " if (s->fd != -1) {", " close(s->fd);", " return ret;", " guest_phys_blocks_free(&s->guest_phys_blocks);", " if (s->resume) {", " vm_start();" ], "line_no": [ 5, 13, 15, 27, 9, 19, 21 ] }
static int FUNC_0(DumpState *VAR_0) { int VAR_1 = 0; guest_phys_blocks_free(&VAR_0->guest_phys_blocks); memory_mapping_list_free(&VAR_0->list); if (VAR_0->fd != -1) { close(VAR_0->fd); } if (VAR_0->resume) { vm_start(); } return VAR_1; }
[ "static int FUNC_0(DumpState *VAR_0)\n{", "int VAR_1 = 0;", "guest_phys_blocks_free(&VAR_0->guest_phys_blocks);", "memory_mapping_list_free(&VAR_0->list);", "if (VAR_0->fd != -1) {", "close(VAR_0->fd);", "}", "if (VAR_0->resume) {", "vm_start();", "}", "return VAR_1;", "}" ]
[ 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
19,741
static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; uint32_t *dst; const uint32_t *codebook; int entries[6]; int i, j, m, n; int stages; unsigned mean; unsig...
true
FFmpeg
aed84ee4d1b0c9e315a84b1ee0918fa49ee9cc09
static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; uint32_t *dst; const uint32_t *codebook; int entries[6]; int i, j, m, n; int stages; unsigned mean; unsig...
{ "code": [ " int entries[6];", " int entries[6];" ], "line_no": [ 15, 15 ] }
static int FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1, ptrdiff_t VAR_2) { uint32_t bit_cache; uint8_t *list[63]; uint32_t *dst; const uint32_t *VAR_3; int VAR_4[6]; int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9; unsigned VAR_10; unsigned VAR...
[ "static int FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "uint32_t bit_cache;", "uint8_t *list[63];", "uint32_t *dst;", "const uint32_t *VAR_3;", "int VAR_4[6];", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9;", "unsigned VAR_10;", "unsigned VAR_11, VAR_12, VAR_13, VAR_14, V...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 59 ], [...
19,742
static int omap2_intc_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); struct omap_intr_handler_s *s = OMAP_INTC(dev); if (!s->iclk) { hw_error("omap2-intc: iclk not connected\n"); } if (!s->fclk) { hw_error("omap2-intc: fclk not connected\n"); } s->level...
true
qemu
84a3a53cf61ef691478bd91afa455c801696053c
static int omap2_intc_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); struct omap_intr_handler_s *s = OMAP_INTC(dev); if (!s->iclk) { hw_error("omap2-intc: iclk not connected\n"); } if (!s->fclk) { hw_error("omap2-intc: fclk not connected\n"); } s->level...
{ "code": [ " hw_error(\"omap2-intc: iclk not connected\\n\");", " hw_error(\"omap2-intc: fclk not connected\\n\");" ], "line_no": [ 13, 19 ] }
static int FUNC_0(SysBusDevice *VAR_0) { DeviceState *dev = DEVICE(VAR_0); struct omap_intr_handler_s *VAR_1 = OMAP_INTC(dev); if (!VAR_1->iclk) { hw_error("omap2-intc: iclk not connected\n"); } if (!VAR_1->fclk) { hw_error("omap2-intc: fclk not connected\n"); } V...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "DeviceState *dev = DEVICE(VAR_0);", "struct omap_intr_handler_s *VAR_1 = OMAP_INTC(dev);", "if (!VAR_1->iclk) {", "hw_error(\"omap2-intc: iclk not connected\\n\");", "}", "if (!VAR_1->fclk) {", "hw_error(\"omap2-intc: fclk not connected\\n\");", "}", "...
[ 0, 0, 0, 0, 1, 0, 0, 1, 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 ] ]
19,743
static int h264_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; AVFrame *pict = data; int buf_index = 0; H264Pictur...
true
FFmpeg
1189af429211ac650aac730368a6cf5b23756605
static int h264_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; AVFrame *pict = data; int buf_index = 0; H264Pictur...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; H264Context *h = VAR_0->priv_data; AVFrame *pict = VAR_1; int VAR_6 = 0; H264Picture *out; int V...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "H264Context *h = VAR_0->priv_data;", "AVFrame *pict = VAR_1;", "int VAR_6 = 0;", "H264Picture *out;", "int VAR_7, VAR_8;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 20 ], [ 21 ], [ 22 ], [ 23, 24, 25 ],...