コード例 #1
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_close_buf(ref ByteIOContext s);
コード例 #2
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int get_partial_buffer(ref ByteIOContext s, [In, Out]byte[] buf, int size);
コード例 #3
0
ファイル: AVFormat.cs プロジェクト: nasojlsu/CasparCGPlayout
 private static extern AVError av_open_input_stream(out AVFormatContext* ic_ptr, ref ByteIOContext pb,
     string filename, ref AVInputFormat fmt, ref AVFormatParameters ap);
コード例 #4
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int get_byte(ref ByteIOContext s);
コード例 #5
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern uint get_le32(ref ByteIOContext s);
コード例 #6
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_open_dyn_buf(ref ByteIOContext s);
コード例 #7
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_setbufsize(ref ByteIOContext s, int buf_size);
コード例 #8
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_fgetc(ref ByteIOContext s);
コード例 #9
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern string url_fgets(ref ByteIOContext s, [In, Out]byte[] buf, int buf_size);
コード例 #10
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_fdopen(ref ByteIOContext s, ref URLContext h);
コード例 #11
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_ferror(ref ByteIOContext s);
コード例 #12
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_fclose(ref ByteIOContext s);
コード例 #13
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
        public static void url_close_dyn_buf(ref ByteIOContext s, out byte[] buffer)
        {
            byte* ptr;
            int length = url_close_dyn_buf(ref s, out ptr);

            buffer = new byte[length];
            Marshal.Copy((IntPtr)ptr, buffer, 0, length);

            FFmpeg.av_free(ptr);
        }
コード例 #14
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_close_dyn_buf(ref ByteIOContext s, out byte* pbuffer);
コード例 #15
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static bool url_is_streamed(ref ByteIOContext s)
 {
     return s.is_streamed;
 }
コード例 #16
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_fget_max_packet_size(ref ByteIOContext s);
コード例 #17
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_open_buf(ref ByteIOContext s, [In, Out]byte[] buf, int buf_size, int flags);
コード例 #18
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern URLContext* url_fileno(ref ByteIOContext s);
コード例 #19
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_open_dyn_packet_buf(ref ByteIOContext s, int max_packet_size);
コード例 #20
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern int url_fopen(ref ByteIOContext s, string filename, int flags);
コード例 #21
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern uint get_be24(ref ByteIOContext s);
コード例 #22
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern long url_fseek(ref ByteIOContext s, long offset, int whence);
コード例 #23
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern ulong get_checksum(ref ByteIOContext s);
コード例 #24
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern long url_fsize(ref ByteIOContext s);
コード例 #25
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern ulong get_le64(ref ByteIOContext s);
コード例 #26
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern void url_fskip(ref ByteIOContext s, long offset);
コード例 #27
0
ファイル: AVFormat.cs プロジェクト: nasojlsu/CasparCGPlayout
 public static extern int av_get_packet(ref ByteIOContext pByteIOContext, ref AVPacket pAVPacket, int size);
コード例 #28
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern long url_ftell(ref ByteIOContext s);
コード例 #29
0
ファイル: AVFormat.cs プロジェクト: nasojlsu/CasparCGPlayout
        /// <summary>
        /// Allocates all the structures needed to read an input stream.
        /// This does not open the needed codecs for decoding the stream[s].
        /// </summary>
        private static AVError av_open_input_stream(out AVFormatContext ctx, ref ByteIOContext pb,
            string filename, ref AVInputFormat fmt, ref AVFormatParameters ap)
        {
            AVFormatContext* ptr;
            AVError err = av_open_input_stream(out ptr, ref pb, filename, ref fmt, ref ap);

            ctx = *ptr;

            FFmpeg.av_free(ptr);

            return err;
        }
コード例 #30
0
ファイル: AVIO.cs プロジェクト: zhouqilin/CasparCGPlayout
 public static extern void put_tag(ref ByteIOContext s, string tag);