Revision d3a4e41c

View differences:

libavfilter/formats.c
85 85

  
86 86
AVFilterFormats *avfilter_all_colorspaces(void)
87 87
{
88
    return avfilter_make_format_list(35,
89
                PIX_FMT_YUV444P,  PIX_FMT_YUV422P,  PIX_FMT_YUV420P,
90
                PIX_FMT_YUV411P,  PIX_FMT_YUV410P,
91
                PIX_FMT_YUYV422,  PIX_FMT_UYVY422,  PIX_FMT_UYYVYY411,
92
                PIX_FMT_YUVJ444P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ420P,
93
                PIX_FMT_YUV440P,  PIX_FMT_YUVJ440P,
94
                PIX_FMT_RGB32,    PIX_FMT_BGR32,
95
                PIX_FMT_RGB32_1,  PIX_FMT_BGR32_1,
96
                PIX_FMT_RGB24,    PIX_FMT_BGR24,
97
                PIX_FMT_RGB565,   PIX_FMT_BGR565,
98
                PIX_FMT_RGB555,   PIX_FMT_BGR555,
99
                PIX_FMT_RGB8,     PIX_FMT_BGR8,
100
                PIX_FMT_RGB4_BYTE,PIX_FMT_BGR4_BYTE,
101
                PIX_FMT_GRAY16BE, PIX_FMT_GRAY16LE,
102
                PIX_FMT_GRAY8,    PIX_FMT_PAL8,
103
                PIX_FMT_MONOWHITE,PIX_FMT_MONOBLACK,
104
                PIX_FMT_NV12,     PIX_FMT_NV21);
88
    AVFilterFormats *ret;
89
    int i;
90

  
91
    ret = av_mallocz(sizeof(AVFilterFormats));
92
    ret->formats = av_malloc(sizeof(*ret->formats) * PIX_FMT_NB);
93
    ret->format_count = PIX_FMT_NB;
94

  
95
    for(i = 0; i < PIX_FMT_NB; i ++)
96
        ret->formats[i] = i;
97

  
98
    return ret;
105 99
}
106 100

  
107 101
void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)

Also available in: Unified diff