mp4util.h

来自「mpeg4 demux 代码」· C头文件 代码 · 共 46 行

H
46
字号
/* <LIC_AMD_STD>
 * Copyright (C) 2003-2005 Advanced Micro Devices, Inc.  All Rights Reserved.
 *
 * Unless otherwise designated in writing, this software and any related
 * documentation are the confidential proprietary information of AMD.
 * THESE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY
 * UNLESS OTHERWISE NOTED IN WRITING, EXPRESS OR IMPLIED WARRANTY OF ANY
 * KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
 * NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR PURPOSE AND IN NO
 * EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES WHATSOEVER.
 *
 * AMD does not assume any responsibility for any errors which may appear
 * in the Materials nor any responsibility to support or update the
 * Materials.  AMD retains the right to modify the Materials at any time,
 * without notice, and is not obligated to provide such modified
 * Materials to you. AMD is not obligated to furnish, support, or make
 * any further information available to you.
 * </LIC_AMD_STD>  */
/* <CTL_AMD_STD>
 * </CTL_AMD_STD>  */
/* <DOC_AMD_STD>
 * </DOC_AMD_STD>  */

#ifndef _MP4UTIL_H_
#define _MP4UTIL_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "descriptors.h"
#include "atomparse.h"
#include "mp4parse.h"


int check_file_type(unsigned char *pBuff,long lData,FILE_BRAND *File_brand);
static m_u32 GetChunk(long SampleNum, TRACK_TYPES index,m_u32 *chunk_sample, m_u32 *chunk);
static m_u32 chunk_to_offset(TRACK_TYPES index, const m_u32 chunk);
static m_u32 sample_range_size(TRACK_TYPES index, const m_u32 chunk_sample, const m_u32 sample);
static m_u32 mp4ff_sample_to_offset(long SampleNum, TRACK_TYPES index);
m_u32 GetSampleSize(long SampleNum, TRACK_TYPES index);
m_u32 GetSampleOffset(long SampleNum, TRACK_TYPES index, m_u32 *pos);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?