Lines Matching defs:max_h
65 int max_h;
236 " max_h INTEGER NOT NULL," \
243 "CREATE INDEX IF NOT EXISTS idx_persistentidwh ON artwork(type, persistentid, max_w, max_h);"
307 DPRINTF(E_FATAL, L_CACHE, "Error creating index on artwork(type, persistentid, max_w, max_h): %s\n", errmsg);
1038 * @param cmd->arg.max_h maximum image height
1053 query = "INSERT INTO artwork (id, persistentid, max_w, max_h, format, filepath, db_timestamp, data, type) VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, ?);";
1072 sqlite3_bind_int(stmt, 3, cmd->arg.max_h);
1106 * @param cmd->arg.max_h maximum image height
1115 #define Q_TMPL "SELECT a.format, a.data FROM artwork a WHERE a.type = %d AND a.persistentid = %" PRIi64 " AND a.max_w = %d AND a.max_h = %d;"
1121 query = sqlite3_mprintf(Q_TMPL, cmd->arg.type, cmd->arg.peristentid, cmd->arg.max_w, cmd->arg.max_h);
1466 * @param max_h maximum image height
1473 cache_artwork_add(int type, int64_t persistentid, int max_w, int max_h, int format, char *filename, struct evbuffer *evbuf)
1487 cmd.arg.max_h = max_h;
1507 * @param max_h maximum image height
1514 cache_artwork_get(int type, int64_t persistentid, int max_w, int max_h, int *cached, int *format, struct evbuffer *evbuf)
1528 cmd.arg.max_h = max_h;