基于qt,msvc2017-64bits,ffmpeg.opengl的播放器
zhangmeng
2021-03-03 4a6d9312cc1c9d62d66c4def71246d9faae29edb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
 
#ifndef MINIVIDEO_MEDIAFILE_H
#define MINIVIDEO_MEDIAFILE_H
 
#include <stdio.h>
#include <stdint.h>
 
#include "minivideo_containers.h"
 
typedef struct MediaFile_t
{
    // Generic file infos
    FILE* file_pointer;                 //!< File pointer used during the life of this media file
    int64_t file_size;                  //!< File size in bytes
    char file_path[4096];               //!< Absolute path of the file (used to derive other paths/names/extention)
 
    // Additional file infos
    char file_directory[4096];          //!< Absolute path of the directory containing the file
    char file_name[255];                //!< File name (with file extension)
    char file_extension[255];           //!< File extension, without dot (may NOT correspond to the real file format)
    uint64_t file_creation_time;        //!< File creation time (Unix time) (if available from filesystem metadata)
    uint64_t file_modification_time;    //!< File modification time (Unix time) (if available from filesystem metadata)
 
        // Container
    Containers_e container;             //!< File format / container used by this video file
    ContainerProfiles_e container_profile; //!< Container profile (if applicable)
 
 
} MediaFile_t;
 
#endif