• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/libdirac_libschro.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008 BBC, Anuradha Suraparaju <asuraparaju at gmail dot com >
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00026 #ifndef AVCODEC_LIBDIRAC_LIBSCHRO_H
00027 #define AVCODEC_LIBDIRAC_LIBSCHRO_H
00028 
00029 #include "avcodec.h"
00030 
00031 typedef struct
00032 {
00033     uint16_t width;
00034     uint16_t height;
00035     uint16_t frame_rate_num;
00036     uint16_t frame_rate_denom;
00037 } FfmpegDiracSchroVideoFormatInfo;
00038 
00042 unsigned int ff_dirac_schro_get_video_format_idx (AVCodecContext *avccontext);
00043 
00047 typedef struct FfmpegDiracSchroEncodedFrame
00048 {
00050     uint8_t *p_encbuf;
00051 
00053     uint32_t size;
00054 
00056     uint32_t frame_num;
00057 
00059     uint16_t key_frame;
00060 } FfmpegDiracSchroEncodedFrame;
00061 
00065 typedef struct FfmpegDiracSchroQueueElement
00066 {
00068     void *data;
00070     struct FfmpegDiracSchroQueueElement *next;
00071 } FfmpegDiracSchroQueueElement;
00072 
00073 
00077 typedef struct FfmpegDiracSchroQueue
00078 {
00080     FfmpegDiracSchroQueueElement *p_head;
00082     FfmpegDiracSchroQueueElement *p_tail;
00084     int size;
00085 } FfmpegDiracSchroQueue;
00086 
00090 void ff_dirac_schro_queue_init(FfmpegDiracSchroQueue *queue);
00091 
00095 int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data);
00096 
00100 void *ff_dirac_schro_queue_pop (FfmpegDiracSchroQueue *queue);
00101 
00107 void ff_dirac_schro_queue_free(FfmpegDiracSchroQueue *queue,
00108                                void (*free_func)(void *));
00109 #endif /* AVCODEC_LIBDIRAC_LIBSCHRO_H */

Generated on Tue Nov 4 2014 12:59:22 for ffmpeg by  doxygen 1.7.1