mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
codecmap: Add caps for aptX and aptX-HD
This commit is contained in:
parent
e3e99ddfa0
commit
597578ca41
2 changed files with 14 additions and 4 deletions
|
@ -4881,7 +4881,7 @@
|
|||
"name": "avdec_aptx",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "unknown/unknown:\n",
|
||||
"caps": "audio/aptx:\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
@ -4955,7 +4955,7 @@
|
|||
"name": "avdec_aptx_hd",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "unknown/unknown:\n",
|
||||
"caps": "audio/aptx-hd:\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
@ -58209,7 +58209,7 @@
|
|||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "unknown/unknown:\n",
|
||||
"caps": "audio/aptx:\n channels: [ 1, 2 ]\n rate: [ 4000, 96000 ]\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
|
@ -58823,7 +58823,7 @@
|
|||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "unknown/unknown:\n",
|
||||
"caps": "audio/aptx-hd:\n channels: [ 1, 2 ]\n rate: [ 4000, 96000 ]\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
|
|
|
@ -2289,6 +2289,16 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
gst_caps_set_simple (caps, "lsbf", G_TYPE_BOOLEAN,
|
||||
FALSE, "planar", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||
break;
|
||||
case AV_CODEC_ID_APTX:
|
||||
caps =
|
||||
gst_ff_aud_caps_new (context, NULL, codec_id, encode, "audio/aptx",
|
||||
NULL);
|
||||
break;
|
||||
case AV_CODEC_ID_APTX_HD:
|
||||
caps =
|
||||
gst_ff_aud_caps_new (context, NULL, codec_id, encode, "audio/aptx-hd",
|
||||
NULL);
|
||||
break;
|
||||
default:
|
||||
GST_DEBUG ("Unknown codec ID %d, please add mapping here", codec_id);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue