Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/VideoTexture/VideoFFmpeg.cpp
| Show First 20 Lines • Show All 1,197 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| // methods structure | // methods structure | ||||
| static PyMethodDef videoMethods[] = | static PyMethodDef videoMethods[] = | ||||
| { // methods from VideoBase class | { // methods from VideoBase class | ||||
| {"play", (PyCFunction)Video_play, METH_NOARGS, "Play (restart) video"}, | {"play", (PyCFunction)Video_play, METH_NOARGS, "Play (restart) video"}, | ||||
| {"pause", (PyCFunction)Video_pause, METH_NOARGS, "pause video"}, | {"pause", (PyCFunction)Video_pause, METH_NOARGS, "pause video"}, | ||||
| {"stop", (PyCFunction)Video_stop, METH_NOARGS, "stop video (play will replay it from start)"}, | {"stop", (PyCFunction)Video_stop, METH_NOARGS, "stop video (play will replay it from start)"}, | ||||
| {"refresh", (PyCFunction)Video_refresh, METH_NOARGS, "Refresh video - get its status"}, | {"refresh", (PyCFunction)Video_refresh, METH_VARARGS, "Refresh video - get its status"}, | ||||
| {NULL} | {NULL} | ||||
| }; | }; | ||||
| // attributes structure | // attributes structure | ||||
| static PyGetSetDef videoGetSets[] = | static PyGetSetDef videoGetSets[] = | ||||
| { // methods from VideoBase class | { // methods from VideoBase class | ||||
| {(char*)"status", (getter)Video_getStatus, NULL, (char*)"video status", NULL}, | {(char*)"status", (getter)Video_getStatus, NULL, (char*)"video status", NULL}, | ||||
| {(char*)"range", (getter)Video_getRange, (setter)Video_setRange, (char*)"replay range", NULL}, | {(char*)"range", (getter)Video_getRange, (setter)Video_setRange, (char*)"replay range", NULL}, | ||||
| {(char*)"repeat", (getter)Video_getRepeat, (setter)Video_setRepeat, (char*)"repeat count, -1 for infinite repeat", NULL}, | {(char*)"repeat", (getter)Video_getRepeat, (setter)Video_setRepeat, (char*)"repeat count, -1 for infinite repeat", NULL}, | ||||
| ▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | if (self->m_image != NULL) | ||||
| video->openFile(newname); | video->openFile(newname); | ||||
| } | } | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| // methods structure | // methods structure | ||||
| static PyMethodDef imageMethods[] = | static PyMethodDef imageMethods[] = | ||||
| { // methods from VideoBase class | { // methods from VideoBase class | ||||
| {"refresh", (PyCFunction)Video_refresh, METH_NOARGS, "Refresh image, i.e. load it"}, | {"refresh", (PyCFunction)Video_refresh, METH_VARARGS, "Refresh image, i.e. load it"}, | ||||
| {"reload", (PyCFunction)Image_reload, METH_VARARGS, "Reload image, i.e. reopen it"}, | {"reload", (PyCFunction)Image_reload, METH_VARARGS, "Reload image, i.e. reopen it"}, | ||||
| {NULL} | {NULL} | ||||
| }; | }; | ||||
| // attributes structure | // attributes structure | ||||
| static PyGetSetDef imageGetSets[] = | static PyGetSetDef imageGetSets[] = | ||||
| { // methods from VideoBase class | { // methods from VideoBase class | ||||
| {(char*)"status", (getter)Video_getStatus, NULL, (char*)"video status", NULL}, | {(char*)"status", (getter)Video_getStatus, NULL, (char*)"video status", NULL}, | ||||
| // attributes from ImageBase class | // attributes from ImageBase class | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||