khronosfws/openmax_al/src/mmf_adaptation/xastreaminformationitfadaptationmmf.c
changeset 53 eabc8c503852
parent 43 9894ed580e4a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
   232             streamInfo->bitRate = bitRate;
   232             streamInfo->bitRate = bitRate;
   233             streamInfo->langCountry[0] = '\0';
   233             streamInfo->langCountry[0] = '\0';
   234             streamInfo->duration = duration;
   234             streamInfo->duration = duration;
   235             }
   235             }
   236             break;
   236             break;
   237 /*
       
   238         case XA_DOMAINTYPE_MIDI:
       
   239             {
       
   240             XAMIDIStreamInformation* streamInfo =
       
   241                     (XAMIDIStreamInformation*) info;
       
   242             DEBUG_INFO("Assigning values for XAMIDIStreamInformation");*/
       
   243             /*currently there is no way to get these information from gstreamer*/
       
   244 /*            streamInfo->channels = XA_MIDI_UNKNOWN;
       
   245             streamInfo->tracks = XA_MIDI_UNKNOWN;
       
   246             streamInfo->bankType = XA_MIDIBANK_DEVICE;*/
       
   247             /*streamInfo->bitRate = 0;*/
       
   248 /*            streamInfo->langCountry[0] = '\0';
       
   249             streamInfo->duration = duration;
       
   250             }
       
   251             break;
       
   252 */
       
   253         case XA_DOMAINTYPE_VIDEO:
   237         case XA_DOMAINTYPE_VIDEO:
   254             {
   238             {
   255             XAVideoStreamInformation* streamInfo =
   239             XAVideoStreamInformation* streamInfo =
   256                     (XAVideoStreamInformation*) info;
   240                     (XAVideoStreamInformation*) info;
   257             DEBUG_INFO("Assigning values for XAVideoStreamInformation");
   241             DEBUG_INFO("Assigning values for XAVideoStreamInformation");
   261             streamInfo->bitRate = bitRate;
   245             streamInfo->bitRate = bitRate;
   262             streamInfo->duration = duration;
   246             streamInfo->duration = duration;
   263             streamInfo->frameRate = frameRate;
   247             streamInfo->frameRate = frameRate;
   264             }
   248             }
   265             break;
   249             break;
   266 /*
       
   267         case XA_DOMAINTYPE_IMAGE:
       
   268             {
       
   269             XAImageStreamInformation* streamInfo =
       
   270                     (XAImageStreamInformation*) info;
       
   271             DEBUG_INFO("Assigning values for XAImageStreamInformation");
       
   272             streamInfo->codecId = codecId;
       
   273             streamInfo->width = width;
       
   274             streamInfo->height = height;
       
   275             streamInfo->presentationDuration = duration;
       
   276             }
       
   277             break;
       
   278         default:
       
   279             break;
       
   280 */
       
   281         };
   250         };
   282     DEBUG_API("<-XAStreamInformationItfAdaptMMF_QueryStreamInformation");
   251     DEBUG_API("<-XAStreamInformationItfAdaptMMF_QueryStreamInformation");
   283     return ret;
   252     return ret;
   284     }
   253     }
   285 
   254 
   458         }
   427         }
   459 
   428 
   460     DEBUG_API("->XAStreamInformationItfAdaptMMF_SetActiveStream");
   429     DEBUG_API("->XAStreamInformationItfAdaptMMF_SetActiveStream");
   461     return ret;
   430     return ret;
   462     }
   431     }
       
   432 
       
   433 XAresult XAStreamInformationItfAdaptMMF_RegisterCallback(
       
   434 					XAAdaptationBaseCtx *adaptCtx,
       
   435 					xaStreamEventChangeCallback callback)
       
   436 {
       
   437     DEBUG_API("<->XAStreamInformationItfAdaptMMF_RegisterCallback");
       
   438 	return mmf_streaminfoitf_register_callback(((XAMediaPlayerAdaptationMMFCtx*) adaptCtx)->mmfContext,callback);
       
   439 }
       
   440