FFmpeg
1.2.12
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavformat
seek.h
Go to the documentation of this file.
1
/*
2
* seek utility functions for use within format handlers
3
*
4
* Copyright (c) 2009 Ivan Schreter
5
*
6
* This file is part of FFmpeg.
7
*
8
* FFmpeg is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* FFmpeg is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with FFmpeg; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#ifndef AVFORMAT_SEEK_H
24
#define AVFORMAT_SEEK_H
25
26
#include "
avformat.h
"
27
31
typedef
struct
AVParserStreamState
{
32
// saved members of AVStream
33
AVCodecParserContext
*
parser
;
34
int64_t
last_IP_pts
;
35
int64_t
cur_dts
;
36
int64_t
reference_dts
;
37
int
probe_packets
;
38
}
AVParserStreamState
;
39
43
typedef
struct
AVParserState
{
44
int64_t
fpos
;
45
46
// saved members of AVFormatContext
47
AVPacketList
*
packet_buffer
;
48
AVPacketList
*
parse_queue
;
49
AVPacketList
*
raw_packet_buffer
;
50
int
raw_packet_buffer_remaining_size
;
51
52
// saved info for streams
53
int
nb_streams
;
54
AVParserStreamState
*
stream_states
;
55
}
AVParserState
;
56
79
int64_t
ff_gen_syncpoint_search
(
AVFormatContext
*s,
80
int
stream_index,
81
int64_t pos,
82
int64_t min_ts,
83
int64_t ts,
84
int64_t max_ts,
85
int
flags
);
86
101
AVParserState
*
ff_store_parser_state
(
AVFormatContext
*s);
102
113
void
ff_restore_parser_state
(
AVFormatContext
*s,
AVParserState
*
state
);
114
121
void
ff_free_parser_state
(
AVFormatContext
*s,
AVParserState
*
state
);
122
123
#endif
/* AVFORMAT_SEEK_H */
Generated on Thu Feb 12 2015 17:57:02 for FFmpeg by
1.8.1.2