Debian Codegraph @

components/encoder/voaacenc/dllinterface.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2026 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #include <smooth.h>
14
15 #ifdef callbacks
16 # undef callbacks
17 #endif
18
19 #include <vo-aacenc/voAAC.h>
20 #include <mp4v2/mp4v2.h>
21
22 using namespace smooth;
23 using namespace smooth::System;
24
25 extern DynamicLoader *voaacencdll;
26 extern DynamicLoader *mp4v2dll;
27
28 Bool LoadVOAACEncDLL();
29 Void FreeVOAACEncDLL();
30
31 Bool LoadMP4v2DLL();
32 Void FreeMP4v2DLL();
33
34 typedef VO_S32 (VO_API *VOGETAACENCAPI) (VO_AUDIO_CODECAPI *);
35
36 typedef VO_U32 (*CMNMEMALLOC) (VO_S32, VO_MEM_INFO *);
37 typedef VO_U32 (*CMNMEMFREE) (VO_S32, VO_PTR);
38 typedef VO_U32 (*CMNMEMSET) (VO_S32, VO_PTR, VO_U8, VO_U32);
39 typedef VO_U32 (*CMNMEMCOPY) (VO_S32, VO_PTR, VO_PTR, VO_U32);
40 typedef VO_U32 (*CMNMEMCHECK) (VO_S32, VO_PTR, VO_U32);
41 typedef VO_S32 (*CMNMEMCOMPARE) (VO_S32, VO_PTR, VO_PTR, VO_U32);
42 typedef VO_U32 (*CMNMEMMOVE) (VO_S32, VO_PTR, VO_PTR, VO_U32);
43
44 extern VOGETAACENCAPI ex_voGetAACEncAPI;
45
46 extern CMNMEMALLOC ex_cmnMemAlloc;
47 extern CMNMEMFREE ex_cmnMemFree;
48 extern CMNMEMSET ex_cmnMemSet;
49 extern CMNMEMCOPY ex_cmnMemCopy;
50 extern CMNMEMCHECK ex_cmnMemCheck;
51 extern CMNMEMCOMPARE ex_cmnMemCompare;
52 extern CMNMEMMOVE ex_cmnMemMove;
53
54 typedef MP4FileHandle (*MP4CREATECALLBACKS) (const MP4IOCallbacks *, void *, uint32_t);
55 typedef void (*MP4CLOSE) (MP4FileHandle, uint32_t);
56 typedef bool (*MP4OPTIMIZE) (const char *, const char *);
57
58 typedef bool (*MP4SETTRACKESCONFIGURATION) (MP4FileHandle, MP4TrackId, const uint8_t *, uint32_t);
59 typedef bool (*MP4SETTRACKINTEGERPROPERTY) (MP4FileHandle, MP4TrackId, const char *, int64_t);
60 typedef void (*MP4SETAUDIOPROFILELEVEL) (MP4FileHandle, uint8_t);
61 typedef MP4TrackId (*MP4ADDAUDIOTRACK) (MP4FileHandle, uint32_t, MP4Duration, uint8_t);
62 typedef bool (*MP4WRITESAMPLE) (MP4FileHandle, MP4TrackId, const uint8_t *, uint32_t, MP4Duration, MP4Duration, bool);
63
64 typedef MP4ItmfItem * (*MP4ITMFITEMALLOC) (const char *, uint32_t);
65 typedef void (*MP4ITMFITEMFREE) (MP4ItmfItem *);
66 typedef bool (*MP4ITMFADDITEM) (MP4FileHandle, const MP4ItmfItem *);
67
68 extern MP4CREATECALLBACKS ex_MP4CreateCallbacks;
69 extern MP4CLOSE ex_MP4Close;
70 extern MP4OPTIMIZE ex_MP4Optimize;
71
72 extern MP4SETTRACKESCONFIGURATION ex_MP4SetTrackESConfiguration;
73 extern MP4SETTRACKINTEGERPROPERTY ex_MP4SetTrackIntegerProperty;
74 extern MP4SETAUDIOPROFILELEVEL ex_MP4SetAudioProfileLevel;
75 extern MP4ADDAUDIOTRACK ex_MP4AddAudioTrack;
76 extern MP4WRITESAMPLE ex_MP4WriteSample;
77
78 extern MP4ITMFITEMALLOC ex_MP4ItmfItemAlloc;
79 extern MP4ITMFITEMFREE ex_MP4ItmfItemFree;
80 extern MP4ITMFADDITEM ex_MP4ItmfAddItem;