/* * Copyright (C) 2014-2024 Amlogic, Inc. All rights reserved. * * All information contained herein is Amlogic confidential. * * This software is provided to you pursuant to Software License Agreement * (SLA) with Amlogic Inc ("Amlogic"). This software may be used * only in accordance with the terms of this agreement. * * Redistribution and use in source and binary forms, with or without * modification is strictly prohibited without prior written permission from * Amlogic. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef YOCTO_REMOTEDATA_H #define YOCTO_REMOTEDATA_H #define EVENT_ON_SUBTITLEDATA_CALLBACK 0xA00000 #define EVENT_ON_SUBTITLEAVAILABLE_CALLBACK 0xA00001 #define EVENT_ON_VIDEOAFDCHANGE_CALLBACK 0xA00002 #define EVENT_ON_MIXVIDEOEVENT_CALLBACK 0xA00003 #define EVENT_ON_SUBTITLE_DIMENSION_CALLBACK 0xA00004 #define EVENT_ON_SUBTITLE_LANGUAGE_CALLBACK 0xA00005 #define EVENT_ON_SUBTITLE_INFO_CALLBACK 0xA00006 #define SHMEMORY_ID 0x9FE7 typedef struct RemoteData_ { int type = -1; int width = 0; int height = 0; int size = 0; bool isShow = false; bool isText = false; int x = 0; int y = 0; int videoWidth = 0; int videoHeight = 0; int objectSegmentId = 0; int shimId = -1; // SUBTITLEDATA_CALLBACK int event = 0; int channelId = 0; int callbackType = -1; // SUBTITLEAVAILABLE_CALLBACK int available = 0; // VIDEOAFDCHANGE_CALLBACK int afd = 0; int playerid = 0; // SUBTITLE_LANGUAGE_CALLBACK char lang[32] = {0}; // SUBTITLE_INFO_CALLBACK int what = 0; int extra = 0; } RemoteData; #endif // YOCTO_REMOTEDATA_H