FFmpeg
Loading...
Searching...
No Matches
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)
 
#define TAG(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 )
Value:
static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");
const IdStrMap ff_img_tags[]
Definition img2.c:105
#define STR(s)

Definition at line 101 of file img2.c.

◆ TAG

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

Function Documentation

◆ str2id()

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

Definition at line 110 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 105 of file img2.c.

Referenced by ff_guess_image2_codec(), and query_codec().