~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to modules/amr_dec/amr_in.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-02-22 18:15:00 UTC
  • mfrom: (1.2.2) (3.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140222181500-b4phupo05gjpmopa
Tags: 0.5.0+svn5104~dfsg1-1
* New  upstream version 0.5.0+svn5104~dfsg1:
  - src/utils/sha1.c is relicensed under LGPLv2.1, Closes: #730759
* Don't install modules in multi-arch directories, Closes: #730497
* Add libusb-1.0.0-dev headers because libfreenect requires this
* Fix install rule
* Follow upstream soname bump
  - Drop the symbols file for now until it has been revised thourougly
* Let binaries produce the correct svn revision
* Refresh patches
* Patch and build against libav10, Closes: #739321
* Bump standards version, no changes necessary

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        //Bool is_live;
67
67
} AMR_Reader;
68
68
 
 
69
 
 
70
static const char * AMR_MIMES[] = { "audio/ac3", "audio/x-ac3", NULL };
 
71
 
 
72
static u32 AMR_RegisterMimeTypes(const GF_InputService *plug)
 
73
{
 
74
        gf_term_register_mime_type(plug, "audio/amr", "amr awb", "AMR Speech Data");
 
75
        gf_term_register_mime_type(plug, "audio/evrc", "evc", "EVRC Speech Data");
 
76
        gf_term_register_mime_type(plug, "audio/smv", "smv", "SMV Speech Data");
 
77
        return 3;
 
78
}
 
79
 
69
80
static GF_ESD *AMR_GetESD(AMR_Reader *read)
70
81
{
71
82
        GF_BitStream *dsi;
530
541
        memset(plug, 0, sizeof(GF_InputService));
531
542
        GF_REGISTER_MODULE_INTERFACE(plug, GF_NET_CLIENT_INTERFACE, "GPAC AMR/EVRC/SMV Reader", "gpac distribution")
532
543
 
 
544
        plug->RegisterMimeTypes = AMR_RegisterMimeTypes;
533
545
        plug->CanHandleURL = AMR_CanHandleURL;
534
546
        plug->ConnectService = AMR_ConnectService;
535
547
        plug->CloseService = AMR_CloseService;
557
569
 
558
570
 
559
571
#ifdef GPAC_AMR_IN_STANDALONE
560
 
GF_EXPORT
 
572
GPAC_MODULE_EXPORT
561
573
const u32 *QueryInterfaces() 
562
574
{
563
575
        static u32 si [] = {
567
579
        return si;
568
580
}
569
581
 
570
 
GF_EXPORT
 
582
GPAC_MODULE_EXPORT
571
583
GF_BaseInterface *LoadInterface(u32 InterfaceType)
572
584
{
573
585
        switch (InterfaceType) {
576
588
        }
577
589
}
578
590
 
579
 
GF_EXPORT
 
591
GPAC_MODULE_EXPORT
580
592
void ShutdownInterface(GF_BaseInterface *ifce)
581
593
{
582
594
        switch (ifce->InterfaceType) {
583
595
        case GF_NET_CLIENT_INTERFACE:  DeleteAESReader(ifce); break;
584
596
        }
585
597
}
 
598
 
 
599
GPAC_MODULE_STATIC_DELARATION( amr_in )
 
600
 
586
601
#endif
587
602