亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? avformat.h

?? rtsp協議的主要實現代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*
 * copyright (c) 2001 Fabrice Bellard
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#ifndef AVFORMAT_H
#define AVFORMAT_H

#ifdef __cplusplus
extern "C" {
#endif

#define LIBAVFORMAT_VERSION_INT ((51<<16)+(11<<8)+0)
#define LIBAVFORMAT_VERSION     51.11.0
#define LIBAVFORMAT_BUILD       LIBAVFORMAT_VERSION_INT

#define LIBAVFORMAT_IDENT       "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)

#include <time.h>
#include <stdio.h>  /* FILE */
#include "avcodec.h"

#include "avio.h"

/* packet functions */

typedef struct AVPacket {
    int64_t pts;                            ///< presentation time stamp in time_base units
    int64_t dts;                            ///< decompression time stamp in time_base units
    uint8_t *data;
    int   size;
    int   stream_index;
    int   flags;
    int   duration;                         ///< presentation duration in time_base units (0 if not available)
    void  (*destruct)(struct AVPacket *);
    void  *priv;
    int64_t pos;                            ///< byte position in stream, -1 if unknown
} AVPacket;
#define PKT_FLAG_KEY   0x0001

void av_destruct_packet_nofree(AVPacket *pkt);

/**
 * Default packet destructor.
 */
void av_destruct_packet(AVPacket *pkt);

/* initialize optional fields of a packet */
static inline void av_init_packet(AVPacket *pkt)
{
    pkt->pts   = AV_NOPTS_VALUE;
    pkt->dts   = AV_NOPTS_VALUE;
    pkt->pos   = -1;
    pkt->duration = 0;
    pkt->flags = 0;
    pkt->stream_index = 0;
    pkt->destruct= av_destruct_packet_nofree;
}

/**
 * Allocate the payload of a packet and intialized its fields to default values.
 *
 * @param pkt packet
 * @param size wanted payload size
 * @return 0 if OK. AVERROR_xxx otherwise.
 */
int av_new_packet(AVPacket *pkt, int size);

/**
 * Allocate and read the payload of a packet and intialized its fields to default values.
 *
 * @param pkt packet
 * @param size wanted payload size
 * @return >0 (read size) if OK. AVERROR_xxx otherwise.
 */
int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size);

/**
 * @warning This is a hack - the packet memory allocation stuff is broken. The
 * packet is allocated if it was not really allocated
 */
int av_dup_packet(AVPacket *pkt);

/**
 * Free a packet
 *
 * @param pkt packet to free
 */
static inline void av_free_packet(AVPacket *pkt)
{
    if (pkt && pkt->destruct) {
        pkt->destruct(pkt);
    }
}

/*************************************************/
/* fractional numbers for exact pts handling */

/* the exact value of the fractional number is: 'val + num / den'. num
   is assumed to be such as 0 <= num < den */
typedef struct AVFrac {
    int64_t val, num, den;
} AVFrac attribute_deprecated;

/*************************************************/
/* input/output formats */

struct AVCodecTag;

struct AVFormatContext;

/** this structure contains the data a format has to probe a file */
typedef struct AVProbeData {
    const char *filename;
    unsigned char *buf;
    int buf_size;
} AVProbeData;

#define AVPROBE_SCORE_MAX 100               ///< max score, half of that is used for file extension based detection

typedef struct AVFormatParameters {
    AVRational time_base;
    int sample_rate;
    int channels;
    int width;
    int height;
    enum PixelFormat pix_fmt;
    int channel; /**< used to select dv channel */
#if LIBAVFORMAT_VERSION_INT < (52<<16)
    const char *device; /**< video, audio or DV device */
#endif
    const char *standard; /**< tv standard, NTSC, PAL, SECAM */
    int mpeg2ts_raw:1;  /**< force raw MPEG2 transport stream output, if possible */
    int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
                                  stream packet (only meaningful if
                                  mpeg2ts_raw is TRUE */
    int initial_pause:1;       /**< do not begin to play the stream
                                  immediately (RTSP only) */
    int prealloced_context:1;
    enum CodecID video_codec_id;
    enum CodecID audio_codec_id;
} AVFormatParameters;

//! demuxer will use url_fopen, no opened file should be provided by the caller
#define AVFMT_NOFILE        0x0001
#define AVFMT_NEEDNUMBER    0x0002 /**< needs '%d' in filename */
#define AVFMT_SHOW_IDS      0x0008 /**< show format stream IDs numbers */
#define AVFMT_RAWPICTURE    0x0020 /**< format wants AVPicture structure for
                                      raw picture data */
#define AVFMT_GLOBALHEADER  0x0040 /**< format wants global header */
#define AVFMT_NOTIMESTAMPS  0x0080 /**< format doesnt need / has any timestamps */
#define AVFMT_GENERIC_INDEX 0x0100 /**< use generic index building code */

typedef struct AVOutputFormat {
    const char *name;
    const char *long_name;
    const char *mime_type;
    const char *extensions; /**< comma separated filename extensions */
    /** size of private data so that it can be allocated in the wrapper */
    int priv_data_size;
    /* output support */
    enum CodecID audio_codec; /**< default audio codec */
    enum CodecID video_codec; /**< default video codec */
    int (*write_header)(struct AVFormatContext *);
    int (*write_packet)(struct AVFormatContext *, AVPacket *pkt);
    int (*write_trailer)(struct AVFormatContext *);
    /** can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_GLOBALHEADER */
    int flags;
    /** currently only used to set pixel format if not YUV420P */
    int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *);
    int (*interleave_packet)(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush);

    /**
     * list of supported codec_id-codec_tag pairs, ordered by "better choice first"
     * the arrays are all CODEC_ID_NONE terminated
     */
    const struct AVCodecTag **codec_tag;

    /* private fields */
    struct AVOutputFormat *next;
} AVOutputFormat;

typedef struct AVInputFormat {
    const char *name;
    const char *long_name;
    /** size of private data so that it can be allocated in the wrapper */
    int priv_data_size;
    /** tell if a given file has a chance of being parsing by this format */
    int (*read_probe)(AVProbeData *);
    /** read the format header and initialize the AVFormatContext
       structure. Return 0 if OK. 'ap' if non NULL contains
       additionnal paramters. Only used in raw format right
       now. 'av_new_stream' should be called to create new streams.  */
    int (*read_header)(struct AVFormatContext *,
                       AVFormatParameters *ap);
    /** read one packet and put it in 'pkt'. pts and flags are also
       set. 'av_new_stream' can be called only if the flag
       AVFMTCTX_NOHEADER is used. */
    int (*read_packet)(struct AVFormatContext *, AVPacket *pkt);
    /** close the stream. The AVFormatContext and AVStreams are not
       freed by this function */
    int (*read_close)(struct AVFormatContext *);
    /**
     * seek to a given timestamp relative to the frames in
     * stream component stream_index
     * @param stream_index must not be -1
     * @param flags selects which direction should be preferred if no exact
     *              match is available
     */
    int (*read_seek)(struct AVFormatContext *,
                     int stream_index, int64_t timestamp, int flags);
    /**
     * gets the next timestamp in AV_TIME_BASE units.
     */
    int64_t (*read_timestamp)(struct AVFormatContext *s, int stream_index,
                              int64_t *pos, int64_t pos_limit);
    /** can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */
    int flags;
    /** if extensions are defined, then no probe is done. You should
       usually not use extension format guessing because it is not
       reliable enough */
    const char *extensions;
    /** general purpose read only value that the format can use */
    int value;

    /** start/resume playing - only meaningful if using a network based format
       (RTSP) */
    int (*read_play)(struct AVFormatContext *);

    /** pause playing - only meaningful if using a network based format
       (RTSP) */
    int (*read_pause)(struct AVFormatContext *);

    const struct AVCodecTag **codec_tag;

    /* private fields */
    struct AVInputFormat *next;
} AVInputFormat;

typedef struct AVIndexEntry {
    int64_t pos;
    int64_t timestamp;
#define AVINDEX_KEYFRAME 0x0001
    int flags:2;
    int size:30; //yeah trying to keep the size of this small to reduce memory requirements (its 24 vs 32 byte due to possible 8byte align)
    int min_distance;         /**< min distance between this and the previous keyframe, used to avoid unneeded searching */
} AVIndexEntry;

typedef struct AVStream {
    int index;    /**< stream index in AVFormatContext */
    int id;       /**< format specific stream id */
    AVCodecContext *codec; /**< codec context */
    /**
     * real base frame rate of the stream.
     * this is the lowest framerate with which all timestamps can be
     * represented accurately (its the least common multiple of all
     * framerates in the stream), Note, this value is just a guess!
     * for example if the timebase is 1/90000 and all frames have either
     * approximately 3600 or 1800 timer ticks then r_frame_rate will be 50/1
     */
    AVRational r_frame_rate;
    void *priv_data;
#if LIBAVFORMAT_VERSION_INT < (52<<16)
    /* internal data used in av_find_stream_info() */
    int64_t codec_info_duration;
    int codec_info_nb_frames;
#endif
    /** encoding: PTS generation when outputing stream */
    AVFrac pts;

    /**
     * this is the fundamental unit of time (in seconds) in terms
     * of which frame timestamps are represented. for fixed-fps content,
     * timebase should be 1/framerate and timestamp increments should be
     * identically 1.
     */
    AVRational time_base;
    int pts_wrap_bits; /**< number of bits in pts (used for wrapping control) */
    /* ffmpeg.c private use */
    int stream_copy; /**< if set, just copy stream */
    enum AVDiscard discard; ///< selects which packets can be discarded at will and dont need to be demuxed

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一级片| 欧美videofree性高清杂交| 在线播放国产精品二区一二区四区| 精品美女被调教视频大全网站| 亚洲精品国产无套在线观| 精品一区二区三区在线观看| 91网站在线观看视频| 久久亚区不卡日本| 免费在线观看精品| 欧美亚洲高清一区| 综合欧美一区二区三区| 国产91色综合久久免费分享| 精品剧情在线观看| 天天综合天天综合色| 欧美性色aⅴ视频一区日韩精品| 国产精品全国免费观看高清 | www.色精品| 国产午夜亚洲精品理论片色戒| 日本亚洲欧美天堂免费| 欧美性猛片aaaaaaa做受| 1024成人网| 不卡视频一二三四| 亚洲欧美在线视频观看| 99久久综合狠狠综合久久| 久久久精品黄色| 国产夫妻精品视频| 国产午夜精品在线观看| 国产精品一区二区无线| 久久久亚洲高清| 国产乱码精品一品二品| 26uuu另类欧美亚洲曰本| 狠狠网亚洲精品| 国产三级欧美三级日产三级99 | 亚洲精品一区二区在线观看| 免费在线成人网| 亚洲精品一区二区三区精华液 | 91尤物视频在线观看| 国产精品色哟哟网站| 99国产精品国产精品毛片| 亚洲色图视频网| 欧美三级日韩三级| 美国毛片一区二区| 久久蜜桃一区二区| av网站一区二区三区| 一区二区不卡在线播放| 制服丝袜在线91| 国产一区在线观看麻豆| 国产精品热久久久久夜色精品三区 | 国产精品高清亚洲| 在线观看国产日韩| 另类调教123区| 日本一区二区三区在线不卡| 99热这里都是精品| 日韩电影免费一区| 国产精品天干天干在观线| 色视频成人在线观看免| 喷白浆一区二区| 中文字幕乱码亚洲精品一区| 色域天天综合网| 美女被吸乳得到大胸91| 欧美—级在线免费片| 欧美日韩一区二区欧美激情 | 91论坛在线播放| 日本欧美一区二区三区乱码 | 五月激情综合色| 久久久久久久网| 欧美综合天天夜夜久久| 激情综合色丁香一区二区| 国产精品三级av在线播放| 欧美日韩另类一区| 国产成人自拍网| 亚洲一区二区精品久久av| 国产清纯白嫩初高生在线观看91 | 性感美女极品91精品| 欧美激情综合在线| 日韩女优毛片在线| 日本久久电影网| 从欧美一区二区三区| 麻豆专区一区二区三区四区五区| 亚洲第一主播视频| 日韩免费观看高清完整版| 在线观看日产精品| 波多野结衣在线一区| 蜜桃视频一区二区三区在线观看| 亚洲欧美另类久久久精品| 久久综合99re88久久爱| 欧美高清激情brazzers| 91一区一区三区| 成人性生交大片免费看中文| 五月天亚洲精品| 一区二区激情视频| 国产精品成人午夜| 精品国内二区三区| 8x福利精品第一导航| 日本精品一区二区三区高清| 国产成人综合网| 国产麻豆日韩欧美久久| 另类欧美日韩国产在线| 日韩电影在线观看网站| 亚洲国产精品久久久男人的天堂| 亚洲欧美日韩在线不卡| 国产精品不卡在线| 亚洲欧洲国产专区| 亚洲色图欧洲色图婷婷| 亚洲欧美日韩成人高清在线一区| 中文字幕av在线一区二区三区| 久久一区二区视频| 26uuu色噜噜精品一区| 久久综合丝袜日本网| 精品国内片67194| 久久―日本道色综合久久| 久久综合狠狠综合| 久久久久88色偷偷免费| 国产色一区二区| 国产精品丝袜一区| 国产精品久线在线观看| 中文字幕综合网| 亚洲精品高清视频在线观看| 亚洲日本乱码在线观看| 亚洲自拍偷拍麻豆| 日韩精品视频网| 久久99久久99小草精品免视看| 黄色小说综合网站| 成人午夜在线播放| 一本色道a无线码一区v| 欧美亚洲综合色| 日韩午夜中文字幕| 欧美精品一区二区三区蜜臀| 欧美极品美女视频| 一区二区三区在线观看国产| 亚洲国产精品久久不卡毛片| 亚洲成人免费视| 久久国内精品自在自线400部| 97精品电影院| 欧美午夜免费电影| 欧美成人a在线| 1024成人网色www| 日韩成人精品在线观看| 国产经典欧美精品| 在线中文字幕一区| 日韩欧美国产精品一区| 成人欧美一区二区三区黑人麻豆 | 欧美一区二区三区人| 国产日产欧美一区| 亚洲国产精品嫩草影院| 精品一区二区三区在线播放视频| av不卡在线播放| 欧美一区二区三区在线看| 国产片一区二区三区| 天堂一区二区在线免费观看| 丁香婷婷深情五月亚洲| 欧美日韩一卡二卡三卡| 亚洲国产精品成人久久综合一区| 一区二区三区在线视频免费| 蜜桃av一区二区三区| jizzjizzjizz欧美| 欧美电影免费观看高清完整版 | 在线亚洲一区二区| 欧美变态凌虐bdsm| 亚洲一区二区三区中文字幕| 国产一区二区三区不卡在线观看| 欧美亚洲综合久久| 欧美国产精品一区二区| 捆绑变态av一区二区三区| 欧美专区日韩专区| 国产精品美女久久久久aⅴ国产馆| 日本大胆欧美人术艺术动态| 91视频国产资源| 久久久久久久综合日本| 日韩va亚洲va欧美va久久| 91视频你懂的| 日本一区二区三区电影| 日本视频一区二区三区| 欧美三级在线看| 中文字幕亚洲在| 国产白丝精品91爽爽久久| 日韩一区二区影院| 亚洲午夜精品一区二区三区他趣| 国产激情精品久久久第一区二区| 91精品国产综合久久精品| 亚洲夂夂婷婷色拍ww47| 北条麻妃一区二区三区| 国产欧美日韩中文久久| 国产剧情一区二区| 国产亚洲欧美日韩在线一区| 另类小说一区二区三区| 日韩一区二区三| 美女视频网站久久| 欧美一级夜夜爽| 肉丝袜脚交视频一区二区| 欧美午夜宅男影院| 一区二区三区精品视频| 色哟哟一区二区在线观看| 国产精品久久久久久久久动漫 | 亚洲女爱视频在线| 色婷婷久久久久swag精品| 一区二区三区欧美视频| 色婷婷久久综合| 午夜激情一区二区三区| 91精品蜜臀在线一区尤物|