00001 /* 00002 * This file is part of FFmpeg. 00003 * 00004 * FFmpeg is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * FFmpeg is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with FFmpeg; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00024 #ifndef AVCODEC_INTERNAL_H 00025 #define AVCODEC_INTERNAL_H 00026 00027 #include <stdint.h> 00028 00029 #include "libavutil/pixfmt.h" 00030 #include "avcodec.h" 00031 00032 typedef struct InternalBuffer { 00033 int last_pic_num; 00034 uint8_t *base[AV_NUM_DATA_POINTERS]; 00035 uint8_t *data[AV_NUM_DATA_POINTERS]; 00036 int linesize[AV_NUM_DATA_POINTERS]; 00037 int width; 00038 int height; 00039 enum PixelFormat pix_fmt; 00040 uint8_t **extended_data; 00041 int audio_data_size; 00042 int nb_channels; 00043 } InternalBuffer; 00044 00045 typedef struct AVCodecInternal { 00050 int buffer_count; 00051 00056 InternalBuffer *buffer; 00057 00064 int is_copy; 00065 } AVCodecInternal; 00066 00067 struct AVCodecDefault { 00068 const uint8_t *key; 00069 const uint8_t *value; 00070 }; 00071 00075 int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt); 00076 00085 AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt); 00086 00091 int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); 00092 00093 unsigned int avpriv_toupper4(unsigned int x); 00094 00098 void ff_init_buffer_info(AVCodecContext *s, AVFrame *pic); 00099 00100 int avpriv_lock_avformat(void); 00101 int avpriv_unlock_avformat(void); 00102 00103 #endif /* AVCODEC_INTERNAL_H */