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
fafa7290
Commit
fafa7290
authored
Apr 09, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: cosmetics, move AVIOContext to start of the file.
parent
6084ee5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
38 deletions
+39
-38
avio.h
libavformat/avio.h
+39
-38
No files found.
libavformat/avio.h
View file @
fafa7290
...
...
@@ -32,6 +32,45 @@
#include "libavformat/version.h"
#define AVIO_SEEKABLE_NORMAL 0x0001
/**< Seeking works like for a local file */
/**
* Bytestream IO Context.
* New fields can be added to the end with minor version bumps.
* Removal, reordering and changes to existing fields require a major
* version bump.
* sizeof(AVIOContext) must not be used outside libav*.
*/
typedef
struct
{
unsigned
char
*
buffer
;
int
buffer_size
;
unsigned
char
*
buf_ptr
,
*
buf_end
;
void
*
opaque
;
int
(
*
read_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
);
int
(
*
write_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
);
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
);
int64_t
pos
;
/**< position in the file of the current buffer */
int
must_flush
;
/**< true if the next seek should flush */
int
eof_reached
;
/**< true if eof reached */
int
write_flag
;
/**< true if open for writing */
#if FF_API_OLD_AVIO
attribute_deprecated
int
is_streamed
;
#endif
int
max_packet_size
;
unsigned
long
checksum
;
unsigned
char
*
checksum_ptr
;
unsigned
long
(
*
update_checksum
)(
unsigned
long
checksum
,
const
uint8_t
*
buf
,
unsigned
int
size
);
int
error
;
///< contains the error code or 0 if no error happened
int
(
*
read_pause
)(
void
*
opaque
,
int
pause
);
int64_t
(
*
read_seek
)(
void
*
opaque
,
int
stream_index
,
int64_t
timestamp
,
int
flags
);
/**
* A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
*/
int
seekable
;
}
AVIOContext
;
/* unbuffered I/O */
#if FF_API_OLD_AVIO
...
...
@@ -197,48 +236,10 @@ attribute_deprecated int av_register_protocol(URLProtocol *protocol);
attribute_deprecated
int
av_register_protocol2
(
URLProtocol
*
protocol
,
int
size
);
#endif
#define AVIO_SEEKABLE_NORMAL 0x0001
/**< Seeking works like for a local file */
/**
* @}
*/
/**
* Bytestream IO Context.
* New fields can be added to the end with minor version bumps.
* Removal, reordering and changes to existing fields require a major
* version bump.
* sizeof(AVIOContext) must not be used outside libav*.
*/
typedef
struct
{
unsigned
char
*
buffer
;
int
buffer_size
;
unsigned
char
*
buf_ptr
,
*
buf_end
;
void
*
opaque
;
int
(
*
read_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
);
int
(
*
write_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
);
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
);
int64_t
pos
;
/**< position in the file of the current buffer */
int
must_flush
;
/**< true if the next seek should flush */
int
eof_reached
;
/**< true if eof reached */
int
write_flag
;
/**< true if open for writing */
#if FF_API_OLD_AVIO
attribute_deprecated
int
is_streamed
;
#endif
int
max_packet_size
;
unsigned
long
checksum
;
unsigned
char
*
checksum_ptr
;
unsigned
long
(
*
update_checksum
)(
unsigned
long
checksum
,
const
uint8_t
*
buf
,
unsigned
int
size
);
int
error
;
///< contains the error code or 0 if no error happened
int
(
*
read_pause
)(
void
*
opaque
,
int
pause
);
int64_t
(
*
read_seek
)(
void
*
opaque
,
int
stream_index
,
int64_t
timestamp
,
int
flags
);
/**
* A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
*/
int
seekable
;
}
AVIOContext
;
#if FF_API_OLD_AVIO
typedef
attribute_deprecated
AVIOContext
ByteIOContext
;
...
...
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