예제 #1
0
 public static extern int url_close_buf(ref ByteIOContext s);
예제 #2
0
 public static extern int get_partial_buffer(ref ByteIOContext s, [In, Out]byte[] buf, int size);
예제 #3
0
 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
 public static extern int get_byte(ref ByteIOContext s);
예제 #5
0
 public static extern uint get_le32(ref ByteIOContext s);
예제 #6
0
 public static extern int url_open_dyn_buf(ref ByteIOContext s);
예제 #7
0
 public static extern int url_setbufsize(ref ByteIOContext s, int buf_size);
예제 #8
0
 public static extern int url_fgetc(ref ByteIOContext s);
예제 #9
0
 public static extern string url_fgets(ref ByteIOContext s, [In, Out]byte[] buf, int buf_size);
예제 #10
0
 public static extern int url_fdopen(ref ByteIOContext s, ref URLContext h);
예제 #11
0
 public static extern int url_ferror(ref ByteIOContext s);
예제 #12
0
 public static extern int url_fclose(ref ByteIOContext s);
예제 #13
0
        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
 public static extern int url_close_dyn_buf(ref ByteIOContext s, out byte* pbuffer);
예제 #15
0
 public static bool url_is_streamed(ref ByteIOContext s)
 {
     return s.is_streamed;
 }
예제 #16
0
 public static extern int url_fget_max_packet_size(ref ByteIOContext s);
예제 #17
0
 public static extern int url_open_buf(ref ByteIOContext s, [In, Out]byte[] buf, int buf_size, int flags);
예제 #18
0
 public static extern URLContext* url_fileno(ref ByteIOContext s);
예제 #19
0
 public static extern int url_open_dyn_packet_buf(ref ByteIOContext s, int max_packet_size);
예제 #20
0
 public static extern int url_fopen(ref ByteIOContext s, string filename, int flags);
예제 #21
0
 public static extern uint get_be24(ref ByteIOContext s);
예제 #22
0
 public static extern long url_fseek(ref ByteIOContext s, long offset, int whence);
예제 #23
0
 public static extern ulong get_checksum(ref ByteIOContext s);
예제 #24
0
 public static extern long url_fsize(ref ByteIOContext s);
예제 #25
0
 public static extern ulong get_le64(ref ByteIOContext s);
예제 #26
0
 public static extern void url_fskip(ref ByteIOContext s, long offset);
예제 #27
0
 public static extern int av_get_packet(ref ByteIOContext pByteIOContext, ref AVPacket pAVPacket, int size);
예제 #28
0
 public static extern long url_ftell(ref ByteIOContext s);
예제 #29
0
        /// <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
 public static extern void put_tag(ref ByteIOContext s, string tag);