Lines Matching refs:gfc
47 /*empty and close mallocs in gfc */
50 free_id3tag(lame_internal_flags * const gfc)
52 gfc->tag_spec.language[0] = 0;
53 if (gfc->tag_spec.title != 0) {
54 free(gfc->tag_spec.title);
55 gfc->tag_spec.title = 0;
57 if (gfc->tag_spec.artist != 0) {
58 free(gfc->tag_spec.artist);
59 gfc->tag_spec.artist = 0;
61 if (gfc->tag_spec.album != 0) {
62 free(gfc->tag_spec.album);
63 gfc->tag_spec.album = 0;
65 if (gfc->tag_spec.comment != 0) {
66 free(gfc->tag_spec.comment);
67 gfc->tag_spec.comment = 0;
70 if (gfc->tag_spec.albumart != 0) {
71 free(gfc->tag_spec.albumart);
72 gfc->tag_spec.albumart = 0;
73 gfc->tag_spec.albumart_size = 0;
74 gfc->tag_spec.albumart_mimetype = MIMETYPE_NONE;
76 if (gfc->tag_spec.v2_head != 0) {
77 FrameDataNode *node = gfc->tag_spec.v2_head;
87 gfc->tag_spec.v2_head = 0;
88 gfc->tag_spec.v2_tail = 0;
94 free_global_data(lame_internal_flags * gfc)
96 if (gfc && gfc->cd_psy) {
97 if (gfc->cd_psy->l.s3) {
99 free(gfc->cd_psy->l.s3);
101 if (gfc->cd_psy->s.s3) {
103 free(gfc->cd_psy->s.s3);
105 free(gfc->cd_psy);
106 gfc->cd_psy = 0;
112 freegfc(lame_internal_flags * const gfc)
116 if (gfc == 0) return;
119 if (gfc->sv_enc.blackfilt[i] != NULL) {
120 free(gfc->sv_enc.blackfilt[i]);
121 gfc->sv_enc.blackfilt[i] = NULL;
123 if (gfc->sv_enc.inbuf_old[0]) {
124 free(gfc->sv_enc.inbuf_old[0]);
125 gfc->sv_enc.inbuf_old[0] = NULL;
127 if (gfc->sv_enc.inbuf_old[1]) {
128 free(gfc->sv_enc.inbuf_old[1]);
129 gfc->sv_enc.inbuf_old[1] = NULL;
132 if (gfc->bs.buf != NULL) {
133 free(gfc->bs.buf);
134 gfc->bs.buf = NULL;
137 if (gfc->VBR_seek_table.bag) {
138 free(gfc->VBR_seek_table.bag);
139 gfc->VBR_seek_table.bag = NULL;
140 gfc->VBR_seek_table.size = 0;
142 if (gfc->ATH) {
143 free(gfc->ATH);
145 if (gfc->sv_rpg.rgdata) {
146 free(gfc->sv_rpg.rgdata);
148 if (gfc->sv_enc.in_buffer_0) {
149 free(gfc->sv_enc.in_buffer_0);
151 if (gfc->sv_enc.in_buffer_1) {
152 free(gfc->sv_enc.in_buffer_1);
154 free_id3tag(gfc);
157 if (gfc->hip) {
158 hip_decode_exit(gfc->hip);
159 gfc->hip = 0;
163 free_global_data(gfc);
165 free(gfc);
538 fill_buffer_resample(lame_internal_flags * gfc,
542 SessionConfig_t const *const cfg = &gfc->cfg;
543 EncStateVar_t *esv = &gfc->sv_enc;
566 if (gfc->fill_buffer_resample_init == 0) {
584 gfc->fill_buffer_resample_init = 1;
674 fill_buffer(lame_internal_flags * gfc,
677 SessionConfig_t const *const cfg = &gfc->cfg;
678 int mf_size = gfc->sv_enc.mf_size;
687 fill_buffer_resample(gfc, &mfbuf[ch][mf_size],
734 lame_debugf(const lame_internal_flags* gfc, const char *format, ...)
736 if (gfc && gfc->report_dbg) {
739 gfc->report_dbg(format, args);
746 lame_msgf(const lame_internal_flags* gfc, const char *format, ...)
748 if (gfc && gfc->report_msg) {
751 gfc->report_msg(format, args);
758 lame_errorf(const lame_internal_flags* gfc, const char *format, ...)
760 if (gfc && gfc->report_err) {
763 gfc->report_err(format, args);