os/mm/mmplugins/lib3gp/impl/inc/mp4file.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef _MP4FILE_H
sl@0
    17
#define _MP4FILE_H
sl@0
    18
sl@0
    19
sl@0
    20
#include <3gplibrary/mp4config.h>
sl@0
    21
#include <3gplibrary/mp4lib.h>
sl@0
    22
#include "mp4atom.h"
sl@0
    23
sl@0
    24
sl@0
    25
sl@0
    26
mp4_i32 saveFileName(MP4FileName filename, MP4HandleImp handle);
sl@0
    27
mp4_i32 initFileRead(MP4FileName filename, MP4HandleImp handle);
sl@0
    28
mp4_i32 initFileWrite(MP4FileName filename, MP4HandleImp handle);
sl@0
    29
mp4_i32 initTmpFileWrite(MP4FileName filename, MP4HandleImp handle);
sl@0
    30
mp4_i32 closeFile(MP4HandleImp handle);
sl@0
    31
mp4_i32 closeTmpFile(MP4HandleImp handle);
sl@0
    32
mp4_i32 deleteTmpFile(MP4HandleImp handle);
sl@0
    33
mp4_i32 readFile(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestoread);
sl@0
    34
mp4_i32 readTmpFile(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestoread);
sl@0
    35
mp4_i32 peekFile(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestoread);
sl@0
    36
mp4_i32 seekFile(MP4HandleImp handle, mp4_i64 amount);
sl@0
    37
mp4_i32 seekFileAbs(MP4HandleImp handle, mp4_i64 amount);
sl@0
    38
mp4_i32 seekFileWrite(MP4HandleImp handle, mp4_i64 amount);
sl@0
    39
mp4_i32 seekFileAbsWrite(MP4HandleImp handle, mp4_i64 amount);
sl@0
    40
mp4_i32 seekTmpFileAbs(MP4HandleImp handle, mp4_i64 amount);
sl@0
    41
mp4_i32 writeFile(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestowrite);
sl@0
    42
mp4_i32 writeFileUnbuffered(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestowrite);
sl@0
    43
mp4_i32 writeTmpFile(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestowrite);
sl@0
    44
mp4_i32 createTmpFileName(MP4FileName filename, MP4FileName *tmpfilename);
sl@0
    45
mp4_i32 freeTmpFileName(MP4FileName filename);
sl@0
    46
void    closeStdlib();
sl@0
    47
mp4_i32 bufferedRead(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestoread);
sl@0
    48
mp4_i32 bufferedSeek(MP4HandleImp handle, mp4_i64 amount);
sl@0
    49
mp4_i32 bufferedSeekAbs(MP4HandleImp handle, mp4_i64 amount);
sl@0
    50
mp4_i32 bufferedWrite(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestowrite);
sl@0
    51
sl@0
    52
mp4_i32 initMetaDataFiles(MP4HandleImp handle);
sl@0
    53
mp4_i32 writeMetaDataFileNum(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestowrite, mp4_u32 filenumber);
sl@0
    54
mp4_i32 seekMetaDataFileNumAbs(MP4HandleImp handle, mp4_i64 amount, mp4_u32 filenumber);
sl@0
    55
mp4_i32 readMetaDataFileNum(MP4HandleImp handle, mp4_u8 *buffer, mp4_u32 bytestoread, mp4_u32 filenumber);
sl@0
    56
mp4_i32 deleteMetaDataFiles(MP4HandleImp handle);
sl@0
    57
mp4_i32 closeMetaDataFiles(MP4HandleImp handle);
sl@0
    58
mp4_i32	openStdlib();
sl@0
    59
sl@0
    60
TInt RecommendedBufferSize(MP4HandleImp aHandle);
sl@0
    61
sl@0
    62
#endif
sl@0
    63
// End of File