Changeset 39899 for titan/titan


Ignore:
Timestamp:
02/05/17 12:29:25 (7 years ago)
Author:
gost
Message:

[titan] add new audio codec

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/audiotrack.h

    r39883 r39899  
    155155                case MPEGA: tmpstr = ostrcat(tmpstr, " (STEREO)", 1, 0); break;
    156156                case DTS: tmpstr = ostrcat(tmpstr, " (DTS)", 1, 0); break;
     157                case DTSHD: tmpstr = ostrcat(tmpstr, " (DTSHD)", 1, 0); break;
    157158                case LPCM: tmpstr = ostrcat(tmpstr, " (LPCM)", 1, 0); break;
    158159                case AAC: tmpstr = ostrcat(tmpstr, " (AAC)", 1, 0); break;
  • titan/titan/dvb.h

    r39757 r39899  
    464464        int i, sectionlength, programinfolength, esinfolength, ret = 0;
    465465        unsigned short pos, descriptortag, descriptorlength;
    466         int isac3 = 0, isdts = 0, isaac = 0;
     466        int isac3 = 0, isdts = 0, isaac = 0 isddp = 0;
    467467        int audiocodec = 0, videocodec = 0;
    468468        int firstaudiopid = -1, firstaudiocodec = -1, audiochange = 1;
     
    514514                pid = ((tmpbuf[1] & 0x1F) << 8) | (tmpbuf[2] & 0xff);
    515515                esinfolength = ((tmpbuf[3] & 0x0F) << 8) | (tmpbuf[4] & 0xff);
    516                 isac3 = 0; isdts = 0; isaac = 0, audiocodec = 0, videocodec = 0;
     516                isac3 = 0; isdts = 0; isaac = 0; isddp = 0, audiocodec = 0, videocodec = 0;
    517517                char langdesc[4] = "---";
    518518                int y = 0, descriptorcount = 0;
     
    563563                                        isdts = 1;
    564564                                        break;
     565//                      case 0x??;  ToDo
     566//                              isddp = 1;
     567//                              break;
    565568                                case 0x56: //teletext
    566569                                        for (y = 0; y < descriptorlength / 5; y++)
     
    643646                        case 0x82: // DTS (2)
    644647                        case 0xA2: // DTS (2)
    645                         //case 0x86: // DTS-HD
    646                         //case 0xA6: // DTS-HD
     648                        case 0x85: // DTS-HD HRA
     649                        case 0x86: // DTS-HD MA
     650                        case 0xA6: // DTS-HD
    647651                        case 0x06:
    648652                                if(descriptorcount == 0 && streamtype == 0x06 && prevaudio != NULL)
     
    653657                                prevaudio = NULL;
    654658                                //if(streamtype == 0x81) esInfo->stream_type = 0x6;
    655                                 if(streamtype == 0x06 && !isac3 && !isdts && !isaac)
     659                                if(streamtype == 0x06 && !isac3 && !isdts && !isaac && !isddp)
    656660                                        continue;
    657661
     
    664668                                        else if(isaac)
    665669                                                audiocodec = AAC;
     670                                        else if(isddp)
     671                                                audiocodec = DDP;
    666672                                }
    667673                                else if(streamtype == 0x0F)
     
    675681                                else if(streamtype == 0x82 || streamtype == 0xA2)
    676682                                        audiocodec = DTS;
     683                                else if(streamtype == 0x85 || (streamtype == 0x86 || streamtype == 0xA6)
     684                                        audiocodec = DTSHD;
    677685                                else
    678686                                        audiocodec = MPEGA;
  • titan/titan/struct.h

    r39847 r39899  
    255255enum {TV, RADIO};
    256256enum {RECDIRECT, RECTIMER, RECTIMESHIFT, RECSTREAM, RECPLAY, RECSTREAMENC};
    257 enum {AC3 = 0, MPEGA = 1, DTS = 2, LPCM = 6, AAC = 8, AACHE = 9};
    258257#ifdef DREAMBOX
    259258enum {MPEGV = 0, MPEG4V = 4, H264 = 1, VC1 = 10, H265 = 22};
     259enum {AC3 = 0, MPEGA = 1, DTS = 2, LPCM = 6, AAC = 8, AACHE = 9, DTSHD = 16, DDP = 7};
    260260#else
     261enum {AC3 = 0, MPEGA = 1, DTS = 2, LPCM = 6, AAC = 8, AACHE = 9, DTSHD = 16, DDP = 34};
    261262enum {MPEGV = 0, MPEG4V = 4, H264 = 1, VC1 = 10, H265 = 7};
    262263#endif
Note: See TracChangeset for help on using the changeset viewer.