42 #warning FIXME: implement video close event
110 if (!
var_GetBool(vout,
"autoscale") != !is_display_filled)
121 const float zoom = (float)num / (
float)den;
136 if (!
var_GetBool(vout,
"video-on-top") != !is_on_top)
146 unsigned num,
unsigned den)
155 if (num > 0 && den > 0) {
156 if (
asprintf(&ar,
"%u:%u", num, den) < 0)
163 msg_Err(vout,
"vout_SendEventSourceAspect %s -> %s", current, ar);
164 if (ar && current && strcmp(ar, current))
172 unsigned num,
unsigned den,
173 unsigned left,
unsigned top,
174 unsigned right,
unsigned bottom)
197 if (num > 0 && den > 0) {
198 if (
asprintf(&crop,
"%u:%u", num, den) < 0)
200 }
else if (left > 0 || top > 0 || right > 0 || bottom > 0) {
201 if (
asprintf(&crop,
"%u+%u+%u+%u", left, top, right, bottom) < 0)
214 static inline void vout_SendEventSnapshot(
vout_thread_t *vout,
const char *filename)
220 #warning "FIXME clean up postproc event"
222 extern void vout_InstallDeprecatedPostProcessing(
vout_thread_t *);
223 extern void vout_UninstallDeprecatedPostProcessing(
vout_thread_t *);
225 static inline void vout_SendEventPostProcessing(
vout_thread_t *vout,
bool is_available)
228 vout_InstallDeprecatedPostProcessing(vout);
230 vout_UninstallDeprecatedPostProcessing(vout);
233 static inline void vout_SendEventFilters(
vout_thread_t *vout)
238 vout_ControlGetFilters(vout, &filter, &filter_count);
241 for (
int i = 0; i < filter_count; i++) {
245 list, i > 0 ?
":" :
"", filter[i]->
name) < 0) {
261 for (
int i = 0; i < filter_count; i++)
262 vout_filter_Delete(filter[i]);