当前位置: 首页>>代码示例>>C++>>正文


C++ recomputeSize函数代码示例

本文整理汇总了C++中recomputeSize函数的典型用法代码示例。如果您正苦于以下问题:C++ recomputeSize函数的具体用法?C++ recomputeSize怎么用?C++ recomputeSize使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了recomputeSize函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PVA_FF_Atom

// constructor
PVA_FF_TrackFragmentAtom::PVA_FF_TrackFragmentAtom(uint32 mediaType,
        uint32 codecType,
        uint32 trackId,
        uint32 interleaveDuration,
        uint32 timescale)
        : PVA_FF_Atom(TRACK_FRAGMENT_ATOM)
{
    _mediaType = mediaType;
    _codecType = codecType;

    // no interleaving flag, as movie fragments are there in interleaving mode
    _timescale = timescale;
    _firstEntry = true;
    _prevTS = 0;
    _interleaveDuration = interleaveDuration;
    _fragmentDuration = 0;
    _ofirstTrun = true;

    // intialise track fragment header atom
    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_TrackFragmentHeaderAtom, (trackId), _pTfhdAtom);

    // initialise track run vector
    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_TrackFragmentRunAtomVecType, (), _pTrunList);

    recomputeSize();

}
开发者ID:conio-zz,项目名称:platform_external_opencore,代码行数:28,代码来源:trackfragmentatom.cpp

示例2: recomputeSize

void
PVA_FF_SLConfigDescriptor::init()
{
    _predefined = 0x02; // According to MPEG4 File Format specification
    // - section 13.1.3.2 "Handling of elementary streams"
    // (last paragraph)
    _reserved2 = 0x7f;
    _OCRStreamFlag = false;
    _OCRESID = 0;

    if (_predefined == 0x01)
    {
        _useAccessUnitStartFlag = false;
        _useAccessUnitEndFlag = false;
        _useRandomAccessPointFlag = false;
        _usePaddingFlag = false;
        _useTimeStampsFlag = false;
        _useIdleFlag = false;
        _AULength = 0;
        _degradationPriorityLength = 0;
        _AUSeqNumLength = 0;
        _packetSeqNumLength = 0;
        _reserved1 = 0x3; // 0b11
    }


    recomputeSize();
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:28,代码来源:slconfigdescriptor.cpp

示例3: recomputeSize

bool PVA_FF_AssetInfoKeyWordsAtom::renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp)

{
    recomputeSize();
    int32 rendered = 0; // Keep track of number of bytes rendered

    // Render PVA_FF_Atom type and size
    if (!renderAtomBaseMembers(fp))
    {
        return false;
    }
    rendered += getDefaultSize();

    if (!PVA_FF_AtomUtils::render16(fp, _langCode))
    {
        return false;
    }
    rendered += 2;


    if (!PVA_FF_AtomUtils::render8(fp, _keyWordCnt))
    {
        return false;
    }
    rendered += 1;

    // calculate size of each object in the structure
    for (int i = 0; i < _keyWordCnt; i++)
    {
        (*_pKeyWordVect)[i]->renderToFileStream(fp);
        rendered += (*_pKeyWordVect)[i]->getSizeofStruct();

    }
    return true;
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:35,代码来源:assetinfoatoms.cpp

示例4: PVA_FF_Atom

// Constructor
PVA_FF_MediaAtom::PVA_FF_MediaAtom(int32 mediaType,
                                   int32 codecType,
                                   uint32 fileAuthoringFlags,
                                   bool o3GPPCompliant,
                                   uint32 protocol,
                                   uint8 profile,
                                   uint8 profileComp,
                                   uint8 level)

        : PVA_FF_Atom(MEDIA_ATOM)
{
    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_MediaHeaderAtom, (), _pmediaHeader);

    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_HandlerAtom, (mediaType, (uint8)0, (uint8)0), _phandler);

    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_MediaInformationAtom, (mediaType,
                  codecType,
                  fileAuthoringFlags,
                  o3GPPCompliant,
                  protocol, profile,
                  profileComp, level), _pmediaInformation);

    recomputeSize();
    _pmediaHeader->setParent(this);
    _phandler->setParent(this);
    _pmediaInformation->setParent(this);
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:28,代码来源:mediaatom.cpp

示例5: recomputeSize

int32
PVA_FF_TrackReferenceTypeAtom::addTrackReference(uint32 ref)
{
    _trackIDs->push_back(ref);
    recomputeSize();

    return _trackIDs->size();
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:8,代码来源:trackreferencetypeatom.cpp

示例6: recomputeSize

// add new trex atom to the list
void
PVA_FF_MovieExtendsAtom::addTrexAtom(PVA_FF_TrackExtendsAtom *pTrexAtom)
{
    _pTrexAtomVec->push_back(pTrexAtom);
    pTrexAtom->setParent(this);

    recomputeSize();
}
开发者ID:acassis,项目名称:emlinux-ssd1935,代码行数:9,代码来源:movieextendsatom.cpp

示例7: PVA_FF_FullAtom

// constructor
PVA_FF_MovieFragmentHeaderAtom::PVA_FF_MovieFragmentHeaderAtom(uint32 sequenceNumber)
        : PVA_FF_FullAtom(MOVIE_FRAGMENT_HEADER_ATOM, (uint8)0, (uint32)0)
{
    _sequenceNumber = sequenceNumber;

    recomputeSize();

}
开发者ID:0omega,项目名称:platform_external_opencore,代码行数:9,代码来源:moviefragmentheaderatom.cpp

示例8: PVA_FF_FullAtom

// constructor
PVA_FF_MfroAtom::PVA_FF_MfroAtom()
    : PVA_FF_FullAtom(MOVIE_FRAGMENT_RANDOM_ACCESS_OFFSET_ATOM, (uint8)0, (uint32)0)
{
    _atomSize = 0;

    recomputeSize();

}
开发者ID:sujinde168,项目名称:platform_external_opencore,代码行数:9,代码来源:moviefragmentrandomaccessoffsetatom.cpp

示例9: recomputeSize

void PVA_FF_EditListAtom::addEditEntry(uint32 duration, int32 time, uint16 rate)
{
    _psegmentDurations->push_back(duration);
    _pmediaTimes->push_back(time);
    _pmediaRates->push_back(rate);
    _entryCount++;
    recomputeSize();
}
开发者ID:sujinde168,项目名称:platform_external_opencore,代码行数:8,代码来源:editlistatom.cpp

示例10: PVA_FF_FullAtom

PVA_FF_AssetInfoPerformerAtom::PVA_FF_AssetInfoPerformerAtom()
        : PVA_FF_FullAtom(ASSET_INFO_PERF_ATOM, 0, 0)
{
    _performer = (_STRLIT(""));
    _langCode = LANGUAGE_CODE_UNKNOWN;
    _byteOrderMask = BYTE_ORDER_MASK;
    recomputeSize();
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:8,代码来源:assetinfoatoms.cpp

示例11: PVA_FF_BaseDescriptor

// Default Constructor
PVA_FF_ObjectDescriptor::PVA_FF_ObjectDescriptor(uint16 nextAvailableODID, uint8 tag)
        : PVA_FF_BaseDescriptor(tag)
{
    init(nextAvailableODID);
    PV_MP4_FF_NEW(fp->auditCB, PVA_FF_ES_ID_RefVecType, (), _pES_ID_Ref_Vec);

    recomputeSize();
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:9,代码来源:objectdescriptor.cpp

示例12: PVA_FF_BaseDescriptor

// Constructor
PVA_FF_DecoderConfigDescriptor::PVA_FF_DecoderConfigDescriptor(int32 streamType, int32 codecType)
        : PVA_FF_BaseDescriptor(0x04)
{
    _codecType = codecType;

    init(streamType);
    recomputeSize();
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:9,代码来源:decoderconfigdescriptor.cpp

示例13: PVA_FF_SampleEntry

// Constructor
PVA_FF_TextSampleEntry::PVA_FF_TextSampleEntry()
        : PVA_FF_SampleEntry(TEXT_SAMPLE_ENTRY)
{

    init();
    recomputeSize();


}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:10,代码来源:textsampleentry.cpp

示例14: PVA_FF_FullAtom

// constructor
PVA_FF_MovieExtendsHeaderAtom::PVA_FF_MovieExtendsHeaderAtom()
        : PVA_FF_FullAtom(MOVIE_EXTENDS_HEADER_ATOM, (uint8)0, (uint32)0)
{
    _fragmentDuration = 0;
    _fileOffset = 0;
    _oRendered = false;
    recomputeSize();

}
开发者ID:0omega,项目名称:platform_external_opencore,代码行数:10,代码来源:movieextendsheaderatom.cpp

示例15: recomputeSize

void
PVA_FF_FileTypeAtom::addCompatibleBrand(uint32 brand)
{
    if (_pCompatibleBrandVec != NULL)
    {
        _pCompatibleBrandVec->push_back(brand);
        recomputeSize();
    }
}
开发者ID:0omega,项目名称:platform_external_opencore,代码行数:9,代码来源:filetypeatom.cpp


注:本文中的recomputeSize函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。