{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/firmware/issues/377","labels_url":"https://api.github.com/repos/raspberrypi/firmware/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/firmware/issues/377/comments","events_url":"https://api.github.com/repos/raspberrypi/firmware/issues/377/events","html_url":"https://github.com/raspberrypi/firmware/issues/377","id":58966774,"number":377,"title":"mmal: Get component port state debug information","user":{"login":"julianscheel","id":985759,"avatar_url":"https://avatars.githubusercontent.com/u/985759?v=3","gravatar_id":"","url":"https://api.github.com/users/julianscheel","html_url":"https://github.com/julianscheel","followers_url":"https://api.github.com/users/julianscheel/followers","following_url":"https://api.github.com/users/julianscheel/following{/other_user}","gists_url":"https://api.github.com/users/julianscheel/gists{/gist_id}","starred_url":"https://api.github.com/users/julianscheel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianscheel/subscriptions","organizations_url":"https://api.github.com/users/julianscheel/orgs","repos_url":"https://api.github.com/users/julianscheel/repos","events_url":"https://api.github.com/users/julianscheel/events{/privacy}","received_events_url":"https://api.github.com/users/julianscheel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":81,"created_at":"2015-02-25T20:47:46Z","updated_at":"2015-03-20T18:14:01Z","closed_at":null,"body":"Is there a similiar mechanism for mmal to OMX_GetDebugInformation for openmax which enables us to see the state of the active mmal components and their ports?\r\nI am looking for an issue where mmal_port_flush() does not seem to work properly on image_fx component - my internal refcounting says that still one buffer is in use by the input port. It would be quite helpful to have a chance to see the internal port state."},"comment":{"url":"https://api.github.com/repos/raspberrypi/firmware/issues/comments/84091999","html_url":"https://github.com/raspberrypi/firmware/issues/377#issuecomment-84091999","issue_url":"https://api.github.com/repos/raspberrypi/firmware/issues/377","id":84091999,"user":{"login":"6by9","id":5822349,"avatar_url":"https://avatars.githubusercontent.com/u/5822349?v=3","gravatar_id":"","url":"https://api.github.com/users/6by9","html_url":"https://github.com/6by9","followers_url":"https://api.github.com/users/6by9/followers","following_url":"https://api.github.com/users/6by9/following{/other_user}","gists_url":"https://api.github.com/users/6by9/gists{/gist_id}","starred_url":"https://api.github.com/users/6by9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/6by9/subscriptions","organizations_url":"https://api.github.com/users/6by9/orgs","repos_url":"https://api.github.com/users/6by9/repos","events_url":"https://api.github.com/users/6by9/events{/privacy}","received_events_url":"https://api.github.com/users/6by9/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T18:14:00Z","updated_at":"2015-03-20T18:14:00Z","body":"As per my comment above, port_format_commit will never use this method anyway\r\nThe only place this code is present is as part of mmal_vc_port_send(), and then only active if the encoding is opaque. \r\n```\r\nif (length <= MMAL_VC_SHORT_DATA && !port->priv->module->is_zero_copy &&\r\n(port->format->encoding == MMAL_ENCODING_OPAQUE ||\r\nport->type == MMAL_PORT_TYPE_CLOCK))\r\n{\r\nmemcpy(msg->short_data, buffer->data + buffer->offset, buffer->length);\r\nmsg->payload_in_message = length;\r\nlength = 0;\r\n}\r\nelse\r\n{\r\nmsg->payload_in_message = 0;\r\n}\r\n```\r\nZero copy is also not used on anything other than buffer passing.\r\n"}}