chromium/third_party/ffmpeg/libavutil/pixdesc.c

/*
 * pixel format descriptor
 * Copyright (c) 2009 Michael Niedermayer <[email protected]>
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include <stdio.h>
#include <string.h>

#include "avstring.h"
#include "common.h"
#include "pixfmt.h"
#include "pixdesc.h"
#include "intreadwrite.h"

void av_read_image_line2(void *dst,
                        const uint8_t *data[4], const int linesize[4],
                        const AVPixFmtDescriptor *desc,
                        int x, int y, int c, int w,
                        int read_pal_component,
                        int dst_element_size)
{}

void av_read_image_line(uint16_t *dst,
                        const uint8_t *data[4], const int linesize[4],
                        const AVPixFmtDescriptor *desc,
                        int x, int y, int c, int w,
                        int read_pal_component)
{}

void av_write_image_line2(const void *src,
                         uint8_t *data[4], const int linesize[4],
                         const AVPixFmtDescriptor *desc,
                         int x, int y, int c, int w, int src_element_size)
{}

void av_write_image_line(const uint16_t *src,
                         uint8_t *data[4], const int linesize[4],
                         const AVPixFmtDescriptor *desc,
                         int x, int y, int c, int w)
{}

static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] =;

static const char * const color_range_names[] =;

static const char * const color_primaries_names[AVCOL_PRI_NB] =;

static const char * const color_transfer_names[] =;

static const char * const color_space_names[] =;

static const char * const chroma_location_names[] =;

static enum AVPixelFormat get_pix_fmt_internal(const char *name)
{}

const char *av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
{}

#if HAVE_BIGENDIAN
#define X_NE
#else
#define X_NE(be, le)
#endif

enum AVPixelFormat av_get_pix_fmt(const char *name)
{}

int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
{}

int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
{}

char *av_get_pix_fmt_string(char *buf, int buf_size,
                            enum AVPixelFormat pix_fmt)
{}

const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
{}

const AVPixFmtDescriptor *av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
{}

enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
{}

int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt,
                                     int *h_shift, int *v_shift)
{}

int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
{}

enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt)
{}

#define FF_COLOR_NA
#define FF_COLOR_RGB
#define FF_COLOR_GRAY
#define FF_COLOR_YUV
#define FF_COLOR_YUV_JPEG
#define FF_COLOR_XYZ

#define pixdesc_has_alpha(pixdesc)


static int get_color_type(const AVPixFmtDescriptor *desc) {}

static int get_pix_fmt_depth(int *min, int *max, enum AVPixelFormat pix_fmt)
{}

static int get_pix_fmt_score(enum AVPixelFormat dst_pix_fmt,
                              enum AVPixelFormat src_pix_fmt,
                              unsigned *lossp, unsigned consider)
{}

int av_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
                            enum AVPixelFormat src_pix_fmt,
                            int has_alpha)
{}

enum AVPixelFormat av_find_best_pix_fmt_of_2(enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2,
                                             enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
{}

const char *av_color_range_name(enum AVColorRange range)
{}

int av_color_range_from_name(const char *name)
{}

const char *av_color_primaries_name(enum AVColorPrimaries primaries)
{}

int av_color_primaries_from_name(const char *name)
{}

const char *av_color_transfer_name(enum AVColorTransferCharacteristic transfer)
{}

int av_color_transfer_from_name(const char *name)
{}

const char *av_color_space_name(enum AVColorSpace space)
{}

int av_color_space_from_name(const char *name)
{}

const char *av_chroma_location_name(enum AVChromaLocation location)
{}

int av_chroma_location_from_name(const char *name)
{}

int av_chroma_location_enum_to_pos(int *xpos, int *ypos, enum AVChromaLocation pos)
{}

enum AVChromaLocation av_chroma_location_pos_to_enum(int xpos, int ypos)
{}