Lines Matching defs:max_w
64 int max_w;
235 " max_w 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);
1037 * @param cmd->arg.max_w maximum image width
1053 query = "INSERT INTO artwork (id, persistentid, max_w, max_h, format, filepath, db_timestamp, data, type) VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, ?);";
1071 sqlite3_bind_int(stmt, 2, cmd->arg.max_w);
1105 * @param cmd->arg.max_w maximum image width
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);
1465 * @param max_w maximum image width
1473 cache_artwork_add(int type, int64_t persistentid, int max_w, int max_h, int format, char *filename, struct evbuffer *evbuf)
1486 cmd.arg.max_w = max_w;
1506 * @param max_w maximum image width
1514 cache_artwork_get(int type, int64_t persistentid, int max_w, int max_h, int *cached, int *format, struct evbuffer *evbuf)
1527 cmd.arg.max_w = max_w;