File: ffsox_dynload_trace.c

package info (click to toggle)
bs1770gain 0.4.12-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,832 kB
  • sloc: ansic: 9,380; sh: 1,288; makefile: 212
file content (234 lines) | stat: -rwxr-xr-x 6,356 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
 * ffsox_dynload_trace.c
 * Copyright (C) 2015 Peter Belkner <pbelkner@users.sf.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2.0 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301  USA
 */
#define FFSOX_DYNLOAD_PRIV
#include <ffsox_priv.h>
#if defined (FFSOX_DYNLOAD) && defined (PBU_MALLOC_DEBUG) // {
///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
AVCodec *ffsox_avcodec_find_decoder(enum AVCodecID id)
{
  pbu_trace_puts("ffsox_avcodec_find_decoder()");

  return ffsox_avcodec.avcodec_find_decoder(id);
}

AVCodec *ffsox_avcodec_find_decoder_by_name(const char *name)
{
  pbu_trace_puts("ffsox_avcodec_find_decoder_by_name()");

  return ffsox_avcodec.avcodec_find_decoder_by_name(name);
}

AVCodec *ffsox_avcodec_find_encoder(enum AVCodecID id)
{
  pbu_trace_puts("ffsox_avcodec_find_encoder()");

  return ffsox_avcodec.avcodec_find_encoder(id);
}

int ffsox_avcodec_open2(AVCodecContext *avctx, const AVCodec *codec,
    AVDictionary **options)
{
  pbu_trace_puts("ffsox_avcodec_open2()");

  return ffsox_avcodec.avcodec_open2(avctx,codec,options);
}

void ffsox_av_init_packet(AVPacket *pkt)
{
  pbu_trace_puts("ffsox_av_init_packet()");
  ffsox_avcodec.av_init_packet(pkt);
}

int ffsox_avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
    int *got_frame_ptr, const AVPacket *avpkt)
{
  pbu_trace_puts("ffsox_avcodec_decode_audio4()");

  return ffsox_avcodec.avcodec_decode_audio4(avctx,frame,
      got_frame_ptr,avpkt);
}

int ffsox_avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
    const AVFrame *frame, int *got_packet_ptr)
{
  pbu_trace_puts("ffsox_avcodec_encode_audio2()");

  return ffsox_avcodec.avcodec_encode_audio2(avctx,avpkt,
      frame,got_packet_ptr);
}

int ffsox_avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
    int *got_picture_ptr, const AVPacket *avpkt)
{
  pbu_trace_puts("ffsox_avcodec_decode_video2()");

  return ffsox_avcodec.avcodec_decode_video2(avctx,picture,
      got_picture_ptr,avpkt);
}

void ffsox_av_free_packet(AVPacket *pkt)
{
  pbu_trace_puts("ffsox_av_free_packet()");
  ffsox_avcodec.av_free_packet(pkt);
}

int ffsox_avcodec_close(AVCodecContext *avctx)
{
  pbu_trace_puts("ffsox_avcodec_close()");

  return ffsox_avcodec.avcodec_close(avctx);
}

int ffsox_avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
{
  pbu_trace_puts("ffsox_avcodec_copy_context()");

  return ffsox_avcodec.avcodec_copy_context(dest,src);
}

void ffsox_av_packet_rescale_ts(AVPacket *pkt, AVRational tb_src,
    AVRational tb_dst)
{
  pbu_trace_puts("ffsox_av_packet_rescale_ts()");
  ffsox_avcodec.av_packet_rescale_ts(pkt,tb_src,tb_dst);
}

///////////////////////////////////////////////////////////////////////////////
void ffsox_av_register_all(void)
{
  pbu_trace_puts("av_register_all()");
  ffsox_avformat.av_register_all();
}

int ffsox_avformat_open_input(AVFormatContext **ps, const char *filename,
    AVInputFormat *fmt, AVDictionary **options)
{
  pbu_trace_puts("avformat_open_input()");

  return ffsox_avformat.avformat_open_input(ps,filename,fmt,options);
}

int ffsox_avformat_find_stream_info(AVFormatContext *ic,
    AVDictionary **options)
{
  pbu_trace_puts("avformat_find_stream_info()");

  return ffsox_avformat.avformat_find_stream_info(ic,options);
}

int ffsox_av_read_frame(AVFormatContext *s, AVPacket *pkt)
{
  pbu_trace_puts("av_read_frame()");

  return ffsox_avformat.av_read_frame(s,pkt);
}

void ffsox_avformat_close_input(AVFormatContext **s)
{
  pbu_trace_puts("avformat_close_input()");

  ffsox_avformat.avformat_close_input(s);
}

int ffsox_avformat_alloc_output_context2(AVFormatContext **ctx,
    AVOutputFormat *oformat, const char *format_name,
    const char *filename)
{
  pbu_trace_puts("avformat_alloc_output_context2()");

  return ffsox_avformat.avformat_alloc_output_context2(ctx,oformat,
      format_name,filename);
}

void ffsox_avformat_free_context(AVFormatContext *s)
{
  pbu_trace_puts("avformat_free_context()");

  ffsox_avformat.avformat_free_context(s);
}

AVStream *ffsox_avformat_new_stream(AVFormatContext *s, const AVCodec *c)
{
  pbu_trace_puts("avformat_new_stream()");

  return ffsox_avformat.avformat_new_stream(s,c);
}

int ffsox_avio_open(AVIOContext **s, const char *url, int flags)
{
  pbu_trace_puts("avio_open()");

  return ffsox_avformat.avio_open(s,url,flags);
}

int ffsox_avio_close(AVIOContext *s)
{
  pbu_trace_puts("avio_close()");

  return ffsox_avformat.avio_close(s);
}

int ffsox_avformat_write_header(AVFormatContext *s, AVDictionary **options)
{
  pbu_trace_puts("avformat_write_header()");

  return ffsox_avformat.avformat_write_header(s,options);
}

int ffsox_av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
{
  pbu_trace_puts("av_interleaved_write_frame()");

  return ffsox_avformat.av_interleaved_write_frame(s,pkt);
}

int ffsox_av_write_trailer(AVFormatContext *s)
{
  pbu_trace_puts("av_write_trailer()");

  return ffsox_avformat.av_write_trailer(s);
}

int ffsox_av_find_default_stream_index(AVFormatContext *s)
{
  pbu_trace_puts("av_find_default_stream_index()");

  return ffsox_avformat.av_find_default_stream_index(s);
}

int ffsox_avformat_seek_file(AVFormatContext *s, int stream_index,
    int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
{
  pbu_trace_puts("avformat_seek_file()");

  return ffsox_avformat.avformat_seek_file(s,stream_index,
      min_ts,ts,max_ts,flags);
}

void ffsox_av_dump_format(AVFormatContext *ic, int index, const char *url,
    int is_output)
{
  pbu_trace_puts("av_dump_format()");
  ffsox_avformat.av_dump_format(ic,index,url,is_output);
}

#endif // }