MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / execute

Method execute

kernel/cellos/src/sys_uart.cpp:420–439  ·  view source on GitHub ↗

Cross color reduction filter setting in vsh. (AVMULTI)

Source from the content-addressed store, hash-verified

418
419 // Cross color reduction filter setting in vsh. (AVMULTI)
420 void execute(vuart_av_thread &vuart, const void *pkt_buf) override {
421 const auto pkt =
422 static_cast<const ps3av_pkt_av_video_ytrapcontrol *>(pkt_buf);
423
424 if (vuart.get_reply_buf_free_size() <
425 sizeof(ps3av_get_hw_info_reply) + sizeof(ps3av_pkt_reply_hdr)) {
426 vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_BUFFER_OVERFLOW);
427 return;
428 }
429
430 if (pkt->unk1 && pkt->unk1 != 5U) {
431 vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_SUCCESS);
432 return;
433 }
434
435 sys_uart.notice("[av_video_ytrapcontrol_cmd] unk1=0x%04x unk2=0x%04x",
436 pkt->unk1, pkt->unk2);
437
438 vuart.write_resp<true>(pkt->hdr.cid, PS3AV_STATUS_SUCCESS);
439 }
440};
441
442struct av_audio_mute_cmd : public ps3av_cmd {

Callers

nothing calls this directly

Calls 2

write_respMethod · 0.80

Tested by

no test coverage detected