35 return "<BLOCK DEVICE>";
37 return "<CHARACTER DEVICE>";
62 char filemode[4], uid_and_gid[20];
85 "TYPE",
"SIZE",
"NAME",
"UID(GID)",
"UGO",
"MODIFIED",
86 "ACCESSED",
"STATUS_CHANGED");
124 fprintf(stderr,
"usage: %s OPERATION entry1 [entry2]\n" 125 "API example program to show how to manipulate resources " 126 "accessed through AVIOContext.\n" 128 "list list content of the directory\n" 129 "move rename content in directory\n" 130 "del delete content in directory\n",
134 int main(
int argc,
char *argv[])
149 if (strcmp(op,
"list") == 0) {
156 }
else if (strcmp(op,
"del") == 0) {
163 }
else if (strcmp(op,
"move") == 0) {
168 ret =
move_op(argv[2], argv[3]);
177 return ret < 0 ? 1 : 0;
static int list_op(const char *input_dir)
int64_t filemode
Unix file mode, -1 if unknown.
void av_log_set_level(int level)
Set the log level.
Describes single entry of the directory.
static void usage(const char *program_name)
int avpriv_io_move(const char *url_src, const char *url_dst)
Move or rename a resource.
int64_t modification_timestamp
Time of last modification in microseconds since unix epoch, -1 if unknown.
int avio_read_dir(AVIODirContext *s, AVIODirEntry **next)
Get next directory entry.
int avformat_network_init(void)
Do global initialization of network libraries.
static int move_op(const char *src, const char *dst)
int main(int argc, char *argv[])
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
void avio_free_directory_entry(AVIODirEntry **entry)
Free entry allocated by avio_read_dir().
int64_t access_timestamp
Time of last access in microseconds since unix epoch, -1 if unknown.
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
int64_t size
File size in bytes, -1 if unknown.
int avformat_network_deinit(void)
Undo the initialization done by avformat_network_init.
#define AV_LOG_INFO
Standard information.
Libavcodec external API header.
static int del_op(const char *url)
int type
Type of the entry.
int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options)
Open directory for reading.
int64_t group_id
Group ID of owner, -1 if unknown.
static const char * type_string(int type)
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
int64_t status_change_timestamp
Time of last status change in microseconds since unix epoch, -1 if unknown.
int avio_close_dir(AVIODirContext **s)
Close directory.
int64_t user_id
User ID of owner, -1 if unknown.
int avpriv_io_delete(const char *url)
Delete a resource.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Frame references ownership and permissions
const char program_name[]
program name, defined by the program for show_version().