Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
daf8cf35
Commit
daf8cf35
authored
Sep 22, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: Don't anonymously typedef structs
parent
7769be59
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
117 additions
and
117 deletions
+117
-117
adtsenc.c
libavformat/adtsenc.c
+1
-1
aiffdec.c
libavformat/aiffdec.c
+1
-1
aiffenc.c
libavformat/aiffenc.c
+1
-1
anm.c
libavformat/anm.c
+2
-2
ape.c
libavformat/ape.c
+2
-2
asfdec.c
libavformat/asfdec.c
+1
-1
asfenc.c
libavformat/asfenc.c
+1
-1
avidec.c
libavformat/avidec.c
+1
-1
avienc.c
libavformat/avienc.c
+2
-2
bink.c
libavformat/bink.c
+1
-1
c93.c
libavformat/c93.c
+2
-2
cafdec.c
libavformat/cafdec.c
+1
-1
crypto.c
libavformat/crypto.c
+1
-1
dxa.c
libavformat/dxa.c
+1
-1
eacdata.c
libavformat/eacdata.c
+1
-1
filmstripdec.c
libavformat/filmstripdec.c
+1
-1
filmstripenc.c
libavformat/filmstripenc.c
+1
-1
flvdec.c
libavformat/flvdec.c
+1
-1
gif.c
libavformat/gif.c
+2
-2
gopher.c
libavformat/gopher.c
+1
-1
gsmdec.c
libavformat/gsmdec.c
+1
-1
http.c
libavformat/http.c
+1
-1
iff.c
libavformat/iff.c
+1
-1
img2.c
libavformat/img2.c
+1
-1
img2dec.c
libavformat/img2dec.c
+1
-1
img2enc.c
libavformat/img2enc.c
+1
-1
iss.c
libavformat/iss.c
+1
-1
jvdec.c
libavformat/jvdec.c
+2
-2
latmenc.c
libavformat/latmenc.c
+1
-1
lxfdec.c
libavformat/lxfdec.c
+1
-1
matroskadec.c
libavformat/matroskadec.c
+20
-20
matroskaenc.c
libavformat/matroskaenc.c
+3
-3
mm.c
libavformat/mm.c
+1
-1
mmf.c
libavformat/mmf.c
+1
-1
mmsh.c
libavformat/mmsh.c
+1
-1
mmst.c
libavformat/mmst.c
+1
-1
mpc.c
libavformat/mpc.c
+2
-2
mpc8.c
libavformat/mpc8.c
+1
-1
mpegenc.c
libavformat/mpegenc.c
+2
-2
mpegts.c
libavformat/mpegts.c
+2
-2
mxfdec.c
libavformat/mxfdec.c
+12
-12
mxfenc.c
libavformat/mxfenc.c
+4
-4
nsvdec.c
libavformat/nsvdec.c
+1
-1
nuv.c
libavformat/nuv.c
+1
-1
oggenc.c
libavformat/oggenc.c
+3
-3
paf.c
libavformat/paf.c
+1
-1
pva.c
libavformat/pva.c
+1
-1
qcp.c
libavformat/qcp.c
+1
-1
r3d.c
libavformat/r3d.c
+2
-2
rmdec.c
libavformat/rmdec.c
+1
-1
rmenc.c
libavformat/rmenc.c
+2
-2
rtpdec_mpeg4.c
libavformat/rtpdec_mpeg4.c
+1
-1
rtpdec_qcelp.c
libavformat/rtpdec_qcelp.c
+1
-1
segafilm.c
libavformat/segafilm.c
+1
-1
segment.c
libavformat/segment.c
+1
-1
sierravmd.c
libavformat/sierravmd.c
+1
-1
smoothstreamingenc.c
libavformat/smoothstreamingenc.c
+3
-3
soxenc.c
libavformat/soxenc.c
+1
-1
tls.c
libavformat/tls.c
+1
-1
tta.c
libavformat/tta.c
+1
-1
tty.c
libavformat/tty.c
+1
-1
udp.c
libavformat/udp.c
+1
-1
wtv.c
libavformat/wtv.c
+3
-3
wvdec.c
libavformat/wvdec.c
+1
-1
xwma.c
libavformat/xwma.c
+1
-1
No files found.
libavformat/adtsenc.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#define ADTS_HEADER_SIZE 7
typedef
struct
{
typedef
struct
ADTSContext
{
int
write_adts
;
int
objecttype
;
int
sample_rate_index
;
...
...
libavformat/aiffdec.c
View file @
daf8cf35
...
...
@@ -29,7 +29,7 @@
#define AIFF 0
#define AIFF_C_VERSION1 0xA2805140
typedef
struct
{
typedef
struct
AIFFInputContext
{
int64_t
data_end
;
int
block_duration
;
}
AIFFInputContext
;
...
...
libavformat/aiffenc.c
View file @
daf8cf35
...
...
@@ -27,7 +27,7 @@
#include "aiff.h"
#include "avio_internal.h"
typedef
struct
{
typedef
struct
AIFFOutputContext
{
int64_t
form
;
int64_t
frames
;
int64_t
ssnd
;
...
...
libavformat/anm.c
View file @
daf8cf35
...
...
@@ -28,13 +28,13 @@
#include "avformat.h"
#include "internal.h"
typedef
struct
{
typedef
struct
Page
{
int
base_record
;
unsigned
int
nb_records
;
int
size
;
}
Page
;
typedef
struct
{
typedef
struct
AnmDemuxContext
{
unsigned
int
nb_pages
;
/**< total pages in file */
unsigned
int
nb_records
;
/**< total records in file */
int
page_table_offset
;
...
...
libavformat/ape.c
View file @
daf8cf35
...
...
@@ -42,7 +42,7 @@
#define APE_EXTRADATA_SIZE 6
typedef
struct
{
typedef
struct
APEFrame
{
int64_t
pos
;
int
nblocks
;
int
size
;
...
...
@@ -50,7 +50,7 @@ typedef struct {
int64_t
pts
;
}
APEFrame
;
typedef
struct
{
typedef
struct
APEContext
{
/* Derived fields */
uint32_t
junklength
;
uint32_t
firstframe
;
...
...
libavformat/asfdec.c
View file @
daf8cf35
...
...
@@ -39,7 +39,7 @@
#include "asf.h"
#include "asfcrypt.h"
typedef
struct
{
typedef
struct
ASFContext
{
const
AVClass
*
class
;
int
asfid2avid
[
128
];
///< conversion table from asf ID 2 AVStream ID
ASFStream
streams
[
128
];
///< it's max number and it's not that big
...
...
libavformat/asfenc.c
View file @
daf8cf35
...
...
@@ -185,7 +185,7 @@
#define DATA_HEADER_SIZE 50
typedef
struct
{
typedef
struct
ASFContext
{
uint32_t
seqno
;
int
is_streamed
;
ASFStream
streams
[
128
];
///< it's max number and it's not that big
...
...
libavformat/avidec.c
View file @
daf8cf35
...
...
@@ -61,7 +61,7 @@ typedef struct AVIStream {
uint8_t
*
sub_buffer
;
}
AVIStream
;
typedef
struct
{
typedef
struct
AVIContext
{
int64_t
riff_end
;
int64_t
movi_end
;
int64_t
fsize
;
...
...
libavformat/avienc.c
View file @
daf8cf35
...
...
@@ -44,13 +44,13 @@ typedef struct AVIIndex {
AVIIentry
**
cluster
;
}
AVIIndex
;
typedef
struct
{
typedef
struct
AVIContext
{
int64_t
riff_start
,
movi_list
,
odml_list
;
int64_t
frames_hdr_all
;
int
riff_id
;
}
AVIContext
;
typedef
struct
{
typedef
struct
AVIStream
{
int64_t
frames_hdr_strm
;
int
audio_strm_length
;
int
packet_count
;
...
...
libavformat/bink.c
View file @
daf8cf35
...
...
@@ -46,7 +46,7 @@ enum BinkAudFlags {
#define BINK_MAX_WIDTH 7680
#define BINK_MAX_HEIGHT 4800
typedef
struct
{
typedef
struct
BinkDemuxContext
{
uint32_t
file_size
;
uint32_t
num_audio_tracks
;
...
...
libavformat/c93.c
View file @
daf8cf35
...
...
@@ -24,13 +24,13 @@
#include "voc.h"
#include "libavutil/intreadwrite.h"
typedef
struct
{
typedef
struct
C93BlockRecord
{
uint16_t
index
;
uint8_t
length
;
uint8_t
frames
;
}
C93BlockRecord
;
typedef
struct
{
typedef
struct
C93DemuxContext
{
VocDecContext
voc
;
C93BlockRecord
block_records
[
512
];
...
...
libavformat/cafdec.c
View file @
daf8cf35
...
...
@@ -36,7 +36,7 @@
#include "libavutil/dict.h"
#include "caf.h"
typedef
struct
{
typedef
struct
CafContext
{
int
bytes_per_packet
;
///< bytes in a packet, or 0 if variable
int
frames_per_packet
;
///< frames in a packet, or 0 if variable
int64_t
num_bytes
;
///< total number of bytes in stream
...
...
libavformat/crypto.c
View file @
daf8cf35
...
...
@@ -29,7 +29,7 @@
#define MAX_BUFFER_BLOCKS 150
#define BLOCKSIZE 16
typedef
struct
{
typedef
struct
CryptoContext
{
const
AVClass
*
class
;
URLContext
*
hd
;
uint8_t
inbuffer
[
BLOCKSIZE
*
MAX_BUFFER_BLOCKS
],
...
...
libavformat/dxa.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#define DXA_EXTRA_SIZE 9
typedef
struct
{
typedef
struct
DXAContext
{
int
frames
;
int
has_sound
;
int
bpc
;
...
...
libavformat/eacdata.c
View file @
daf8cf35
...
...
@@ -31,7 +31,7 @@
#include "avformat.h"
#include "internal.h"
typedef
struct
{
typedef
struct
CdataDemuxContext
{
unsigned
int
channels
;
unsigned
int
audio_pts
;
}
CdataDemuxContext
;
...
...
libavformat/filmstripdec.c
View file @
daf8cf35
...
...
@@ -30,7 +30,7 @@
#define RAND_TAG MKBETAG('R','a','n','d')
typedef
struct
{
typedef
struct
FilmstripDemuxContext
{
int
leading
;
}
FilmstripDemuxContext
;
...
...
libavformat/filmstripenc.c
View file @
daf8cf35
...
...
@@ -29,7 +29,7 @@
#define RAND_TAG MKBETAG('R','a','n','d')
typedef
struct
{
typedef
struct
FilmstripMuxContext
{
int
nb_frames
;
}
FilmstripMuxContext
;
...
...
libavformat/flvdec.c
View file @
daf8cf35
...
...
@@ -43,7 +43,7 @@
#define VALIDATE_INDEX_TS_THRESH 2500
typedef
struct
{
typedef
struct
FLVContext
{
const
AVClass
*
class
;
///< Class for private options.
int
trust_metadata
;
///< configure streams according onMetaData
int
wrong_dts
;
///< wrong dts due to negative cts
...
...
libavformat/gif.c
View file @
daf8cf35
...
...
@@ -58,7 +58,7 @@
* (byte 19) in the app_header */
#define GIF_ADD_APP_HEADER // required to enable looping of animated gif
typedef
struct
{
typedef
struct
rgb_triplet
{
unsigned
char
r
;
unsigned
char
g
;
unsigned
char
b
;
...
...
@@ -253,7 +253,7 @@ static int gif_image_write_image(AVIOContext *pb,
return
0
;
}
typedef
struct
{
typedef
struct
GIFContext
{
AVClass
*
class
;
/** Class for private options. */
int64_t
time
,
file_time
;
uint8_t
buffer
[
100
];
/* data chunks */
...
...
libavformat/gopher.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#include "network.h"
#include "url.h"
typedef
struct
{
typedef
struct
GopherContext
{
URLContext
*
hd
;
}
GopherContext
;
...
...
libavformat/gsmdec.c
View file @
daf8cf35
...
...
@@ -29,7 +29,7 @@
#define GSM_BLOCK_SAMPLES 160
#define GSM_SAMPLE_RATE 8000
typedef
struct
{
typedef
struct
GSMDemuxerContext
{
AVClass
*
class
;
int
sample_rate
;
}
GSMDemuxerContext
;
...
...
libavformat/http.c
View file @
daf8cf35
...
...
@@ -45,7 +45,7 @@
#define BUFFER_SIZE MAX_URL_SIZE
#define MAX_REDIRECTS 8
typedef
struct
{
typedef
struct
HTTPContext
{
const
AVClass
*
class
;
URLContext
*
hd
;
unsigned
char
buffer
[
BUFFER_SIZE
],
*
buf_ptr
,
*
buf_end
;
...
...
libavformat/iff.c
View file @
daf8cf35
...
...
@@ -74,7 +74,7 @@ typedef enum {
BITMAP_BYTERUN1
}
bitmap_compression_type
;
typedef
struct
{
typedef
struct
IffDemuxContext
{
uint64_t
body_pos
;
uint32_t
body_size
;
uint32_t
sent_bytes
;
...
...
libavformat/img2.c
View file @
daf8cf35
...
...
@@ -23,7 +23,7 @@
#include "libavutil/avstring.h"
#include "internal.h"
typedef
struct
{
typedef
struct
IdStrMap
{
enum
AVCodecID
id
;
const
char
*
str
;
}
IdStrMap
;
...
...
libavformat/img2dec.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#include "avformat.h"
#include "internal.h"
typedef
struct
{
typedef
struct
VideoDemuxData
{
const
AVClass
*
class
;
/**< Class for private options. */
int
img_first
;
int
img_last
;
...
...
libavformat/img2enc.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#include "internal.h"
#include "libavutil/opt.h"
typedef
struct
{
typedef
struct
VideoMuxData
{
const
AVClass
*
class
;
/**< Class for private options. */
int
img_number
;
int
is_pipe
;
...
...
libavformat/iss.c
View file @
daf8cf35
...
...
@@ -35,7 +35,7 @@
#define ISS_SIG_LEN 15
#define MAX_TOKEN_SIZE 20
typedef
struct
{
typedef
struct
IssDemuxContext
{
int
packet_size
;
int
sample_start_pos
;
}
IssDemuxContext
;
...
...
libavformat/jvdec.c
View file @
daf8cf35
...
...
@@ -33,14 +33,14 @@
#define JV_PREAMBLE_SIZE 5
typedef
struct
{
typedef
struct
JVFrame
{
int
audio_size
;
/** audio packet size (bytes) */
int
video_size
;
/** video packet size (bytes) */
int
palette_size
;
/** palette size (bytes) */
int
video_type
;
/** per-frame video compression type */
}
JVFrame
;
typedef
struct
{
typedef
struct
JVDemuxContext
{
JVFrame
*
frames
;
enum
{
JV_AUDIO
=
0
,
...
...
libavformat/latmenc.c
View file @
daf8cf35
...
...
@@ -26,7 +26,7 @@
#include "libavutil/opt.h"
#include "avformat.h"
typedef
struct
{
typedef
struct
LATMContext
{
AVClass
*
av_class
;
int
off
;
int
channel_conf
;
...
...
libavformat/lxfdec.c
View file @
daf8cf35
...
...
@@ -46,7 +46,7 @@ static const AVCodecTag lxf_tags[] = {
{
AV_CODEC_ID_NONE
,
0
},
};
typedef
struct
{
typedef
struct
LXFDemuxContext
{
int
channels
;
///< number of audio channels. zero means no audio
int
frame_number
;
///< current video frame
uint32_t
video_format
,
packet_type
,
extended_size
;
...
...
libavformat/matroskadec.c
View file @
daf8cf35
...
...
@@ -86,18 +86,18 @@ typedef const struct EbmlSyntax {
}
def
;
}
EbmlSyntax
;
typedef
struct
{
typedef
struct
EbmlList
{
int
nb_elem
;
void
*
elem
;
}
EbmlList
;
typedef
struct
{
typedef
struct
EbmlBin
{
int
size
;
uint8_t
*
data
;
int64_t
pos
;
}
EbmlBin
;
typedef
struct
{
typedef
struct
Ebml
{
uint64_t
version
;
uint64_t
max_size
;
uint64_t
id_length
;
...
...
@@ -105,18 +105,18 @@ typedef struct {
uint64_t
doctype_version
;
}
Ebml
;
typedef
struct
{
typedef
struct
MatroskaTrackCompression
{
uint64_t
algo
;
EbmlBin
settings
;
}
MatroskaTrackCompression
;
typedef
struct
{
typedef
struct
MatroskaTrackEncoding
{
uint64_t
scope
;
uint64_t
type
;
MatroskaTrackCompression
compression
;
}
MatroskaTrackEncoding
;
typedef
struct
{
typedef
struct
MatroskaTrackVideo
{
double
frame_rate
;
uint64_t
display_width
;
uint64_t
display_height
;
...
...
@@ -126,7 +126,7 @@ typedef struct {
uint64_t
stereo_mode
;
}
MatroskaTrackVideo
;
typedef
struct
{
typedef
struct
MatroskaTrackAudio
{
double
samplerate
;
double
out_samplerate
;
uint64_t
bitdepth
;
...
...
@@ -143,7 +143,7 @@ typedef struct {
uint8_t
*
buf
;
}
MatroskaTrackAudio
;
typedef
struct
{
typedef
struct
MatroskaTrack
{
uint64_t
num
;
uint64_t
uid
;
uint64_t
type
;
...
...
@@ -165,7 +165,7 @@ typedef struct {
int
ms_compat
;
}
MatroskaTrack
;
typedef
struct
{
typedef
struct
MatroskaAttachment
{
uint64_t
uid
;
char
*
filename
;
char
*
mime
;
...
...
@@ -174,7 +174,7 @@ typedef struct {
AVStream
*
stream
;
}
MatroskaAttachment
;
typedef
struct
{
typedef
struct
MatroskaChapter
{
uint64_t
start
;
uint64_t
end
;
uint64_t
uid
;
...
...
@@ -183,17 +183,17 @@ typedef struct {
AVChapter
*
chapter
;
}
MatroskaChapter
;
typedef
struct
{
typedef
struct
MatroskaIndexPos
{
uint64_t
track
;
uint64_t
pos
;
}
MatroskaIndexPos
;
typedef
struct
{
typedef
struct
MatroskaIndex
{
uint64_t
time
;
EbmlList
pos
;
}
MatroskaIndex
;
typedef
struct
{
typedef
struct
MatroskaTag
{
char
*
name
;
char
*
string
;
char
*
lang
;
...
...
@@ -201,7 +201,7 @@ typedef struct {
EbmlList
sub
;
}
MatroskaTag
;
typedef
struct
{
typedef
struct
MatroskaTagTarget
{
char
*
type
;
uint64_t
typevalue
;
uint64_t
trackuid
;
...
...
@@ -209,27 +209,27 @@ typedef struct {
uint64_t
attachuid
;
}
MatroskaTagTarget
;
typedef
struct
{
typedef
struct
MatroskaTags
{
MatroskaTagTarget
target
;
EbmlList
tag
;
}
MatroskaTags
;
typedef
struct
{
typedef
struct
MatroskaSeekhead
{
uint64_t
id
;
uint64_t
pos
;
}
MatroskaSeekhead
;
typedef
struct
{
typedef
struct
MatroskaLevel
{
uint64_t
start
;
uint64_t
length
;
}
MatroskaLevel
;
typedef
struct
{
typedef
struct
MatroskaCluster
{
uint64_t
timecode
;
EbmlList
blocks
;
}
MatroskaCluster
;
typedef
struct
{
typedef
struct
MatroskaDemuxContext
{
AVFormatContext
*
ctx
;
/* EBML stuff */
...
...
@@ -273,7 +273,7 @@ typedef struct {
int
contains_ssa
;
}
MatroskaDemuxContext
;
typedef
struct
{
typedef
struct
MatroskaBlock
{
uint64_t
duration
;
int64_t
reference
;
uint64_t
non_simple
;
...
...
libavformat/matroskaenc.c
View file @
daf8cf35
...
...
@@ -67,19 +67,19 @@ typedef struct mkv_seekhead {
int
num_entries
;
}
mkv_seekhead
;
typedef
struct
{
typedef
struct
mkv_cuepoint
{
uint64_t
pts
;
int
tracknum
;
int64_t
cluster_pos
;
///< file offset of the cluster containing the block
}
mkv_cuepoint
;
typedef
struct
{
typedef
struct
mkv_cues
{
int64_t
segment_offset
;
mkv_cuepoint
*
entries
;
int
num_entries
;
}
mkv_cues
;
typedef
struct
{
typedef
struct
mkv_track
{
int
write_dts
;
int64_t
ts_offset
;
}
mkv_track
;
...
...
libavformat/mm.c
View file @
daf8cf35
...
...
@@ -54,7 +54,7 @@
#define MM_PALETTE_COUNT 128
#define MM_PALETTE_SIZE (MM_PALETTE_COUNT*3)
typedef
struct
{
typedef
struct
MmDemuxContext
{
unsigned
int
audio_pts
,
video_pts
;
}
MmDemuxContext
;
...
...
libavformat/mmf.c
View file @
daf8cf35
...
...
@@ -26,7 +26,7 @@
#include "pcm.h"
#include "riff.h"
typedef
struct
{
typedef
struct
MMFContext
{
int64_t
atrpos
,
atsqpos
,
awapos
;
int64_t
data_size
;
}
MMFContext
;
...
...
libavformat/mmsh.c
View file @
daf8cf35
...
...
@@ -54,7 +54,7 @@ typedef enum {
CHUNK_TYPE_STREAM_CHANGE
=
0x4324
,
}
ChunkType
;
typedef
struct
{
typedef
struct
MMSHContext
{
MMSContext
mms
;
int
request_seq
;
///< request packet sequence
int
chunk_seq
;
///< data packet sequence
...
...
libavformat/mmst.c
View file @
daf8cf35
...
...
@@ -85,7 +85,7 @@ typedef enum {
/*@}*/
}
MMSSCPacketType
;
typedef
struct
{
typedef
struct
MMSTContext
{
MMSContext
mms
;
int
outgoing_packet_seq
;
///< Outgoing packet sequence number.
char
path
[
256
];
///< Path of the resource being asked for.
...
...
libavformat/mpc.c
View file @
daf8cf35
...
...
@@ -31,12 +31,12 @@
#define DELAY_FRAMES 32
static
const
int
mpc_rate
[
4
]
=
{
44100
,
48000
,
37800
,
32000
};
typedef
struct
{
typedef
struct
MPCFrame
{
int64_t
pos
;
int
size
,
skip
;
}
MPCFrame
;
typedef
struct
{
typedef
struct
MPCContext
{
int
ver
;
uint32_t
curframe
,
lastframe
;
uint32_t
fcount
;
...
...
libavformat/mpc8.c
View file @
daf8cf35
...
...
@@ -47,7 +47,7 @@ enum MPCPacketTags{
static
const
int
mpc8_rate
[
8
]
=
{
44100
,
48000
,
37800
,
32000
,
-
1
,
-
1
,
-
1
,
-
1
};
typedef
struct
{
typedef
struct
MPCContext
{
int
ver
;
int64_t
header_pos
;
int64_t
samples
;
...
...
libavformat/mpegenc.c
View file @
daf8cf35
...
...
@@ -46,7 +46,7 @@ typedef struct PacketDesc {
struct
PacketDesc
*
next
;
}
PacketDesc
;
typedef
struct
{
typedef
struct
StreamInfo
{
AVFifoBuffer
*
fifo
;
uint8_t
id
;
int
max_buffer_size
;
/* in bytes */
...
...
@@ -62,7 +62,7 @@ typedef struct {
int64_t
vobu_start_pts
;
}
StreamInfo
;
typedef
struct
{
typedef
struct
MpegMuxContext
{
const
AVClass
*
class
;
int
packet_size
;
/* required packet size */
int
packet_number
;
...
...
libavformat/mpegts.c
View file @
daf8cf35
...
...
@@ -565,7 +565,7 @@ static int parse_section_header(SectionHeader *h,
return
0
;
}
typedef
struct
{
typedef
struct
StreamType
{
uint32_t
stream_type
;
enum
AVMediaType
codec_type
;
enum
AVCodecID
codec_id
;
...
...
@@ -1026,7 +1026,7 @@ static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid)
}
#define MAX_LEVEL 4
typedef
struct
{
typedef
struct
MP4DescrParseContext
{
AVFormatContext
*
s
;
AVIOContext
pb
;
Mp4Descr
*
descr
;
...
...
libavformat/mxfdec.c
View file @
daf8cf35
...
...
@@ -72,7 +72,7 @@ typedef enum {
OPSonyOpt
,
/* FATE sample, violates the spec in places */
}
MXFOP
;
typedef
struct
{
typedef
struct
MXFPartition
{
int
closed
;
int
complete
;
MXFPartitionType
type
;
...
...
@@ -88,13 +88,13 @@ typedef struct {
int
pack_length
;
}
MXFPartition
;
typedef
struct
{
typedef
struct
MXFCryptoContext
{
UID
uid
;
enum
MXFMetadataSetType
type
;
UID
source_container_ul
;
}
MXFCryptoContext
;
typedef
struct
{
typedef
struct
MXFStructuralComponent
{
UID
uid
;
enum
MXFMetadataSetType
type
;
UID
source_package_uid
;
...
...
@@ -104,7 +104,7 @@ typedef struct {
int
source_track_id
;
}
MXFStructuralComponent
;
typedef
struct
{
typedef
struct
MXFSequence
{
UID
uid
;
enum
MXFMetadataSetType
type
;
UID
data_definition_ul
;
...
...
@@ -114,7 +114,7 @@ typedef struct {
uint8_t
origin
;
}
MXFSequence
;
typedef
struct
{
typedef
struct
MXFTrack
{
UID
uid
;
enum
MXFMetadataSetType
type
;
MXFSequence
*
sequence
;
/* mandatory, and only one */
...
...
@@ -127,7 +127,7 @@ typedef struct {
int64_t
original_duration
;
/* st->duration in SampleRate/EditRate units */
}
MXFTrack
;
typedef
struct
{
typedef
struct
MXFDescriptor
{
UID
uid
;
enum
MXFMetadataSetType
type
;
UID
essence_container_ul
;
...
...
@@ -153,7 +153,7 @@ typedef struct {
enum
AVPixelFormat
pix_fmt
;
}
MXFDescriptor
;
typedef
struct
{
typedef
struct
MXFIndexTableSegment
{
UID
uid
;
enum
MXFMetadataSetType
type
;
int
edit_unit_byte_count
;
...
...
@@ -168,7 +168,7 @@ typedef struct {
int
nb_index_entries
;
}
MXFIndexTableSegment
;
typedef
struct
{
typedef
struct
MXFPackage
{
UID
uid
;
enum
MXFMetadataSetType
type
;
UID
package_uid
;
...
...
@@ -178,13 +178,13 @@ typedef struct {
UID
descriptor_ref
;
}
MXFPackage
;
typedef
struct
{
typedef
struct
MXFMetadataSet
{
UID
uid
;
enum
MXFMetadataSetType
type
;
}
MXFMetadataSet
;
/* decoded index table */
typedef
struct
{
typedef
struct
MXFIndexTable
{
int
index_sid
;
int
body_sid
;
int
nb_ptses
;
/* number of PTSes or total duration of index */
...
...
@@ -195,7 +195,7 @@ typedef struct {
AVIndexEntry
*
fake_index
;
/* used for calling ff_index_search_timestamp() */
}
MXFIndexTable
;
typedef
struct
{
typedef
struct
MXFContext
{
MXFPartition
*
partitions
;
unsigned
partitions_count
;
MXFOP
op
;
...
...
@@ -230,7 +230,7 @@ enum MXFWrappingScheme {
/* NOTE: klv_offset is not set (-1) for local keys */
typedef
int
MXFMetadataReadFunc
(
void
*
arg
,
AVIOContext
*
pb
,
int
tag
,
int
size
,
UID
uid
,
int64_t
klv_offset
);
typedef
struct
{
typedef
struct
MXFMetadataReadTableEntry
{
const
UID
key
;
MXFMetadataReadFunc
*
read
;
int
ctx_size
;
...
...
libavformat/mxfenc.c
View file @
daf8cf35
...
...
@@ -50,19 +50,19 @@ extern AVOutputFormat ff_mxf_d10_muxer;
#define EDIT_UNITS_PER_BODY 250
#define KAG_SIZE 512
typedef
struct
{
typedef
struct
MXFLocalTagPair
{
int
local_tag
;
UID
uid
;
}
MXFLocalTagPair
;
typedef
struct
{
typedef
struct
MXFIndexEntry
{
uint8_t
flags
;
uint64_t
offset
;
unsigned
slice_offset
;
///< offset of audio slice
uint16_t
temporal_ref
;
}
MXFIndexEntry
;
typedef
struct
{
typedef
struct
MXFStreamContext
{
AudioInterleaveContext
aic
;
UID
track_essence_element_key
;
int
index
;
///< index in mxf_essence_container_uls table
...
...
@@ -74,7 +74,7 @@ typedef struct {
int
closed_gop
;
///< gop is closed, used in mpeg-2 frame parsing
}
MXFStreamContext
;
typedef
struct
{
typedef
struct
MXFContainerEssenceEntry
{
UID
container_ul
;
UID
element_ul
;
UID
codec_ul
;
...
...
libavformat/nsvdec.c
View file @
daf8cf35
...
...
@@ -165,7 +165,7 @@ typedef struct NSVStream {
int
cum_len
;
/* temporary storage (used during seek) */
}
NSVStream
;
typedef
struct
{
typedef
struct
NSVContext
{
int
base_offset
;
int
NSVf_end
;
uint32_t
*
nsvs_file_offset
;
...
...
libavformat/nuv.c
View file @
daf8cf35
...
...
@@ -33,7 +33,7 @@ static const AVCodecTag nuv_audio_tags[] = {
{
AV_CODEC_ID_NONE
,
0
},
};
typedef
struct
{
typedef
struct
NUVContext
{
int
v_id
;
int
a_id
;
int
rtjpg_video
;
...
...
libavformat/oggenc.c
View file @
daf8cf35
...
...
@@ -35,7 +35,7 @@
#define MAX_PAGE_SIZE 65025
typedef
struct
{
typedef
struct
OGGPage
{
int64_t
start_granule
;
int64_t
granule
;
int
stream_index
;
...
...
@@ -46,7 +46,7 @@ typedef struct {
uint16_t
size
;
}
OGGPage
;
typedef
struct
{
typedef
struct
OGGStreamContext
{
unsigned
page_counter
;
uint8_t
*
header
[
3
];
int
header_len
[
3
];
...
...
@@ -66,7 +66,7 @@ typedef struct OGGPageList {
struct
OGGPageList
*
next
;
}
OGGPageList
;
typedef
struct
{
typedef
struct
OGGContext
{
const
AVClass
*
class
;
OGGPageList
*
page_list
;
int
pref_size
;
///< preferred page size (0 => fill all segments)
...
...
libavformat/paf.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#define PAF_SOUND_SAMPLES 2205
#define PAF_SOUND_FRAME_SIZE ((256 + PAF_SOUND_SAMPLES) * 2)
typedef
struct
{
typedef
struct
PAFDemuxContext
{
uint32_t
buffer_size
;
uint32_t
frame_blks
;
uint32_t
nb_frames
;
...
...
libavformat/pva.c
View file @
daf8cf35
...
...
@@ -28,7 +28,7 @@
#define PVA_AUDIO_PAYLOAD 0x02
#define PVA_MAGIC (('A' << 8) + 'V')
typedef
struct
{
typedef
struct
PVAContext
{
int
continue_pes
;
}
PVAContext
;
...
...
libavformat/qcp.c
View file @
daf8cf35
...
...
@@ -31,7 +31,7 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
typedef
struct
{
typedef
struct
QCPContext
{
uint32_t
data_size
;
///< size of data chunk
#define QCP_MAX_MODE 4
...
...
libavformat/r3d.c
View file @
daf8cf35
...
...
@@ -25,13 +25,13 @@
#include "avformat.h"
#include "internal.h"
typedef
struct
{
typedef
struct
R3DContext
{
unsigned
video_offsets_count
;
unsigned
*
video_offsets
;
unsigned
rdvo_offset
;
}
R3DContext
;
typedef
struct
{
typedef
struct
Atom
{
unsigned
size
;
uint32_t
tag
;
uint64_t
offset
;
...
...
libavformat/rmdec.c
View file @
daf8cf35
...
...
@@ -54,7 +54,7 @@ struct RMStream {
int32_t
deint_id
;
///< deinterleaver used in audio stream
};
typedef
struct
{
typedef
struct
RMDemuxContext
{
int
nb_packets
;
int
old_format
;
int
current_stream
;
...
...
libavformat/rmenc.c
View file @
daf8cf35
...
...
@@ -23,7 +23,7 @@
#include "rm.h"
#include "libavutil/dict.h"
typedef
struct
{
typedef
struct
StreamInfo
{
int
nb_packets
;
int
packet_total_size
;
int
packet_max_size
;
...
...
@@ -36,7 +36,7 @@ typedef struct {
AVCodecContext
*
enc
;
}
StreamInfo
;
typedef
struct
{
typedef
struct
RMMuxContext
{
StreamInfo
streams
[
2
];
StreamInfo
*
audio_stream
,
*
video_stream
;
int
data_pos
;
/* position of the data after the header */
...
...
libavformat/rtpdec_mpeg4.c
View file @
daf8cf35
...
...
@@ -63,7 +63,7 @@ struct PayloadContext {
int
buf_pos
,
buf_size
;
};
typedef
struct
{
typedef
struct
AttrNameMap
{
const
char
*
str
;
uint16_t
type
;
uint32_t
offset
;
...
...
libavformat/rtpdec_qcelp.c
View file @
daf8cf35
...
...
@@ -25,7 +25,7 @@ static const uint8_t frame_sizes[] = {
1
,
4
,
8
,
17
,
35
};
typedef
struct
{
typedef
struct
InterleavePacket
{
int
pos
;
int
size
;
/* The largest frame is 35 bytes, only 10 frames are allowed per
...
...
libavformat/segafilm.c
View file @
daf8cf35
...
...
@@ -37,7 +37,7 @@
#define CVID_TAG MKBETAG('c', 'v', 'i', 'd')
#define RAW_TAG MKBETAG('r', 'a', 'w', ' ')
typedef
struct
{
typedef
struct
film_sample
{
int
stream
;
int64_t
sample_offset
;
unsigned
int
sample_size
;
...
...
libavformat/segment.c
View file @
daf8cf35
...
...
@@ -30,7 +30,7 @@
#include "libavutil/parseutils.h"
#include "libavutil/mathematics.h"
typedef
struct
{
typedef
struct
SegmentContext
{
const
AVClass
*
class
;
/**< Class for private options. */
int
number
;
AVOutputFormat
*
oformat
;
...
...
libavformat/sierravmd.c
View file @
daf8cf35
...
...
@@ -35,7 +35,7 @@
#define VMD_HEADER_SIZE 0x0330
#define BYTES_PER_FRAME_RECORD 16
typedef
struct
{
typedef
struct
vmd_frame
{
int
stream_index
;
int64_t
frame_offset
;
unsigned
int
frame_size
;
...
...
libavformat/smoothstreamingenc.c
View file @
daf8cf35
...
...
@@ -38,7 +38,7 @@
#include "libavutil/mathematics.h"
#include "libavutil/intreadwrite.h"
typedef
struct
{
typedef
struct
Fragment
{
char
file
[
1024
];
char
infofile
[
1024
];
int64_t
start_time
,
duration
;
...
...
@@ -46,7 +46,7 @@ typedef struct {
int64_t
start_pos
,
size
;
}
Fragment
;
typedef
struct
{
typedef
struct
OutputStream
{
AVFormatContext
*
ctx
;
int
ctx_inited
;
char
dirname
[
1024
];
...
...
@@ -66,7 +66,7 @@ typedef struct {
int
audio_tag
;
}
OutputStream
;
typedef
struct
{
typedef
struct
SmoothStreamingContext
{
const
AVClass
*
class
;
/* Class for private options. */
int
window_size
;
int
extra_window_size
;
...
...
libavformat/soxenc.c
View file @
daf8cf35
...
...
@@ -36,7 +36,7 @@
#include "avio_internal.h"
#include "sox.h"
typedef
struct
{
typedef
struct
SoXContext
{
int64_t
header_size
;
}
SoXContext
;
...
...
libavformat/tls.c
View file @
daf8cf35
...
...
@@ -57,7 +57,7 @@
#include <poll.h>
#endif
typedef
struct
{
typedef
struct
TLSContext
{
const
AVClass
*
class
;
URLContext
*
tcp
;
#if CONFIG_GNUTLS
...
...
libavformat/tta.c
View file @
daf8cf35
...
...
@@ -25,7 +25,7 @@
#include "id3v1.h"
#include "libavutil/dict.h"
typedef
struct
{
typedef
struct
TTAContext
{
int
totalframes
,
currentframe
;
int
frame_size
;
int
last_frame_size
;
...
...
libavformat/tty.c
View file @
daf8cf35
...
...
@@ -34,7 +34,7 @@
#include "internal.h"
#include "sauce.h"
typedef
struct
{
typedef
struct
TtyDemuxContext
{
AVClass
*
class
;
int
chars_per_frame
;
uint64_t
fsize
;
/**< file size less metadata buffer */
...
...
libavformat/udp.c
View file @
daf8cf35
...
...
@@ -40,7 +40,7 @@
#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
#endif
typedef
struct
{
typedef
struct
UDPContext
{
int
udp_fd
;
int
ttl
;
int
buffer_size
;
...
...
libavformat/wtv.c
View file @
daf8cf35
...
...
@@ -57,7 +57,7 @@
#define SHIFT_SECTOR_BITS(a) ((int64_t)(a) << WTV_SECTOR_BITS)
typedef
struct
{
typedef
struct
WtvFile
{
AVIOContext
*
pb_filesystem
;
/** file system (AVFormatContext->pb) */
int
sector_bits
;
/** sector shift bits; used to convert sector number into pb_filesystem offset */
...
...
@@ -324,11 +324,11 @@ static void wtvfile_close(AVIOContext *pb)
*
*/
typedef
struct
{
typedef
struct
WtvStream
{
int
seen_data
;
}
WtvStream
;
typedef
struct
{
typedef
struct
WtvContext
{
AVIOContext
*
pb
;
/** timeline file */
int64_t
epoch
;
int64_t
pts
;
/** pts for next data chunk */
...
...
libavformat/wvdec.c
View file @
daf8cf35
...
...
@@ -47,7 +47,7 @@ static const int wv_rates[16] = {
32000
,
44100
,
48000
,
64000
,
88200
,
96000
,
192000
,
-
1
};
typedef
struct
{
typedef
struct
WVContext
{
uint8_t
block_header
[
WV_HEADER_SIZE
];
WvHeader
header
;
int
rate
,
chan
,
bpp
;
...
...
libavformat/xwma.c
View file @
daf8cf35
...
...
@@ -30,7 +30,7 @@
* Demuxer for xWMA, a Microsoft audio container used by XAudio 2.
*/
typedef
struct
{
typedef
struct
XWMAContext
{
int64_t
data_end
;
}
XWMAContext
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment