FFmpeg
Macros | Functions | Variables
img2.c File Reference
#include <assert.h>
#include "libavutil/avstring.h"
#include "internal.h"
#include "img2.h"

Go to the source code of this file.

Macros

#define IMG_TAGS(TAG)
 
#define LENGTH_CHECK(CODECID, STR)   static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");
 
#define TAG(CODECID, STR)   { AV_CODEC_ID_ ## CODECID, #STR },
 

Functions

static enum AVCodecID str2id (const IdStrMap *tags, const char *str)
 
enum AVCodecID ff_guess_image2_codec (const char *filename)
 

Variables

const IdStrMap ff_img_tags []
 

Macro Definition Documentation

◆ IMG_TAGS

#define IMG_TAGS (   TAG)

Definition at line 29 of file img2.c.

◆ LENGTH_CHECK

#define LENGTH_CHECK (   CODECID,
  STR 
)    static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");

Definition at line 100 of file img2.c.

◆ TAG

#define TAG (   CODECID,
  STR 
)    { AV_CODEC_ID_ ## CODECID, #STR },

Function Documentation

◆ str2id()

static enum AVCodecID str2id ( const IdStrMap tags,
const char *  str 
)
static

Definition at line 109 of file img2.c.

Referenced by ff_guess_image2_codec().

◆ ff_guess_image2_codec()

enum AVCodecID ff_guess_image2_codec ( const char *  filename)

Variable Documentation

◆ ff_img_tags

const IdStrMap ff_img_tags[]
Initial value:
= {
#define TAG(CODECID, STR)
}

Definition at line 104 of file img2.c.

Referenced by ff_guess_image2_codec(), and query_codec().