Cross color reduction filter setting in vsh. (AVMULTI)
| 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 | |
| 442 | struct av_audio_mute_cmd : public ps3av_cmd { |
nothing calls this directly
no test coverage detected