Go to the documentation of this file.
30 #if CONFIG_RESOURCE_COMPRESSION
66 #if CONFIG_RESOURCE_COMPRESSION
71 unsigned chunk = 65534;
76 memset(&strm, 0,
sizeof(strm));
86 ret = inflateInit2(&strm, 15 + 16);
93 strm.avail_in = in_len;
95 strm.avail_out = chunk;
99 if (
ret != Z_OK &&
ret != Z_STREAM_END) {
103 return (
ret == Z_STREAM_END) ? Z_OK : ((
ret == Z_OK) ? Z_BUF_ERROR :
ret);
106 if (strm.avail_out == 0) {
111 *out_len = chunk - strm.avail_out;
140 resource_definition = def;
154 #if CONFIG_RESOURCE_COMPRESSION
159 int ret = decompress_gzip(
ctx, (uint8_t *)resource_definition.
data, *resource_definition.
data_len, &
out, &out_len);
176 dict_ret =
av_dict_set(&
ctx->resource_dic, resource_definition.
name, (
const char *)resource_definition.
data, 0);
191 res = dic_entry->
value;
#define AV_LOG_WARNING
Something somehow does not look correct.
const unsigned char * data
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
void ff_resman_uninit(void)
static int ff_mutex_unlock(AVMutex *mutex)
static void inflate(uint8_t *dst, const uint8_t *p1, int width, int threshold, const uint8_t *coordinates[], int coord, int maxc)
const unsigned ff_graph_css_len
char * ff_resman_get_string(FFResourceId resource_id)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_ARRAY_ELEMS(a)
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
static const FFResourceDefinition resource_definitions[]
Describe the class of an AVClass context structure.
const unsigned char ff_graph_html_data[]
#define AV_MUTEX_INITIALIZER
static int ff_mutex_lock(AVMutex *mutex)
void av_dict_free(AVDictionary **pm)
Free all the memory allocated for an AVDictionary struct and all keys and values.
const unsigned int ff_graph_html_len
#define i(width, name, range_min, range_max)
const unsigned char ff_graph_css_data[]
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
const unsigned * data_len
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
static const AVClass resman_class
AVDictionary * resource_dic
static ResourceManagerContext resman_ctx